#include <Pt/Forms/PanelStyle.h>
Stores widget-local style overrides for panel-like widgets. More...
Public Member Functions | |
| PanelStyleOptions () | |
| Constructs empty local panel 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. | |
| const Gfx::Brush * | background () const |
| Returns the local background override or 0 if none is set. | |
| void | setBackground (const Gfx::Brush &brush) |
| Sets the local background 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 * | 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 base font. | |
Carries only the optional local override tokens that are resolved during renderer preparation.