Difference between revisions of "ImGui.Core:getStyle"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2020.9<br/> '''Class:''' Dear ImGui<br/> === Description === Accesses the current Style structure (colors, sizes). <source lang="...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2020.9<br/>
 
'''Available since:''' Gideros 2020.9<br/>
'''Class:''' [[Dear ImGui]]<br/>
+
'''Class:''' [[ImGui]]<br/>
  
 
=== 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>
+
</syntaxhighlight>
  
 
Always use pushStyleColor(), pushStyleVar() to modify style mid-frame!
 
Always use pushStyleColor(), pushStyleVar() to modify style mid-frame!
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()
</source>
+
</syntaxhighlight>
  
 
{{ImGui}}
 
{{ImGui}}

Latest revision as of 15:29, 13 July 2023

Available since: Gideros 2020.9
Class: ImGui

Description

Accesses the current Style structure (colors, sizes).

(style) = ImGui:getStyle()

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

Return values

Returns (style) the ImGui current style

Example

local ui = ImGui.new() 
local style = ui:getStyle()