bx-lib : the Basic X11 Library tuned for C beginners
1.0
|
Typedefs | |
typedef enum bx_effect | bx_effect |
typedef enum bx_line_style | bx_line_style |
typedef enum bx_fill_style | bx_fill_style |
typedef enum bx_fill_rule | bx_fill_rule |
typedef enum bx_fill | bx_fill |
typedef enum bx_closure | bx_closure |
Enumerations | |
enum | bx_effect { BX_ZERO = GXclear, BX_A_AND_B = GXand, BX_A_AND_NOT_B = GXandReverse, BX_A = GXcopy, BX_NOT_A_AND_B = GXandInverted, BX_B = GXnoop, BX_A_XOR_B = GXxor, BX_A_OR_B = GXor, BX_A_NOR_B = GXnor, BX_A_EQV_B = GXequiv, BX_NOT_B = GXinvert, BX_A_OR_NOT_B = GXorReverse, BX_NOT_A = GXcopyInverted, BX_NOT_A_OR_B = GXorInverted, BX_A_NAND_B = GXnand, BX_ONE = GXset } |
enum | bx_line_style { BX_SOLID_LINE = LineSolid, BX_DASH2_LINE = LineDoubleDash, BX_DASH_LINE = LineOnOffDash } |
enum | bx_fill_style { BX_SOLID_FILL = FillSolid, BX_TILED_FILL = FillTiled } |
enum | bx_fill_rule { BX_WINDING_RULE = WindingRule, BX_EVEN_ODD_RULE = EvenOddRule } |
enum | bx_fill { BX_NOT_FILLED = 0, BX_FILLED = 1 } |
enum | bx_closure { BX_NOT_CLOSED = 0, BX_CLOSED = 1 } |
Symbolic constants for the special effect fx in function bx_draw_image_fx() and all drawing functions via bx_set_fx(). Each bit of an opaque pixel of the source (noted A) is combined with the corresponding bit of the underlying pixel of the canvas (noted B) via a boolean function F(A,B).
The 4 entries of the truth table (F(0,0),F(0,1),F(1,0),F(1,1)) of this function F correspond to the binary representation (fx3,fx2,fx1,fx0) of the integer fx.
For example, if fx=7, then fx is written (0,1,1,1) in binary, which means F(0,0)=0 and F(A,B)=1 in any other case, that is, F(A,B)= A AND B. This produces a "burn" effect: the bits of the image and the canvas combine into a bitwise AND to produce darker pixels.
Similarily, if fx=1, then fx is written (0,0,0,1) in binary, which means F(1,1)=0 and F(A,B)=0 in any other case, that is, F(A,B)= A OR B. This produces a "glow" effect: the bits of the image and the canvas combine into a bitwise OR to produce lighter pixels.
typedef enum bx_line_style bx_line_style |
The type passed to bx_set_set_line_style() to specify whether contour lines should be drawn plain solid or dashed. Dashed line patterns either alternate between the principal and secondary color (set with bx_set_color() and bx_set_color2()) or alternate between the principal color and no color.
typedef enum bx_fill_style bx_fill_style |
The type passed to bx_set_fill_style() to specify how interiors of shapes are painted when those are filled. Two styles are supported: plain solid fill with the principal color (set with bx_set_color()) or "bathroom tile" style with a repeating pattern described by an image (set with bx_set_tile_image()).
typedef enum bx_fill_rule bx_fill_rule |
The type passed to bx_set_fill_rule() and some interior test functions such as bx_in_polygon(), specifying which rule is used to determine if a point belongs to the interior of self intersecting curve or polygon.
The two available methods both cast an horizontal ray rightwards from the point to be tested.
The type passed to some drawing functions such as bx_draw_box() to specify whether the interior of the shape should be painted or the contour should drawn.
typedef enum bx_closure bx_closure |
The type passed to some drawing functions such as bx_draw_polygon() to specify whether a polygonal or curved shape is to be drawn closed or open.
enum bx_effect |
Symbolic constants for the special effect fx in function bx_draw_image_fx() and all drawing functions via bx_set_fx(). Each bit of an opaque pixel of the source (noted A) is combined with the corresponding bit of the underlying pixel of the canvas (noted B) via a boolean function F(A,B).
The 4 entries of the truth table (F(0,0),F(0,1),F(1,0),F(1,1)) of this function F correspond to the binary representation (fx3,fx2,fx1,fx0) of the integer fx.
For example, if fx=7, then fx is written (0,1,1,1) in binary, which means F(0,0)=0 and F(A,B)=1 in any other case, that is, F(A,B)= A AND B. This produces a "burn" effect: the bits of the image and the canvas combine into a bitwise AND to produce darker pixels.
Similarily, if fx=1, then fx is written (0,0,0,1) in binary, which means F(1,1)=0 and F(A,B)=0 in any other case, that is, F(A,B)= A OR B. This produces a "glow" effect: the bits of the image and the canvas combine into a bitwise OR to produce lighter pixels.
enum bx_line_style |
The type passed to bx_set_set_line_style() to specify whether contour lines should be drawn plain solid or dashed. Dashed line patterns either alternate between the principal and secondary color (set with bx_set_color() and bx_set_color2()) or alternate between the principal color and no color.
enum bx_fill_style |
The type passed to bx_set_fill_style() to specify how interiors of shapes are painted when those are filled. Two styles are supported: plain solid fill with the principal color (set with bx_set_color()) or "bathroom tile" style with a repeating pattern described by an image (set with bx_set_tile_image()).
enum bx_fill_rule |
The type passed to bx_set_fill_rule() and some interior test functions such as bx_in_polygon(), specifying which rule is used to determine if a point belongs to the interior of self intersecting curve or polygon.
The two available methods both cast an horizontal ray rightwards from the point to be tested.
enum bx_fill |
The type passed to some drawing functions such as bx_draw_box() to specify whether the interior of the shape should be painted or the contour should drawn.
enum bx_closure |
The type passed to some drawing functions such as bx_draw_polygon() to specify whether a polygonal or curved shape is to be drawn closed or open.