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

Drawable function object. More...

#include <theme.h>

Public Types

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

Public Member Functions

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

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

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

Definition of the draw function.

Member Function Documentation

◆ operator()()

template<class T >
virtual void operator() ( T &  widget,
Painter painter,
const Rect rect 
)
pure virtual

Implementation of the actual draw function.