struct ImGui::ImGuiListClipper
- ImGui::ImGuiListClipper
- Struct
- Value
- Object
Overview
Included Modules
- ImGui::StructType
Defined in:
obj.crtypes.cr
Constructors
- .new(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
- #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. 
- 
        #force_display_range_by_indices(item_min : Int32, item_max : Int32) : Void
        
          item_max 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(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 force_display_range_by_indices(item_min : Int32, item_max : Int32) : Void
        #
      
      
        item_max is exclusive e.g. use (42, 42+1) to make item 42 always visible BUT due to alignment/padding of certain items it is likely that an extra item may be included on either end of the display range.
        
        def step : Bool
        #
      
      
        Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items.