//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
namespace Brutal.ImGuiApi
{
public static partial class ImGuiInputTextCallbackDataExtensions
{
///
///
/// C++:
/// imgui.h:2726
/// ,
/// imgui_widgets.cpp:4274
///
void DeleteChars(int pos, int bytes_count)
///
///
///
///
/// Helper functions for text manipulation.
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
///
///
/// Public API to manipulate UTF-8 text from within a callback.
/// FIXME: The existence of this rarely exercised code path is a bit of a nuisance.
/// Historically they existed because STB_TEXTEDIT_INSERTCHARS() etc. worked on our ImWchar
/// buffer, but nowadays they both work on UTF-8 data. Should aim to merge both.
///
///
public static unsafe void DeleteChars(this ImGuiInputTextCallbackDataPtr target, int pos, int bytesCount) =>
PInvoke.ImGuiInputTextCallbackData_DeleteChars(target, pos, bytesCount);
///
///
/// C++:
/// imgui.h:2727
/// ,
/// imgui_widgets.cpp:4290
///
void InsertChars(int pos, const char* text, const char* text_end = NULL)
///
///
///
///
/// Helper functions for text manipulation.
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
///
///
public static unsafe void InsertChars(this ImGuiInputTextCallbackDataPtr target, int pos, ImString text)
{
fixed (byte* text_fixed = text)
{
PInvoke.ImGuiInputTextCallbackData_InsertChars(target, pos, text_fixed, text_fixed + text.Length);
}
}
///
///
/// C++:
/// imgui.h:2728
///
void SelectAll()
///
///
///
///
/// Helper functions for text manipulation.
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
///
///
public static unsafe void SelectAll(this ImGuiInputTextCallbackDataPtr target) =>
PInvoke.ImGuiInputTextCallbackData_SelectAll(target);
///
///
/// C++:
/// imgui.h:2729
///
void ClearSelection()
///
///
///
///
/// Helper functions for text manipulation.
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
///
///
public static unsafe void ClearSelection(this ImGuiInputTextCallbackDataPtr target) =>
PInvoke.ImGuiInputTextCallbackData_ClearSelection(target);
///
///
/// C++:
/// imgui.h:2730
///
bool HasSelection() const
///
///
///
///
/// Helper functions for text manipulation.
/// Use those function to benefit from the CallbackResize behaviors. Calling those function reset the selection.
///
///
public static unsafe bool HasSelection(this ImGuiInputTextCallbackDataPtr target) =>
PInvoke.ImGuiInputTextCallbackData_HasSelection(target);
}
}