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_Type Class Referenceabstract

#include <Fl_Type.h>

Inheritance diagram for Fl_Type:
[legend]
Collaboration diagram for Fl_Type:
[legend]

Public Member Functions

const char * callback_name ()
 
virtual ~Fl_Type ()
 
virtual Fl_Typemake ()=0
 
void add (Fl_Type *parent)
 
void insert (Fl_Type *n)
 
Fl_Typeremove ()
 
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_Typeclick_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_Widgetenter_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_Typeis_in_class () const
 

Public Attributes

Fl_Typeparent
 
char new_selected
 
char selected
 
char open_
 
char visible
 
char rtti
 
int level
 
Fl_Typenext
 
Fl_Typeprev
 
Fl_Typefactory
 
int code_position
 
int header_position
 
int code_position_end
 
int header_position_end
 

Static Public Attributes

static Fl_Typefirst
 
static Fl_Typelast
 
static Fl_Typecurrent
 

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_Widgetmake_type_browser (int, int, int, int, const char *)
 

Detailed Description

Definition at line 43 of file Fl_Type.h.

Constructor & Destructor Documentation

◆ Fl_Type()

◆ ~Fl_Type()

Fl_Type::~Fl_Type ( )
virtual

Member Function Documentation

◆ add()

◆ add_child()

void Fl_Type::add_child ( Fl_Type ,
Fl_Type beforethis 
)
virtual

◆ alt_type_name()

◆ callback() [1/2]

◆ callback() [2/2]

void Fl_Type::callback ( const char *  n)

Definition at line 709 of file Fl_Type.cxx.

References callback_, and storestring().

◆ callback_name()

◆ class_name()

◆ click_test()

Fl_Type * Fl_Type::click_test ( int  ,
int   
)
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().

◆ comment() [1/2]

◆ comment() [2/2]

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.

◆ copy_properties()

void Fl_Type::copy_properties ( )
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.

◆ enter_live_mode()

Fl_Widget * Fl_Type::enter_live_mode ( int  top = 0)
virtual

Build widgets and dataset needed in live mode.

Returns
a widget pointer that the live mode initiator can 'show()'
See also
leave_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().

◆ insert()

◆ is_button()

◆ is_class()

◆ is_code()

int Fl_Type::is_code ( ) const
virtual

Reimplemented in Fl_Code_Type.

Definition at line 760 of file Fl_Type.cxx.

◆ is_code_block()

int Fl_Type::is_code_block ( ) const
virtual

◆ is_comment()

int Fl_Type::is_comment ( ) const
virtual

Reimplemented in Fl_Comment_Type.

Definition at line 763 of file Fl_Type.cxx.

Referenced by name(), and write_code().

◆ is_decl_block()

int Fl_Type::is_decl_block ( ) const
virtual

Reimplemented in Fl_Widget_Class_Type, Fl_Class_Type, and Fl_DeclBlock_Type.

Definition at line 762 of file Fl_Type.cxx.

◆ is_group()

int Fl_Type::is_group ( ) const
virtual

◆ is_in_class()

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.

References p, and parent.

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().

◆ is_input()

◆ is_menu_button()

int Fl_Type::is_menu_button ( ) const
virtual

◆ is_menu_item()

◆ is_parent()

◆ is_public()

int Fl_Type::is_public ( ) const
virtual

◆ is_spinner()

◆ is_text_display()

◆ is_valuator()

◆ is_value_input()

int Fl_Type::is_value_input ( ) const
virtual

◆ is_widget()

◆ is_window()

◆ label() [1/2]

◆ label() [2/2]

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.

◆ leave_live_mode()

void Fl_Type::leave_live_mode ( )
virtual

Release all resources created when entering live mode.

See also
enter_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().

◆ make()

◆ move_before()

void Fl_Type::move_before ( Fl_Type g)

◆ move_child()

void Fl_Type::move_child ( Fl_Type ,
Fl_Type beforethis 
)
virtual

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().

◆ msgnum()

int Fl_Type::msgnum ( )

◆ name() [1/2]

◆ name() [2/2]

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.

◆ open()

◆ pixmapID()

◆ read_fdesign()

int Fl_Type::read_fdesign ( const char *  ,
const char *   
)
virtual

Reimplemented in Fl_Window_Type, and Fl_Widget_Type.

Definition at line 984 of file Fl_Type.cxx.

◆ read_property()

◆ remove()

◆ remove_child()

void Fl_Type::remove_child ( Fl_Type )
virtual

◆ setlabel()

void Fl_Type::setlabel ( const char *  )
privatevirtual

Reimplemented in Fl_Window_Type, and Fl_Widget_Type.

Definition at line 731 of file Fl_Type.cxx.

Referenced by label().

◆ title()

const char * Fl_Type::title ( )
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().

◆ type_name()

◆ user_data() [1/2]

◆ user_data() [2/2]

void Fl_Type::user_data ( const char *  n)

Definition at line 713 of file Fl_Type.cxx.

References storestring(), and user_data_.

◆ user_data_type() [1/2]

◆ user_data_type() [2/2]

void Fl_Type::user_data_type ( const char *  n)

Definition at line 717 of file Fl_Type.cxx.

References storestring(), and user_data_type_.

◆ user_defined()

int Fl_Type::user_defined ( const char *  cbname) const
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.

References first, and p.

Referenced by Fl_Menu_Item_Type::write_static().

◆ write()

void Fl_Type::write ( )
virtual

◆ write_code1()

◆ write_code2()

◆ write_comment_c()

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().

◆ write_comment_h()

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().

◆ write_comment_inline_c()

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().

◆ write_properties()

◆ write_static()

void Fl_Type::write_static ( )
virtual

Reimplemented in Fl_Menu_Item_Type, and Fl_Widget_Type.

Definition at line 590 of file code.cxx.

Friends And Related Function Documentation

◆ Fl_Window_Type

friend class Fl_Window_Type
friend

Definition at line 47 of file Fl_Type.h.

◆ make_type_browser

Fl_Widget* make_type_browser ( int  ,
int  ,
int  ,
int  ,
const char *   
)
friend

◆ Widget_Browser

friend class Widget_Browser
friend

Definition at line 45 of file Fl_Type.h.

Referenced by make_widget_browser().

Member Data Documentation

◆ callback_

const char* Fl_Type::callback_
protected

Definition at line 56 of file Fl_Type.h.

Referenced by callback(), Fl_Type(), and ~Fl_Type().

◆ code_position

int Fl_Type::code_position

Definition at line 76 of file Fl_Type.h.

Referenced by Fl_Type(), update_sourceview_position(), and write_code().

◆ code_position_end

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().

◆ comment_

const char* Fl_Type::comment_
protected

Definition at line 59 of file Fl_Type.h.

Referenced by comment(), Fl_Type(), and ~Fl_Type().

◆ current

◆ factory

◆ first

◆ header_position

int Fl_Type::header_position

Definition at line 76 of file Fl_Type.h.

Referenced by Fl_Type(), update_sourceview_position(), and write_code().

◆ header_position_end

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().

◆ label_

const char* Fl_Type::label_
protected

Definition at line 55 of file Fl_Type.h.

Referenced by Fl_Type(), label(), and ~Fl_Type().

◆ last

Fl_Type * Fl_Type::last
static

Definition at line 70 of file Fl_Type.h.

Referenced by add(), later_cb(), move_before(), remove(), write_code(), and ~Fl_Type().

◆ level

◆ name_

const char* Fl_Type::name_
protected

Definition at line 54 of file Fl_Type.h.

Referenced by Fl_Type(), Fl_Function_Type::ismain(), label(), name(), and ~Fl_Type().

◆ new_selected

char Fl_Type::new_selected

◆ next

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().

◆ open_

◆ parent

◆ prev

◆ rtti

char Fl_Type::rtti

Definition at line 68 of file Fl_Type.h.

Referenced by Fl_Type().

◆ selected

◆ user_data_

const char* Fl_Type::user_data_
protected

Definition at line 57 of file Fl_Type.h.

Referenced by Fl_Type(), user_data(), and ~Fl_Type().

◆ user_data_type_

const char* Fl_Type::user_data_type_
protected

Definition at line 58 of file Fl_Type.h.

Referenced by Fl_Type(), user_data_type(), and ~Fl_Type().

◆ visible


The documentation for this class was generated from the following files: