Public Types | Public Member Functions | List of all members
Drawable< T > Class Template Referenceabstract

Drawable function object. More...

Public Types

using DrawFunction = std::function< void(T &widget, Painter &painter, const Rect &rect)>
 Definition of the draw function. More...

Public Member Functions

virtual void operator() (T &widget, Painter &painter, const Rect &rect)=0
 Implementation of the actual draw function. More...

Detailed Description

template<class T>
class egt::v1::Drawable< T >

Drawable function object.

This class defines what is necessary to implement the draw() function of a widget type.

Member Typedef Documentation

◆ DrawFunction

using DrawFunction = std::function<void(T& widget, Painter& painter, const Rect& rect)>

Definition of the draw function.

Member Function Documentation

◆ operator()()

virtual void operator() ( T &  widget,
Painter painter,
const Rect rect 
pure virtual

Implementation of the actual draw function.