FastUIDraw
|
Class to specify a custom fill rule from a function. More...
#include <fill_rule.hpp>
Public Types | |
typedef bool(* | fill_rule_fcn) (int) |
Public Member Functions | |
CustomFillRuleFunction (fill_rule_fcn fill_rule) | |
CustomFillRuleFunction (enum PainterEnums::fill_rule_t fill_rule) | |
virtual bool | operator() (int winding_number) const |
Static Public Member Functions | |
static fill_rule_fcn | function_from_enum (enum PainterEnums::fill_rule_t fill_rule) |
Class to specify a custom fill rule from a function.
Definition at line 52 of file fill_rule.hpp.
typedef bool(* fastuidraw::CustomFillRuleFunction::fill_rule_fcn) (int) |
Typedef to fill rule function pointer type
Definition at line 58 of file fill_rule.hpp.
|
inlineexplicit |
Ctor.
fill_rule | function to use to implement operator(int) const. |
Definition at line 66 of file fill_rule.hpp.
|
inlineexplicit |
Ctor from a PainterEnums::fill_rule_t enumeration
fill_rule | enumeration for fill rule. |
Definition at line 75 of file fill_rule.hpp.
|
static |
Returns a fill_rule_fcn implementing a fill rule from a PainterEnums::fill_rule_t.
fill_rule | enumerated fill rule. |
|
inlinevirtual |
To be implemented by a derived class to return true if to draw those regions with the passed winding number.
winding_number | winding number value to test. |
Implements fastuidraw::CustomFillRuleBase.
Definition at line 81 of file fill_rule.hpp.