Skip to content
doyousketch2 edited this page Sep 6, 2019 · 10 revisions

Clock_Output:

Corresponds to: Fl_Clock_Output

Inherits from: Widget

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

  • obj:setvalue( int H, int m, int s ) (corresponds to
    Fl_Clock_Output::value(int H, int m, int s))
  • methods defined for the Widget userdata type
  • obj.hour ==> int Hour get
  • obj.minute ==> int Min get
  • obj.second ==> int Sec get
  • obj.type ==> str mode get (see below)
  • obj.type = str mode set (see below)
  • obj.value ==> int|double time get (seconds since epoch.
    type depends on lua_Integer)
  • obj.value = int|double time set (seconds since epoch.
    type depends on lua_Integer)
  • properties defined for the Widget userdata type

The type property / mode of the clock (output) can be set to one of the following values:

  • "FL_SQUARE_CLOCK" (the default)
  • "FL_ROUND_CLOCK"
Clone this wiki locally