#include <Pt/Forms/StyleOptions.h>
Composable font override slice for widget-local style options. More...
Public Member Functions | |
| FontOption () | |
| Constructs an empty font option. | |
| bool | hasOverride () const |
| Returns true if any font override is set. | |
| const Gfx::Font * | font () const |
| Returns the local font override or 0 if none is set. | |
| void | setFont (const Gfx::Font &font) |
| Replaces the complete local font override. | |
| void | setSize (std::size_t size) |
| Sets the local font size override. | |
| void | setWeight (Gfx::Font::Weight weight) |
| Sets the local font weight override. | |
| void | setSlant (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. More... | |
Stores an optional local font plus four partial-override bits (All, Size, Weight, Slant). Enclosing widget-local options classes delegate their font setters and resolver to this helper and bump their own override bit after each mutation.