Difference between revisions of "ImGui.Core:getStyle"

From GiderosMobile
m (MoKaLux moved page ImGui:getStyle to ImGui.Core:getStyle)
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Accesses the current Style structure (colors, sizes).
 
Accesses the current Style structure (colors, sizes).
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(style) = ImGui:getStyle()
 
(style) = ImGui:getStyle()
 
</source>
 
</source>
Line 15: Line 15:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
local ui = ImGui.new()  
 
local ui = ImGui.new()  
 
local style = ui:getStyle()
 
local style = ui:getStyle()

Revision as of 15:28, 13 July 2023

Available since: Gideros 2020.9
Class: ImGui

Description

Accesses the current Style structure (colors, sizes). <syntaxhighlight lang="lua"> (style) = ImGui:getStyle() </source>

Always use pushStyleColor(), pushStyleVar() to modify style mid-frame!

Return values

Returns (style) the ImGui current style

Example

<syntaxhighlight lang="lua"> local ui = ImGui.new() local style = ui:getStyle() </source>