|
Archeus 0.0.0
A C library and game engine that focuses on documentation
|
#include <stdint.h>#include <wchar.h>#include "arc/console/key.h"#include "arc/math/rectangle.h"#include "arc/std/bool.h"#include "arc/std/string.h"Go to the source code of this file.
Macros | |
| #define | ARC_CONSOLE_VIEW_CURSOR_HIDDEN 0x00 |
| mouse options | |
| #define | ARC_CONSOLE_VIEW_CURSOR_VISIBLE 0x01 |
| #define | ARC_CONSOLE_VIEW_BORDER_NONE 0x00 |
| border options | |
| #define | ARC_CONSOLE_VIEW_BORDER_DEFAULT 0x01 |
| #define | ARC_CONSOLE_VIEW_ATTRIBUTE_NONE 0x00 |
| border options | |
| #define | ARC_CONSOLE_VIEW_ATTRIBUTE_REVERSE 0x01 |
Typedefs | |
| typedef struct ARC_ConsoleView | ARC_ConsoleView |
| typedef 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 | |
| typedef struct ARC_ConsoleView ARC_ConsoleView |
| typedef 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
| key | the current key being read in |
| inputCStr | the cstring that holds the current contents of the input |
| inputSize | the size of the current contents of the input string |
| maxInputSize | the max size inputCStr can store |
| userdata | data that a user can pass to use within this function |
| void ARC_ConsoleView_AddElement | ( | ARC_ConsoleView * | view, |
| ARC_ConsoleElement * | element ) |
adds an ARC_ConsoleElement to the ARC_ConsoleView type
| view | |
| elment |
| void ARC_ConsoleView_Clear | ( | ARC_ConsoleView * | view | ) |
| view | |
| index |
| void ARC_ConsoleView_Create | ( | ARC_ConsoleView ** | view, |
| ARC_Rect | bounds ) |
creates ARC_ConsoleView type
| view | ARC_ConsoleView to create |
| bounds | the bounds of the window, if bounds.w == 0 or bounds.h == 0, bounds will take up the entire screen |
| void ARC_ConsoleView_Destroy | ( | ARC_ConsoleView * | view | ) |
destroys ARC_ConsoleView type
| view | ARC_ConsoleView to destroy |
| ARC_Rect ARC_ConsoleView_GetBounds | ( | ARC_ConsoleView * | view | ) |
gets the bounds of an ARC_ConsoleView
| view | ARC_ConsoleView to get bounds from |
| char ARC_ConsoleView_GetChar | ( | ARC_ConsoleView * | view | ) |
gets a char from the view
| view | the ARC_ConsoleView to get the char from |
| char ARC_ConsoleView_GetCharAt | ( | ARC_ConsoleView * | view, |
| ARC_Point | pos ) |
gets a char from the view at a position
| view | the ARC_ConsoleView to get the char from |
| pos | the positiion to get the char at |
| ARC_ConsoleKey ARC_ConsoleView_GetConsoleKeyAt | ( | ARC_ConsoleView * | view, |
| ARC_Point | pos ) |
gets a console key from the view at a position
| view | the ARC_ConsoleView to get the console key from |
| pos | the positiion to get the console key at |
| ARC_ConsoleKey * ARC_ConsoleView_GetCreateConsoleKeyAt | ( | ARC_ConsoleView * | view, |
| ARC_Point | pos ) |
gets and creates a console key from the view at a position
| view | the ARC_ConsoleView to get the console key from |
| pos | the positiion to get the console key at |
| ARC_ConsoleElement * ARC_ConsoleView_GetElement | ( | ARC_ConsoleView * | view, |
| uint32_t | index ) |
adds an ARC_ConsoleElement to the ARC_ConsoleView type
| view | |
| index |
| 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
| view | the ARC_ConsoleView to get the string from |
| pos | the positiion to get the string at |
| overrideCharInputFn | a function to allow overriding what happens when inputing chars, can be NULL |
| userdata | data that a user can pass to use within the overrideCharInputFn |
| void ARC_ConsoleView_RemoveElement | ( | ARC_ConsoleView * | view, |
| uint32_t | index ) |
| view | |
| index |
| void ARC_ConsoleView_RenderCharAt | ( | ARC_ConsoleView * | view, |
| char | character, | ||
| ARC_Point | pos ) |
| view | |
| character | |
| pos |
| void ARC_ConsoleView_RenderCStringWithStrlenAt | ( | ARC_ConsoleView * | view, |
| char * | cstr, | ||
| ARC_Point | pos ) |
| view | |
| text | |
| pos |
| void ARC_ConsoleView_RenderElements | ( | ARC_ConsoleView * | view | ) |
| view |
| void ARC_ConsoleView_RenderKeyAt | ( | ARC_ConsoleView * | view, |
| ARC_ConsoleKey | key, | ||
| ARC_Point | pos ) |
| view | |
| key | |
| pos |
| void ARC_ConsoleView_RenderRect | ( | ARC_ConsoleView * | view, |
| ARC_Rect | bounds ) |
| view | |
| bounds |
| void ARC_ConsoleView_RenderStringAt | ( | ARC_ConsoleView * | view, |
| ARC_String * | text, | ||
| ARC_Point | pos ) |
| view | |
| text | |
| pos |
| void ARC_ConsoleView_RenderUint32At | ( | ARC_ConsoleView * | view, |
| uint32_t | uint32, | ||
| ARC_Point | pos ) |
| view | |
| uint32 | |
| pos |
| void ARC_ConsoleView_RenderWCharAt | ( | ARC_ConsoleView * | view, |
| wchar_t | character, | ||
| ARC_Point | pos ) |
| view | |
| character | |
| pos |
| void ARC_ConsoleView_SetAttribute | ( | ARC_ConsoleView * | view, |
| uint32_t | attribute ) |
sets a border on the ARC_ConsoleView
| view | ARC_ConsoleView to set border to |
| border | The border to set |
| void ARC_ConsoleView_SetBorder | ( | ARC_ConsoleView * | view, |
| uint32_t | border ) |
sets a border on the ARC_ConsoleView
| view | ARC_ConsoleView to set border to |
| border | The border to set |
| void ARC_ConsoleView_SetCursorVisibility | ( | ARC_ConsoleView * | view, |
| uint8_t | visibility ) |
sets a visibility of the cursor with an ARC_ConsoleView
| view | ARC_ConsoleView to set mouse visibility |
| visibility | the visibility to set |