Regular API function

simGetUIButtonSize

Description Retrieves the size (in terms of cell numbers) of an OpenGl-based custom UI button
C synopsis simInt simGetUIButtonSize(simInt uiHandle,simInt buttonHandle,simInt* size)
C parameters
uiHandle: OpenGl-based custom UI handle
buttonHandle: handle of a button inside the specified OpenGl-based custom UI
size: size (in terms of cells (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 size=simGetUIButtonSize(number uiHandle,number buttonHandle)
Lua parameters
uiHandle: OpenGl-based custom UI handle
buttonHandle: handle of a button inside the specified OpenGl-based custom UI
Lua return values
size: table containing the x and y-size of the button (in terms of cells), or nil in case of an error

All regular API functions on one page