#include <Pt/Forms/ScrollBarStyler.h>
Scroll bar styler.
Inherits Styler.
Public Member Functions | |
| ScrollBarStyler () | |
| Constructs an unbound scroll bar 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::Brush & | foreground () const |
| Returns the effective foreground brush. | |
| void | setForeground (const Gfx::Brush &brush) |
| Sets the widget-local foreground 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. | |
| Gfx::SizeF | measureFrame (PaintSurface &surface, const Gfx::SizeF &contentSize, Direction direction) const |
| Measures the frame enclosing contentSize. | |
| Gfx::SizeF | measureButton (PaintSurface &surface, Direction direction) const |
| Measures a decrease or increase button for direction. | |
| void | layoutChrome (PaintSurface &surface, const Gfx::RectF &rect, Direction direction, const Gfx::SizeF &buttonSize, Gfx::RectF &trackRect, Gfx::RectF &decreaseRect, Gfx::RectF &increaseRect) const |
| Lays out the track and decrease and increase buttons within rect. | |
| void | layoutHandle (PaintSurface &surface, const Gfx::RectF &trackRect, Direction direction, float fraction, float viewProportion, Gfx::RectF &handleRect) const |
| Lays out the handle within trackRect. | |
| void | renderChrome (PaintContext &context, const Gfx::RectF &rect, Direction direction, const Gfx::RectF &trackRect, const Gfx::RectF &handleRect, const Gfx::RectF &decreaseRect, const Gfx::RectF &increaseRect, const ScrollBarState &state) const |
| Renders the scroll bar chrome within rect for state. | |
| void | setRenderer (ScrollBarRenderer *renderer=0) |
| Assigns a specific scroll bar 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. | |