Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
ImGuiInputTextState Struct Reference

#include <src/imgui/imgui_internal.h>

+ Collaboration diagram for ImGuiInputTextState:

Public Member Functions

 ImGuiInputTextState ()
 
void ClearText ()
 
void ClearFreeMemory ()
 
int GetUndoAvailCount () const
 
int GetRedoAvailCount () const
 
void OnKeyPressed (int key)
 
void CursorAnimReset ()
 
void CursorClamp ()
 
bool HasSelection () const
 
void ClearSelection ()
 
void SelectAll ()
 

Public Attributes

ImGuiID ID
 
int CurLenW
 
int CurLenA
 
ImVector< ImWcharTextW
 
ImVector< char > TextA
 
ImVector< char > InitialTextA
 
bool TextAIsValid
 
int BufCapacityA
 
float ScrollX
 
ImStb::STB_TexteditState Stb
 
float CursorAnim
 
bool CursorFollow
 
bool SelectedAllMouseLock
 
bool Edited
 
ImGuiInputTextFlags Flags
 
ImGuiInputTextCallback UserCallback
 
voidUserCallbackData
 

Detailed Description

Constructor & Destructor Documentation

◆ ImGuiInputTextState()

ImGuiInputTextState::ImGuiInputTextState ( )
inline
1036{ memset(this, 0, sizeof(*this)); }

Member Function Documentation

◆ ClearFreeMemory()

void ImGuiInputTextState::ClearFreeMemory ( )
inline
ImVector< char > TextA
Definition imgui_internal.h:1022
ImVector< ImWchar > TextW
Definition imgui_internal.h:1021
ImVector< char > InitialTextA
Definition imgui_internal.h:1023
void clear()
Definition imgui.h:1678

References ImVector< T >::clear().

Referenced by ImGui::Shutdown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ClearSelection()

void ImGuiInputTextState::ClearSelection ( )
inline
1047{ Stb.select_start = Stb.select_end = Stb.cursor; }
ImStb::STB_TexteditState Stb
Definition imgui_internal.h:1027

Referenced by ImGui::InputTextEx().

+ Here is the caller graph for this function:

◆ ClearText()

void ImGuiInputTextState::ClearText ( )
inline
1037{ CurLenW = CurLenA = 0; TextW[0] = 0; TextA[0] = 0; CursorClamp(); }
void CursorClamp()
Definition imgui_internal.h:1045
int CurLenW
Definition imgui_internal.h:1020
int CurLenA
Definition imgui_internal.h:1020

◆ CursorAnimReset()

void ImGuiInputTextState::CursorAnimReset ( )
inline
1044{ CursorAnim = -0.30f; } // After a user-input the cursor stays on for a while without blinking
float CursorAnim
Definition imgui_internal.h:1028

Referenced by ImGui::InputTextEx(), and OnKeyPressed().

+ Here is the caller graph for this function:

◆ CursorClamp()

void ImGuiInputTextState::CursorClamp ( )
inline
1045{ Stb.cursor = ImMin(Stb.cursor, CurLenW); Stb.select_start = ImMin(Stb.select_start, CurLenW); Stb.select_end = ImMin(Stb.select_end, CurLenW); }
static T ImMin(T lhs, T rhs)
Definition imgui_internal.h:409

References ImMin().

Referenced by ImGui::InputTextEx().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetRedoAvailCount()

int ImGuiInputTextState::GetRedoAvailCount ( ) const
inline
1040{ return STB_TEXTEDIT_UNDOSTATECOUNT - Stb.undostate.redo_point; }
#define STB_TEXTEDIT_UNDOSTATECOUNT
Definition imgui_internal.h:178

References STB_TEXTEDIT_UNDOSTATECOUNT.

◆ GetUndoAvailCount()

int ImGuiInputTextState::GetUndoAvailCount ( ) const
inline
1039{ return Stb.undostate.undo_point; }

◆ HasSelection()

bool ImGuiInputTextState::HasSelection ( ) const
inline
1046{ return Stb.select_start != Stb.select_end; }

Referenced by ImGui::InputTextEx().

+ Here is the caller graph for this function:

◆ OnKeyPressed()

void ImGuiInputTextState::OnKeyPressed ( int  key)
3707{
3708 stb_textedit_key(this, &Stb, key);
3709 CursorFollow = true;
3711}
void CursorAnimReset()
Definition imgui_internal.h:1044
bool CursorFollow
Definition imgui_internal.h:1029

References CursorAnimReset(), CursorFollow, and Stb.

Referenced by ImGui::InputTextEx().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SelectAll()

void ImGuiInputTextState::SelectAll ( )
inline
1048{ Stb.select_start = 0; Stb.cursor = Stb.select_end = CurLenW; Stb.has_preferred_x = 0; }

Referenced by ImGui::InputTextEx().

+ Here is the caller graph for this function:

Member Data Documentation

◆ BufCapacityA

int ImGuiInputTextState::BufCapacityA

◆ CurLenA

int ImGuiInputTextState::CurLenA

◆ CurLenW

◆ CursorAnim

float ImGuiInputTextState::CursorAnim

Referenced by ImGui::InputTextEx().

◆ CursorFollow

bool ImGuiInputTextState::CursorFollow

Referenced by ImGui::InputTextEx(), and OnKeyPressed().

◆ Edited

bool ImGuiInputTextState::Edited

◆ Flags

◆ ID

◆ InitialTextA

ImVector<char> ImGuiInputTextState::InitialTextA

◆ ScrollX

float ImGuiInputTextState::ScrollX

Referenced by ImGui::InputTextEx().

◆ SelectedAllMouseLock

bool ImGuiInputTextState::SelectedAllMouseLock

Referenced by ImGui::InputTextEx().

◆ Stb

ImStb::STB_TexteditState ImGuiInputTextState::Stb

Referenced by ImGui::InputTextEx(), and OnKeyPressed().

◆ TextA

ImVector<char> ImGuiInputTextState::TextA

◆ TextAIsValid

bool ImGuiInputTextState::TextAIsValid

Referenced by ImGui::InputTextEx().

◆ TextW

◆ UserCallback

ImGuiInputTextCallback ImGuiInputTextState::UserCallback

Referenced by ImGui::InputTextEx().

◆ UserCallbackData

void* ImGuiInputTextState::UserCallbackData

Referenced by ImGui::InputTextEx().


The documentation for this struct was generated from the following files: