FLTK 1.4.0
|
Drawing code for common box types. More...
Macros | |
#define | D1 BORDER_WIDTH |
#define | D2 (BORDER_WIDTH+BORDER_WIDTH) |
#define | fl_border_box fl_rectbound |
allow consistent naming | |
Functions | |
void | fl_border_frame (int x, int y, int w, int h, Fl_Color c) |
Draws a frame of type FL_BORDER_FRAME. | |
void | fl_down_box (int x, int y, int w, int h, Fl_Color c) |
Draws a box of type FL_DOWN_BOX. | |
void | fl_down_frame (int x, int y, int w, int h, Fl_Color) |
Draws a frame of type FL_DOWN_FRAME. | |
void | fl_draw_box (Fl_Boxtype t, int x, int y, int w, int h, Fl_Color c) |
Draws a box using given type, position, size and color. More... | |
void | fl_draw_box_focus (Fl_Boxtype bt, int x, int y, int w, int h, Fl_Color fg, Fl_Color bg) |
Draws the focus rectangle inside a box using given type, position, size and color. More... | |
void | fl_embossed_box (int x, int y, int w, int h, Fl_Color c) |
Draws a box of type FL_EMBOSSED_BOX. | |
void | fl_embossed_frame (int x, int y, int w, int h, Fl_Color) |
Draws a frame of type FL_EMBOSSED_FRAME. | |
void | fl_engraved_box (int x, int y, int w, int h, Fl_Color c) |
Draws a box of type FL_ENGRAVED_BOX. | |
void | fl_engraved_frame (int x, int y, int w, int h, Fl_Color) |
Draws a frame of type FL_ENGRAVED_FRAME. | |
void | fl_flat_box (int x, int y, int w, int h, Fl_Color c) |
Draws a box of type FL_FLAT_BOX. | |
void | fl_frame (const char *s, int x, int y, int w, int h) |
Draws a series of line segments around the given box. More... | |
void | fl_frame2 (const char *s, int x, int y, int w, int h) |
Draws a series of line segments around the given box. More... | |
const uchar * | fl_gray_ramp () |
void | fl_internal_boxtype (Fl_Boxtype t, Fl_Box_Draw_F *f, Fl_Box_Draw_Focus_F *ff) |
Sets the drawing function for a given box type. More... | |
void | fl_no_box (int, int, int, int, Fl_Color) |
Draws a box of type FL_NO_BOX. | |
void | fl_rectbound (int x, int y, int w, int h, Fl_Color bgcolor) |
Draws a bounded rectangle with a given position, size and color. More... | |
void | fl_thin_down_box (int x, int y, int w, int h, Fl_Color c) |
Draws a box of type FL_THIN_DOWN_BOX. | |
void | fl_thin_down_frame (int x, int y, int w, int h, Fl_Color) |
Draws a frame of type FL_THIN_DOWN_FRAME. | |
void | fl_thin_up_box (int x, int y, int w, int h, Fl_Color c) |
Draws a box of type FL_THIN_UP_BOX. | |
void | fl_thin_up_frame (int x, int y, int w, int h, Fl_Color) |
Draws a frame of type FL_THIN_UP_FRAME. | |
void | fl_up_box (int x, int y, int w, int h, Fl_Color c) |
Draws a box of type FL_UP_BOX. | |
void | fl_up_frame (int x, int y, int w, int h, Fl_Color) |
Draws a frame of type FL_UP_FRAME. | |
Drawing code for common box types.
void fl_internal_boxtype | ( | Fl_Boxtype | t, |
Fl_Box_Draw_F * | f, | ||
Fl_Box_Draw_Focus_F * | ff | ||
) |
Sets the drawing function for a given box type.
[in] | t | box type |
[in] | f | box drawing function |
[in] | ff | optional box focus rectangle drawing function |
void fl_rectbound | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
Fl_Color | bgcolor | ||
) |
Draws a bounded rectangle with a given position, size and color.
Equivalent to drawing a box of type FL_BORDER_BOX.