Model Railroad System 2.2.2
Classes | Functions | Variables
OvalWidgets Namespace Reference

These oval shaped widgets are much like the Star Trek NG computer screens. More...

Classes

class  OvalButton
 Oval button. More...
 
class  OvalRoundCornerRectangle
 Oval Round Corner Rectangle. More...
 
class  OvalScale
 An oval scale widget, much like a standard Tk scale widget. More...
 
class  OvalSlider
 Oval Slider. More...
 
class  OvalSrollBar
 Oval SrollBar. More...
 

Functions

 XYWH (width, height)
 Defines the options for position (-x,-y) and size (-width,-height). More...
 
 ColorOptionMethods ()
 Snit macro to default color option methods. More...
 
 CommonValidateMethods ()
 Macro to include the common validation methods. More...
 
 ColorFillOption (optspec, default)
 Method to define a fill color option. More...
 
 ColorOutlineOption (optspec, default)
 Method to define an outline color option. More...
 
 FontFamily (default)
 Macro to define the -fontfamily option. More...
 
 SquareEndOptions ()
 Macro to define the square end options (-rightsquare, -leftsquare). More...
 
 _VerifyFont (option, value)
 Method to validate a font value. More...
 
 _ConfigureFont (option, value)
 Method to configure a font value. More...
 
 _ConfigureText (option, value)
 Method to configure the text of the button. More...
 
 _VerifyIntegerOrEmpty (option, value)
 Method to validate an integer or empty string option. More...
 
 OvalLabel (name, _canvas,...)
 Construct some text. More...
 
 ~OvalLabel ()
 Destructor free up all resources. More...
 
 _UnderSplit (beforevar, undervar, aftervar)
 Method to split label text into before, under, and after segments. More...
 

Variables

 HBar
 Holds the horizontal bar bitmap. More...
 
 VBar
 Holds the vertical bar bitmap. More...
 
var canvas
 Canvas the widget is on. More...
 

Detailed Description

These oval shaped widgets are much like the Star Trek NG computer screens.

Author
Robert Heller <heller@deepsoft.com>

Package provided

OvalWidgets 2.0

Function Documentation

◆ _ConfigureFont()

OvalWidgets::_ConfigureFont ( option  ,
value   
)
private

Method to configure a font value.

Parameters
optionThe name of the option to configure.
valueThe value of the option.

◆ _ConfigureText()

OvalWidgets::_ConfigureText ( option  ,
value   
)
private

Method to configure the text of the button.

Parameters
optionThe name of the option to configure.
valueThe value to configure it to.

◆ _UnderSplit()

OvalWidgets::_UnderSplit ( beforevar  ,
undervar  ,
aftervar   
)
private

Method to split label text into before, under, and after segments.

Parameters
beforevarThe name of the before variable.
undervarThe name of the under variable.
aftervarThe name of the after variable.

◆ _VerifyFont()

OvalWidgets::_VerifyFont ( option  ,
value   
)
private

Method to validate a font value.

Parameters
optionThe name of the option to validate.
valueThe value of the option.

◆ _VerifyIntegerOrEmpty()

OvalWidgets::_VerifyIntegerOrEmpty ( option  ,
value   
)
private

Method to validate an integer or empty string option.

Parameters
optionThe name of the option to validate.
valueThe value of the option.

◆ ColorFillOption()

OvalWidgets::ColorFillOption ( optspec  ,
default   
)

Method to define a fill color option.

Parameters
optspecThe option specification
defaultThe default value.

◆ ColorOptionMethods()

OvalWidgets::ColorOptionMethods ( )

Snit macro to default color option methods.

◆ ColorOutlineOption()

OvalWidgets::ColorOutlineOption ( optspec  ,
default   
)

Method to define an outline color option.

Parameters
optspecThe option specification
defaultThe default value.

◆ CommonValidateMethods()

OvalWidgets::CommonValidateMethods ( )

Macro to include the common validation methods.

◆ FontFamily()

OvalWidgets::FontFamily ( default  )

Macro to define the -fontfamily option.

Parameters
defaultThe default font family.

◆ OvalLabel()

OvalWidgets::OvalLabel ( name  ,
_canvas  ,
  ... 
)

Construct some text.

Parameters
_canvasThe canvas to draw the text on.
...The option value list.

◆ SquareEndOptions()

OvalWidgets::SquareEndOptions ( )

Macro to define the square end options (-rightsquare, -leftsquare).

◆ XYWH()

OvalWidgets::XYWH ( width  ,
height   
)

Defines the options for position (-x,-y) and size (-width,-height).

Parameters
widthDefault width.
heightDefault height.

◆ ~OvalLabel()

OvalWidgets::~OvalLabel ( )

Destructor free up all resources.

Variable Documentation

◆ canvas

var OvalWidgets::canvas
private
Initial value:
{
public:
_ConfigureXY ( option, value)

Canvas the widget is on.

◆ HBar

OvalWidgets::HBar

Holds the horizontal bar bitmap.

◆ VBar

OvalWidgets::VBar

Holds the vertical bar bitmap.