struct ImGui::ImGuiListClipper
- ImGui::ImGuiListClipper
- Struct
- Value
- Object
Overview
Included Modules
- ImGui::StructType
Defined in:
obj.crtypes.cr
Constructors
- .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))
- .new : ImGuiListClipper
Instance Method Summary
- #begin(items_count : Int32, items_height : Float32 = -1.0) : Void
- #ctx : Pointer(LibImGui::ImGuiContext)
- #ctx=(ctx : Pointer(LibImGui::ImGuiContext))
- #display_end : Int32
- #display_end=(display_end : Int32)
- #display_start : Int32
- #display_start=(display_start : Int32)
-
#end : Void
Automatically called on the last call of Step() that returns false.
- #include_item_by_index(item_index : Int32) : Void
-
#include_items_by_index(item_begin : Int32, item_end : Int32) : Void
item_end is exclusive e.g.
- #items_count : Int32
- #items_count=(items_count : Int32)
- #items_height : Float32
- #items_height=(items_height : Float32)
- #start_pos_y : Float32
- #start_pos_y=(start_pos_y : Float32)
-
#step : Bool
Call until it returns false.
- #temp_data : Pointer(Void)
- #temp_data=(temp_data : Pointer(Void))
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))
#
Instance Method Detail
def begin(items_count : Int32, items_height : Float32 = -1.0) : Void
#
def include_item_by_index(item_index : Int32) : Void
#
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.
def step : Bool
#
Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items.