Skip to content
doyousketch2 edited this page Sep 17, 2019 · 8 revisions

Window:

Corresponds to: Fl_Window

Inherits from: Group, Widget

Constructors

  • fl.Window( int X, int Y, int W, int H, *str label ) ==> userdata Widget
  • fl.Window( int W, int H, *str label ) ==> userdata Widget

    window manager positions window

  • fl.Window{ table entries } ==> userdata Widget

    ( table constructor syntax )


Functions

  • methods defined for the Group userdata type
  • methods defined for the Widget userdata type
  • obj:clear_border()

    turn window manager border off
    only works before show() is called

  • obj:cursor( str cursor, *int|userdata hotX, *int|userdata hotY )

    same cursor options as obj:default_cursor(), below
    optional hotX and hotY coords, pixel point that actually clicks on-screen

  • obj:default_cursor( str cursor, *int|userdata hotx, *int|userdata hoty )

    Fl_Cursor

    • "FL_CURSOR_DEFAULT"
    • "FL_CURSOR_ARROW"
    • "FL_CURSOR_CROSS"
    • "FL_CURSOR_WAIT"
    • "FL_CURSOR_INSERT"
    • "FL_CURSOR_HAND"
    • "FL_CURSOR_HELP"
    • "FL_CURSOR_MOVE"
    • "FL_CURSOR_NS"
    • "FL_CURSOR_WE"
    • "FL_CURSOR_NWSE"
    • "FL_CURSOR_NESW"
    • "FL_CURSOR_N"
    • "FL_CURSOR_NE"
    • "FL_CURSOR_E"
    • "FL_CURSOR_SE"
    • "FL_CURSOR_S"
    • "FL_CURSOR_SW"
    • "FL_CURSOR_W"
    • "FL_CURSOR_NW"
    • "FL_CURSOR_NONE"
  • obj:fullscreen()

    no border

  • obj:fullscreen_off()
  • obj:fullscreen_off( int X, int Y, int W, int H )

    specifies resize

  • obj:iconize()

    call show() to restore window

  • obj:make_current()

    so that you can add extra widgets to specified obj window

  • obj:set_modal()

    remain on top, only obj window that receives events

  • obj:set_non_modal()

    on top, but other windows still receive events

  • obj:set_override()

    activates flags NOBORDER|FL_OVERRIDE

  • obj:show( *table )

    puts window on screen, optional commandline arguments

  • obj:size_range( int minW, int minH, *int maxW, int maxH, *incW, int incH, bool aspect )

    smallest, and optional largest, window can be.
    incW and incH are increments. set aspect to preserve aspect ratio


Properties

  • properties defined for the Group userdata type
  • properties defined for the Widget userdata type
  • obj.label ==> str label get

    obj.label = str label set

  • obj.modal ==> bool own_events get

    obj.modal = bool own_events set

  • obj.shown ==> bool onscreen get
  • obj.border ==> bool onscreen get
  • obj.x_root ==> int left_corner_of_window get
  • obj.y_root ==> int top_corner_of_window get
  • obj.xclass ==> str window_class get

    obj.xclass = str window_class set

  • obj.override ==> bool FL_OVERRIDE get
  • obj.iconlabel ==> str label get

    obj.iconlabel = str label set

  • obj.non_modal ==> bool if_modal_or_nonmodal get
  • obj.decorated_h ==> int height_of_window_including_border get
  • obj.decorated_w ==> int width_of_window_including_border get
  • obj.menu_window ==> bool if_window_is_menu get
  • obj.tooltip_window ==> bool if_window_is_tooltip get
  • obj.fullscreen_active ==> bool if_window_is_fullscreen get
  • obj.xid int|userdata xid get

    XID of window, 0 if not shown

Clone this wiki locally