bx-lib : the Basic X11 Library tuned for C beginners
1.0
|
Functions | |
int | bx_canvas_x (bx_window win) |
int | bx_canvas_y (bx_window win) |
unsigned | bx_canvas_width (bx_window win) |
unsigned | bx_canvas_height (bx_window win) |
void | bx_clear_canvas (bx_window win, bx_color color) |
void | bx_update_canvas (bx_window win) |
void | bx_swap_canvas (bx_window win, unsigned long millisecs) |
void | bx_show_canvas (bx_window win, unsigned long millisecs) |
int bx_canvas_x | ( | bx_window | win | ) |
gets the x-coordinate of the location of the top-left corner of the canvas inside its window.
win | the window whose canvas location is queried |
int bx_canvas_y | ( | bx_window | win | ) |
gets the y-coordinate of the location of the top-left corner of the canvas inside its window.
win | the window whose canvas location is queried |
unsigned bx_canvas_width | ( | bx_window | win | ) |
gets the width of the canvas of a window.
win | the window whose canvas size is queried |
unsigned bx_canvas_height | ( | bx_window | win | ) |
gets the height of the canvas of a window.
win | the window whose canvas size is queried |
erases the canvas of a window and fills it with a background color.
win | the window whose canvas should be erased |
color | the background color used to fill the canvas |
void bx_update_canvas | ( | bx_window | win | ) |
redraw the front buffer of the canvas of a window.
win | the window whose canvas should be redrawn. |
void bx_swap_canvas | ( | bx_window | win, |
unsigned long | millisecs | ||
) |
swaps the back buffer and front buffers of the canvas of a window, therefore showing all previous drawing operations.
win | the window whose canvas buffers should be swapped. |
void bx_show_canvas | ( | bx_window | win, |
unsigned long | millisecs | ||
) |
copy the back buffer of a canvas to its front buffer, therefore showing all previous drawing operations.
win | the window whose back canvas buffer should be shown. |