fltk  1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X.
  Fossies Dox: fltk-1.3.5-source.tar.bz2  ("inofficial" and yet experimental doxygen-generated source code documentation)  

fl_boxtype.cxx File Reference

drawing code for common box types. More...

#include <FL/Fl.H>
#include <FL/Fl_Widget.H>
#include <FL/fl_draw.H>
#include <config.h>
Include dependency graph for fl_boxtype.cxx:

Go to the source code of this file.

Macros

#define D1   BORDER_WIDTH
 
#define D2   (BORDER_WIDTH+BORDER_WIDTH)
 
#define fl_border_box   fl_rectbound
 

Functions

const ucharfl_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_flat_box (int x, int y, int w, int h, Fl_Color c)
 
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)
 

Variables

static const uchar active_ramp [24]
 
static const uchar inactive_ramp [24]
 
static int draw_it_active = 1
 
struct {
   Fl_Box_Draw_F *   f
 
   uchar   dx
 
   uchar   dy
 
   uchar   dw
 
   uchar   dh
 
   int   set
 
fl_box_table [256]
 

Detailed Description

drawing code for common box types.

Definition in file fl_boxtype.cxx.

Macro Definition Documentation

◆ D1

#define D1   BORDER_WIDTH

Definition at line 208 of file fl_boxtype.cxx.

◆ D2

#define D2   (BORDER_WIDTH+BORDER_WIDTH)

Definition at line 209 of file fl_boxtype.cxx.

◆ fl_border_box

#define fl_border_box   fl_rectbound

allow consistent naming

Definition at line 272 of file fl_boxtype.cxx.

Function Documentation

◆ fl_border_frame()

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 277 of file fl_boxtype.cxx.

◆ fl_down_box()

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 232 of file fl_boxtype.cxx.

References D1, D2, fl_down_frame(), fl_rectf(), Fl::set_box_color(), x, and y.

Referenced by Fl::reload_scheme().

◆ fl_down_frame()

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 219 of file fl_boxtype.cxx.

References fl_frame(), fl_frame2(), x, and y.

Referenced by fl_down_box(), and Fl::reload_scheme().

◆ fl_embossed_box()

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 256 of file fl_boxtype.cxx.

References fl_embossed_frame(), fl_rectf(), Fl::set_box_color(), x, and y.

◆ fl_embossed_frame()

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 251 of file fl_boxtype.cxx.

References fl_frame(), x, and y.

Referenced by fl_embossed_box().

◆ fl_engraved_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 244 of file fl_boxtype.cxx.

References fl_engraved_frame(), fl_rectf(), Fl::set_box_color(), x, and y.

◆ fl_engraved_frame()

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 239 of file fl_boxtype.cxx.

References fl_frame(), x, and y.

Referenced by fl_engraved_box().

◆ fl_flat_box()

void fl_flat_box ( int  x,
int  y,
int  w,
int  h,
Fl_Color  c 
)

Draws a box of type FL_FLAT_BOX

Definition at line 167 of file fl_boxtype.cxx.

References Fl::box_color(), fl_rectf(), x, and y.

◆ fl_gray_ramp()

◆ fl_internal_boxtype()

void fl_internal_boxtype ( Fl_Boxtype  t,
Fl_Box_Draw_F f 
)

◆ fl_no_box()

void fl_no_box ( int  ,
int  ,
int  ,
int  ,
Fl_Color   
)

Draws a box of type FL_NO_BOX

Definition at line 164 of file fl_boxtype.cxx.

◆ fl_rectbound()

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 266 of file fl_boxtype.cxx.

References FL_BLACK, fl_rect(), fl_rectf(), Fl::set_box_color(), x, and y.

Referenced by draw_barchart(), and draw_horbarchart().

◆ fl_thin_down_box()

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 177 of file fl_boxtype.cxx.

References fl_rectf(), fl_thin_down_frame(), Fl::set_box_color(), x, and y.

Referenced by Fl::reload_scheme().

◆ fl_thin_down_frame()

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 172 of file fl_boxtype.cxx.

References fl_frame2(), x, and y.

Referenced by fl_thin_down_box(), and Fl::reload_scheme().

◆ fl_thin_up_box()

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 189 of file fl_boxtype.cxx.

References fl_rectf(), fl_thin_up_frame(), Fl::set_box_color(), x, and y.

Referenced by Fl::reload_scheme().

◆ fl_thin_up_frame()

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 184 of file fl_boxtype.cxx.

References fl_frame2(), x, and y.

Referenced by fl_thin_up_box(), and Fl::reload_scheme().

◆ fl_up_box()

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 212 of file fl_boxtype.cxx.

References D1, D2, fl_rectf(), fl_up_frame(), Fl::set_box_color(), x, and y.

Referenced by Fl::reload_scheme().

◆ fl_up_frame()

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 196 of file fl_boxtype.cxx.

References fl_frame(), fl_frame2(), x, and y.

Referenced by fl_up_box(), and Fl::reload_scheme().

Variable Documentation

◆ active_ramp

◆ dh

◆ draw_it_active

int draw_it_active = 1
static

◆ dw

◆ dx

◆ dy

◆ f

Definition at line 285 of file fl_boxtype.cxx.

Referenced by Fl_Shared_Image::add_handler(), Fl_Text_Editor::add_key_binding(), Fl_Graphics_Driver::arc(), cb(), Fl_Graphics_Driver::circle(), Fl_Text_Display::clear_rect(), Fl_Pixmap::color_average(), Fl_RGB_Image::color_average(), Fl_RGB_Image::copy(), Fl_Text_Editor::default_key_function(), Fl_Tooltip::delay(), delete_all(), delete_children(), down_box(), down_frame(), Fl_Light_Button::draw(), CodeViewer::draw(), draw(), Fl_Window::draw(), Fl_Menu_Item::draw(), draw_fileprint(), draw_filesaveas(), Fl_Text_Display::draw_string(), menuwindow::drawentry(), Fl_Input_::drawtext(), earlier_cb(), Fl_Graphics_Driver::end_points(), Fl_Native_File_Chooser::filter(), Fl_File_Chooser::filter_value(), Fluid_Image::find(), find(), fl_access(), fl_add_object(), fl_addto_form(), fl_chmod(), fl_darker(), fl_draw_box(), Fl_Font_Descriptor::Fl_Font_Descriptor(), fl_fopen(), fl_form_is_visible(), fl_free_fonts(), fl_hide_form(), fl_inactive(), fl_internal_boxtype(), fl_lighter(), fl_load_browser(), fl_message_font(), fl_mkdir(), fl_open(), fl_pop_form(), Fl_Progress::Fl_Progress(), fl_raise_form(), fl_redraw_form(), fl_rename(), fl_rmdir(), fl_scale_form(), fl_set_form_callback(), fl_set_form_geometry(), fl_set_form_position(), fl_set_form_size(), fl_set_form_title(), fl_show_form(), fl_stat(), fl_title_form(), fl_unlink(), fl_wait(), Fl_XBM_Image::Fl_XBM_Image(), fl_xft_font(), Fl_XPM_Image::Fl_XPM_Image(), Fl_PostScript_Graphics_Driver::font(), Fl_Xlib_Graphics_Driver::font(), Fl_Spinner::format(), gen_bitlen(), Fl_Help_Font_Style::get(), Fl::get_font_name(), glutDisplayFunc(), glutEntryFunc(), glutKeyboardFunc(), glutMenuStateFunc(), glutMenuStatusFunc(), glutMotionFunc(), glutMouseFunc(), glutOverlayDisplayFunc(), glutPassiveMotionFunc(), glutReshapeFunc(), glutSpecialFunc(), glutTimerFunc(), glutVisibilityFunc(), gtk_down_frame(), gtk_round_down_box(), gtk_round_up_box(), gtk_thin_down_frame(), gtk_thin_up_box(), gtk_thin_up_frame(), gtk_up_box(), Fl_Text_Editor::handle_key(), Fl_Input_::handle_mouse(), Fl_Tooltip::hoverdelay(), Fl_Color_Chooser::hsv2rgb(), Fl_Help_View::hv_draw(), Fl_Image::inactive(), Fl_Help_Font_Stack::init(), Fl_Help_View::initfont(), Fl_Widget::labelfont(), later_cb(), Fl_Graphics_Driver::line(), Fl_Browser::lineno(), Fl_Help_Dialog::load(), Fl_File_Icon::load(), Fl_Help_View::load(), Fl_File_Icon::load_fti(), main(), Fl_Label::measure(), open_read(), open_write(), Fl_GTK_File_Chooser::pair::pair(), Fl_Graphics_Driver::pie(), png_colormap_compose(), Fl_Help_Font_Stack::pop(), Fl_Help_View::popfont(), Fl_Image_Surface::prepare_(), Fl_Native_File_Chooser::preset_file(), Fl_Help_Font_Stack::push(), Fl_Help_View::pushfont(), put_font_size(), Fl_Preferences::RootNode::read(), Fl_Widget_Type::read_property(), Fl_Graphics_Driver::rect(), Fl_Shared_Image::remove_handler(), Fl_Help_Font_Style::set(), Fl::set_abort(), Fl::set_atclose(), Fl::set_boxtype(), Fl::set_font(), Fl::set_labeltype(), shade_color(), show_help(), sort(), Fl_Free::step(), Fl_File_Chooser::textfont(), Fl_Spinner::textfont(), Fl_Input_Choice::textfont(), Fl_Help_View::textfont(), Fl_Browser_Type::textstuff(), Fl_Check_Browser_Type::textstuff(), Fl_File_Browser_Type::textstuff(), Fl_Counter_Type::textstuff(), Fl_Spinner_Type::textstuff(), Fl_Input_Type::textstuff(), Fl_File_Input_Type::textstuff(), Fl_Text_Display_Type::textstuff(), Fl_Text_Editor_Type::textstuff(), Fl_Menu_Type::textstuff(), Fl_Input_Choice_Type::textstuff(), Fl_Value_Input_Type::textstuff(), Fl_Value_Output_Type::textstuff(), Fl_Value_Slider_Type::textstuff(), thin_down_box(), thin_up_box(), Fl_Help_Font_Stack::top(), up_box(), Fl_Input_::up_down_position(), up_frame(), Fl_Help_Dialog::value(), Fl_File_Chooser::value(), widget_size_cb(), Fl_Preferences::Node::write(), Fl_Preferences::RootNode::write(), 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().

◆ fl_box_table

◆ inactive_ramp

const uchar inactive_ramp[24]
static
Initial value:
= {
43, 43, 44, 44,
44, 45, 45, 46,
46, 46, 47, 47,
48, 48, 48, 49,
49, 49, 50, 50,
51, 51, 52, 52}

Definition at line 42 of file fl_boxtype.cxx.

Referenced by fl_gray_ramp().

◆ set

FL_GRAY_RAMP
#define FL_GRAY_RAMP
Definition: Enumerations.H:976