Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
ImStb Namespace Reference

Classes

struct  STB_TexteditState
 
struct  StbFindState
 
struct  StbTexteditRow
 
struct  StbUndoRecord
 
struct  StbUndoState
 

Functions

static int STB_TEXTEDIT_STRINGLEN (const ImGuiInputTextState *obj)
 
static ImWchar STB_TEXTEDIT_GETCHAR (const ImGuiInputTextState *obj, int idx)
 
static float STB_TEXTEDIT_GETWIDTH (ImGuiInputTextState *obj, int line_start_idx, int char_idx)
 
static int STB_TEXTEDIT_KEYTOTEXT (int key)
 
static void STB_TEXTEDIT_LAYOUTROW (StbTexteditRow *r, ImGuiInputTextState *obj, int line_start_idx)
 
static bool is_separator (unsigned int c)
 
static int is_word_boundary_from_right (ImGuiInputTextState *obj, int idx)
 
static int is_word_boundary_from_left (ImGuiInputTextState *obj, int idx)
 
static int STB_TEXTEDIT_MOVEWORDLEFT_IMPL (ImGuiInputTextState *obj, int idx)
 
static int STB_TEXTEDIT_MOVEWORDRIGHT_MAC (ImGuiInputTextState *obj, int idx)
 
static int STB_TEXTEDIT_MOVEWORDRIGHT_WIN (ImGuiInputTextState *obj, int idx)
 
static int STB_TEXTEDIT_MOVEWORDRIGHT_IMPL (ImGuiInputTextState *obj, int idx)
 
static void STB_TEXTEDIT_DELETECHARS (ImGuiInputTextState *obj, int pos, int n)
 
static bool STB_TEXTEDIT_INSERTCHARS (ImGuiInputTextState *obj, int pos, const ImWchar *new_text, int new_text_len)
 
static int stb_text_locate_coord (IMSTB_TEXTEDIT_STRING *str, float x, float y)
 
static void stb_textedit_click (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y)
 
static void stb_textedit_drag (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state, float x, float y)
 
static void stb_text_undo (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state)
 
static void stb_text_redo (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state)
 
static void stb_text_makeundo_delete (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int length)
 
static void stb_text_makeundo_insert (STB_TexteditState *state, int where, int length)
 
static void stb_text_makeundo_replace (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int old_length, int new_length)
 
static void stb_textedit_find_charpos (StbFindState *find, IMSTB_TEXTEDIT_STRING *str, int n, int single_line)
 
static void stb_textedit_clamp (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state)
 
static void stb_textedit_delete (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state, int where, int len)
 
static void stb_textedit_delete_selection (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state)
 
static void stb_textedit_sortselection (STB_TexteditState *state)
 
static void stb_textedit_move_to_first (STB_TexteditState *state)
 
static void stb_textedit_move_to_last (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state)
 
static void stb_textedit_prep_selection_at_cursor (STB_TexteditState *state)
 
static int stb_textedit_cut (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state)
 
static int stb_textedit_paste_internal (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state, IMSTB_TEXTEDIT_CHARTYPE *text, int len)
 
static void stb_textedit_key (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state, STB_TEXTEDIT_KEYTYPE key)
 
static void stb_textedit_flush_redo (StbUndoState *state)
 
static void stb_textedit_discard_undo (StbUndoState *state)
 
static void stb_textedit_discard_redo (StbUndoState *state)
 
static StbUndoRecordstb_text_create_undo_record (StbUndoState *state, int numchars)
 
static IMSTB_TEXTEDIT_CHARTYPE * stb_text_createundo (StbUndoState *state, int pos, int insert_len, int delete_len)
 
static void stb_textedit_clear_state (STB_TexteditState *state, int is_single_line)
 
static void stb_textedit_initialize_state (STB_TexteditState *state, int is_single_line)
 
static int stb_textedit_paste (IMSTB_TEXTEDIT_STRING *str, STB_TexteditState *state, IMSTB_TEXTEDIT_CHARTYPE const *ctext, int len)
 
static void stb_textedit_replace (ImGuiInputTextState *str, STB_TexteditState *state, const IMSTB_TEXTEDIT_CHARTYPE *text, int text_len)
 

Variables

static ImWchar STB_TEXTEDIT_NEWLINE = '\n'
 

Function Documentation

◆ is_separator()

static bool ImStb::is_separator ( unsigned int c)
static
Here is the caller graph for this function:

◆ is_word_boundary_from_left()

static int ImStb::is_word_boundary_from_left ( ImGuiInputTextState * obj,
int idx )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_word_boundary_from_right()

static int ImStb::is_word_boundary_from_right ( ImGuiInputTextState * obj,
int idx )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stb_text_create_undo_record()

static StbUndoRecord * ImStb::stb_text_create_undo_record ( StbUndoState * state,
int numchars )
static

◆ stb_text_createundo()

static IMSTB_TEXTEDIT_CHARTYPE * ImStb::stb_text_createundo ( StbUndoState * state,
int pos,
int insert_len,
int delete_len )
static
Here is the call graph for this function:

◆ stb_text_locate_coord()

static int ImStb::stb_text_locate_coord ( IMSTB_TEXTEDIT_STRING * str,
float x,
float y )
static

◆ stb_text_makeundo_delete()

static void ImStb::stb_text_makeundo_delete ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state,
int where,
int length )
static

◆ stb_text_makeundo_insert()

static void ImStb::stb_text_makeundo_insert ( STB_TexteditState * state,
int where,
int length )
static

◆ stb_text_makeundo_replace()

static void ImStb::stb_text_makeundo_replace ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state,
int where,
int old_length,
int new_length )
static
Here is the caller graph for this function:

◆ stb_text_redo()

static void ImStb::stb_text_redo ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state )
static

◆ stb_text_undo()

static void ImStb::stb_text_undo ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state )
static

◆ stb_textedit_clamp()

static void ImStb::stb_textedit_clamp ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state )
static
Here is the caller graph for this function:

◆ stb_textedit_clear_state()

static void ImStb::stb_textedit_clear_state ( STB_TexteditState * state,
int is_single_line )
static

◆ stb_textedit_click()

static void ImStb::stb_textedit_click ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state,
float x,
float y )
static

◆ stb_textedit_cut()

static int ImStb::stb_textedit_cut ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state )
static

◆ stb_textedit_delete()

static void ImStb::stb_textedit_delete ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state,
int where,
int len )
static

◆ stb_textedit_delete_selection()

static void ImStb::stb_textedit_delete_selection ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state )
static

◆ STB_TEXTEDIT_DELETECHARS()

static void ImStb::STB_TEXTEDIT_DELETECHARS ( ImGuiInputTextState * obj,
int pos,
int n )
static
Here is the caller graph for this function:

◆ stb_textedit_discard_redo()

static void ImStb::stb_textedit_discard_redo ( StbUndoState * state)
static

◆ stb_textedit_discard_undo()

static void ImStb::stb_textedit_discard_undo ( StbUndoState * state)
static

◆ stb_textedit_drag()

static void ImStb::stb_textedit_drag ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state,
float x,
float y )
static

◆ stb_textedit_find_charpos()

static void ImStb::stb_textedit_find_charpos ( StbFindState * find,
IMSTB_TEXTEDIT_STRING * str,
int n,
int single_line )
static

◆ stb_textedit_flush_redo()

static void ImStb::stb_textedit_flush_redo ( StbUndoState * state)
static

◆ STB_TEXTEDIT_GETCHAR()

static ImWchar ImStb::STB_TEXTEDIT_GETCHAR ( const ImGuiInputTextState * obj,
int idx )
static
Here is the caller graph for this function:

◆ STB_TEXTEDIT_GETWIDTH()

static float ImStb::STB_TEXTEDIT_GETWIDTH ( ImGuiInputTextState * obj,
int line_start_idx,
int char_idx )
static
Here is the call graph for this function:

◆ stb_textedit_initialize_state()

static void ImStb::stb_textedit_initialize_state ( STB_TexteditState * state,
int is_single_line )
static

◆ STB_TEXTEDIT_INSERTCHARS()

static bool ImStb::STB_TEXTEDIT_INSERTCHARS ( ImGuiInputTextState * obj,
int pos,
const ImWchar * new_text,
int new_text_len )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stb_textedit_key()

static void ImStb::stb_textedit_key ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state,
STB_TEXTEDIT_KEYTYPE key )
static

◆ STB_TEXTEDIT_KEYTOTEXT()

static int ImStb::STB_TEXTEDIT_KEYTOTEXT ( int key)
static

◆ STB_TEXTEDIT_LAYOUTROW()

static void ImStb::STB_TEXTEDIT_LAYOUTROW ( StbTexteditRow * r,
ImGuiInputTextState * obj,
int line_start_idx )
static

◆ stb_textedit_move_to_first()

static void ImStb::stb_textedit_move_to_first ( STB_TexteditState * state)
static

◆ stb_textedit_move_to_last()

static void ImStb::stb_textedit_move_to_last ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state )
static

◆ STB_TEXTEDIT_MOVEWORDLEFT_IMPL()

static int ImStb::STB_TEXTEDIT_MOVEWORDLEFT_IMPL ( ImGuiInputTextState * obj,
int idx )
static
Here is the call graph for this function:

◆ STB_TEXTEDIT_MOVEWORDRIGHT_IMPL()

static int ImStb::STB_TEXTEDIT_MOVEWORDRIGHT_IMPL ( ImGuiInputTextState * obj,
int idx )
static
Here is the call graph for this function:

◆ STB_TEXTEDIT_MOVEWORDRIGHT_MAC()

static int ImStb::STB_TEXTEDIT_MOVEWORDRIGHT_MAC ( ImGuiInputTextState * obj,
int idx )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ STB_TEXTEDIT_MOVEWORDRIGHT_WIN()

static int ImStb::STB_TEXTEDIT_MOVEWORDRIGHT_WIN ( ImGuiInputTextState * obj,
int idx )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ stb_textedit_paste()

static int ImStb::stb_textedit_paste ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state,
IMSTB_TEXTEDIT_CHARTYPE const * ctext,
int len )
static

◆ stb_textedit_paste_internal()

static int ImStb::stb_textedit_paste_internal ( IMSTB_TEXTEDIT_STRING * str,
STB_TexteditState * state,
IMSTB_TEXTEDIT_CHARTYPE * text,
int len )
static

◆ stb_textedit_prep_selection_at_cursor()

static void ImStb::stb_textedit_prep_selection_at_cursor ( STB_TexteditState * state)
static
Here is the caller graph for this function:

◆ stb_textedit_replace()

static void ImStb::stb_textedit_replace ( ImGuiInputTextState * str,
STB_TexteditState * state,
const IMSTB_TEXTEDIT_CHARTYPE * text,
int text_len )
static
Here is the call graph for this function:

◆ stb_textedit_sortselection()

static void ImStb::stb_textedit_sortselection ( STB_TexteditState * state)
static

◆ STB_TEXTEDIT_STRINGLEN()

static int ImStb::STB_TEXTEDIT_STRINGLEN ( const ImGuiInputTextState * obj)
static

Variable Documentation

◆ STB_TEXTEDIT_NEWLINE

ImWchar ImStb::STB_TEXTEDIT_NEWLINE = '\n'
static
Untitled