#include <Pt/Forms/ListBoxStyler.h>
Binds list box renderers and their local style options.
Inherits Styler.
Public Member Functions | |
| ListBoxStyler () | |
| Constructs an unbound list box styler. | |
| const Gfx::Brush & | background () const |
| Returns the effective list box background brush. | |
| void | setBackground (const Gfx::Brush &brush) |
| Sets the widget-local list box background brush to brush. | |
| const Gfx::Pen & | contour () const |
| Returns the effective list box contour pen. | |
| void | setContour (const Gfx::Pen &pen) |
| Sets the widget-local list box contour pen to pen. | |
| 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. | |
| void | renderBackground (PaintContext &context, const Gfx::RectF &rect, const ListBoxState &state) const |
| Renders the list box background within rect for state. | |
| void | renderChrome (PaintContext &context, const Gfx::RectF &rect, const ListBoxState &state) const |
| Renders the list box chrome within rect for state. | |
| void | setRenderer (ListBoxRenderer *renderer=0) |
| Assigns a specific list box renderer. | |
| 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 &global) |
| 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. | |