Regular API function

simGetUIPosition

Description Retrieves the position of an OpenGl-based custom UI. See also simSetUIPosition.
C synopsis simInt simGetUIPosition(simInt uiHandle,simInt* position)
C parameters
uiHandle: handle of the OpenGl-based custom UI
position: pointer to 2 values (x and y)
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis table_2 position=simGetUIPosition(number uiHandle)
Lua parameters
uiHandle: handle of the OpenGl-based custom UI
Lua return values
position: table of 2 values (x and y) or nil in case of an error

All regular API functions on one page