struct ImGui::ImDrawData

Overview

struct ImDrawData

Included Modules

Defined in:

obj.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new : ImDrawData #

[View source]

Instance Method Detail

def add_draw_list(draw_list : ImDrawList) : Void #

Helper to add an external draw list into an existing ImDrawData.

ImDrawData::AddDrawList()


[View source]
def clear : Void #

[View source]
def cmd_lists : ImVector(ImDrawList) #

Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here.


[View source]
def cmd_lists=(cmd_lists : ImVector(ImDrawList)) #

[View source]
def cmd_lists_count : Int32 #

Number of ImDrawList* to render (should always be == CmdLists.size)


[View source]
def cmd_lists_count=(cmd_lists_count : Int32) #

[View source]
def de_index_all_buffers : Void #

Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering!

ImDrawData::DeIndexAllBuffers()


[View source]
def display_pos : ImVec2 #

Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (== GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications)


[View source]
def display_pos=(display_pos : ImVec2) #

[View source]
def display_size : ImVec2 #

Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize in most single-viewport applications)


[View source]
def display_size=(display_size : ImVec2) #

[View source]
def framebuffer_scale : ImVec2 #

Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display.


[View source]
def framebuffer_scale=(framebuffer_scale : ImVec2) #

[View source]
def owner_viewport : ImGuiViewport #

Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not).


[View source]
def owner_viewport=(owner_viewport : ImGuiViewport) #

[View source]
def scale_clip_rects(fb_scale : ImVec2) : Void #

Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution.

ImDrawData::ScaleClipRects()


[View source]
def to_unsafe : Pointer(T) #

[View source]
def total_idx_count : Int32 #

For convenience, sum of all ImDrawList's IdxBuffer.Size


[View source]
def total_idx_count=(total_idx_count : Int32) #

[View source]
def total_vtx_count : Int32 #

For convenience, sum of all ImDrawList's VtxBuffer.Size


[View source]
def total_vtx_count=(total_vtx_count : Int32) #

[View source]
def valid : Bool #

Only valid after Render() is called and before the next NewFrame() is called.


[View source]
def valid=(valid : Bool) #

[View source]