annotate src/draw.h @ 27:48e708baa7be
added predicate imtk_layout_contains(x, y)
author |
John Tsiombikas <nuclear@member.fsf.org> |
date |
Sat, 12 Dec 2020 17:20:00 +0200 |
parents |
737e9047d9c9 |
children |
|
rev |
line source |
nuclear@6
|
1 #ifndef DRAW_H_
|
nuclear@6
|
2 #define DRAW_H_
|
nuclear@6
|
3
|
nuclear@6
|
4 #ifndef __APPLE__
|
nuclear@6
|
5 #include <GL/glut.h>
|
nuclear@6
|
6 #else
|
nuclear@6
|
7 #include <GLUT/glut.h>
|
nuclear@6
|
8 #endif
|
nuclear@13
|
9 #include "imtk.h"
|
nuclear@6
|
10
|
nuclear@6
|
11 enum {
|
nuclear@6
|
12 FRAME_OUTSET,
|
nuclear@6
|
13 FRAME_INSET
|
nuclear@6
|
14 };
|
nuclear@6
|
15
|
nuclear@14
|
16 void imtk_draw_rect(int x, int y, int w, int h, float *ctop, float *cbot);
|
nuclear@19
|
17 void imtk_draw_frame(int x, int y, int w, int h, int style);
|
nuclear@18
|
18 void imtk_draw_disc(int x, int y, float rad, int subdiv, float *ctop, float *cbot);
|
nuclear@19
|
19 void imtk_draw_disc_frame(int x, int y, float inner, float outer, int subdiv, int style);
|
nuclear@6
|
20 void imtk_draw_string(int x, int y, const char *str);
|
nuclear@6
|
21 int imtk_string_size(const char *str);
|
nuclear@6
|
22
|
nuclear@6
|
23 #endif /* DRAW_H_ */
|