Skip to content
doyousketch2 edited this page Sep 13, 2019 · 4 revisions

Spinner:

Corresponds to: Fl_Spinner

Inherits from: Widget

Constructors

  • fl.Spinner( int X, int Y, int W, int H, *str label ) ==> userdata Widget
  • fl.Spinner{ table entries } ==> userdata Widget

    ( table constructor syntax )


Functions

  • methods defined for Widget userdata type
  • obj:range( int min, int max )

Properties

  • properties defined for Widget userdata type
  • obj.step ==> int val get

    obj.step = int val set

  • obj.color ==> userdata color get

    obj.color = userdata color set
    ( background Fl_Color )

  • obj.value ==> int val get

    obj.value = int val set

  • obj.format ==> str val get

    obj.format = str val set

  • obj.minimum ==> int min get

    obj.minimum = int min set

  • obj.maximum ==> int max get

    obj.maximum = int max set

  • obj.textfont ==> str style get

    obj.textfont = str style set
    obj.textfont = int index set ( Fl_Font index in font table )

  • obj.textsize ==> int pixels get Fl_Fontsize

    obj.textsize = int pixels set Fl_Fontsize

  • obj.textcolor ==> userdata color get

    obj.textcolor = int|userdata color set
    Fl_Color

  • obj.type ==> str mode get

    obj.type = str mode set
    select mode:

    • "FL_INT_INPUT"
    • "FL_FLOAT_INPUT"

( note: Spinner does not inherit methods and properties of Group,
although Fl_Spinner is implemented as a sub-class of Fl_Group! )

Clone this wiki locally