struct ImGui::ImGuiListClipper

Overview

struct ImGuiListClipper

Included Modules

Defined in:

obj.cr
types.cr

Constructors

Instance Method Summary

Instance methods inherited from module ImGui::StructType

to_unsafe to_unsafe

Constructor Detail

def self.new(ctx : Pointer(LibImGui::ImGuiContext), display_start : Int32, display_end : Int32, items_count : Int32, items_height : Float32, start_pos_y : Float32, temp_data : Pointer(Void)) #

[View source]
def self.new : ImGuiListClipper #

[View source]

Instance Method Detail

def begin(items_count : Int32, items_height : Float32 = -1.0) : Void #

[View source]
def ctx : Pointer(LibImGui::ImGuiContext) #

[View source]
def ctx=(ctx : Pointer(LibImGui::ImGuiContext)) #

[View source]
def display_end : Int32 #

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

[View source]
def display_start : Int32 #

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

[View source]
def end : Void #

Automatically called on the last call of Step() that returns false.

ImGuiListClipper::End()


[View source]
def include_item_by_index(item_index : Int32) : Void #

[View source]
def include_items_by_index(item_begin : Int32, item_end : Int32) : Void #

item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped.

ImGuiListClipper::IncludeItemsByIndex()


[View source]
def items_count : Int32 #

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

[View source]
def items_height : Float32 #

[View source]
def items_height=(items_height : Float32) #

[View source]
def start_pos_y : Float32 #

[View source]
def start_pos_y=(start_pos_y : Float32) #

[View source]
def step : Bool #

Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items.

ImGuiListClipper::Step()


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

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

[View source]