struct ImGui::ImGuiInputTextCallbackData
- ImGui::ImGuiInputTextCallbackData
- Struct
- Value
- Object
Overview
struct ImGuiInputTextCallbackData
Included Modules
- ImGui::ClassType(LibImGui::ImGuiInputTextCallbackData)
Defined in:
imgui.crobj.cr
Constructors
Instance Method Summary
- 
        #buf : Pointer(LibC::Char)
        
          Text buffer Read-write [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer! 
- #buf=(buf : Pointer(LibC::Char))
- 
        #buf_dirty : Bool
        
          Set if you modify Buf/BufTextLen! Write [Completion,History,Always] 
- #buf_dirty=(buf_dirty : Bool)
- 
        #buf_size : Int32
        
          Buffer size (in bytes) = capacity+1 Read-only [Resize,Completion,History,Always] Include zero-terminator storage. 
- #buf_size=(buf_size : Int32)
- 
        #buf_text_len : Int32
        
          Text length (in bytes) Read-write [Resize,Completion,History,Always] Exclude zero-terminator storage. 
- #buf_text_len=(buf_text_len : Int32)
- #bytes : Bytes
- #clear_selection : Void
- 
        #cursor_pos : Int32
        
          Read-write [Completion,History,Always] 
- #cursor_pos=(cursor_pos : Int32)
- #delete_chars(pos : Int32, bytes_count : Int32) : Void
- 
        #event_char : ImWchar
        
          Character input Read-write [CharFilter] Replace character with another one, or set to zero to drop. 
- #event_char=(event_char : ImWchar)
- 
        #event_flag : ImGuiInputTextFlags
        
          One ImGuiInputTextFlags_Callback* Read-only 
- #event_flag=(event_flag : ImGuiInputTextFlags)
- 
        #event_key : ImGuiKey
        
          Key pressed (Up/Down/TAB) Read-only [Completion,History] 
- #event_key=(event_key : ImGuiKey)
- 
        #flags : ImGuiInputTextFlags
        
          What user passed to InputText() Read-only 
- #flags=(flags : ImGuiInputTextFlags)
- #has_selection : Bool
- #insert_chars(pos : Int32, text : Bytes | String) : Void
- #select_all : Void
- 
        #selection_end : Int32
        
          Read-write [Completion,History,Always] 
- #selection_end=(selection_end : Int32)
- 
        #selection_start : Int32
        
          Read-write [Completion,History,Always] == to SelectionEnd when no selection) 
- #selection_start=(selection_start : Int32)
- #to_unsafe : Pointer(T)
- 
        #user_data : Pointer(Void)
        
          What user passed to InputText() Read-only 
- #user_data=(user_data : Pointer(Void))
Constructor Detail
Instance Method Detail
Text buffer Read-write [Resize] Can replace pointer / [Completion,History,Always] Only write to pointed data, don't replace the actual pointer!
Buffer size (in bytes) = capacity+1 Read-only [Resize,Completion,History,Always] Include zero-terminator storage. In C land == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1
Text length (in bytes) Read-write [Resize,Completion,History,Always] Exclude zero-terminator storage. In C land: == strlen(some_text), in C++ land: string.length()
Character input Read-write [CharFilter] Replace character with another one, or set to zero to drop. return 1 is equivalent to setting EventChar=0;
Read-write [Completion,History,Always] == to SelectionEnd when no selection)