|
Archeus 0.0.0
A C library and game engine that focuses on documentation
|
#include "arc/console/shell.h"#include "arc/console/buffer.h"#include "arc/std/string.h"#include "arc/std/vector.h"#include <stdlib.h>Go to the source code of this file.
Functions | |
| void | ARC_ConsoleShell_Create (ARC_ConsoleShell **shell, ARC_ConsoleView *view, ARC_ConsoleShell_UpdateFn updateFn) |
| creates ARC_ConsoleShell type | |
| void | ARC_ConsoleShell_Destroy (ARC_ConsoleShell *shell) |
| destroys ARC_ConsoleShell type | |
| void | ARC_ConsoleShell_Update (ARC_ConsoleShell *shell) |
| updates the ARC_ConsoleShell type | |
| void | ARC_ConsoleShell_Render (ARC_ConsoleShell *shell) |
| renders the ARC_ConsoleShell type | |
| void | ARC_ConsoleShell_AddHistory (ARC_ConsoleShell *shell, ARC_String *string) |
| adds history ARC_String to ARC_ConsoleShell | |
| ARC_String * | ARC_ConsoleShell_GetHistoryAt (ARC_ConsoleShell *shell, uint32_t index) |
| gets history from ARC_ConsoleShell | |
| void ARC_ConsoleShell_AddHistory | ( | ARC_ConsoleShell * | shell, |
| ARC_String * | string ) |
adds history ARC_String to ARC_ConsoleShell
| shell | the ARC_ConsoleShell to add history to |
| string | the history string to add to ARC_ConsoleShell |
Definition at line 46 of file shell.c.
References ARC_Vector_Add(), and ARC_ConsoleShell::history.
| void ARC_ConsoleShell_Create | ( | ARC_ConsoleShell ** | shell, |
| ARC_ConsoleView * | view, | ||
| ARC_ConsoleShell_UpdateFn | updateFn ) |
creates ARC_ConsoleShell type
| shell | ARC_ConsoleShell to create |
| view | ARC_ConsoleView to attach the shell to |
| updateFn | ARC_ConsoleShell_UpdateFn provided that will run the console |
Definition at line 8 of file shell.c.
References ARC_ConsoleBuffer_Create(), ARC_Vector_Create(), and ARC_ConsoleShell::view.
| void ARC_ConsoleShell_Destroy | ( | ARC_ConsoleShell * | shell | ) |
destroys ARC_ConsoleShell type
| shell | ARC_ConsoleShell to destroy |
Definition at line 23 of file shell.c.
References ARC_ConsoleBuffer_Destroy(), ARC_String_Destroy(), ARC_Vector_Destroy(), ARC_Vector_Get(), ARC_ConsoleShell::buffer, and ARC_ConsoleShell::history.
| ARC_String * ARC_ConsoleShell_GetHistoryAt | ( | ARC_ConsoleShell * | shell, |
| uint32_t | index ) |
gets history from ARC_ConsoleShell
| shell | the ARC_ConsoleShell to get history from |
| index | the location to get history at |
Definition at line 50 of file shell.c.
References ARC_Vector_Get(), and ARC_ConsoleShell::history.
| void ARC_ConsoleShell_Render | ( | ARC_ConsoleShell * | shell | ) |
renders the ARC_ConsoleShell type
| shell | the ARC_ConsoleShell to render |
Definition at line 42 of file shell.c.
References ARC_ConsoleBuffer_Render(), ARC_ConsoleShell::buffer, and ARC_ConsoleShell::view.
| void ARC_ConsoleShell_Update | ( | ARC_ConsoleShell * | shell | ) |
updates the ARC_ConsoleShell type
| shell | the ARC_ConsoleShell to update |
Definition at line 38 of file shell.c.
References ARC_ConsoleShell::updateFn.