|
Archeus 0.0.0
A C library and game engine that focuses on documentation
|
#include "arc/console/element.h"#include "arc/console/view.h"#include <stdlib.h>#include <ncurses.h>Go to the source code of this file.
Functions | |
| void | ARC_ConsoleElement_Create (ARC_ConsoleElement **element, uint32_t type, uint8_t flags, ARC_String *string, ARC_Point pos, ARC_ConsoleElement_RenderFn renderFn) |
| void | ARC_ConsoleElement_Destroy (ARC_ConsoleElement *element) |
| void | ARC_ConsoleElement_DefaultRenderFn (ARC_ConsoleView *view, ARC_ConsoleElement *element) |
| ARC_Bool | ARC_ConsoleElement_IsSelectable (ARC_ConsoleElement *element) |
| void | ARC_ConsoleElement_SetSelected (ARC_ConsoleElement *element, ARC_Bool selected) |
| void | ARC_NCursesElement_ToggleSelected (ARC_ConsoleElement *element) |
| void ARC_ConsoleElement_Create | ( | ARC_ConsoleElement ** | element, |
| uint32_t | type, | ||
| uint8_t | flags, | ||
| ARC_String * | string, | ||
| ARC_Point | pos, | ||
| ARC_ConsoleElement_RenderFn | renderFn ) |
Definition at line 7 of file element.c.
References ARC_ConsoleElement::type.
| void ARC_ConsoleElement_DefaultRenderFn | ( | ARC_ConsoleView * | view, |
| ARC_ConsoleElement * | element ) |
Definition at line 21 of file element.c.
References ARC_CONSOLE_ELEMENT_FLAG_SELECTED, ARC_CONSOLE_VIEW_ATTRIBUTE_NONE, ARC_CONSOLE_VIEW_ATTRIBUTE_REVERSE, ARC_ConsoleView_RenderStringAt(), ARC_ConsoleView_SetAttribute(), ARC_ConsoleElement::flags, ARC_ConsoleElement::pos, and ARC_ConsoleElement::string.
| void ARC_ConsoleElement_Destroy | ( | ARC_ConsoleElement * | element | ) |
| ARC_Bool ARC_ConsoleElement_IsSelectable | ( | ARC_ConsoleElement * | element | ) |
Definition at line 33 of file element.c.
References ARC_CONSOLE_ELEMENT_FLAG_SELECTABLE, ARC_False, ARC_True, and ARC_ConsoleElement::flags.
| void ARC_ConsoleElement_SetSelected | ( | ARC_ConsoleElement * | element, |
| ARC_Bool | selected ) |
Definition at line 41 of file element.c.
References ARC_CONSOLE_ELEMENT_FLAG_SELECTED, and ARC_ConsoleElement::flags.
| void ARC_NCursesElement_ToggleSelected | ( | ARC_ConsoleElement * | element | ) |
Definition at line 50 of file element.c.
References ARC_CONSOLE_ELEMENT_FLAG_SELECTED, and ARC_ConsoleElement::flags.