#include <Pt/Forms/ButtonStyle.h>
Stores the widget-local style overrides for a push button. More...
Public Member Functions | |
| ButtonStyleOptions () | |
| Constructs empty local button style options. | |
| bool | hasOverrides () const |
| Returns true if any local style override is present. | |
| std::size_t | generation () const |
| Returns the current local override generation. More... | |
| const Gfx::Brush * | foreground () const |
| Returns the local foreground override or 0 if none is set. | |
| void | setForeground (const Gfx::Brush &brush) |
| Sets the local foreground override. | |
| const Gfx::Pen * | contour () const |
| Returns the local contour override or 0 if none is set. | |
| void | setContour (const Gfx::Pen &pen) |
| Sets the local contour override. | |
| const Gfx::Color * | accentColor () const |
| Returns the local accent color override or 0 if none is set. | |
| void | setAccentColor (const Gfx::Color &color) |
| Sets the local accent color override. | |
| const Gfx::Color * | highlightColor () const |
| Returns the local highlight color override or 0 if none is set. | |
| void | setHighlightColor (const Gfx::Color &color) |
| Sets the local highlight color override. | |
| const Gfx::Color * | textColor () const |
| Returns the local text color override or 0 if none is set. | |
| void | setTextColor (const Gfx::Color &color) |
| Sets the local text color override. | |
| const Gfx::Font * | font () const |
| Returns the local font override data or 0 if none is set. | |
| void | setFont (const Gfx::Font &font) |
| Sets the complete local font override. | |
| void | setFontSize (std::size_t size) |
| Sets the local font size override. | |
| void | setFontWeight (Gfx::Font::Weight weight) |
| Sets the local font weight override. | |
| void | setFontSlant (Gfx::Font::Slant slant) |
| Sets the local font slant override. | |
| Gfx::Font | getFont (const Gfx::Font &base) const |
| Resolves the effective font against the given style default. | |
Carries optional local tokens that are resolved during the prepare step. Render and icon hooks never receive these overrides directly.
| std::size_t generation | ( | ) | const |
The generation changes whenever any local override token is modified and can be used to detect when renderer preparation must be refreshed.