Skip to content

glgui screenindicator

Chris Petersen edited this page Oct 16, 2014 · 1 revision

glgui-screenindicator plots a screen indicator centered in the rectangle specified (without callback)

Parameter Description
g Graphical User Interface (GUI) for this widget
x Lower left corner along the x-axis in pixels
y Lower left corner along the y-axis in pixels
w Width of the element in pixels
h Height of the element in pixels
c Color, with which the screen indicator circles is filled

Example

Example 1: Draw a white screen indicator at x=0, y=20, which is screen-wide and 20px hight then make it mark the 2nd element of a 5 element indicator

(set! si (glgui-screenindicator gui 0 20 (glgui-width-get) 20 White))
(glgui-widget-set! gui si 'idx 2)
(glgui-widget-set! gui si 'screens 5)
Clone this wiki locally