bx-lib : the Basic X11 Library tuned for C beginners
1.0
|
Functions | |
void | bx_set_line_style (bx_line_style line_style) |
void | bx_set_color (bx_color color) |
void | bx_set_color2 (bx_color color) |
void | bx_set_rgb (unsigned char r, unsigned char g, unsigned char b) |
void | bx_set_rgb2 (unsigned char r, unsigned char g, unsigned char b) |
void | bx_set_line_width (unsigned int size) |
void | bx_set_fill_style (bx_fill_style fill_style) |
void | bx_set_tile_image (bx_image image) |
void | bx_set_tile_origin (int x, int y) |
void | bx_set_fill_rule (bx_fill_rule fill_rule) |
void | bx_set_effect (bx_effect fx) |
void bx_set_line_style | ( | bx_line_style | line_style | ) |
Sets the line style used to draw contours of shapes (solid lines, doubly dashed lines, or dashed lines).
line_style | the line style to activate. |
void bx_set_color | ( | bx_color | color | ) |
Sets the principal color used by the pen for all drawing functions.
color | the new color used by the pen. |
void bx_set_color2 | ( | bx_color | color | ) |
Sets the secondary color used by the pen for all drawing functions. The secondary color is used for doubly dashed lines.
color | the new color used by the pen. |
void bx_set_rgb | ( | unsigned char | r, |
unsigned char | g, | ||
unsigned char | b | ||
) |
Sets the principal color of the pen for all drawing functions, directly from a RGB triplet. If you do not reuse this color later, you may want to use this function instead of bx_set_color(). This is just equivalent to bx_set_color (bx_rgb_to_color (r,g,b));
r,g,b | the red, green, blue channel of the color. |
void bx_set_rgb2 | ( | unsigned char | r, |
unsigned char | g, | ||
unsigned char | b | ||
) |
Sets the secondary color of the pen for all drawing functions, directly from a RGB triplet. If you do not reuse this color later, you may want to use this function instead of bx_set_color(). This is just equivalent to bx_set_color2 (bx_rgb_to_color (r,g,b));
r,g,b | the red, green, blue channel of the color. |
void bx_set_line_width | ( | unsigned int | size | ) |
Sets the line width of the pen for drawing functions like bx_draw_line (), bx_draw_circle ()...
size | the new width of the pen |
void bx_set_fill_style | ( | bx_fill_style | fill_style | ) |
Sets the fill style used to paint the interior of shapes. Two styles are supported : plain solid fill style and "bathroom tile" style using an image as a repeating motif.
fill_style | the fill style to set as active |
void bx_set_tile_image | ( | bx_image | image | ) |
Sets the repeating "bathroom tile" pattern to use for filling shapes if bx_set_fill_style() was called with BX_TILED_FILL.
the | image to use as a repeating pattern |
void bx_set_tile_origin | ( | int | x, |
int | y | ||
) |
Shifts the locations of repeating "bathroom tile" patterns used for filling shapes if bx_set_fill_style() was called with BX_TILED_FILL.
x | x-coordinate of the top-left-corner of the starting tile |
y | y-coordinate of the top-left-corner of the starting tile |
void bx_set_fill_rule | ( | bx_fill_rule | fill_rule | ) |
Sets how a self-intersecting polygon should be filled. Two rules are possible: The winding rule and the odd-even rule.
fill_rule | the rule to apply for next drawing functions |
void bx_set_effect | ( | bx_effect | fx | ) |
Sets a special effect selected among 16 for all drawing functions with the notable exception of bx_draw_image().
fx | the special effect to apply, in the range from 0 to 15. |