1.8
Public Member Functions | Public Attributes | List of all members
Painter::AutoGroup Struct Reference

You are encouraged to use this instead of manually calling Painter::push_group() and Painter::pop_group(). More...

Public Member Functions

 AutoGroup (AutoGroup &&)=delete
 
 AutoGroup (const AutoGroup &)=delete
 
 AutoGroup (Painter &painter)
 
 ~AutoGroup ()
 
AutoGroupoperator= (AutoGroup &&)=delete
 
AutoGroupoperator= (const AutoGroup &)=delete
 

Public Attributes

Painterm_painter
 

Detailed Description

You are encouraged to use this instead of manually calling Painter::push_group() and Painter::pop_group().

Example

{
Painter::AutoGroup group(painter);
// group automatically popped when out of scope
}

Constructor & Destructor Documentation

◆ AutoGroup() [1/3]

AutoGroup ( Painter painter)
inlineexplicit

◆ AutoGroup() [2/3]

AutoGroup ( const AutoGroup )
delete

◆ AutoGroup() [3/3]

AutoGroup ( AutoGroup &&  )
delete

◆ ~AutoGroup()

~AutoGroup ( )
inline

Member Function Documentation

◆ operator=() [1/2]

AutoGroup& operator= ( AutoGroup &&  )
delete

◆ operator=() [2/2]

AutoGroup& operator= ( const AutoGroup )
delete

Member Data Documentation

◆ m_painter

Painter& m_painter