Module Extension.Client.Widgets

Functions

Button.new (clss, args) Creates a new button widget.
Entry.clear (self) Clears the entry.
Entry.new (clss, args) Creates a new text entry widget.
Image.new (clss, args) Creates a new image widget.
Label.new (clss, args) Creates a new label widget.
Menu.get_item_rect (self, args) Gets the allocation rectangle of a menu item.
Menu.insert (self, args) Inserts a menu item to the menu.
Menu.new (clss, args) Creates a new menu widget.
Scroll.new (clss, args, self) Creates a new scroll bar widget.
Scroll.set_range (self, agrs, args) Sets the scroll range.
Spin.new (clss, args) Creates a new spin widget.
Tree.append (self, args) Appends an item to the tree.
Tree.get_row (self, args) Sets a row of the tree.
Tree.get_row (self, args) Sets a row of the tree.
Tree.new (clss, args) Creates a new tree widget.
Tree.remove (self, args) Removes a row from the tree.
View.new (clss, args) Creates a new view widget.

Tables

Button Create buttons.
Button.text Displayed text.
Entry Edit text.
Entry.text Displayed text.
Image Show images.
Image.image Displayed image.
Label Show text labels.
Label.text Displayed text.
Menu Show menus.
Menu.autohide When set to true, the menu is hidden automatically after clicked.
Menu.orientation Displayed orientation, either "horz" or "vert".
Scroll Scroll bar widget.
Scroll.value Current value.
Spin Display and edit numeric values.
Spin.value Current value.
Tree Display a list of items.
Tree.size Number of root level items in the tree.
Tree.size Number of root level items in the tree.
View Create a scrollable viewport.
View.child Child widget.
View.hscroll Horizontal scrolling flag of the widget.
View.vscroll Vertical scrolling flag of the widget.


Functions

Button.new (clss, args)
Creates a new button widget.

Parameters

  • clss: Button class.
  • args: Arguments.

Return value:

New button widget.
Entry.clear (self)
Clears the entry.

Parameters

  • self: Entry.
Entry.new (clss, args)
Creates a new text entry widget.

Parameters

  • clss: Entry class.
  • args: Arguments.

Return value:

New entry widget.
Image.new (clss, args)
Creates a new image widget.

Parameters

  • clss: Image class.
  • args: Arguments.

Return value:

New image widget.
Label.new (clss, args)
Creates a new label widget.

Parameters

  • clss: Label class.
  • args: Arguments.

Return value:

New label widget.
Menu.get_item_rect (self, args)
Gets the allocation rectangle of a menu item.

Parameters

  • self: Menu.
  • args: Arguments.
    • label: Item text.

Return value:

Rectangle or nil.
Menu.insert (self, args)
Inserts a menu item to the menu.

Parameters

  • self: Menu.
  • args: Arguments.
    • label: Item label.
    • icon: Icon name.
    • pressed: Pressed callback.
Menu.new (clss, args)
Creates a new menu widget.

Parameters

  • clss: Menu class.
  • args: Arguments.

Return value:

New menu widget.
Scroll.new (clss, args, self)
Creates a new scroll bar widget.

Parameters

  • clss:
  • args: Arguments.
  • self: Scroll class.

Return value:

New scroll widget.
Scroll.set_range (self, agrs, args)
Sets the scroll range.

Parameters

  • self: Scroll widget.
  • agrs:
  • args: Arguments.
    • min: Minimum value.
    • max: Maximum value.
Spin.new (clss, args)
Creates a new spin widget.

Parameters

  • clss: Spin class.
  • args: Arguments.

Return value:

New spin widget.
Tree.append (self, args)
Appends an item to the tree.

Parameters

  • self: Tree.
  • args: Arguments.
    • text: Text.
Tree.get_row (self, args)
Sets a row of the tree.

Parameters

  • self: Tree.
  • args: Arguments.
    • row: Row index.
    • text: String.

Return value:

String or nil.
Tree.get_row (self, args)
Sets a row of the tree.

Parameters

  • self: Tree.
  • args: Arguments.
    • row: Row index.
    • text: String.

Return value:

String or nil.
Tree.new (clss, args)
Creates a new tree widget.

Parameters

  • clss: Tree class.
  • args: Arguments.

Return value:

New tree widget.
Tree.remove (self, args)
Removes a row from the tree.

Parameters

  • self: Tree.
  • args: Arguments.
    • row: Row index.
View.new (clss, args)
Creates a new view widget.

Parameters

  • clss: View class.
  • args: Arguments.

Return value:

New view widget.

Tables

Button
Create buttons.
Button.text
Displayed text.
Entry
Edit text.
Entry.text
Displayed text.
Image
Show images.
Image.image
Displayed image.
Label
Show text labels.
Label.text
Displayed text.
Menu
Show menus.
Menu.autohide
When set to true, the menu is hidden automatically after clicked.
Menu.orientation
Displayed orientation, either "horz" or "vert".
Scroll
Scroll bar widget.
Scroll.value
Current value.
Spin
Display and edit numeric values.
Spin.value
Current value.
Tree
Display a list of items.
Tree.size
Number of root level items in the tree.
Tree.size
Number of root level items in the tree.
View
Create a scrollable viewport.
View.child
Child widget.
View.hscroll
Horizontal scrolling flag of the widget.
View.vscroll
Vertical scrolling flag of the widget.

Valid XHTML 1.0!