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

Slider:

Corresponds to: Fl_Slider

Inherits from: Valuator, Widget

Constructors

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

    ( table constructor syntax )


Functions

  • methods defined for Valuator userdata type
  • methods defined for Widget userdata type
  • obj:bounds( int min, int max ) set
  • obj:scrollvalue( int pos, int size, int first, int total ) ==> int val

    ( lines )


Properties

  • properties defined for Valuator userdata type
  • properties defined for Widget userdata type
  • obj.slider_size ==> int fraction get

    obj.slider_size = int fraction set
    ( percent of entire widget width )
    ( default 0.08; if set to 1, cannot move )

  • obj.type ==> str mode get

    obj.type = str mode set
    select mode:

    • "FL_VERTICAL"
    • "FL_HORIZONTAL"
    • "FL_VERT_FILL_SLIDER"
    • "FL_HOR_FILL_SLIDER"
    • "FL_VERT_NICE_SLIDER"
    • "FL_HOR_NICE_SLIDER"
  • obj.slider ==> str boxtype get

    obj.slider = str boxtype set
    select Fl_Boxtype:

    • "FL_NO_BOX"
    • "FL_FLAT_BOX"
    • "FL_UP_BOX"
    • "FL_DOWN_BOX"
    • "FL_UP_FRAME"
    • "FL_DOWN_FRAME"
    • "FL_THIN_UP_BOX"
    • "FL_THIN_DOWN_BOX"
    • "FL_THIN_UP_FRAME"
    • "FL_THIN_DOWN_FRAME"
    • "FL_ENGRAVED_BOX"
    • "FL_EMBOSSED_BOX"
    • "FL_ENGRAVED_FRAME"
    • "FL_EMBOSSED_FRAME"
    • "FL_BORDER_BOX"
    • "_FL_SHADOW_BOX"
    • "FL_BORDER_FRAME"
    • "_FL_SHADOW_FRAME"
    • "_FL_ROUNDED_BOX"
    • "_FL_RSHADOW_BOX"
    • "_FL_ROUNDED_FRAME"
    • "_FL_RFLAT_BOX"
    • "_FL_ROUND_UP_BOX"
    • "_FL_ROUND_DOWN_BOX"
    • "_FL_DIAMOND_UP_BOX"
    • "_FL_DIAMOND_DOWN_BOX"
    • "_FL_OVAL_BOX"
    • "_FL_OSHADOW_BOX"
    • "_FL_OVAL_FRAME"
    • "_FL_OFLAT_BOX"
    • "_FL_PLASTIC_UP_BOX"
    • "_FL_PLASTIC_DOWN_BOX"
    • "_FL_PLASTIC_UP_FRAME"
    • "_FL_PLASTIC_DOWN_FRAME"
    • "_FL_PLASTIC_THIN_UP_BOX"
    • "_FL_PLASTIC_THIN_DOWN_BOX"
    • "_FL_PLASTIC_ROUND_UP_BOX"
    • "_FL_PLASTIC_ROUND_DOWN_BOX"
    • "_FL_GTK_UP_BOX"
    • "_FL_GTK_DOWN_BOX"
    • "_FL_GTK_UP_FRAME"
    • "_FL_GTK_DOWN_FRAME"
    • "_FL_GTK_THIN_UP_BOX"
    • "_FL_GTK_THIN_DOWN_BOX"
    • "_FL_GTK_THIN_UP_FRAME"
    • "_FL_GTK_THIN_DOWN_FRAME"
    • "_FL_GTK_ROUND_UP_BOX"
    • "_FL_GTK_ROUND_DOWN_BOX"
    • "_FL_GLEAM_UP_BOX"
    • "_FL_GLEAM_DOWN_BOX"
    • "_FL_GLEAM_UP_FRAME"
    • "_FL_GLEAM_DOWN_FRAME"
    • "_FL_GLEAM_THIN_UP_BOX"
    • "_FL_GLEAM_THIN_DOWN_BOX"
    • "_FL_GLEAM_ROUND_UP_BOX"
    • "_FL_GLEAM_ROUND_DOWN_BOX"
    • "FL_FREE_BOXTYPE"
Clone this wiki locally