|
fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |
drawing code for common box types. More...
#include <FL/Fl.H>#include <FL/Fl_Widget.H>#include <FL/fl_draw.H>#include <config.h>
Go to the source code of this file.
Defines | |
| #define | D1 BORDER_WIDTH |
| #define | D2 (BORDER_WIDTH+BORDER_WIDTH) |
| #define | fl_border_box fl_rectbound |
Functions | |
| uchar * | fl_gray_ramp () |
| void | fl_frame (const char *s, int x, int y, int w, int h) |
| void | fl_frame2 (const char *s, int x, int y, int w, int h) |
| void | fl_no_box (int, int, int, int, Fl_Color) |
| void | fl_thin_down_frame (int x, int y, int w, int h, Fl_Color) |
| void | fl_thin_down_box (int x, int y, int w, int h, Fl_Color c) |
| void | fl_thin_up_frame (int x, int y, int w, int h, Fl_Color) |
| void | fl_thin_up_box (int x, int y, int w, int h, Fl_Color c) |
| void | fl_up_frame (int x, int y, int w, int h, Fl_Color) |
| void | fl_up_box (int x, int y, int w, int h, Fl_Color c) |
| void | fl_down_frame (int x, int y, int w, int h, Fl_Color) |
| void | fl_down_box (int x, int y, int w, int h, Fl_Color c) |
| void | fl_engraved_frame (int x, int y, int w, int h, Fl_Color) |
| void | fl_engraved_box (int x, int y, int w, int h, Fl_Color c) |
| void | fl_embossed_frame (int x, int y, int w, int h, Fl_Color) |
| void | fl_embossed_box (int x, int y, int w, int h, Fl_Color c) |
| void | fl_rectbound (int x, int y, int w, int h, Fl_Color bgcolor) |
| void | fl_border_frame (int x, int y, int w, int h, Fl_Color c) |
| void | fl_internal_boxtype (Fl_Boxtype t, Fl_Box_Draw_F *f) |
| void | fl_draw_box (Fl_Boxtype t, int x, int y, int w, int h, Fl_Color c) |
drawing code for common box types.
Definition in file fl_boxtype.cxx.
| #define D1 BORDER_WIDTH |
Definition at line 176 of file fl_boxtype.cxx.
Referenced by fl_down_box(), and fl_up_box().
| #define D2 (BORDER_WIDTH+BORDER_WIDTH) |
Definition at line 177 of file fl_boxtype.cxx.
Referenced by fl_down_box(), and fl_up_box().
| #define fl_border_box fl_rectbound |
allow consistent naming
Definition at line 239 of file fl_boxtype.cxx.
| void fl_border_frame | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | c | ||
| ) |
Draws a frame of type FL_BORDER_FRAME.
Definition at line 244 of file fl_boxtype.cxx.
| void fl_down_box | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | c | ||
| ) |
Draws a box of type FL_DOWN_BOX
Definition at line 200 of file fl_boxtype.cxx.
References D1, D2, fl_color(), fl_down_frame(), and fl_rectf().
Referenced by Fl::reload_scheme().
| void fl_down_frame | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | |||
| ) |
Draws a frame of type FL_DOWN_FRAME
Definition at line 187 of file fl_boxtype.cxx.
References fl_frame(), and fl_frame2().
Referenced by fl_down_box(), and Fl::reload_scheme().
| void fl_embossed_box | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | c | ||
| ) |
Draws a box of type FL_EMBOSSED_BOX
Definition at line 223 of file fl_boxtype.cxx.
References fl_color(), fl_embossed_frame(), fl_inactive(), and fl_rectf().
| void fl_embossed_frame | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | |||
| ) |
Draws a frame of type FL_EMBOSSED_FRAME
Definition at line 218 of file fl_boxtype.cxx.
References fl_frame().
Referenced by fl_embossed_box().
| void fl_engraved_box | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | c | ||
| ) |
Draws a box of type FL_ENGRAVED_BOX
Definition at line 211 of file fl_boxtype.cxx.
References fl_color(), fl_engraved_frame(), fl_inactive(), and fl_rectf().
| void fl_engraved_frame | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | |||
| ) |
Draws a frame of type FL_ENGRAVED_FRAME
Definition at line 206 of file fl_boxtype.cxx.
References fl_frame().
Referenced by fl_engraved_box().
| uchar* fl_gray_ramp | ( | ) |
Definition at line 66 of file fl_boxtype.cxx.
| void fl_internal_boxtype | ( | Fl_Boxtype | t, |
| Fl_Box_Draw_F * | f | ||
| ) |
Sets the drawing function for a given box type.
| [in] | t | box type |
| [in] | f | box drawing function |
Definition at line 363 of file fl_boxtype.cxx.
References f.
Referenced by fl_define_FL_DIAMOND_BOX(), fl_define_FL_GTK_UP_BOX(), fl_define_FL_OVAL_BOX(), fl_define_FL_PLASTIC_UP_BOX(), fl_define_FL_RFLAT_BOX(), fl_define_FL_ROUND_UP_BOX(), fl_define_FL_ROUNDED_BOX(), fl_define_FL_RSHADOW_BOX(), and fl_define_FL_SHADOW_BOX().
| void fl_no_box | ( | int | , |
| int | , | ||
| int | , | ||
| int | , | ||
| Fl_Color | |||
| ) |
Draws a box of type FL_NO_BOX
Definition at line 137 of file fl_boxtype.cxx.
| 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.
Definition at line 233 of file fl_boxtype.cxx.
References FL_BLACK, fl_color(), fl_inactive(), fl_rect(), and fl_rectf().
| 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
Definition at line 145 of file fl_boxtype.cxx.
References fl_color(), fl_inactive(), fl_rectf(), and fl_thin_down_frame().
Referenced by Fl::reload_scheme().
| void fl_thin_down_frame | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | |||
| ) |
Draws a frame of type FL_THIN_DOWN_FRAME
Definition at line 140 of file fl_boxtype.cxx.
References fl_frame2().
Referenced by fl_thin_down_box(), and Fl::reload_scheme().
| 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
Definition at line 157 of file fl_boxtype.cxx.
References fl_color(), fl_inactive(), fl_rectf(), and fl_thin_up_frame().
Referenced by Fl::reload_scheme().
| void fl_thin_up_frame | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | |||
| ) |
Draws a frame of type FL_THIN_UP_FRAME
Definition at line 152 of file fl_boxtype.cxx.
References fl_frame2().
Referenced by fl_thin_up_box(), and Fl::reload_scheme().
| void fl_up_box | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | c | ||
| ) |
Draws a box of type FL_UP_BOX
Definition at line 180 of file fl_boxtype.cxx.
References D1, D2, fl_color(), fl_inactive(), fl_rectf(), and fl_up_frame().
Referenced by Fl::reload_scheme().
| void fl_up_frame | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h, | ||
| Fl_Color | |||
| ) |
Draws a frame of type FL_UP_FRAME
Definition at line 164 of file fl_boxtype.cxx.
References fl_frame(), and fl_frame2().
Referenced by fl_up_box(), and Fl::reload_scheme().
Definition at line 253 of file fl_boxtype.cxx.
Referenced by Fl_RGB_Image::copy(), fl_text_extents(), Fl_Browser::icon(), Fl_Tile::resize(), Fl_Scroll::resize(), Fl_Group::resize(), and Fl_Window::size_range().
Definition at line 253 of file fl_boxtype.cxx.
Referenced by fl_draw_pixmap(), Fl_Tile::resize(), Fl_Scroll::resize(), Fl_Group::resize(), and Fl_Window::size_range().
Definition at line 253 of file fl_boxtype.cxx.
Referenced by Fl_Pixmap::copy(), Fl_RGB_Image::copy(), Fl_Bitmap::copy(), Fl_Window::draw(), Fl_Light_Button::draw(), Fl_Choice::draw(), Fl_Adjuster::draw(), Fl_X::fake_X_wm(), fl_read_image(), fl_scroll(), Fl_Menu_Item::pulldown(), Fl_Tile::resize(), Fl_Scroll::resize(), Fl_Group::resize(), and Fl_Scroll::scroll_to().
Definition at line 253 of file fl_boxtype.cxx.
Referenced by Fl_Pixmap::copy(), Fl_RGB_Image::copy(), Fl_Bitmap::copy(), Fl_Window::draw(), Fl_Light_Button::draw(), Fl_Choice::draw(), Fl_Browser_::draw(), Fl_Adjuster::draw(), Fl_X::fake_X_wm(), fl_read_image(), fl_scroll(), menuwindow::menuwindow(), Fl_Menu_Item::pulldown(), Fl_Tile::resize(), Fl_Scroll::resize(), Fl_Group::resize(), and Fl_Scroll::scroll_to().
Definition at line 252 of file fl_boxtype.cxx.
Referenced by Fl_Shared_Image::add_handler(), Fl_Graphics_Driver::arc(), Fl_Graphics_Driver::circle(), Fl_Text_Display::clear_rect(), Fl_Pixmap::color_average(), Fl_RGB_Image::color_average(), Fl_Text_Editor::default_key_function(), Fl_Tooltip::delay(), delete_all(), Fl_Window::draw(), Fl_Menu_Item::draw(), Fl_Light_Button::draw(), Fl_Text_Display::draw_string(), Fl_Input_::drawtext(), earlier_cb(), Fl_Graphics_Driver::end_points(), Fluid_Image::find(), fl_darker(), fl_draw_box(), fl_font(), Fl_Font_Descriptor::Fl_Font_Descriptor(), fl_free_fonts(), fl_inactive(), fl_internal_boxtype(), fl_lighter(), fl_message_font(), Fl_Progress::Fl_Progress(), fl_wait(), Fl_XBM_Image::Fl_XBM_Image(), Fl_XPM_Image::Fl_XPM_Image(), Fl_PostScript_Graphics_Driver::font(), Fl_Xlib_Graphics_Driver::font(), Fl_Spinner::format(), gen_bitlen(), Fl::get_font_name(), glutDisplayFunc(), glutEntryFunc(), glutKeyboardFunc(), glutMenuStateFunc(), glutMenuStatusFunc(), glutMotionFunc(), glutMouseFunc(), glutOverlayDisplayFunc(), glutPassiveMotionFunc(), glutReshapeFunc(), glutSpecialFunc(), glutTimerFunc(), glutVisibilityFunc(), gtk_round_down_box(), gtk_round_up_box(), Fl_Text_Editor::handle_key(), Fl_Input_::handle_mouse(), DataReady::HandleData(), Fl_Tooltip::hoverdelay(), Fl_Color_Chooser::hsv2rgb(), Fl_Image::inactive(), Fl_Widget::labelfont(), later_cb(), Fl_Graphics_Driver::line(), Fl_Browser::lineno(), Fl_File_Icon::load_fti(), main(), Fl_Label::measure(), open_read(), open_write(), Fl_Graphics_Driver::pie(), Fl_Graphics_Driver::point(), Fl_Widget_Type::read_property(), Fl_Graphics_Driver::rect(), Fl_Graphics_Driver::rectf(), Fl::set_abort(), Fl::set_atclose(), Fl::set_boxtype(), Fl::set_font(), Fl::set_labeltype(), shade_color(), Fl_Window::size_range(), sort(), Fl_Help_View::textfont(), Fl_Input_::up_down_position(), widget_size_cb(), write_code(), Fl_Data_Type::write_code1(), Fl_Widget_Type::write_properties(), Fluid_Image::write_static(), Fl_Widget_Type::write_widget_code(), Fl_Graphics_Driver::xyline(), and Fl_Graphics_Driver::yxline().
| int set |
Definition at line 254 of file fl_boxtype.cxx.