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_rounded_box.cxx File Reference
#include <FL/Fl.H>
#include <FL/fl_draw.H>
Include dependency graph for fl_rounded_box.cxx:

Go to the source code of this file.

Macros

#define RN   5
 
#define RS   15
 
#define BW   3
 

Functions

static void fl_vertex_r (double x, double y)
 
static void rbox (int fill, int x, int y, int w, int h)
 
static void fl_rflat_box (int x, int y, int w, int h, Fl_Color c)
 
static void fl_rounded_frame (int x, int y, int w, int h, Fl_Color c)
 
static void fl_rounded_box (int x, int y, int w, int h, Fl_Color c)
 
static void fl_rshadow_box (int x, int y, int w, int h, Fl_Color c)
 
void fl_internal_boxtype (Fl_Boxtype, Fl_Box_Draw_F *)
 
Fl_Boxtype fl_define_FL_ROUNDED_BOX ()
 
Fl_Boxtype fl_define_FL_RFLAT_BOX ()
 
Fl_Boxtype fl_define_FL_RSHADOW_BOX ()
 

Variables

static double offset [5] = { 0.0, 0.07612, 0.29289, 0.61732, 1.0}
 

Macro Definition Documentation

◆ BW

#define BW   3

Definition at line 30 of file fl_rounded_box.cxx.

◆ RN

#define RN   5

Definition at line 28 of file fl_rounded_box.cxx.

◆ RS

#define RS   15

Definition at line 29 of file fl_rounded_box.cxx.

Function Documentation

◆ fl_define_FL_RFLAT_BOX()

Fl_Boxtype fl_define_FL_RFLAT_BOX ( )

Definition at line 92 of file fl_rounded_box.cxx.

References _FL_RFLAT_BOX, fl_internal_boxtype(), and fl_rflat_box().

◆ fl_define_FL_ROUNDED_BOX()

Fl_Boxtype fl_define_FL_ROUNDED_BOX ( )

◆ fl_define_FL_RSHADOW_BOX()

Fl_Boxtype fl_define_FL_RSHADOW_BOX ( )

Definition at line 97 of file fl_rounded_box.cxx.

References _FL_RSHADOW_BOX, fl_internal_boxtype(), and fl_rshadow_box().

◆ fl_internal_boxtype()

void fl_internal_boxtype ( Fl_Boxtype  t,
Fl_Box_Draw_F f 
)

Sets the drawing function for a given box type.

Parameters
[in]tbox type
[in]fbox drawing function

Definition at line 404 of file fl_boxtype.cxx.

Referenced by fl_define_FL_RFLAT_BOX(), fl_define_FL_ROUNDED_BOX(), and fl_define_FL_RSHADOW_BOX().

◆ fl_rflat_box()

static void fl_rflat_box ( int  x,
int  y,
int  w,
int  h,
Fl_Color  c 
)
static

Definition at line 59 of file fl_rounded_box.cxx.

References rbox(), Fl::set_box_color(), x, and y.

Referenced by fl_define_FL_RFLAT_BOX().

◆ fl_rounded_box()

static void fl_rounded_box ( int  x,
int  y,
int  w,
int  h,
Fl_Color  c 
)
static

Definition at line 69 of file fl_rounded_box.cxx.

References FL_BLACK, fl_color(), rbox(), Fl::set_box_color(), x, and y.

Referenced by fl_define_FL_ROUNDED_BOX(), and fl_rshadow_box().

◆ fl_rounded_frame()

static void fl_rounded_frame ( int  x,
int  y,
int  w,
int  h,
Fl_Color  c 
)
static

Definition at line 64 of file fl_rounded_box.cxx.

References rbox(), Fl::set_box_color(), x, and y.

Referenced by fl_define_FL_ROUNDED_BOX().

◆ fl_rshadow_box()

static void fl_rshadow_box ( int  x,
int  y,
int  w,
int  h,
Fl_Color  c 
)
static

Definition at line 75 of file fl_rounded_box.cxx.

References BW, fl_color(), FL_DARK3, fl_rounded_box(), rbox(), x, and y.

Referenced by fl_define_FL_RSHADOW_BOX().

◆ fl_vertex_r()

static void fl_vertex_r ( double  x,
double  y 
)
inlinestatic

Definition at line 34 of file fl_rounded_box.cxx.

References fl_vertex(), x, and y.

Referenced by rbox().

◆ rbox()

static void rbox ( int  fill,
int  x,
int  y,
int  w,
int  h 
)
static

Variable Documentation

◆ offset