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.
![]() ![]() |
#include <Fl_Type.h>
Public Member Functions | |
const char * | callback_name () |
virtual | ~Fl_Type () |
virtual Fl_Type * | make ()=0 |
void | add (Fl_Type *parent) |
void | insert (Fl_Type *n) |
Fl_Type * | remove () |
void | move_before (Fl_Type *) |
virtual const char * | title () |
virtual const char * | type_name ()=0 |
virtual const char * | alt_type_name () |
const char * | name () const |
void | name (const char *) |
const char * | label () const |
void | label (const char *) |
const char * | callback () const |
void | callback (const char *) |
const char * | user_data () const |
void | user_data (const char *) |
const char * | user_data_type () const |
void | user_data_type (const char *) |
const char * | comment () |
void | comment (const char *) |
virtual Fl_Type * | click_test (int, int) |
virtual void | add_child (Fl_Type *, Fl_Type *beforethis) |
virtual void | move_child (Fl_Type *, Fl_Type *beforethis) |
virtual void | remove_child (Fl_Type *) |
virtual void | open () |
virtual void | write () |
virtual void | write_properties () |
virtual void | read_property (const char *) |
virtual int | read_fdesign (const char *, const char *) |
virtual void | write_static () |
virtual void | write_code1 () |
virtual void | write_code2 () |
void | write_comment_h (const char *ind="") |
void | write_comment_c (const char *ind="") |
void | write_comment_inline_c (const char *ind=0L) |
virtual Fl_Widget * | enter_live_mode (int top=0) |
virtual void | leave_live_mode () |
virtual void | copy_properties () |
int | msgnum () |
virtual int | is_parent () const |
virtual int | is_widget () const |
virtual int | is_button () const |
virtual int | is_input () const |
virtual int | is_value_input () const |
virtual int | is_text_display () const |
virtual int | is_valuator () const |
virtual int | is_spinner () const |
virtual int | is_menu_item () const |
virtual int | is_menu_button () const |
virtual int | is_group () const |
virtual int | is_window () const |
virtual int | is_code () const |
virtual int | is_code_block () const |
virtual int | is_decl_block () const |
virtual int | is_comment () const |
virtual int | is_class () const |
virtual int | is_public () const |
virtual int | pixmapID () |
const char * | class_name (const int need_nest) const |
const class Fl_Class_Type * | is_in_class () const |
Public Attributes | |
Fl_Type * | parent |
char | new_selected |
char | selected |
char | open_ |
char | visible |
char | rtti |
int | level |
Fl_Type * | next |
Fl_Type * | prev |
Fl_Type * | factory |
int | code_position |
int | header_position |
int | code_position_end |
int | header_position_end |
Static Public Attributes | |
static Fl_Type * | first |
static Fl_Type * | last |
static Fl_Type * | current |
Protected Member Functions | |
Fl_Type () | |
int | user_defined (const char *cbname) const |
Protected Attributes | |
const char * | name_ |
const char * | label_ |
const char * | callback_ |
const char * | user_data_ |
const char * | user_data_type_ |
const char * | comment_ |
Private Member Functions | |
virtual void | setlabel (const char *) |
Friends | |
class | Widget_Browser |
class | Fl_Window_Type |
Fl_Widget * | make_type_browser (int, int, int, int, const char *) |
|
protected |
Definition at line 539 of file Fl_Type.cxx.
References callback_, code_position, code_position_end, comment_, factory, header_position, header_position_end, label_, level, name_, new_selected, next, parent, prev, rtti, selected, user_data_, user_data_type_, and visible.
|
virtual |
Definition at line 733 of file Fl_Type.cxx.
References callback_, comment_, current, Fl_Browser_::deleting(), first, free(), label_, last, name_, next, parent, prev, remove_child(), user_data_, user_data_type_, and widget_browser.
void Fl_Type::add | ( | Fl_Type * | parent | ) |
Definition at line 574 of file Fl_Type.cxx.
References first, fixvisible(), last, level, next, open_, p, parent, prev, Fl_Widget::redraw(), set_modflag(), undo_checkpoint(), and widget_browser.
Referenced by group_cb(), Fl_Code_Type::make(), Fl_CodeBlock_Type::make(), Fl_Window_Type::make(), and Fl_Menu_Item_Type::make().
Reimplemented in Fl_Submenu_Type, Fl_Menu_Type, Fl_Window_Type, Fl_Tabs_Type, Fl_Table_Type, and Fl_Group_Type.
Definition at line 569 of file Fl_Type.cxx.
Referenced by Fl_Submenu_Type::add_child(), insert(), read_file(), and Fl_Widget_Type::redraw().
|
inlinevirtual |
Reimplemented in Fl_Value_Slider_Type, Fl_Value_Output_Type, Fl_Menu_Bar_Type, Fl_Value_Input_Type, Fl_Input_Choice_Type, Fl_Output_Type, Fl_Choice_Type, Fl_Scrollbar_Type, Fl_Menu_Button_Type, Fl_Slider_Type, Fl_Roller_Type, Fl_Dial_Type, Fl_Submenu_Type, Fl_Adjuster_Type, Fl_Menu_Item_Type, Fl_Progress_Type, Fl_Help_View_Type, Fl_Window_Type, Fl_Clock_Type, Fl_Text_Editor_Type, Fl_Wizard_Type, Fl_Tile_Type, Fl_Scroll_Type, Fl_Text_Display_Type, Fl_Tabs_Type, Fl_Table_Type, Fl_Pack_Type, Fl_File_Input_Type, Fl_Group_Type, Fl_Input_Type, Fl_Spinner_Type, Fl_Counter_Type, Fl_File_Browser_Type, Fl_Tree_Type, Fl_Check_Browser_Type, Fl_Browser_Type, Fl_Round_Button_Type, Fl_Check_Button_Type, Fl_Light_Button_Type, Fl_Repeat_Button_Type, Fl_Return_Button_Type, Fl_Button_Type, and Fl_Box_Type.
Definition at line 94 of file Fl_Type.h.
References type_name().
Referenced by Fl_Type_make().
|
inline |
Definition at line 100 of file Fl_Type.h.
References callback_.
Referenced by callback_cb(), callback_name(), Fl_Widget_Type::read_fdesign(), read_property(), Fl_Widget_Type::write_code1(), Fl_Menu_Item_Type::write_code1(), Fl_Menu_Item_Type::write_item(), write_properties(), Fl_Widget_Type::write_static(), Fl_Menu_Item_Type::write_static(), and Fl_Widget_Type::write_widget_code().
void Fl_Type::callback | ( | const char * | n | ) |
Definition at line 709 of file Fl_Type.cxx.
References callback_, and storestring().
const char * Fl_Type::callback_name | ( | ) |
Definition at line 2094 of file Fl_Widget_Type.cxx.
References callback(), is_name(), label(), name(), and unique_id().
Referenced by Fl_Widget_Type::write_code1(), Fl_Menu_Item_Type::write_code1(), Fl_Menu_Item_Type::write_item(), Fl_Widget_Type::write_static(), Fl_Menu_Item_Type::write_static(), and Fl_Widget_Type::write_widget_code().
Definition at line 1293 of file Fl_Function_Type.cxx.
References p, parent, strlcat, and strlcpy.
Referenced by array_name(), Fl_Function_Type::write_code1(), Fl_Decl_Type::write_code1(), Fl_Data_Type::write_code1(), Fl_Widget_Type::write_code1(), Fl_Menu_Item_Type::write_code1(), Fl_Menu_Item_Type::write_item(), Fl_Widget_Type::write_static(), Fl_Menu_Item_Type::write_static(), and Fl_Widget_Type::write_widget_code().
|
virtual |
Reimplemented in Fl_Input_Choice_Type, Fl_Tabs_Type, and Fl_Menu_Type.
Definition at line 568 of file Fl_Type.cxx.
Referenced by Fl_Window_Type::handle().
|
inline |
Definition at line 106 of file Fl_Type.h.
References comment_.
Referenced by comment_cb(), Widget_Browser::item_draw(), Widget_Browser::item_height(), Fl_Function_Type::open(), Fl_Decl_Type::open(), Fl_Data_Type::open(), Fl_Class_Type::open(), read_property(), write_comment_c(), write_comment_h(), write_comment_inline_c(), and write_properties().
void Fl_Type::comment | ( | const char * | n | ) |
Definition at line 721 of file Fl_Type.cxx.
References comment_, Fl_Widget::redraw(), storestring(), visible, and widget_browser.
|
virtual |
Copy all needed properties for this type into the live object.
Reimplemented in Fl_Input_Choice_Type, Fl_Menu_Type, Fl_Window_Type, Fl_Tile_Type, Fl_Scroll_Type, Fl_Pack_Type, Fl_Group_Type, Fl_Input_Type, and Fl_Widget_Type.
Definition at line 1116 of file Fl_Type.cxx.
|
virtual |
Build widgets and dataset needed in live mode.
Reimplemented in Fl_Window_Type, Fl_Scroll_Type, Fl_Tabs_Type, Fl_Table_Type, Fl_Group_Type, and Fl_Widget_Type.
Definition at line 1102 of file Fl_Type.cxx.
Referenced by Fl_Group_Type::enter_live_mode(), Fl_Tabs_Type::enter_live_mode(), Fl_Scroll_Type::enter_live_mode(), and Fl_Window_Type::enter_live_mode().
void Fl_Type::insert | ( | Fl_Type * | n | ) |
Definition at line 614 of file Fl_Type.cxx.
References add_child(), first, fixvisible(), level, next, parent, prev, Fl_Widget::redraw(), visible, and widget_browser.
Referenced by Fl_Group_Type::add_child(), Fl_Window_Type::add_child(), Fl_Group_Type::move_child(), Fl_Table_Type::move_child(), Fl_Window_Type::move_child(), and ungroup_cb().
|
virtual |
Reimplemented in Fl_Submenu_Type, Fl_Menu_Item_Type, and Fl_Button_Type.
Definition at line 752 of file Fl_Type.cxx.
Referenced by Fl_Widget_Type::copy_properties(), down_box_cb(), Fl_Widget_Type::read_property(), shortcut_in_cb(), value_cb(), Fl_Widget_Type::write_properties(), Fl_Widget_Type::write_widget_code(), and xclass_cb().
|
virtual |
Reimplemented in Fl_Widget_Class_Type, and Fl_Class_Type.
Definition at line 764 of file Fl_Type.cxx.
Referenced by Widget_Browser::item_draw(), Widget_Browser::item_width(), read_children(), subclassname(), write(), Fl_Window_Type::write_code2(), Fl_Widget_Type::write_color(), Fl_Widget_Type::write_static(), Fl_Menu_Item_Type::write_static(), and Fl_Widget_Type::write_widget_code().
|
virtual |
Reimplemented in Fl_Code_Type.
Definition at line 760 of file Fl_Type.cxx.
|
virtual |
Reimplemented in Fl_Widget_Class_Type, Fl_CodeBlock_Type, Fl_Code_Type, and Fl_Function_Type.
Definition at line 761 of file Fl_Type.cxx.
Referenced by Widget_Browser::item_draw(), and Widget_Browser::item_width().
|
virtual |
Reimplemented in Fl_Comment_Type.
Definition at line 763 of file Fl_Type.cxx.
Referenced by name(), and write_code().
|
virtual |
Reimplemented in Fl_Widget_Class_Type, Fl_Class_Type, and Fl_DeclBlock_Type.
Definition at line 762 of file Fl_Type.cxx.
|
virtual |
Reimplemented in Fl_Window_Type, and Fl_Group_Type.
Definition at line 758 of file Fl_Type.cxx.
Referenced by Fl_Window_Type::draw_overlay(), fix_group_size(), Fl_Widget_Type::make(), and Fl_Widget_Type::write_widget_code().
const Fl_Class_Type * Fl_Type::is_in_class | ( | ) | const |
If this Type resides inside a class, this function returns the class type, or null.
Definition at line 1318 of file Fl_Function_Type.cxx.
Referenced by has_toplevel_function(), name_public_cb(), name_public_member_cb(), Fl_Function_Type::open(), Fl_Decl_Type::open(), Fl_Data_Type::open(), Fl_Decl_Type::write_code1(), Fl_Data_Type::write_code1(), and Fl_Widget_Type::write_static().
|
virtual |
Reimplemented in Fl_File_Input_Type, and Fl_Input_Type.
Definition at line 753 of file Fl_Type.cxx.
Referenced by Fl_Widget_Type::copy_properties(), Fl_Widget_Type::read_property(), shortcut_in_cb(), Fl_Widget_Type::write_properties(), and Fl_Widget_Type::write_widget_code().
|
virtual |
Reimplemented in Fl_Menu_Type.
Definition at line 757 of file Fl_Type.cxx.
Referenced by align_widget_cb(), down_box_cb(), read_file(), Fl_Widget_Type::read_property(), Fl_Widget_Type::write_properties(), and Fl_Widget_Type::write_widget_code().
|
virtual |
Reimplemented in Fl_Menu_Item_Type.
Definition at line 756 of file Fl_Type.cxx.
Referenced by align_cb(), align_position_cb(), align_text_image_cb(), box_cb(), Fl_Menu_Type::build_menu(), Fl_Input_Choice_Type::build_menu(), color2_cb(), color_cb(), down_box_cb(), group_cb(), Fl_Window_Type::handle(), hotspot_cb(), Fl_Widget_Type::make(), Fl_Menu_Item_Type::make(), Fl_Menu_Item_Type::menu_name(), Fl_Window_Type::moveallchildren(), Fl_Widget_Type::redraw(), resizable_cb(), subclass_cb(), ungroup_cb(), value_cb(), when_button_cb(), when_cb(), Fl_Menu_Item_Type::write_code1(), Fl_Menu_Type::write_code2(), Fl_Widget_Type::write_properties(), Fl_Menu_Item_Type::write_static(), and xclass_cb().
|
virtual |
Reimplemented in Fl_Menu_Type, Fl_Submenu_Type, Fl_Widget_Class_Type, Fl_Window_Type, Fl_Group_Type, Fl_Class_Type, Fl_DeclBlock_Type, Fl_CodeBlock_Type, and Fl_Function_Type.
Definition at line 748 of file Fl_Type.cxx.
Referenced by Fl_Menu_Type::build_menu(), Fl_Input_Choice_Type::build_menu(), Fl_Menu_Item_Type::flags(), Widget_Browser::handle(), Widget_Browser::item_draw(), Fl_Menu_Item_Type::make(), Fl_Menu_Item_Type::menu_name(), read_children(), write(), Fl_Widget_Type::write_code1(), Fl_Menu_Type::write_code2(), and write_properties().
|
virtual |
Reimplemented in Fl_Widget_Type, Fl_Class_Type, Fl_Comment_Type, Fl_DeclBlock_Type, Fl_Decl_Type, Fl_CodeBlock_Type, Fl_Code_Type, and Fl_Function_Type.
Definition at line 765 of file Fl_Type.cxx.
Referenced by Widget_Browser::item_draw().
|
virtual |
Reimplemented in Fl_Spinner_Type.
Definition at line 751 of file Fl_Type.cxx.
Referenced by Fl_Widget_Type::copy_properties(), max_cb(), min_cb(), Fl_Widget_Type::read_property(), step_cb(), subtype_cb(), value_cb(), Fl_Widget_Type::write_properties(), and Fl_Widget_Type::write_widget_code().
|
virtual |
Reimplemented in Fl_Text_Editor_Type, and Fl_Text_Display_Type.
Definition at line 755 of file Fl_Type.cxx.
Referenced by Fl_Widget_Type::copy_properties(), Fl_Widget_Type::read_property(), shortcut_in_cb(), Fl_Widget_Type::write_properties(), and Fl_Widget_Type::write_widget_code().
|
virtual |
Reimplemented in Fl_Value_Output_Type, Fl_Value_Input_Type, Fl_Scrollbar_Type, Fl_Slider_Type, Fl_Roller_Type, Fl_Dial_Type, Fl_Adjuster_Type, and Fl_Counter_Type.
Definition at line 750 of file Fl_Type.cxx.
Referenced by Fl_Widget_Type::copy_properties(), max_cb(), min_cb(), Fl_Widget_Type::read_property(), slider_size_cb(), step_cb(), value_cb(), Fl_Widget_Type::write_properties(), and Fl_Widget_Type::write_widget_code().
|
virtual |
Reimplemented in Fl_Value_Input_Type.
Definition at line 754 of file Fl_Type.cxx.
Referenced by Fl_Widget_Type::copy_properties(), Fl_Widget_Type::read_property(), shortcut_in_cb(), Fl_Widget_Type::write_properties(), and Fl_Widget_Type::write_widget_code().
|
virtual |
Reimplemented in Fl_Widget_Type.
Definition at line 749 of file Fl_Type.cxx.
Referenced by Fl_Window_Type::add_child(), align_widget_cb(), cb(), check_redraw_corresponding_parent(), Fl_Window_Type::draw_overlay(), group_cb(), Fl_Window_Type::handle(), Widget_Browser::item_draw(), Widget_Browser::item_width(), Fl_Widget_Type::make(), move_before(), Fl_Window_Type::moveallchildren(), Fl_Widget_Type::redraw(), subclassname(), ungroup_cb(), Fl_Function_Type::write_code1(), Fl_Menu_Item_Type::write_static(), and Fl_Widget_Type::write_widget_code().
|
virtual |
Reimplemented in Fl_Window_Type.
Definition at line 759 of file Fl_Type.cxx.
Referenced by active_cb(), border_cb(), cb(), image_browse_cb(), image_cb(), inactive_browse_cb(), inactive_cb(), live_mode_cb(), max_h_cb(), max_w_cb(), min_h_cb(), min_w_cb(), modal_cb(), non_modal_cb(), print_menu_cb(), Fl_Widget_Type::resizable(), save_template_cb(), Fl_Widget_Type::setimage(), Fl_Widget_Type::setinactive(), slider_size_cb(), visible_cb(), Fl_Widget_Type::write_code1(), Fl_Function_Type::write_code2(), Fl_Widget_Type::write_properties(), Fl_Widget_Type::write_widget_code(), and xclass_cb().
|
inline |
Definition at line 98 of file Fl_Type.h.
References label_.
Referenced by callback_name(), Widget_Browser::item_draw(), Widget_Browser::item_width(), label_cb(), Fl_Widget_Type::make(), Fl_Menu_Item_Type::make(), Fl_Menu_Item_Type::menu_name(), Fl_Widget_Type::read_fdesign(), Fl_Window_Type::read_fdesign(), read_property(), Fl_Widget_Type::read_property(), revert_cb(), Fl_Widget_Type::write_code1(), Fl_Widget_Class_Type::write_code1(), Fl_Menu_Type::write_code2(), Fl_Menu_Item_Type::write_item(), write_properties(), and write_strings().
void Fl_Type::label | ( | const char * | n | ) |
Definition at line 702 of file Fl_Type.cxx.
References label_, name_, Fl_Widget::redraw(), setlabel(), storestring(), visible, and widget_browser.
|
virtual |
Release all resources created when entering live mode.
Reimplemented in Fl_Window_Type, Fl_Group_Type, and Fl_Widget_Type.
Definition at line 1110 of file Fl_Type.cxx.
Referenced by live_mode_cb().
|
pure virtual |
Implemented in Fl_Submenu_Type, Fl_Menu_Item_Type, Fl_Widget_Class_Type, Fl_Window_Type, Fl_Group_Type, Fl_Widget_Type, Fl_Class_Type, Fl_Comment_Type, Fl_DeclBlock_Type, Fl_Data_Type, Fl_Decl_Type, Fl_CodeBlock_Type, Fl_Code_Type, and Fl_Function_Type.
Referenced by cb(), and Fl_Type_make().
void Fl_Type::move_before | ( | Fl_Type * | g | ) |
Definition at line 852 of file Fl_Type.cxx.
References Fl_Browser_::display(), first, Fl_Browser_::inserting(), is_widget(), last, level, move_child(), next, parent, prev, Fl_Widget::redraw(), and widget_browser.
Referenced by group_cb(), and later_cb().
Reimplemented in Fl_Submenu_Type, Fl_Menu_Type, Fl_Window_Type, Fl_Table_Type, and Fl_Group_Type.
Definition at line 570 of file Fl_Type.cxx.
Referenced by move_before(), and Fl_Submenu_Type::move_child().
int Fl_Type::msgnum | ( | ) |
Definition at line 633 of file Fl_Type.cxx.
References p.
Referenced by Fl_Widget_Type::write_code1(), Fl_Menu_Type::write_code2(), and Fl_Widget_Type::write_widget_code().
|
inline |
Definition at line 96 of file Fl_Type.h.
References name_.
Referenced by array_name(), callback_name(), Fl_Code_Type::handle_editor_changes(), Fl_Function_Type::has_signature(), Widget_Browser::item_draw(), Widget_Browser::item_width(), Fl_Function_Type::make(), Fl_Code_Type::make(), Fl_CodeBlock_Type::make(), Fl_DeclBlock_Type::make(), Fl_Class_Type::make(), Fl_Widget_Class_Type::make(), Fl_Menu_Item_Type::menu_name(), name_cb(), Fl_Function_Type::open(), Fl_Code_Type::open(), Fl_CodeBlock_Type::open(), Fl_Decl_Type::open(), Fl_Data_Type::open(), Fl_DeclBlock_Type::open(), Fl_Comment_Type::open(), Fl_Class_Type::open(), read_children(), Fl_Widget_Type::read_fdesign(), read_fdesign(), title(), Fl_Function_Type::title(), Fl_Comment_Type::title(), write(), Fl_Widget_Type::write_block_close(), Fl_Function_Type::write_code1(), Fl_Code_Type::write_code1(), Fl_CodeBlock_Type::write_code1(), Fl_Decl_Type::write_code1(), Fl_Data_Type::write_code1(), Fl_DeclBlock_Type::write_code1(), Fl_Comment_Type::write_code1(), Fl_Class_Type::write_code1(), Fl_Widget_Type::write_code1(), Fl_Widget_Class_Type::write_code1(), Fl_Menu_Item_Type::write_code1(), Fl_Function_Type::write_code2(), Fl_Group_Type::write_code2(), Fl_Window_Type::write_code2(), Fl_Menu_Type::write_code2(), Fl_Widget_Type::write_color(), Fl_Menu_Item_Type::write_static(), and Fl_Widget_Type::write_widget_code().
void Fl_Type::name | ( | const char * | n | ) |
Definition at line 695 of file Fl_Type.cxx.
References is_comment(), name_, Fl_Widget::redraw(), storestring(), visible, and widget_browser.
|
virtual |
Reimplemented in Fl_Window_Type, Fl_Widget_Type, Fl_Class_Type, Fl_Comment_Type, Fl_DeclBlock_Type, Fl_Data_Type, Fl_Decl_Type, Fl_CodeBlock_Type, Fl_Code_Type, and Fl_Function_Type.
Definition at line 727 of file Fl_Type.cxx.
References type_name().
Referenced by cb(), Widget_Browser::handle(), Fl_Window_Type::handle(), openwidget_cb(), and type_make_cb().
|
inlinevirtual |
Reimplemented in Fl_Value_Slider_Type, Fl_Value_Output_Type, Fl_Menu_Bar_Type, Fl_Value_Input_Type, Fl_Input_Choice_Type, Fl_Output_Type, Fl_Choice_Type, Fl_Scrollbar_Type, Fl_Menu_Button_Type, Fl_Slider_Type, Fl_Roller_Type, Fl_Submenu_Type, Fl_Dial_Type, Fl_Menu_Item_Type, Fl_Adjuster_Type, Fl_Progress_Type, Fl_Widget_Class_Type, Fl_Help_View_Type, Fl_Clock_Type, Fl_Window_Type, Fl_Text_Editor_Type, Fl_Wizard_Type, Fl_Tile_Type, Fl_Scroll_Type, Fl_Text_Display_Type, Fl_Tabs_Type, Fl_Table_Type, Fl_File_Input_Type, Fl_Pack_Type, Fl_Group_Type, Fl_Input_Type, Fl_Spinner_Type, Fl_Counter_Type, Fl_Class_Type, Fl_Comment_Type, Fl_File_Browser_Type, Fl_DeclBlock_Type, Fl_Tree_Type, Fl_Data_Type, Fl_Decl_Type, Fl_Check_Browser_Type, Fl_CodeBlock_Type, Fl_Browser_Type, Fl_Code_Type, Fl_Function_Type, Fl_Round_Button_Type, Fl_Check_Button_Type, Fl_Light_Button_Type, Fl_Repeat_Button_Type, Fl_Return_Button_Type, Fl_Button_Type, and Fl_Box_Type.
Definition at line 159 of file Fl_Type.h.
Referenced by fill_in_New_Menu(), and Widget_Browser::item_draw().
Reimplemented in Fl_Window_Type, and Fl_Widget_Type.
Definition at line 984 of file Fl_Type.cxx.
|
virtual |
Reimplemented in Fl_Widget_Class_Type, Fl_Window_Type, Fl_Widget_Type, Fl_Class_Type, Fl_Comment_Type, Fl_DeclBlock_Type, Fl_Data_Type, Fl_Decl_Type, Fl_CodeBlock_Type, and Fl_Function_Type.
Definition at line 965 of file Fl_Type.cxx.
References callback(), comment(), label(), open_, read_error(), read_word(), select(), user_data(), and user_data_type().
Referenced by read_children(), Fl_Function_Type::read_property(), Fl_CodeBlock_Type::read_property(), Fl_Decl_Type::read_property(), Fl_DeclBlock_Type::read_property(), Fl_Comment_Type::read_property(), Fl_Class_Type::read_property(), and Fl_Widget_Type::read_property().
Fl_Type * Fl_Type::remove | ( | ) |
Definition at line 650 of file Fl_Type.cxx.
References first, last, level, next, parent, prev, Fl_Widget::redraw(), remove_child(), selection_changed(), and widget_browser.
Referenced by group_cb(), Fl_Group_Type::move_child(), Fl_Table_Type::move_child(), Fl_Window_Type::move_child(), Fl_Group_Type::remove_child(), Fl_Table_Type::remove_child(), Fl_Window_Type::remove_child(), ungroup_cb(), and Fl_Widget_Type::~Fl_Widget_Type().
|
virtual |
Reimplemented in Fl_Submenu_Type, Fl_Menu_Type, Fl_Window_Type, Fl_Tabs_Type, Fl_Table_Type, and Fl_Group_Type.
Definition at line 571 of file Fl_Type.cxx.
Referenced by remove(), Fl_Submenu_Type::remove_child(), and ~Fl_Type().
|
privatevirtual |
Reimplemented in Fl_Window_Type, and Fl_Widget_Type.
Definition at line 731 of file Fl_Type.cxx.
Referenced by label().
|
virtual |
Reimplemented in Fl_Comment_Type, and Fl_Function_Type.
Definition at line 294 of file Fl_Type.cxx.
References name(), and type_name().
Referenced by Widget_Browser::item_draw(), Widget_Browser::item_width(), name_cb(), read_children(), and write_code1().
|
pure virtual |
Implemented in Fl_Value_Slider_Type, Fl_Value_Output_Type, Fl_Menu_Bar_Type, Fl_Value_Input_Type, Fl_Input_Choice_Type, Fl_Output_Type, Fl_Choice_Type, Fl_Scrollbar_Type, Fl_Menu_Button_Type, Fl_Slider_Type, Fl_Roller_Type, Fl_Dial_Type, Fl_Submenu_Type, Fl_Adjuster_Type, Fl_Menu_Item_Type, Fl_Widget_Class_Type, Fl_Progress_Type, Fl_Help_View_Type, Fl_Window_Type, Fl_Clock_Type, Fl_Text_Editor_Type, Fl_Wizard_Type, Fl_Tile_Type, Fl_Scroll_Type, Fl_Text_Display_Type, Fl_Tabs_Type, Fl_Table_Type, Fl_Pack_Type, Fl_File_Input_Type, Fl_Group_Type, Fl_Input_Type, Fl_Spinner_Type, Fl_Counter_Type, Fl_Class_Type, Fl_Comment_Type, Fl_File_Browser_Type, Fl_DeclBlock_Type, Fl_Data_Type, Fl_Tree_Type, Fl_Decl_Type, Fl_CodeBlock_Type, Fl_Check_Browser_Type, Fl_Code_Type, Fl_Browser_Type, Fl_Function_Type, Fl_Round_Button_Type, Fl_Check_Button_Type, Fl_Light_Button_Type, Fl_Repeat_Button_Type, Fl_Return_Button_Type, Fl_Button_Type, and Fl_Box_Type.
Referenced by alt_type_name(), cb(), color_cb(), down_box_cb(), fill_in_New_Menu(), Fl_Type_make(), group_cb(), Fl_Class_Type::has_function(), has_toplevel_function(), Widget_Browser::item_width(), open(), Fl_Widget_Type::read_property(), subclassname(), title(), ungroup_cb(), visible_cb(), wc_relative_cb(), write(), write_code(), Fl_Widget_Type::write_properties(), Fl_Widget_Type::write_static(), Fl_Menu_Item_Type::write_static(), and Fl_Widget_Type::write_widget_code().
|
inline |
Definition at line 102 of file Fl_Type.h.
References user_data_.
Referenced by Fl_Menu_Item_Type::flags(), Fl_Widget_Type::read_fdesign(), read_property(), user_data_cb(), Fl_Menu_Item_Type::write_item(), write_properties(), and Fl_Widget_Type::write_widget_code().
void Fl_Type::user_data | ( | const char * | n | ) |
Definition at line 713 of file Fl_Type.cxx.
References storestring(), and user_data_.
|
inline |
Definition at line 104 of file Fl_Type.h.
References user_data_type_.
Referenced by Fl_Widget_Type::read_fdesign(), read_property(), user_data_type_cb(), Fl_Widget_Type::write_code1(), Fl_Menu_Item_Type::write_code1(), write_properties(), Fl_Widget_Type::write_static(), and Fl_Menu_Item_Type::write_static().
void Fl_Type::user_data_type | ( | const char * | n | ) |
Definition at line 717 of file Fl_Type.cxx.
References storestring(), and user_data_type_.
|
protected |
Check whether callback cbname
is declared anywhere else by the user.
Warning: this just checks that the name is declared somewhere, but it should probably also check that the name corresponds to a plain function or a member function within the same class and that the parameter types match.
Definition at line 1127 of file Fl_Type.cxx.
Referenced by Fl_Menu_Item_Type::write_static().
|
virtual |
Reimplemented in Fl_Code_Type.
Definition at line 912 of file Fl_Type.cxx.
References is_class(), is_parent(), level, name(), next, p, type_name(), write(), write_close(), write_indent(), write_open(), write_properties(), and write_word().
Referenced by write(), and Fl_Code_Type::write().
|
virtual |
Reimplemented in Fl_Menu_Item_Type, Fl_Widget_Class_Type, Fl_Window_Type, Fl_Group_Type, Fl_Widget_Type, Fl_Class_Type, Fl_Comment_Type, Fl_DeclBlock_Type, Fl_Data_Type, Fl_Decl_Type, Fl_CodeBlock_Type, Fl_Code_Type, and Fl_Function_Type.
Definition at line 591 of file code.cxx.
References title(), write_c(), and write_h().
Referenced by write_code().
|
virtual |
void Fl_Type::write_comment_c | ( | const char * | pre = "" | ) |
Write a comment into the source file.
Definition at line 1027 of file Fl_Type.cxx.
References comment(), and write_c().
Referenced by Fl_Function_Type::write_code1(), Fl_Decl_Type::write_code1(), and Fl_Data_Type::write_code1().
void Fl_Type::write_comment_h | ( | const char * | pre = "" | ) |
Write a comment into the header file.
Definition at line 1004 of file Fl_Type.cxx.
References comment(), and write_h().
Referenced by Fl_Decl_Type::write_code1(), Fl_Data_Type::write_code1(), Fl_Class_Type::write_code1(), and Fl_Widget_Class_Type::write_code1().
void Fl_Type::write_comment_inline_c | ( | const char * | pre = 0L | ) |
Write a comment into the source file.
Definition at line 1050 of file Fl_Type.cxx.
References comment(), indent(), and write_c().
Referenced by Fl_Widget_Type::write_code1(), and Fl_Menu_Item_Type::write_item().
|
virtual |
Reimplemented in Fl_Widget_Class_Type, Fl_Window_Type, Fl_Widget_Type, Fl_Class_Type, Fl_Comment_Type, Fl_DeclBlock_Type, Fl_Data_Type, Fl_Decl_Type, Fl_CodeBlock_Type, and Fl_Function_Type.
Definition at line 935 of file Fl_Type.cxx.
References callback(), comment(), is_parent(), label(), level, open_, selected, user_data(), user_data_type(), write_indent(), and write_word().
Referenced by write(), Fl_Function_Type::write_properties(), Fl_CodeBlock_Type::write_properties(), Fl_Decl_Type::write_properties(), Fl_DeclBlock_Type::write_properties(), Fl_Comment_Type::write_properties(), Fl_Class_Type::write_properties(), and Fl_Widget_Type::write_properties().
|
virtual |
Reimplemented in Fl_Menu_Item_Type, and Fl_Widget_Type.
|
friend |
|
friend |
Definition at line 45 of file Fl_Type.h.
Referenced by make_widget_browser().
|
protected |
Definition at line 56 of file Fl_Type.h.
Referenced by callback(), Fl_Type(), and ~Fl_Type().
int Fl_Type::code_position |
Definition at line 76 of file Fl_Type.h.
Referenced by Fl_Type(), update_sourceview_position(), and write_code().
int Fl_Type::code_position_end |
Definition at line 77 of file Fl_Type.h.
Referenced by Fl_Type(), update_sourceview_position(), and write_code().
|
protected |
Definition at line 59 of file Fl_Type.h.
Referenced by comment(), Fl_Type(), and ~Fl_Type().
|
static |
Definition at line 114 of file Fl_Type.h.
Referenced by copy_cb(), cut_cb(), delete_cb(), duplicate_cb(), group_cb(), Fl_Window_Type::handle(), load_panel(), Fl_Function_Type::make(), Fl_Code_Type::make(), Fl_CodeBlock_Type::make(), Fl_Decl_Type::make(), Fl_Data_Type::make(), Fl_DeclBlock_Type::make(), Fl_Comment_Type::make(), Fl_Class_Type::make(), Fl_Widget_Type::make(), Fl_Window_Type::make(), Fl_Widget_Class_Type::make(), Fl_Menu_Item_Type::make(), openwidget_cb(), read_children(), read_fdesign(), read_file(), select_all_cb(), select_none_cb(), selection_changed(), ungroup_cb(), update_sourceview_position(), and ~Fl_Type().
Fl_Type* Fl_Type::factory |
Definition at line 73 of file Fl_Type.h.
Referenced by Fl_Type(), Fl_Code_Type::make(), Fl_CodeBlock_Type::make(), Fl_Widget_Type::make(), Fl_Window_Type::make(), Fl_Menu_Item_Type::make(), Fl_Widget_Type::read_fdesign(), 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(), Fl_Widget_Type::write_properties(), and Fl_Widget_Type::write_widget_code().
|
static |
Definition at line 70 of file Fl_Type.h.
Referenced by active_cb(), add(), align_cb(), align_position_cb(), align_text_image_cb(), align_widget_cb(), box_cb(), callback_cb(), color2_cb(), color_cb(), comment_cb(), delete_all(), down_box_cb(), earlier_cb(), external_editor_timer(), grid_cb(), group_cb(), guides_cb(), h_cb(), has_toplevel_function(), image_browse_cb(), image_cb(), inactive_browse_cb(), inactive_cb(), insert(), Widget_Browser::item_first(), label_cb(), labelcolor_cb(), labelfont_cb(), labelsize_cb(), labeltype_cb(), load_panel(), max_cb(), max_h_cb(), max_w_cb(), min_cb(), min_h_cb(), min_w_cb(), move_before(), name_public_cb(), name_public_member_cb(), print_menu_cb(), read_file(), redraw_overlays(), remove(), save_template_cb(), select_all_cb(), select_none_cb(), selection_changed(), set_max_size_cb(), set_min_size_cb(), shortcut_in_cb(), slider_size_cb(), sort(), step_cb(), subclass_cb(), subtype_cb(), textcolor_cb(), textfont_cb(), textsize_cb(), toggle_overlays(), tooltip_cb(), user_data_cb(), user_data_type_cb(), user_defined(), v_input_cb(), value_cb(), visible_cb(), w_cb(), wc_relative_cb(), when_button_cb(), when_cb(), widget_size_cb(), write_code(), write_file(), write_strings(), x_cb(), xclass_cb(), y_cb(), and ~Fl_Type().
int Fl_Type::header_position |
Definition at line 76 of file Fl_Type.h.
Referenced by Fl_Type(), update_sourceview_position(), and write_code().
int Fl_Type::header_position_end |
Definition at line 77 of file Fl_Type.h.
Referenced by Fl_Type(), update_sourceview_position(), and write_code().
|
protected |
Definition at line 55 of file Fl_Type.h.
Referenced by Fl_Type(), label(), and ~Fl_Type().
|
static |
Definition at line 70 of file Fl_Type.h.
Referenced by add(), later_cb(), move_before(), remove(), write_code(), and ~Fl_Type().
int Fl_Type::level |
Definition at line 69 of file Fl_Type.h.
Referenced by add(), align_widget_cb(), Fl_Menu_Type::build_menu(), Fl_Input_Choice_Type::build_menu(), Fl_Window_Type::draw_overlay(), earlier_cb(), Fl_Group_Type::enter_live_mode(), Fl_Tabs_Type::enter_live_mode(), Fl_Scroll_Type::enter_live_mode(), Fl_Window_Type::enter_live_mode(), fix_group_size(), fixvisible(), Fl_Type(), group_cb(), Widget_Browser::handle(), Fl_Window_Type::handle(), Fl_Class_Type::has_function(), insert(), Widget_Browser::item_draw(), Widget_Browser::item_width(), later_cb(), Fl_Menu_Item_Type::menu_name(), move_before(), Fl_Window_Type::moveallchildren(), remove(), sort(), ungroup_cb(), write(), write_code(), Fl_Function_Type::write_code1(), Fl_Function_Type::write_code2(), Fl_Menu_Type::write_code2(), write_properties(), Fl_Widget_Type::write_properties(), and Fl_Menu_Item_Type::write_static().
|
protected |
Definition at line 54 of file Fl_Type.h.
Referenced by Fl_Type(), Fl_Function_Type::ismain(), label(), name(), and ~Fl_Type().
char Fl_Type::new_selected |
Definition at line 64 of file Fl_Type.h.
Referenced by Fl_Type(), Widget_Browser::handle(), Widget_Browser::item_draw(), and selection_changed().
Fl_Type* Fl_Type::next |
Definition at line 71 of file Fl_Type.h.
Referenced by active_cb(), add(), align_cb(), align_position_cb(), align_text_image_cb(), align_widget_cb(), box_cb(), Fl_Menu_Type::build_menu(), Fl_Input_Choice_Type::build_menu(), callback_cb(), color2_cb(), color_cb(), comment_cb(), down_box_cb(), Fl_Window_Type::draw_overlay(), Fl_Group_Type::enter_live_mode(), Fl_Tabs_Type::enter_live_mode(), Fl_Scroll_Type::enter_live_mode(), Fl_Window_Type::enter_live_mode(), fix_group_size(), fixvisible(), Fl_Type(), h_cb(), Widget_Browser::handle(), Fl_Window_Type::handle(), Fl_Class_Type::has_function(), has_toplevel_function(), image_browse_cb(), image_cb(), inactive_browse_cb(), inactive_cb(), insert(), Widget_Browser::item_draw(), label_cb(), labelcolor_cb(), labelfont_cb(), labelsize_cb(), labeltype_cb(), later_cb(), load_panel(), max_cb(), max_h_cb(), max_w_cb(), Fl_Menu_Item_Type::menu_name(), min_cb(), min_h_cb(), min_w_cb(), move_before(), Fl_Window_Type::moveallchildren(), name_public_cb(), name_public_member_cb(), print_menu_cb(), read_file(), redraw_overlays(), remove(), save_template_cb(), select_all_cb(), select_none_cb(), selection_changed(), set_max_size_cb(), set_min_size_cb(), shortcut_in_cb(), slider_size_cb(), sort(), step_cb(), subclass_cb(), subtype_cb(), textcolor_cb(), textfont_cb(), textsize_cb(), toggle_overlays(), tooltip_cb(), ungroup_cb(), user_data_cb(), user_data_type_cb(), v_input_cb(), value_cb(), visible_cb(), w_cb(), wc_relative_cb(), when_button_cb(), when_cb(), widget_size_cb(), write(), write_code(), Fl_Function_Type::write_code1(), Fl_Function_Type::write_code2(), Fl_Menu_Type::write_code2(), Fl_Menu_Item_Type::write_static(), x_cb(), xclass_cb(), y_cb(), and ~Fl_Type().
char Fl_Type::open_ |
Definition at line 66 of file Fl_Type.h.
Referenced by add(), fixvisible(), Widget_Browser::handle(), Widget_Browser::item_draw(), read_children(), read_property(), and write_properties().
Fl_Type* Fl_Type::parent |
Definition at line 63 of file Fl_Type.h.
Referenced by add(), Fl_Submenu_Type::add_child(), align_widget_cb(), check_redraw_corresponding_parent(), class_name(), color_cb(), cut_cb(), delete_cb(), fixvisible(), Fl_Type(), group_cb(), Fl_Window_Type::handle(), hotspot_cb(), insert(), is_in_class(), Fl_Decl_Type::is_public(), Widget_Browser::item_draw(), Widget_Browser::item_width(), Fl_Widget_Type::make(), move_before(), Fl_Submenu_Type::move_child(), Fl_Widget_Type::read_fdesign(), Fl_Widget_Type::redraw(), remove(), Fl_Submenu_Type::remove_child(), reveal_in_browser(), select_all_cb(), select_none_cb(), ungroup_cb(), visible_cb(), Fl_Widget_Type::write_static(), Fl_Menu_Item_Type::write_static(), Fl_Widget_Type::write_widget_code(), and ~Fl_Type().
Fl_Type * Fl_Type::prev |
Definition at line 71 of file Fl_Type.h.
Referenced by add(), array_name(), earlier_cb(), Fl_Type(), Fl_Window_Type::handle(), insert(), Fl_Menu_Item_Type::menu_name(), move_before(), remove(), Fl_Menu_Item_Type::write_code1(), Fl_Menu_Item_Type::write_static(), and ~Fl_Type().
char Fl_Type::selected |
Definition at line 65 of file Fl_Type.h.
Referenced by align_widget_cb(), check_redraw_corresponding_parent(), Fl_Menu_Type::click_test(), Fl_Input_Choice_Type::click_test(), Fl_Window_Type::draw_overlay(), earlier_cb(), Fl_Type(), group_cb(), Fl_Window_Type::handle(), later_cb(), Fl_Window_Type::moveallchildren(), read_file(), selection_changed(), sort(), ungroup_cb(), and write_properties().
|
protected |
Definition at line 57 of file Fl_Type.h.
Referenced by Fl_Type(), user_data(), and ~Fl_Type().
|
protected |
Definition at line 58 of file Fl_Type.h.
Referenced by Fl_Type(), user_data_type(), and ~Fl_Type().
char Fl_Type::visible |
Definition at line 67 of file Fl_Type.h.
Referenced by comment(), fixvisible(), Fl_Type(), insert(), Widget_Browser::item_height(), Widget_Browser::item_width(), label(), name(), and Fl_Widget_Type::subclass().