1#ifndef ARC_CONSOLE_VIEW_H_
2#define ARC_CONSOLE_VIEW_H_
224#define ARC_CONSOLE_VIEW_CURSOR_HIDDEN 0x00
225#define ARC_CONSOLE_VIEW_CURSOR_VISIBLE 0x01
238#define ARC_CONSOLE_VIEW_BORDER_NONE 0x00
239#define ARC_CONSOLE_VIEW_BORDER_DEFAULT 0x01
252#define ARC_CONSOLE_VIEW_ATTRIBUTE_NONE 0x00
253#define ARC_CONSOLE_VIEW_ATTRIBUTE_REVERSE 0x01
void ARC_ConsoleView_RenderStringAt(ARC_ConsoleView *view, ARC_String *text, ARC_Point pos)
char ARC_ConsoleView_GetChar(ARC_ConsoleView *view)
gets a char from the view
void ARC_ConsoleView_RenderCStringWithStrlenAt(ARC_ConsoleView *view, char *cstr, ARC_Point pos)
ARC_String * ARC_ConsoleView_GetStringInput(ARC_ConsoleView *view, ARC_Point pos, ARC_ConsoleView_OverrideCharInputFn *overrideCharInputFn, void *userdata)
gets a ARC_String from the view at a position
void ARC_ConsoleView_RenderElements(ARC_ConsoleView *view)
void ARC_ConsoleView_RenderKeyAt(ARC_ConsoleView *view, ARC_ConsoleKey key, ARC_Point pos)
ARC_Rect ARC_ConsoleView_GetBounds(ARC_ConsoleView *view)
gets the bounds of an ARC_ConsoleView
void ARC_ConsoleView_RenderUint32At(ARC_ConsoleView *view, uint32_t uint32, ARC_Point pos)
struct ARC_ConsoleView ARC_ConsoleView
void ARC_ConsoleView_Create(ARC_ConsoleView **view, ARC_Rect bounds)
creates ARC_ConsoleView type
void ARC_ConsoleView_RenderCharAt(ARC_ConsoleView *view, char character, ARC_Point pos)
ARC_ConsoleKey ARC_ConsoleView_GetConsoleKeyAt(ARC_ConsoleView *view, ARC_Point pos)
gets a console key from the view at a position
void ARC_ConsoleView_SetBorder(ARC_ConsoleView *view, uint32_t border)
sets a border on the ARC_ConsoleView
void ARC_ConsoleView_RenderWCharAt(ARC_ConsoleView *view, wchar_t character, ARC_Point pos)
ARC_Bool(* ARC_ConsoleView_OverrideCharInputFn)(ARC_ConsoleKey *key, char *inputCStr, uint32_t *inputSize, uint32_t maxInputSize, void *userdata)
callback to check char being read in and override functionality
ARC_ConsoleKey * ARC_ConsoleView_GetCreateConsoleKeyAt(ARC_ConsoleView *view, ARC_Point pos)
gets and creates a console key from the view at a position
void ARC_ConsoleView_RemoveElement(ARC_ConsoleView *view, uint32_t index)
char ARC_ConsoleView_GetCharAt(ARC_ConsoleView *view, ARC_Point pos)
gets a char from the view at a position
void ARC_ConsoleView_SetCursorVisibility(ARC_ConsoleView *view, uint8_t visibility)
sets a visibility of the cursor with an ARC_ConsoleView
void ARC_ConsoleView_AddElement(ARC_ConsoleView *view, ARC_ConsoleElement *element)
adds an ARC_ConsoleElement to the ARC_ConsoleView type
ARC_ConsoleElement * ARC_ConsoleView_GetElement(ARC_ConsoleView *view, uint32_t index)
adds an ARC_ConsoleElement to the ARC_ConsoleView type
void ARC_ConsoleView_SetAttribute(ARC_ConsoleView *view, uint32_t attribute)
sets a border on the ARC_ConsoleView
void ARC_ConsoleView_RenderRect(ARC_ConsoleView *view, ARC_Rect bounds)
void ARC_ConsoleView_Clear(ARC_ConsoleView *view)
void ARC_ConsoleView_Destroy(ARC_ConsoleView *view)
destroys ARC_ConsoleView type
struct ARC_ConsoleKeyType ARC_ConsoleKey
substring position within a string