#include <Pt/Forms/PanelStyler.h>
Panel styler.
Inherits Styler.
Public Member Functions | |
| PanelStyler () | |
| Constructs an unbound panel styler. | |
| const Gfx::Brush & | background () const |
| Returns the effective background brush. | |
| void | setBackground (const Gfx::Brush &brush) |
| Sets the widget-local background brush to brush. | |
| const Gfx::Pen & | contour () const |
| Returns the effective contour pen. | |
| void | setContour (const Gfx::Pen &pen) |
| Sets the widget-local contour pen to pen. | |
| const Gfx::Color & | textColor () const |
| Returns the effective text color. | |
| void | setTextColor (const Gfx::Color &color) |
| Sets the widget-local text color to color. | |
| Gfx::Font | font () const |
| Returns the effective font. | |
| void | setFont (const Gfx::Font &font) |
| Sets the widget-local font to font. | |
| void | setFontSize (std::size_t size) |
| Sets the widget-local font size to size. | |
| void | setFontWeight (Gfx::Font::Weight weight) |
| Sets the widget-local font weight to weight. | |
| void | setFontSlant (Gfx::Font::Slant slant) |
| Sets the widget-local font slant to slant. | |
| Gfx::SizeF | measureFrame (PaintSurface &surface, const Gfx::SizeF &contentSize) const |
| Measures the frame enclosing contentSize. | |
| Gfx::RectF | layoutFrame (PaintSurface &surface, const Gfx::RectF &frameRect) const |
| Returns the frame content rectangle within frameRect. | |
| const Painter * | textPainter (PaintSurface &surface) const |
| Returns the text painter for surface, or 0 when unavailable. | |
| void | renderBackground (PaintContext &context, const Gfx::RectF &rect, const PanelState &state) const |
| Renders the panel background within rect for state. | |
| void | renderFrame (PaintContext &context, const Gfx::RectF &rect, const PanelState &state) const |
| Renders the panel frame within rect for state. | |
| void | renderText (PaintContext &context, const Gfx::RectF &rect, const String &text, const Gfx::PointF &pos, const PanelState &state) const |
| Renders text at pos within rect for state. | |
| void | renderIcon (PaintContext &context, const Gfx::RectF &rect, const Pixmap &picture, const Gfx::PointF &pos, const PanelState &state) const |
| Renders picture at pos within rect for state. | |
| void | setRenderer (PanelRenderer *renderer=0) |
| Assigns a specific panel renderer. | |
| StyleOptions & | options () |
| Returns the bound effective panel options. More... | |
| const StyleOptions & | options () const |
| Returns the bound effective panel options. | |
| bool | bind (const Style &style, const StyleOptions &styleOptions) |
| Binds or rebinds to a style and global style options. | |
| bool | isBound () const |
| Returns true if bound. | |
Protected Member Functions | |
| virtual StyleOptions & | onBindOptions (const StyleOptions &styleOptions) |
| Returns the specific style options. | |
| virtual Renderer * | onStyleRenderer (const Style &style) |
| Resolves the shared style renderer for the current style. | |
| virtual Renderer * | onCreateRenderer (const Style &style) |
| Creates an independant style renderer. | |
| void | init (Renderer *renderer) |
| Initializes with a specific renderer. | |
| StyleOptions& options | ( | ) |
Use StyleOptions::findLocal() to query an explicit widget-local token.