Skip to content

Index of Module ln_glgui

Chris Petersen edited this page Oct 16, 2014 · 71 revisions

Module: ln_glgui

The module ln_glgui provides a primitive GUI management system and all the regular widgets used in LambdaNative. This module is REQUIRED for any application with a GUI.

Functions in this module:

Function Short Description
(glgui-battery g x y w h v) Adds a battery icon to the screen
(glgui-box g x y w h c) Plots a filled rectangle in color c
(glgui-box-dragable g x y w h color cb) A special version of glgui-box that triggers a callback when dragged
(glgui-dropdown-box g x y w h lst fnt color bgcolor) Dropdown box widget for choosing from a list of items
(glgui-button-arrow g x y w h l img callback) Creates a clickable arrow button
(glgui-button-arrow-string g x y w h l str fnt callback) Creates a clickable arrow button with a string label
(glgui-button g x y w h img callback) Creates a button with an image texture. Supports toggle buttons with a list of images
(glgui-button-string g x y w h str fnt callback . icon) Creates a button with a string label. Supports toggle buttons using a list of strings.
(glgui-chat g x y w h dh lst fnt cb) Adds a chat dialog (list) to the screen
(glgui-container g x y w h) Minimal container widget. Used to move or hide many grouped elements together.
(glgui-datepicker g x y w h datemin datemax colorarrows colorhighlight colorvalue colorbg numfont monthfont) Creates a date entry widget with YYYY MM DD value pickers
(glgui-datewheels g x y w h datemin datemax colorvalue colorshade numfont1 numfont2 monthfont1 monthfont2) Creates a date entry widget with YYYY MM DD wheels
(glgui-propagate-set! p) Controls whether events are sent to all widgets, or only the first one keeping it
(glgui-resume) Resume rendering of GUI elements after previous suspend
(glgui-suspend) Suspend rendering of GUI elements, e.g. if moved to background
(glgui-modal-set! v) Toggles display of modal widgets
(glgui-orientation-set! o) Set the default GUI orientation
(glgui-width-get) Get GUI width
(glgui-height-get) Get GUI height
(glgui-event guis t x0 y0) Propagates an input event through all widgets of a given gui or guis
(glgui-image g x y w h image color . bgcolor) Creates an image with given dimensions
(glgui-keypad g x y w h fnt . keypad) A simple keypad/keyboard widget
(glgui-label g x y w h label fnt color . bgcolor) Create a label widget from a string
(glgui-inputlabel g x y w h label fnt color . bgcolor) Create a label widget from a string, which takes focus on being clicked, thus makes it changeable
(glgui-label-wrapped g x y w h label fnt color . bgcolor) Create a wrapping label widget from a string
(glgui-list g x y w h dh lst cb . kcb) Creates a list containing elements composed of other widgets.
(glgui-list-reset g wgt newlist) Clears and resets a list widget for new content
(make-glgui-lockpane x y w h splash fnt callback) Creates a lockpane with a splash screen image
(glgui-menubar g x y w h) Draws a shaded menubar
(glgui-modal g img color) Adds a simple modal widget
(glgui-numberwheel g x y w h vmin vmax icon coloricon colorvalue colorshade font1 font2 icon2 . steps) Creates a horizontal oriented number/text wheel widget
(glgui-pixmap g x y img . stretch) Creates a pixmap image
(glgui-utf8-set! flag) Changes UTF8 use for string<->glyphs conversion
(string-split-width str w fnt) Returns a modified version of a string wrapped to fit into a specified width
(string-split-width-rtl str w fnt) Returns a modified version of a right-to-left string wrapped to fit into a specified width
(glgui-screenindicator g x y w h c) Create a screen indicator, mainly to indicate screen that can be navigated to using sliding motions
(glgui-slider g x y w h vmin vmax icon coloricon colorvalue colorhandle bgcolor font1 font2 icon2 coloricon2 . steps) Create a slider widget
(glgui-sprite g . args) Create a sprite, with optional parameter arguments
(glgui-timepicker g x y w h colorarrows colorhighlight colorvalue colorbg font) Creates a time entry widget with HH and MM vertical value pickers.
(glgui-timewheels-set-time g w hours minutes) Sets the time displayed on the wheels using two strings
(glgui-timewheels g x y w h colorvalue colorshade selfont unselfont) Creates a time entry widget with HH and MM wheels
(glgui-trace g x y w h trace color . lim) Creates a widget that traces/draws waveform data
(glgui-trace-slider g x y w h trace color popup-fnt . lim) Creates a widget that traces/draws waveform data and calls out values when pointed to
(glgui-valuelabel g x y img fnt color) Creates a value/label indicator composed of a right aligned number and a left aligned label
(glgui-verticalnumberwheel g x y w h vmin vmax icon coloricon colorvalue colorshade font1 font2 icon2 . steps) Creates a vertical oriented number/text wheel widget
(glgui-verticalvaluelabel g x y img fnt color) Creates a value/label indicator composed of a right aligned number on top and a right aligned label below
(glgui-verticalvaluepicker g x y w h vmin vmax colorarrows colorhighlight colorvalue colorbg font . steps) Creates a vertically oriented number/text/icon picker widget.
(glgui-get g id . fb) Returns a state variable from a GUI context
(glgui-set! g id val) Sets a state variable in a GUI context
(make-glgui . offset) Creates GUI object to add widgets
(glgui-widget-add g . args) Adds a widget to a GUI object
(glgui-widget-delete g w) Deletes a widget, used only temporarily, during application runtime
(glgui-widget-get g w id) Extracts parameters from a widget
(glgui-widget-get-dyn g w id) Extracts dynamic parameters, such as procedures, from a widget
(glgui-widget-set! g w id val) Sets a parameter of a widget
(glgui-widget-setglobal! g id val) Sets a parameter for all widget in a given gui
Clone this wiki locally