// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable namespace Brutal.ImGuiApi.Internal { public static partial class ImGuiInputTextStateExtensions { /// /// /// C++: /// imgui_internal.h:1242 ///
void ClearText() ///
///
public static unsafe void ClearText(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_ClearText_internal(target); /// /// /// C++: /// imgui_internal.h:1243 ///
void ClearFreeMemory() ///
///
public static unsafe void ClearFreeMemory(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_ClearFreeMemory_internal(target); /// /// /// Cannot be inline because we call in code in stb_textedit.h implementation /// /// /// C++: /// imgui_internal.h:1244 /// , /// imgui_widgets.cpp:4234 ///
void OnKeyPressed(int key) ///
///
public static unsafe void OnKeyPressed(this ImGuiInputTextStatePtr target, int key) => PInvoke.ImGuiInputTextState_OnKeyPressed_internal(target, key); /// /// /// C++: /// imgui_internal.h:1245 /// , /// imgui_widgets.cpp:4241 ///
void OnCharPressed(unsigned int c) ///
///
public static unsafe void OnCharPressed(this ImGuiInputTextStatePtr target, uint c) => PInvoke.ImGuiInputTextState_OnCharPressed_internal(target, c); /// /// /// C++: /// imgui_internal.h:1248 /// , /// imgui_widgets.cpp:4253 ///
void CursorAnimReset() ///
///
/// /// /// Cursor & Selection /// /// /// Those functions are not inlined in imgui_internal.h, allowing us to hide ImStbTexteditState from that /// header. /// /// public static unsafe void CursorAnimReset(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_CursorAnimReset_internal(target); /// /// /// C++: /// imgui_internal.h:1249 /// , /// imgui_widgets.cpp:4254 ///
void CursorClamp() ///
///
/// /// /// Cursor & Selection /// /// public static unsafe void CursorClamp(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_CursorClamp_internal(target); /// /// /// C++: /// imgui_internal.h:1250 /// , /// imgui_widgets.cpp:4255 ///
bool HasSelection() const ///
///
/// /// /// Cursor & Selection /// /// public static unsafe bool HasSelection(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_HasSelection_internal(target); /// /// /// C++: /// imgui_internal.h:1251 /// , /// imgui_widgets.cpp:4256 ///
void ClearSelection() ///
///
/// /// /// Cursor & Selection /// /// public static unsafe void ClearSelection(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_ClearSelection_internal(target); /// /// /// C++: /// imgui_internal.h:1252 /// , /// imgui_widgets.cpp:4257 ///
int GetCursorPos() const ///
///
/// /// /// Cursor & Selection /// /// public static unsafe int GetCursorPos(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_GetCursorPos_internal(target); /// /// /// C++: /// imgui_internal.h:1253 /// , /// imgui_widgets.cpp:4258 ///
int GetSelectionStart() const ///
///
/// /// /// Cursor & Selection /// /// public static unsafe int GetSelectionStart(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_GetSelectionStart_internal(target); /// /// /// C++: /// imgui_internal.h:1254 /// , /// imgui_widgets.cpp:4259 ///
int GetSelectionEnd() const ///
///
/// /// /// Cursor & Selection /// /// public static unsafe int GetSelectionEnd(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_GetSelectionEnd_internal(target); /// /// /// C++: /// imgui_internal.h:1255 /// , /// imgui_widgets.cpp:4260 ///
void SelectAll() ///
///
/// /// /// Cursor & Selection /// /// public static unsafe void SelectAll(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_SelectAll_internal(target); /// /// /// C++: /// imgui_internal.h:1262 /// , /// imgui_widgets.cpp:4261 ///
void ReloadUserBufAndSelectAll() ///
///
/// /// /// Reload user buf (WIP #2890) /// If you modify underlying user-passed const char* while active you need to call this (InputText V2 may lift this) /// strcpy(my_buf, "hello"); /// if (ImGuiInputTextState* state = ImGui::GetInputTextState(id)) // id may be ImGui::GetItemID() is last item /// state->ReloadUserBufAndSelectAll(); /// /// public static unsafe void ReloadUserBufAndSelectAll(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_ReloadUserBufAndSelectAll_internal(target); /// /// /// C++: /// imgui_internal.h:1263 /// , /// imgui_widgets.cpp:4262 ///
void ReloadUserBufAndKeepSelection() ///
///
/// /// /// Reload user buf (WIP #2890) /// If you modify underlying user-passed const char* while active you need to call this (InputText V2 may lift this) /// strcpy(my_buf, "hello"); /// if (ImGuiInputTextState* state = ImGui::GetInputTextState(id)) // id may be ImGui::GetItemID() is last item /// state->ReloadUserBufAndSelectAll(); /// /// public static unsafe void ReloadUserBufAndKeepSelection(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_ReloadUserBufAndKeepSelection_internal(target); /// /// /// C++: /// imgui_internal.h:1264 /// , /// imgui_widgets.cpp:4263 ///
void ReloadUserBufAndMoveToEnd() ///
///
/// /// /// Reload user buf (WIP #2890) /// If you modify underlying user-passed const char* while active you need to call this (InputText V2 may lift this) /// strcpy(my_buf, "hello"); /// if (ImGuiInputTextState* state = ImGui::GetInputTextState(id)) // id may be ImGui::GetItemID() is last item /// state->ReloadUserBufAndSelectAll(); /// /// public static unsafe void ReloadUserBufAndMoveToEnd(this ImGuiInputTextStatePtr target) => PInvoke.ImGuiInputTextState_ReloadUserBufAndMoveToEnd_internal(target); } }