-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUIDrawnObjectsTextUI.h
83 lines (73 loc) · 1.82 KB
/
UIDrawnObjectsTextUI.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#ifndef __DOT_TOP_UIDrawnObjectsTextUI___TOP__
#define __DOT_TOP_UIDrawnObjectsTextUI___TOP__
#include "UItextUImenus.h"
#include <pthread.h>
#include "grali_defines.h"
#include "grali_graph.h"
//#define __dbug_tiers__
#undef __dbug_tiers__
#ifdef __dbug_tiers__
static int enoff = 30;
#endif
pthread_mutex_t dot_list_mtx = PTHREAD_MUTEX_INITIALIZER;
void make_tiers ( int );
#define no_draw(x) x->drawme = false
#ifndef __drawn_object_clients__
#define __drawn_object_clients__
typedef enum drawn_object_clients { grob = 'g', sprite = 's', centered_sprite = 'c', buff = 'b',
scoreboard = 'r', textscreen = 't', ppixies = 'x', structural = 'D',
sequence = 'q', txt_menu = 'm', vector = 'v', label = 'l' ,
xy_label = 'O'
} drawn_ob_client_t;
#endif
typedef struct dot_structural_element{
drawn_object_t *prior_tier;
drawn_object_t *next_tier;
drawn_object_t *prior_place;
drawn_object_t *next_place;
type_tag_t DOType;
name_tag_t DOname;
drawn_ob_client_t object_type;
#ifdef __dbug_tiers__
int tier;
int place;
#endif
}dot_structure_t;
typedef struct drawn_objects{
drawn_object_t *prior_tier;
drawn_object_t *next_tier;
drawn_object_t *prior_place;
drawn_object_t *next_place;
type_tag_t DOType;
name_tag_t DOname;
drawn_ob_client_t object_type;
#ifdef __dbug_tiers__
int tier;
int place;
#endif
bool drawme;
union{
xcb_point_t xy_coord;
struct{
int16_t x;
int16_t y;
};};union{
graliob_t *ob;
gralibuf_t *buf;
particle_pixels_t *partipix;
textscreen_t *tscrn;
vector_lines_t *vec;
xy_label_t *label;
};
union{
sequence_t *seq;
menu_t *menu;
scoreboard_t *scrbrd;
};
int frame_update_count;
int counter_4_frame_update;
bool *drawn_flag;
}drawn_object_t;
dot_structure_t*
structural_dots ( void );
#endif