diff options
| author | jussi | 2024-10-02 13:02:13 +0300 |
|---|---|---|
| committer | jussi | 2024-10-02 13:02:13 +0300 |
| commit | 30c7a5eda27ef0e424bf7948e3cd37a1cf5a52ef (patch) | |
| tree | fef0f62ff4206c2fc9548a12e4745ace3e7967d3 /include/raygui.h | |
| parent | d3202073a72b4ff0f98c29cdb096e2747dbaaae8 (diff) | |
| download | reilua-enhanced-30c7a5eda27ef0e424bf7948e3cd37a1cf5a52ef.tar.gz reilua-enhanced-30c7a5eda27ef0e424bf7948e3cd37a1cf5a52ef.tar.bz2 reilua-enhanced-30c7a5eda27ef0e424bf7948e3cd37a1cf5a52ef.zip | |
GuiSetSliderDragging, GuiGetSliderDragging, GuiSetSliderActive and GuiGetSliderActive.
Diffstat (limited to 'include/raygui.h')
| -rw-r--r-- | include/raygui.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/raygui.h b/include/raygui.h index 5c7ac49..e4d50b1 100644 --- a/include/raygui.h +++ b/include/raygui.h @@ -671,6 +671,11 @@ RAYGUIAPI bool GuiIsLocked(void); // Check if gui RAYGUIAPI void GuiSetAlpha(float alpha); // Set gui controls alpha (global state), alpha goes from 0.0f to 1.0f RAYGUIAPI void GuiSetState(int state); // Set gui state (global state) RAYGUIAPI int GuiGetState(void); // Get gui state (global state) +/* Addition. */ +RAYGUIAPI void GuiSetSliderDragging(bool dragging); // Set guiSliderDragging +RAYGUIAPI bool GuiGetSliderDragging(void); // Get guiSliderDragging +RAYGUIAPI void GuiSetSliderActive(Rectangle rect); // Set guiSliderActive +RAYGUIAPI Rectangle GuiGetSliderActive(void); // Get guiSliderActive // Font set/get functions RAYGUIAPI void GuiSetFont(Font font); // Set gui custom font (global state) @@ -1515,6 +1520,26 @@ void GuiSetState(int state) { guiState = (GuiState)state; } // Get gui state (global state) int GuiGetState(void) { return guiState; } +// Set guiSliderDragging +void GuiSetSliderDragging( bool dragging ) { + guiSliderDragging = dragging; +} + +// Get guiSliderDragging +bool GuiGetSliderDragging( void ) { + return guiSliderDragging; +} + +// Set guiSliderActive +RAYGUIAPI void GuiSetSliderActive( Rectangle rect ) { + guiSliderActive = rect; +} + +// Get guiSliderActive +RAYGUIAPI Rectangle GuiGetSliderActive( void ) { + return guiSliderActive; +} + // Set custom gui font // NOTE: Font loading/unloading is external to raygui void GuiSetFont(Font font) |
