Archeus 0.0.0
A C library and game engine that focuses on documentation
Loading...
Searching...
No Matches
element.h
Go to the documentation of this file.
1#ifndef ARC_NCURSES_ELEMENT_H_
2#define ARC_NCURSES_ELEMENT_H_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#include <stdint.h>
9#include "view.h"
10#include "arc/std/string.h"
11#include "arc/std/bool.h"
12#include "arc/math/point.h"
13
14/**
15 * @brief
16*/
18
19/**
20 * @brief
21*/
23
24/**
25 * @brief
26*/
36
37/**
38 * @brief
39*/
40#define ARC_CONSOLE_ELEMENT_FLAG_NONE 0b00000000
41#define ARC_CONSOLE_ELEMENT_FLAG_SELECTABLE 0b00000001
42#define ARC_CONSOLE_ELEMENT_FLAG_SELECTED 0b00000010
43
44/**
45 * @brief
46*/
47void ARC_ConsoleElement_Create(ARC_ConsoleElement **element, uint32_t type, uint8_t flags, ARC_String *string, ARC_Point pos, ARC_ConsoleElement_RenderFn renderFn);
48
49/**
50 * @brief
51*/
53
54/**
55 * @brief
56*/
58
59/**
60 * @brief
61 *
62 * @param
63*/
65
66/**
67 * @brief
68 *
69 * @param
70*/
72
73/**
74 * @brief
75*/
77
78#endif //!ARC_CONSOLE_ELEMENT_H_
#define ARC_Bool
Definition bool.h:10
struct ARC_ConsoleView ARC_ConsoleView
Definition view.h:18
void ARC_ConsoleElement_DefaultRenderFn(ARC_ConsoleView *view, ARC_ConsoleElement *element)
struct ARC_ConsoleElement ARC_ConsoleElement
Definition element.h:17
void ARC_ConsoleElement_SetSelected(ARC_ConsoleElement *element, ARC_Bool selected)
ARC_Bool ARC_ConsoleElement_IsSelectable(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)
void(* ARC_ConsoleElement_RenderFn)(ARC_ConsoleView *view, ARC_ConsoleElement *element)
Definition element.h:22
void ARC_ConsoleElement_ToggleSelected(ARC_ConsoleElement *element)
void ARC_ConsoleElement_Destroy(ARC_ConsoleElement *element)
uint32_t type
Definition element.h:28
ARC_ConsoleElement_RenderFn renderFn
Definition element.h:34
ARC_String * string
Definition element.h:30
ARC_Point pos
Definition element.h:32
substring position within a string
Definition string.h:14