SpinBoxStyle Class Reference

#include <Pt/Forms/SpinBoxStyle.h>

Binds a spin box widget to the currently active renderer.

Inherits StyleBinder< SpinBoxRenderer, SpinBoxStyleOptions >.

Public Member Functions

bool isBound () const
 Returns true if a renderer is currently bound.
 
bool isCustom () const
 Returns true if a custom renderer is currently bound.
 
SpinBoxRendererbind (const Pt::Forms::Style &style, const StyleOptions &options, const SpinBoxStyleOptions &localOptions)
 Binds to the current style renderer path. More...
 
SpinBoxRendererbind (SpinBoxRenderer &renderer, const StyleOptions &options, const SpinBoxStyleOptions &localOptions)
 Binds to an externally assigned renderer. More...
 
SpinBoxRendererrebind (const Pt::Forms::Style &style, const StyleOptions &options, const SpinBoxStyleOptions &localOptions)
 Refreshes the current renderer binding. More...
 
SpinBoxRendererrenderer ()
 Returns the currently bound renderer or 0 if none is available.
 
const SpinBoxRendererrenderer () const
 Returns the currently bound renderer or 0 if none is available.
 

Member Function Documentation

◆ bind() [1/2]

SpinBoxRenderer * bind ( const Pt::Forms::Style style,
const StyleOptions options,
const SpinBoxStyleOptions localOptions 
)
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.

◆ bind() [2/2]

SpinBoxRenderer * bind ( SpinBoxRenderer renderer,
const StyleOptions options,
const SpinBoxStyleOptions localOptions 
)
inherited

Assigns a custom renderer explicitly and prepares it with the current options.

◆ rebind()

SpinBoxRenderer * rebind ( const Pt::Forms::Style style,
const StyleOptions options,
const SpinBoxStyleOptions localOptions 
)
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.