Difference between revisions of "ImGui.Core:dragInt3"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2020.9<br/> '''Class:''' ImGui<br/> === Description === Displays 3 int drag sliders, side by side. <source lang="lua"> (number),...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Displays 3 int drag sliders, side by side.
 
Displays 3 int drag sliders, side by side.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number), (number), (bool) =
 
(number), (number), (number), (bool) =
 
   ImGui:dragInt3(label, value1, value2, value3, [incStep=1, min=0, max=0, formatString="%d",
 
   ImGui:dragInt3(label, value1, value2, value3, [incStep=1, min=0, max=0, formatString="%d",
Line 29: Line 29:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
</source>
 
</source>
  
 
{{ImGui}}
 
{{ImGui}}

Revision as of 15:28, 13 July 2023

Available since: Gideros 2020.9
Class: ImGui

Description

Displays 3 int drag sliders, side by side. <syntaxhighlight lang="lua"> (number), (number), (number), (bool) =

 ImGui:dragInt3(label, value1, value2, value3, [incStep=1, min=0, max=0, formatString="%d",
   ImGuiSliderFlags=0])

</source>

Parameters

label: (string) the label
value1: (number) the current 1st value
value2: (number) the current 2nd value
value3: (number) the current 3rd value
incStep: (number) the increment step
min: (number) the min value
max: (number) the max value
formatString: (string) the format of the value
ImGuiSliderFlags: (number) the drag slider flag

Return values

Returns (number) the current 1st value
Returns (number) the current 2nd value
Returns (number) the current 3rd value
Returns (bool) whether one of the current values has changed

Example

<syntaxhighlight lang="lua"> </source>