UI method for processing window size events Check if the UI is currently on Focus UI method for processing mouse events UI method for processing mouse motion events UI method for processing key events UI method for entering UI processing mode This function must be used to begin the UI processing UI method for leaving UI processing mode This function must be used to end the UI processing UI method for drawing a static text label

The label displays a non interactive text.

The style flag enables to draw the label in two distinct styles. The first one is default (style = 0) and displays the label simply as text. The alternative (style = 1) displays the label with a frame around it. An example is shown in the following figure.

The Text variable can have multiple lines.

Example code how to implement a label

none.Rect(0, 0); ui.beginGroup(GroupFlags_GrowDownFromRight); ui.doLabel(none, Text); ui.endGroup;
optionally provides a location and size for the label Text to display for the label (can have several lines) optional style flag to modify the look UI method for rendering and processing a push button

The button method does only take a text and state variable. This variable is modified if the button is pressed or depressed. When a state change occurs the method function returns True.

Example code how to implement a button

none.Rect(0, 0); ui.beginGroup(GroupFlags_GrowDownFromRight); if ui.doButton(none, 'Apply') then begin //code to apply your changes end; ui.endGroup;
optionally provides a location and size for the button text to display on the button whether the button is depressed if state is NULL; the button behave like a touch button else; the button behave like a toggle button optional style flag to modify the look UI method for rendering and processing a check button

Check button behaves similarly as a toggle button used to display and edit a boolean property.

optionally provides a location and size for the button text to display on the button whether the check button is checked or not if state is NULL; the button behave like if a touch button unchecked optional style flag to modify the look UI method for rendering and processing a radio button

Radio buttons are typically used in groups to display and edit the possible reference values taken by an integer value.

One radio button is representing a possible reference value taken by the current value. It is displaying a boolean state true if the current value is equal to the reference value.

The reference int value represented by this radio button. optionally provides a location and size for the button text to display on the button The value parameter compared to the reference value parameter. if value is NULL; the radio button is off optional style flag to modify the look True if the radio button value changed True if the check button state changed UI method for rendering and processing a horizontal slider

Horizontal slider is used to edit and display a scalar value in the specified range [min; max].

optionally provides a location and size for the widget min bound of the varying range of the value max bound of the varying range of the value the value edited by the widget if value is NULL; the value is set to min optional style flag to modify the look True if the slider value changed UI method for drawing a texture view

Several parameters control the equation used to display the texel

texel = texture2DFetch(...); pixel = texelSwizzling( texel * texelScale + texelOffset );
provides a location and size for the texture view texture identifier (Graphics API specific) rectangle area of the texture displayed mip Level of the texture displayed scale applied to the texel fetch offset applied to the texel after scale optional style flag to modify the look Active widget painter Basic UI context Begin grouping section of UI objects User Interface library List item widget Listbox widget Combobox widget Line edit widget Frame positioning section Frame positioning widget Panel positioning widget Panel positioning widget
NVIDIA widget library

This library is originally based on the NVIDIA widget library. NVIDIA Widgets is the immediate mode graphical user interface toolkit used by the NVIDIA SDK samples.

Originally ported to FPC by Darius Blaszyk in June 2011.

This library is distributed under the MIT license, as the original library was.

The original code can be found here:

For more information see the Lazarus wiki.