diff options
| author | jussi | 2022-03-31 15:25:33 +0300 |
|---|---|---|
| committer | jussi | 2022-03-31 15:25:33 +0300 |
| commit | 7928f9dbab6829f73c57e6dd4ede0da6cea023b0 (patch) | |
| tree | b1873e6a1af2552cb9fc1dd5c605d28fa377733d /API.md | |
| parent | 30d425aa26a3aa802cb2ff55f1f7655be056f3ed (diff) | |
| download | reilua-enhanced-7928f9dbab6829f73c57e6dd4ede0da6cea023b0.tar.gz reilua-enhanced-7928f9dbab6829f73c57e6dd4ede0da6cea023b0.tar.bz2 reilua-enhanced-7928f9dbab6829f73c57e6dd4ede0da6cea023b0.zip | |
Raygui done.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 96 |
1 files changed, 92 insertions, 4 deletions
@@ -3472,25 +3472,59 @@ Get camera look-at matrix ( View matrix ) > RL_GuiEnable() -Enable gui controls ( Global state ) +Enable gui controls ( global state ) --- > RL_GuiDisable() -Disable gui controls ( Global state ) +Disable gui controls ( global state ) --- > RL_GuiLock() -Lock gui controls ( Global state ) +Lock gui controls ( global state ) --- > RL_GuiUnlock() -Unlock gui controls ( Global state ) +Unlock gui controls ( global state ) + +--- + +> locked = RL_GuiIsLocked() + +Check if gui is locked ( global state ) + +- Success return bool + +--- + +> success = RL_GuiFade( float alpha ) + +Set gui controls alpha ( global state ), alpha goes from 0.0f to 1.0f + +- Failure return false +- Success return true + +--- + +> success = RL_GuiSetState( int state ) + +Set gui state ( global state ) + +- Failure return false +- Success return true + +--- + +> state = RL_GuiGetState() + +Get gui state ( global state ) + +- Success return int --- @@ -3615,6 +3649,15 @@ Button control, returns true when clicked --- +> clicked = RL_GuiLabelButton( Rectangle bounds, string text ) + +Label button control, show true when clicked + +- Failure return nil +- Success return boolean + +--- + > active = RL_GuiToggle( Rectangle bounds, string text, bool active ) Toggle Button control, returns true when active @@ -3642,6 +3685,15 @@ Check Box control, returns true when active --- +> active = RL_GuiComboBox( Rectangle bounds, string text, int active ) + +Combo Box control, returns selected item index + +- Failure return nil +- Success return int + +--- + > pressed, text = RL_GuiTextBox( Rectangle bounds, string text, int textSize, bool editMode ) Text Box control, updates input text @@ -3723,6 +3775,33 @@ Dropdown Box control, returns selected item --- +> success = RL_GuiStatusBar( Rectangle bounds, string text ) + +Status Bar control, shows info text + +- Failure return false +- Success return true + +--- + +> success = RL_GuiDummyRec( Rectangle bounds, string text ) + +Dummy control for placeholders + +- Failure return false +- Success return true + +--- + +> cell = RL_GuiGrid( Rectangle bounds, string text, float spacing, int subdivs ) + +Grid control, returns mouse cell position + +- Failure return false +- Success return Vector2 + +--- + ## Gui - Advanced --- @@ -3736,6 +3815,15 @@ List View control, returns selected list item index and scroll index --- +> itemIndex, scrollIndex, focus = RL_GuiListViewEx( Rectangle bounds, string text, int focus, int scrollIndex, int active ) + +List View with extended parameters, returns selected list item index, scroll index and focus + +- Failure return nil +- Success return int, int, int + +--- + > buttonIndex = RL_GuiMessageBox( Rectangle bounds, string title, string message, string buttons ) Message Box control, displays a message, returns button index ( 0 is x button ) |
