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

Fl_Type Class Reference

#include <Fl_Type.h>

Inheritance diagram for Fl_Type:
Collaboration diagram for Fl_Type:

List of all members.

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 ()
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="")
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_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
class Fl_Class_Typeis_in_class () const

Public Attributes

Fl_Typeparent
char new_selected
char selected
char open_
char visible
char rtti
int level
static Fl_Typelast
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_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_

Friends

class Widget_Browser
class Fl_Window_Type
Fl_Widgetmake_type_browser (int, int, int, int, const char *l=0)

Detailed Description

Definition at line 45 of file Fl_Type.h.


Constructor & Destructor Documentation

Fl_Type::~Fl_Type ( ) [virtual]

Member Function Documentation

void Fl_Type::add_child ( Fl_Type ,
Fl_Type beforethis 
) [virtual]
void Fl_Type::callback ( const char *  n)

Definition at line 636 of file Fl_Type.cxx.

References callback_, and storestring().

Fl_Type * Fl_Type::click_test ( int  ,
int   
) [virtual]

Reimplemented in Fl_Tabs_Type, Fl_Menu_Type, and Fl_Input_Choice_Type.

Definition at line 495 of file Fl_Type.cxx.

Referenced by Fl_Window_Type::handle().

const char* Fl_Type::comment ( ) [inline]
void Fl_Type::comment ( const char *  n)

Definition at line 648 of file Fl_Type.cxx.

References comment_, and storestring().

void Fl_Type::copy_properties ( ) [virtual]

Copy all needed properties for this tye into the live object.

Reimplemented in Fl_Input_Type, Fl_Widget_Type, Fl_Group_Type, Fl_Pack_Type, Fl_Scroll_Type, Fl_Tile_Type, Fl_Window_Type, Fl_Menu_Type, and Fl_Input_Choice_Type.

Definition at line 1008 of file Fl_Type.cxx.

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_Widget_Type, Fl_Group_Type, Fl_Table_Type, Fl_Tabs_Type, Fl_Scroll_Type, and Fl_Window_Type.

Definition at line 994 of file Fl_Type.cxx.

Referenced by Fl_Window_Type::enter_live_mode(), Fl_Scroll_Type::enter_live_mode(), Fl_Tabs_Type::enter_live_mode(), and Fl_Group_Type::enter_live_mode().

int Fl_Type::is_code_block ( ) const [virtual]
int Fl_Type::is_comment ( ) const [virtual]

Reimplemented in Fl_Comment_Type.

Definition at line 687 of file Fl_Type.cxx.

Referenced by name(), and write_code().

int Fl_Type::is_group ( ) const [virtual]
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 1296 of file Fl_Function_Type.cxx.

References is_class(), and parent.

Referenced by has_toplevel_function(), name_public_cb(), name_public_member_cb(), Fl_Data_Type::open(), Fl_Decl_Type::open(), Fl_Function_Type::open(), Fl_Data_Type::write_code1(), Fl_Decl_Type::write_code1(), and Fl_Widget_Type::write_static().

int Fl_Type::is_menu_button ( ) const [virtual]
int Fl_Type::is_public ( ) const [virtual]
int Fl_Type::is_value_input ( ) const [virtual]
void Fl_Type::label ( const char *  n)

Definition at line 629 of file Fl_Type.cxx.

References label_, name_, Fl_Widget::redraw(), storestring(), and visible.

void Fl_Type::leave_live_mode ( ) [virtual]

Release all resources created when enetring live mode.

See also:
enter_live_mode()

Reimplemented in Fl_Widget_Type, Fl_Group_Type, and Fl_Window_Type.

Definition at line 1002 of file Fl_Type.cxx.

Referenced by live_mode_cb().

void Fl_Type::move_before ( Fl_Type g)
void Fl_Type::move_child ( Fl_Type ,
Fl_Type beforethis 
) [virtual]

Reimplemented in Fl_Group_Type, Fl_Table_Type, Fl_Window_Type, Fl_Submenu_Type, and Fl_Menu_Type.

Definition at line 497 of file Fl_Type.cxx.

Referenced by move_before(), and Fl_Submenu_Type::move_child().

int Fl_Type::msgnum ( )
void Fl_Type::name ( const char *  n)

Definition at line 622 of file Fl_Type.cxx.

References is_comment(), name_, Fl_Widget::redraw(), storestring(), and visible.

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

Reimplemented in Fl_Widget_Type, and Fl_Window_Type.

Definition at line 907 of file Fl_Type.cxx.

void Fl_Type::remove_child ( Fl_Type ) [virtual]
const char * Fl_Type::title ( ) [virtual]

Reimplemented in Fl_Function_Type, and Fl_Comment_Type.

Definition at line 260 of file Fl_Type.cxx.

References name(), and type_name().

Referenced by Widget_Browser::handle(), name_cb(), and write_code1().

void Fl_Type::user_data ( const char *  n)

Definition at line 640 of file Fl_Type.cxx.

References storestring(), and user_data_.

void Fl_Type::user_data_type ( const char *  n)

Definition at line 644 of file Fl_Type.cxx.

References storestring(), and user_data_type_.

int Fl_Type::user_defined ( const char *  cbname) const [protected]

Check whether callback name 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 1019 of file Fl_Type.cxx.

References name(), next, and type_name().

Referenced by Fl_Menu_Item_Type::write_static().

void Fl_Type::write ( )
void Fl_Type::write_comment_c ( const char *  pre = "")

Write a comment inot the header file.

Definition at line 950 of file Fl_Type.cxx.

References comment(), and write_c().

Referenced by Fl_Data_Type::write_code1(), Fl_Decl_Type::write_code1(), and Fl_Function_Type::write_code1().

void Fl_Type::write_comment_h ( const char *  pre = "")

Write a comment inot the header file.

Definition at line 927 of file Fl_Type.cxx.

References comment(), and write_h().

Referenced by Fl_Class_Type::write_code1(), Fl_Data_Type::write_code1(), and Fl_Decl_Type::write_code1().

void Fl_Type::write_static ( ) [virtual]

Reimplemented in Fl_Widget_Type, and Fl_Menu_Item_Type.

Definition at line 594 of file code.cxx.


Friends And Related Function Documentation

friend class Fl_Window_Type [friend]

Definition at line 49 of file Fl_Type.h.

Fl_Widget* make_type_browser ( int  ,
int  ,
int  ,
int  ,
const char *  l = 0 
) [friend]
friend class Widget_Browser [friend]

Definition at line 47 of file Fl_Type.h.

Referenced by make_widget_browser().


Member Data Documentation

const char* Fl_Type::callback_ [protected]

Definition at line 58 of file Fl_Type.h.

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

Definition at line 78 of file Fl_Type.h.

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

Definition at line 79 of file Fl_Type.h.

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

const char* Fl_Type::comment_ [protected]

Definition at line 61 of file Fl_Type.h.

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

Definition at line 78 of file Fl_Type.h.

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

Definition at line 79 of file Fl_Type.h.

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

const char* Fl_Type::label_ [protected]

Definition at line 57 of file Fl_Type.h.

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

Definition at line 72 of file Fl_Type.h.

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

const char* Fl_Type::name_ [protected]

Definition at line 56 of file Fl_Type.h.

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

Definition at line 70 of file Fl_Type.h.

Referenced by Fl_Type().

const char* Fl_Type::user_data_ [protected]

Definition at line 59 of file Fl_Type.h.

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

const char* Fl_Type::user_data_type_ [protected]

Definition at line 60 of file Fl_Type.h.

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

Definition at line 69 of file Fl_Type.h.

Referenced by Fl_Type(), insert(), label(), name(), and Fl_Widget_Type::subclass().


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