Difference between revisions of "ImGui.DrawList"

From GiderosMobile
 
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
This is the ImGui DrawList class.
 
This is the ImGui DrawList class.
 +
 +
This class gets the draw list associated to the current window, to append your own drawing primitives.
  
  
Line 13: Line 15:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[ImGui.Style:getAlpha]] ''gets the ImGui global style alpha''<br/><!--GIDEROSMTD:ImGui.Style:getAlpha() gets the ImGui global style alpha-->
+
[[ImGui.DrawList:getBackgroundDrawList]] ''gets the background ImGui draw list''<br/><!--GIDEROSMTD:ImGui.DrawList:getBackgroundDrawList() gets the background ImGui draw list-->
[[ImGui.Style:getColor]] ''gets the color of an ImGui element''<br/><!--GIDEROSMTD:ImGui.Style:getColor(ImGuiElement) gets the color of an ImGui element-->
+
[[ImGui.DrawList:getForegroundDrawList]] ''gets the foreground ImGui draw list''<br/><!--GIDEROSMTD:ImGui.DrawList:getForegroundDrawList() gets the foreground ImGui draw list-->
[[ImGui.Style:getDisplaySafeAreaPadding]] ''gets the ImGui global style safe area display value''<br/><!--GIDEROSMTD:ImGui.Style:getDisplaySafeAreaPadding() gets the ImGui global style safe area display value-->
+
[[ImGui.DrawList:getWindowDrawList]] ''gets the window ImGui draw list''<br/><!--GIDEROSMTD:ImGui.DrawList:getWindowDrawList() gets the window ImGui draw list-->
[[ImGui.Style:getItemSpacing]] ''gets the ImGui global style items spacing''<br/><!--GIDEROSMTD:ImGui.Style:getItemSpacing() gets the ImGui global style items spacing-->
+
 
[[ImGui.Style:getScrollbarRounding]] ''gets the ImGui global style scrollbar rounding''<br/><!--GIDEROSMTD:ImGui.Style:getScrollbarRounding() gets the ImGui global style scrollbar rounding-->
+
[[ImGui.DrawList:addLine]] ''adds a line to an ImGui draw list''<br/><!--GIDEROSMTD:ImGui.DrawList:addLine(p1, p2, color, alpha, thickness) adds a line to an ImGui draw list-->
[[ImGui.Style:getScrollbarSize]] ''gets the ImGui global style scrollbar size''<br/><!--GIDEROSMTD:ImGui.Style:getScrollbarSize() gets the ImGui global style scrollbar size-->
+
[[ImGui.DrawList:addRect]] ''adds a rectangle to an ImGui draw list''<br/><!--GIDEROSMTD:ImGui.DrawList:addRect((p_min_x, p_min_y, p_max_x, p_max_y, color, [rounding=0, rounding_corners=ImGui.CornerFlags_All, thickness=1]) adds a rectangle to an ImGui draw list-->
[[ImGui.Style:getTouchExtraPadding]] ''gets the ImGui global style touch extra padding''<br/><!--GIDEROSMTD:ImGui.Style:getTouchExtraPadding() gets the ImGui global style touch extra padding-->
+
[[ImGui.DrawList:getCircleSegmentMaxError]] ''gets the draw list max circle segment error''<br/><!--GIDEROSMTD:ImGui.DrawList:getCircleSegmentMaxError() gets the draw list max circle segment error-->
[[ImGui.Style:getWindowBorderSize]] ''gets the ImGui global style window border size''<br/><!--GIDEROSMTD:ImGui.Style:getWindowBorderSize() gets the ImGui global style window border size-->
+
[[ImGui.DrawList:getCurveTessellationTol]] ''gets the draw list curve tessellation tolerance''<br/><!--GIDEROSMTD:ImGui.DrawList:getCurveTessellationTol() gets the draw list curve tessellation tolerance-->
[[ImGui.Style:getWindowMinSize]] ''gets the ImGui global style window minimum size''<br/><!--GIDEROSMTD:ImGui.Style:getWindowMinSize() gets the ImGui global style window minimum size-->
+
[[ImGui.DrawList:getFont]] ''gets the draw list font''<br/><!--GIDEROSMTD:ImGui.DrawList:getFont() gets the draw list font-->
[[ImGui.Style:getWindowRounding]] ''gets the ImGui global style window rounding''<br/><!--GIDEROSMTD:ImGui.Style:getWindowRounding() gets the ImGui global style window rounding-->
+
[[ImGui.DrawList:getFontSize]] ''gets the draw list font size''<br/><!--GIDEROSMTD:ImGui.DrawList:getFontSize() gets the draw list font size-->
[[ImGui.Style:getWindowTitleAlign]] ''gets the ImGui global style window title alignment''<br/><!--GIDEROSMTD:ImGui.Style:getWindowTitleAlign() gets the ImGui global style window title alignment-->
 
[[ImGui.Style:setAlpha]] ''sets the ImGui global style alpha''<br/><!--GIDEROSMTD:ImGui.Style:setAlpha(alpha) sets the ImGui global style alpha-->
 
[[ImGui.Style:setColor]] ''sets a color to an ImGui element''<br/><!--GIDEROSMTD:ImGui.Style:setColor(ImGuiElement, hex, alpha) sets a color to an ImGui element-->
 
[[ImGui.Style:setDisplaySafeAreaPadding]] ''sets the ImGui global style the safe area display padding''<br/><!--GIDEROSMTD:ImGui.Style:setDisplaySafeAreaPadding(number, number) sets the ImGui global style the safe area display padding-->
 
[[ImGui.Style:setItemSpacing]] ''sets the ImGui global style items spacing''<br/><!--GIDEROSMTD:ImGui.Style:setItemSpacing(number, number) sets the ImGui global style items spacing-->
 
[[ImGui.Style:setScrollbarRounding]] ''sets the ImGui global style scrollbar rounding''<br/><!--GIDEROSMTD:ImGui.Style:setScrollbarRounding(number) sets the ImGui global style scrollbar rounding-->
 
[[ImGui.Style:setScrollbarSize]] ''sets the ImGui global style scrollbar size''<br/><!--GIDEROSMTD:ImGui.Style:setScrollbarSize(number) sets the ImGui global style scrollbar size-->
 
[[ImGui.Style:setTouchExtraPadding]] ''sets the ImGui global style touch extra padding''<br/><!--GIDEROSMTD:ImGui.Style:setTouchExtraPadding(number, number) sets the ImGui global style touch extra padding-->
 
[[ImGui.Style:setWindowBorderSize]] ''sets the ImGui global style window border size''<br/><!--GIDEROSMTD:ImGui.Style:setWindowBorderSize(number) sets the ImGui global style window border size-->
 
[[ImGui.Style:setWindowMinSize]] ''sets the ImGui global style window minimum size''<br/><!--GIDEROSMTD:ImGui.Style:setWindowMinSize(number, number) sets the ImGui global style window minimum size-->
 
[[ImGui.Style:setWindowRounding]] ''sets the ImGui global style window rounding''<br/><!--GIDEROSMTD:ImGui.Style:setWindowRounding(number) sets the ImGui global style window rounding-->
 
[[ImGui.Style:setWindowTitleAlign]] ''sets the ImGui global style window title alignment''<br/><!--GIDEROSMTD:ImGui.Style:setWindowTitleAlign(number, number) sets the ImGui global style window title alignment-->
 
  
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
<!--ImGui.KeyChar<br/><!--GIDEROSEVT:ImGui.KeyChar-->-->
+
 
 
=== Constants ===
 
=== Constants ===
<!--ImGui._VERSION<br/><!--GIDEROSCST:ImGui._VERSION-->-->
+
 
 
|}
 
|}
  
 
----
 
----
 
'''[[Dear ImGui]]'''
 
'''[[Dear ImGui]]'''

Latest revision as of 01:42, 1 May 2021

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2020.9

Description

This is the ImGui DrawList class.

This class gets the draw list associated to the current window, to append your own drawing primitives.


PLEASE NOTE THE DOCUMENTATION IS WORK IN PROGRESS


Methods

ImGui.DrawList:getBackgroundDrawList gets the background ImGui draw list
ImGui.DrawList:getForegroundDrawList gets the foreground ImGui draw list
ImGui.DrawList:getWindowDrawList gets the window ImGui draw list

ImGui.DrawList:addLine adds a line to an ImGui draw list
ImGui.DrawList:addRect adds a rectangle to an ImGui draw list
ImGui.DrawList:getCircleSegmentMaxError gets the draw list max circle segment error
ImGui.DrawList:getCurveTessellationTol gets the draw list curve tessellation tolerance
ImGui.DrawList:getFont gets the draw list font
ImGui.DrawList:getFontSize gets the draw list font size

Events

Constants


Dear ImGui