16 #endif // !NO_GRAPHICS
60 void event_loop (
void (*act_on_mousebutton) (
float x,
float y),
61 void (*act_on_mousemove) (
float x,
float y),
62 void (*act_on_keypress) (
char key_pressed),
69 void init_graphics (
const char *window_name,
int cindex_background);
78 void init_world (
float xl,
float yt,
float xr,
float yb);
93 void create_button (
const char *prev_button_text ,
const char *button_text,
94 void (*button_func) (
void (*
drawscreen) (
void)));
152 void drawline (
float x1,
float y1,
float x2,
float y2);
157 void drawrect (
float x1,
float y1,
float x2,
float y2);
160 void fillrect (
float x1,
float y1,
float x2,
float y2);
170 void drawarc (
float xcen,
float ycen,
float rad,
float startang,
172 void fillarc (
float xcen,
float ycen,
float rad,
float startang,
174 void drawellipticarc (
float xc,
float yc,
float radx,
float rady,
float startang,
float angextent);
175 void fillellipticarc (
float xc,
float yc,
float radx,
float rady,
float startang,
float angextent);
183 void drawtext (
float xc,
float yc,
const char *text,
float boundx);
227 void drawtobuffer(
void);
228 void drawtoscreen(
void);
229 void displaybuffer(
void);
230 void drawcurve(
t_point *points,
int npoints);
231 void fillcurve(
t_point *points,
int npoints);
232 void object_start(
int all);
234 int pt_on_object(
int all,
float x,
float y);
235 int findfontsize(
float ymax);
void enable_or_disable_button(int ibutton, bool enabled)
void create_button(const char *prev_button_text, const char *button_text, void(*button_func)(void(*drawscreen)(void)))
void destroy_button(const char *button_text)
int init_postscript(const char *fname)
void drawellipticarc(float xc, float yc, float radx, float rady, float startang, float angextent)
void report_structure(t_report *)
void drawtext(float xc, float yc, const char *text, float boundx)
void fillellipticarc(float xc, float yc, float radx, float rady, float startang, float angextent)
void change_button_text(const char *button_text, const char *new_button_text)
void fillrect(float x1, float y1, float x2, float y2)
void set_mouse_move_input(bool turn_on)
void set_draw_mode(enum e_draw_mode draw_mode)
void init_graphics(const char *window_name, int cindex_background)
void set_keypress_input(bool turn_on)
static void drawscreen(void)
void close_postscript(void)
void fillarc(float xcen, float ycen, float rad, float startang, float angextent)
void setcolor(int cindex)
void drawline(float x1, float y1, float x2, float y2)
void update_message(const char *msg)
void fillpoly(t_point *points, int npoints)
void init_world(float xl, float yt, float xr, float yb)
void close_graphics(void)
void event_loop(void(*act_on_mousebutton)(float x, float y), void(*act_on_mousemove)(float x, float y), void(*act_on_keypress)(char key_pressed), void(*drawscreen)(void))
void drawarc(float xcen, float ycen, float rad, float startang, float angextent)
void setfontsize(int pointsize)
void setlinestyle(int linestyle)
void drawrect(float x1, float y1, float x2, float y2)
void setlinewidth(int linewidth)