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) 
|
Go to the documentation of this file. 33 #include "../src/flstring.h" 58 {
"Normal",0,0,(
void*)0},
70 virtual const char *
type_name() {
return "Fl_Button";}
88 if (
o->
w()/3 < W) W =
o->
w()/3;
91 virtual const char *
type_name() {
return "Fl_Return_Button";}
105 virtual const char *
type_name() {
return "Fl_Repeat_Button";}
123 virtual const char *
type_name() {
return "Fl_Light_Button";}
141 virtual const char *
type_name() {
return "Fl_Check_Button";}
159 virtual const char *
type_name() {
return "Fl_Round_Button";}
206 for (
int i = 1; i <= 20; i++) {
207 sprintf(
buffer,
"Browser Line %d",i);
246 virtual const char *
type_name() {
return "Fl_Check_Browser";}
254 for (
int i = 1; i <= 20; i++) {
255 sprintf(
buffer,
"Browser Line %d",i);
321 virtual const char *
type_name() {
return "Fl_File_Browser";}
454 myo->
value(
"Text Input");
499 virtual const char *
type_name() {
return "Fl_File_Input";}
504 myo->
value(
"/now/is/the/time/for/a/filename.ext");
542 virtual const char *
type_name() {
return "Fl_Text_Display";}
584 virtual const char *
type_name() {
return "Fl_Text_Editor";}
639 virtual const char *
type_name() {
return "Fl_Help_View";}
644 myo->
value(
"<HTML><BODY><H1>Fl_Help_View Widget</H1>" 645 "<P>This is a Fl_Help_View widget.</P></BODY></HTML>");
688 {
"Dot",0,0,(
void*)0},
709 {
"Vertical",0,0,(
void*)0},
757 virtual const char *
type_name() {
return "Fl_Scrollbar";}
790 myo->
value(
"Text Output");
813 virtual const char *
type_name() {
return "Fl_Value_Input";}
854 virtual const char *
type_name() {
return "Fl_Value_Output";}
885 virtual const char *
type_name() {
return "Fl_Value_Slider";}
958 if (!strcmp(wt->
type_name(),
"Fl_Menu_Bar")) {
1053 char *t1 =
new char[strlen(txt)+6];
1065 else if (txt!=mi->
text)
1078 if (!strncmp(n,
"Fl_",3)) n += 3;
1079 if (!strncmp(n,
"fltk::",6)) n += 6;
1151 {
"DARKTOMATO", 113},
1178 {
"INVALID_STYLE", 255},
1197 {
"MEDIUM_SIZE", 18},
1204 {
"MEDIUM_FONT", 18},
1207 {
"NORMAL_FONT1", 11},
1209 {
"DEFAULT_FONT", 11},
1210 {
"RETURN_END_CHANGED", 0},
1211 {
"RETURN_CHANGED", 1},
1213 {
"RETURN_ALWAYS", 3},
1235 for (
int i=0; i < int(
sizeof(
table)/
sizeof(*
table)); i++)
1237 if (numberok && ((v = atoi(
name)) || !strcmp(
name,
"0")))
return 1;
class Fl_Widget_Class_Type Fl_Widget_Class_type
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
static Fl_Round_Button_Type Fl_Round_Button_type
virtual const char * alt_type_name()
void fl_font(Fl_Font face, Fl_Fontsize fsize)
FL_EXPORT double fl_width(const char *txt)
Fl_Widget * widget(int x, int y, int w, int h)
const Fl_Align FL_ALIGN_LEFT
Fl_Widget * widget(int x, int y, int w, int h)
Fl_Menu_Item * subtypes()
Fl_Type * Fl_Type_make(const char *tn)
static Fl_Clock_Type Fl_Clock_type
void select_only(Fl_Type *)
virtual const char * type_name()
class Fl_Window_Type Fl_Window_type
Fl_Fontsize textsize() const
virtual const char * alt_type_name()
const Fl_Font FL_ITALIC
add this to helvetica, courier, or times
virtual const char * alt_type_name()
const Fl_Color FL_INACTIVE_COLOR
the inactive foreground color
virtual const char * alt_type_name()
Base class for image caching and drawing.
draws edges as though the text is raised
static Fl_Button_Type Fl_Button_type
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
static Fl_Check_Button_Type Fl_Check_Button_type
static void make_iconlabel(Fl_Menu_Item *mi, Fl_Image *ic, const char *txt)
This widget provides a round analog clock display.
int is_text_display() const
virtual const char * type_name()
static Fl_Progress_Type Fl_Progress_type
virtual const char * type_name()
virtual const char * alt_type_name()
static Fl_Menu_Item browser_type_menu[]
Fl_Color textcolor() const
static Fl_Spinner_Type Fl_Spinner_type
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
static Fl_Browser_Type Fl_Browser_type
Fl_Widget * widget(int x, int y, int w, int h)
const Fl_Font FL_TIMES
Times roman.
virtual const char * type_name()
virtual const char * type_name()
static Fl_Box_Type Fl_Box_type
virtual void ideal_size(int &w, int &h)
virtual const char * alt_type_name()
virtual const char * alt_type_name()
virtual int is_widget() const
#define FL_VERT_NICE_SLIDER
Fl_Menu_Item * subtypes()
Fl_Widget * widget(int x, int y, int w, int h)
static Fl_Menu_Item dial_type_menu[]
const Fl_Font FL_COURIER
Courier normal.
virtual void ideal_size(int &w, int &h)
static Fl_Menu_Item roller_type_menu[]
Fl_Color textcolor() const
Fl_Widget * widget(int x, int y, int w, int h)
class Fl_Data_Type Fl_Data_type
virtual void ideal_size(int &w, int &h)
Fl_Color textcolor() const
static Fl_Value_Input_Type Fl_Value_Input_type
#define FL_HOR_NICE_SLIDER
virtual const char * alt_type_name()
static Fl_Roller_Type Fl_Roller_type
class Fl_Table_Type Fl_Table_type
Fl_Fontsize textsize() const
Fl_Widget * widget(int x, int y, int w, int h)
static Fl_Output_Type Fl_Output_type
Fl_Fontsize textsize() const
static Fl_Light_Button_Type Fl_Light_Button_type
virtual const char * alt_type_name()
static int box_dh(Fl_Boxtype)
Fl_Fontsize textsize() const
#define FL_HORIZONTAL
The valuator can work horizontally.
Fl_Fontsize textsize() const
This file contains the definitions of the Fl_Tree class.
virtual const char * alt_type_name()
Fl_Widget * widget(int x, int y, int w, int h)
const Fl_Align FL_ALIGN_INSIDE
static int box_dw(Fl_Boxtype)
virtual const char * type_name()
Fl_Widget * widget(int x, int y, int w, int h)
Fl_Fontsize textsize() const
Fl_Menu_Item * subtypes()
Fl_Menu_Item * subtypes()
class Fl_Menu_Button_Type Fl_Menu_Button_type
Fl_Widget * widget(int x, int y, int w, int h)
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
Fl_Color textcolor() const
static Fl_Return_Button_Type Fl_Return_Button_type
virtual const char * type_name()
Fl_Color textcolor() const
class Fl_Function_Type Fl_Function_type
static Fl_Menu_Item scrollbar_type_menu[]
class Fl_Code_Type Fl_Code_type
virtual const char * type_name()
const Fl_Font FL_HELVETICA
Helvetica (or Arial) normal (0)
virtual const char * type_name()
virtual const char * type_name()=0
static Fl_Menu_Item buttontype_menu[]
static Fl_Value_Output_Type Fl_Value_Output_type
virtual const char * alt_type_name()
virtual int is_window() const
virtual const char * alt_type_name()
virtual const char * type_name()
#define FL_NORMAL_BROWSER
static Fl_Text_Editor_Type Fl_Text_Editor_type
Fl_Widget * widget(int x, int y, int w, int h)
virtual const char * alt_type_name()
class Fl_CodeBlock_Type Fl_CodeBlock_type
int fl_ascii_strcasecmp(const char *s, const char *t)
static void cb(Fl_Widget *, void *v)
class Fl_Choice_Type Fl_Choice_type
static Fl_Check_Browser_Type Fl_Check_Browser_type
Fl_Menu_Item * subtypes()
Fl_Fontsize FL_NORMAL_SIZE
normal font size
Fl_Widget * widget(int x, int y, int w, int h)
virtual void ideal_size(int &w, int &h)
Fl_Widget * widget(int x, int y, int w, int h)
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
virtual const char * type_name()
const Fl_Align FL_ALIGN_BOTTOM
virtual const char * type_name()
class Fl_Scroll_Type Fl_Scroll_type
Fl_Widget * widget(int x, int y, int w, int h)
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
void select(Fl_Type *, int)
static Fl_Repeat_Button_Type Fl_Repeat_Button_type
#define FL_SIMPLE_COUNTER
static Fl_Text_Display_Type Fl_Text_Display_type
virtual const char * alt_type_name()
static Fl_Tree_Type Fl_Tree_type
#define FL_HOR_FILL_SLIDER
static Fl_Scrollbar_Type Fl_Scrollbar_type
static Fl_Menu_Item spinner_type_menu[]
virtual const char * type_name()
int lookup_symbol(const char *name, int &v, int numberok)
Fl_Widget * widget(int x, int y, int w, int h)
class Fl_DeclBlock_Type Fl_DeclBlock_type
#define FL_VERT_FILL_SLIDER
draws a drop shadow under the text
const Fl_Font FL_BOLD
add this to helvetica, courier, or times
Fl_Menu_Item * subtypes()
class Fl_Tile_Type Fl_Tile_type
Fl_Widget * widget(int x, int y, int w, int h)
void value(const char *val)
void textsize(Fl_Fontsize s)
Rich text display widget.
virtual const char * alt_type_name()
const Fl_Align FL_ALIGN_TOP
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
static Fl_Input_Type Fl_Input_type
Fl_Menu_Item * subtypes()
const Fl_Align FL_ALIGN_CENTER
class Fl_Comment_Type Fl_Comment_type
static Fl_Counter_Type Fl_Counter_type
static Fl_Menu_Item counter_type_menu[]
static Fl_Dial_Type Fl_Dial_type
Fl_Fontsize textsize() const
virtual const char * type_name()
virtual const char * alt_type_name()
virtual const char * alt_type_name()
virtual const char * type_name()
class Fl_Tabs_Type Fl_Tabs_type
Fl_Widget * widget(int x, int y, int w, int h)
class Fl_Group_Type Fl_Group_type
class Fl_Input_Choice_Type Fl_Input_Choice_type
draws edges as though the text is engraved
class Fl_Menu_Item_Type Fl_Menu_Item_type
virtual const char * type_name()
static Fl_Help_View_Type Fl_Help_View_type
#define FL_SELECT_BROWSER
static Fl_Menu_Item output_type_menu[]
Fl_Widget * widget(int x, int y, int w, int h)
int is_text_display() const
virtual void ideal_size(int &w, int &h)
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
the label displays an "icon" based on a Fl_Image
Fl_Fontsize textsize() const
static Fl_Adjuster_Type Fl_Adjuster_type
static Fl_File_Input_Type Fl_File_Input_type
virtual const char * alt_type_name()
virtual void ideal_size(int &w, int &h)
virtual Fl_Type * make()=0
Fl_Menu_Item * subtypes()
class Fl_Submenu_Type Fl_Submenu_type
virtual const char * type_name()
virtual const char * alt_type_name()
const Fl_Align FL_ALIGN_RIGHT
virtual void ideal_size(int &w, int &h)
static Fl_File_Browser_Type Fl_File_Browser_type
class Fl_Wizard_Type Fl_Wizard_type
static Fl_Menu_Item slider_type_menu[]
class Fl_Pack_Type Fl_Pack_type
virtual void ideal_size(int &w, int &h)
class Fl_Class_Type Fl_Class_type
Fl_Menu_Item * subtypes()
const Fl_Color FL_MAGENTA
class Fl_Decl_Type Fl_Decl_type
int textstuff(int w, Fl_Font &f, int &s, Fl_Color &c)
#define FL_NORMAL_COUNTER
Fl_Color textcolor() const
virtual const char * type_name()
virtual void ideal_size(int &w, int &h)
Fl_Widget * widget(int x, int y, int w, int h)
class Fl_Menu_Bar_Type Fl_Menu_Bar_type
static Fl_Slider_Type Fl_Slider_type
virtual void ideal_size(int &w, int &h)
static Fl_Value_Slider_Type Fl_Value_Slider_type
Fl_Widget * widget(int x, int y, int w, int h)
virtual const char * type_name()
virtual const char * alt_type_name()
static Fl_Menu_Item input_type_menu[]