struct ImGui::ImGuiInputTextCallbackData

Overview

struct ImGuiInputTextCallbackData

Included Modules

Defined in:

imgui.cr
obj.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new : ImGuiInputTextCallbackData #

[View source]

Instance Method Detail

def 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!


[View source]
def buf=(buf : Pointer(LibC::Char)) #

[View source]
def buf_dirty : Bool #

Set if you modify Buf/BufTextLen! Write [Completion,History,Always]


[View source]
def buf_dirty=(buf_dirty : Bool) #

[View source]
def buf_size : Int32 #

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


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

[View source]
def buf_text_len : Int32 #

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()


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

[View source]
def bytes : Bytes #

[View source]
def clear_selection : Void #

[View source]
def ctx : ImGuiContext | Nil #

Parent UI context


[View source]
def ctx=(ctx : ImGuiContext | Nil) #

[View source]
def cursor_pos : Int32 #

Read-write [Completion,History,Always]


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

[View source]
def delete_chars(pos : Int32, bytes_count : Int32) : Void #

[View source]
def event_char : ImWchar #

Character input Read-write [CharFilter] Replace character with another one, or set to zero to drop. return 1 is equivalent to setting EventChar=0;


[View source]
def event_char=(event_char : ImWchar) #

[View source]
def event_flag : ImGuiInputTextFlags #

One ImGuiInputTextFlags_Callback* Read-only


[View source]
def event_flag=(event_flag : ImGuiInputTextFlags) #

[View source]
def event_key : ImGuiKey #

Key pressed (Up/Down/TAB) Read-only [Completion,History]


[View source]
def event_key=(event_key : ImGuiKey) #

[View source]
def flags : ImGuiInputTextFlags #

What user passed to InputText() Read-only


[View source]
def flags=(flags : ImGuiInputTextFlags) #

[View source]
def has_selection : Bool #

[View source]
def insert_chars(pos : Int32, text : Bytes | String) : Void #

[View source]
def select_all : Void #

[View source]
def selection_end : Int32 #

Read-write [Completion,History,Always]


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

[View source]
def selection_start : Int32 #

Read-write [Completion,History,Always] == to SelectionEnd when no selection)


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

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

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

What user passed to InputText() Read-only


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

[View source]