#include <Pt/Forms/ButtonStyle.h>
Binds a push button to the currently active renderer. More...
Inherits StyleBinder< ButtonRenderer, ButtonStyleOptions >.
Public Member Functions | |
| ButtonStyle () | |
| Constructs an unbound button style controller. | |
| bool | isBound () const |
| Returns true if a renderer is currently bound. | |
| bool | isCustom () const |
| Returns true if a custom renderer is currently bound. | |
| ButtonRenderer * | bind (const Pt::Forms::Style &style, const StyleOptions &options, const ButtonStyleOptions &localOptions) |
| Binds to the current style renderer path. More... | |
| ButtonRenderer * | bind (ButtonRenderer &renderer, const StyleOptions &options, const ButtonStyleOptions &localOptions) |
| Binds to an externally assigned renderer. More... | |
| ButtonRenderer * | rebind (const Pt::Forms::Style &style, const StyleOptions &options, const ButtonStyleOptions &localOptions) |
| Refreshes the current renderer binding. More... | |
| ButtonRenderer * | renderer () |
| Returns the currently bound renderer or 0 if none is available. | |
| const ButtonRenderer * | renderer () const |
| Returns the currently bound renderer or 0 if none is available. | |
Keeps the active renderer binding for the three supported button cases: shared style renderer, private override clone, and externally assigned custom renderer.
|
inherited |
Selects either the shared style renderer (SharedRenderer) or a private override clone (CustomOverrides). Shared style renderers are synchronized through Style::reset() and are therefore not prepared locally here. Private override clones are prepared immediately with the current style and local options. This call always leaves custom renderer mode.
|
inherited |
Assigns a custom renderer explicitly and prepares it with the current options.
|
inherited |
Re-prepares the current custom renderer when the local prepare inputs changed. Shared style renderers and override clones are reacquired through the current Style by delegating to the style-path bind.