struct ImGui::ImDrawCmd

Overview

struct ImDrawCmd

Included Modules

Defined in:

obj.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new : ImDrawCmd #

Also ensure our padding fields are zeroed

ImDrawCmd::ImDrawCmd()


[View source]

Instance Method Detail

def clip_rect : ImVec4 #

4*4 Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates


[View source]
def clip_rect=(clip_rect : ImVec4) #

[View source]
def elem_count : UInt32 #

4 Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[].


[View source]
def elem_count=(elem_count : UInt32) #

[View source]
def get_tex_id : ImTextureID #

[View source]
def idx_offset : UInt32 #

4 Start offset in index buffer.


[View source]
def idx_offset=(idx_offset : UInt32) #

[View source]
def texture_id : ImTextureID #

4-8 User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas.


[View source]
def texture_id=(texture_id : ImTextureID) #

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

[View source]
def user_callback : ImDrawCallback #

4-8 If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally.


[View source]
def user_callback=(user_callback : ImDrawCallback) #

[View source]
def user_callback_data : Pointer(Void) #

4-8 The draw callback code can access this.


[View source]
def user_callback_data=(user_callback_data : Pointer(Void)) #

[View source]
def vtx_offset : UInt32 #

4 Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices.


[View source]
def vtx_offset=(vtx_offset : UInt32) #

[View source]