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_Widget_Type Class Reference

#include <Fl_Type.h>

Inheritance diagram for Fl_Widget_Type:
Collaboration diagram for Fl_Widget_Type:

List of all members.

Public Member Functions

void setimage (Fluid_Image *)
void setinactive (Fluid_Image *)
 Fl_Widget_Type ()
Fl_Typemake ()
void open ()
const char * extra_code (int n) const
void extra_code (int n, const char *)
const char * subclass () const
void subclass (const char *)
const char * tooltip () const
void tooltip (const char *)
const char * image_name () const
void image_name (const char *)
const char * inactive_name () const
void inactive_name (const char *)
uchar hotspot () const
void hotspot (uchar v)
uchar resizable () const
void resizable (uchar v)
virtual int textstuff (int what, Fl_Font &, int &, Fl_Color &)
virtual Fl_Menu_Itemsubtypes ()
virtual int is_widget () const
virtual int is_public () const
virtual void write_properties ()
virtual void read_property (const char *)
virtual int read_fdesign (const char *, const char *)
virtual Fl_Widgetenter_live_mode (int top=0)
virtual void leave_live_mode ()
virtual void copy_properties ()
virtual void ideal_size (int &w, int &h)
virtual void ideal_spacing (int &x, int &y)
 ~Fl_Widget_Type ()
void redraw ()

Public Attributes

const char * xclass
Fl_Widgeto
int public_
Fluid_Imageimage
Fluid_Imageinactive

Static Public Attributes

static int default_size = FL_NORMAL_SIZE

Protected Member Functions

void write_static ()
void write_code1 ()
void write_widget_code ()
void write_extra_code ()
void write_block_close ()
void write_code2 ()
void write_color (const char *, Fl_Color)

Protected Attributes

Fl_Widgetlive_widget

Detailed Description

Definition at line 333 of file Fl_Type.h.


Constructor & Destructor Documentation

Fl_Widget_Type::Fl_Widget_Type ( )

Definition at line 205 of file Fl_Widget_Type.cxx.

References image, inactive, NUM_EXTRA_CODE, o, public_, and xclass.

Fl_Widget_Type::~Fl_Widget_Type ( )

Definition at line 219 of file Fl_Widget_Type.cxx.

References Fl_Widget::hide(), NUM_EXTRA_CODE, o, and Fl_Widget::parent().


Member Function Documentation

Fl_Widget * Fl_Widget_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 from Fl_Type.

Reimplemented in Fl_Group_Type, Fl_Table_Type, Fl_Tabs_Type, Fl_Scroll_Type, and Fl_Window_Type.

Definition at line 2771 of file Fl_Widget_Type.cxx.

References copy_properties(), Fl_Widget::h(), live_widget, Fl_Widget::w(), Fl_Widget::x(), and Fl_Widget::y().

Referenced by live_mode_cb().

const char* Fl_Widget_Type::extra_code ( int  n) const [inline]
void Fl_Widget_Type::extra_code ( int  n,
const char *  n 
)

Definition at line 234 of file Fl_Widget_Type.cxx.

References storestring().

uchar Fl_Widget_Type::hotspot ( ) const [inline]
void Fl_Widget_Type::hotspot ( uchar  v) [inline]

Definition at line 383 of file Fl_Type.h.

void Fl_Widget_Type::ideal_spacing ( int &  x,
int &  y 
) [virtual]

Reimplemented in Fl_Tabs_Type.

Definition at line 94 of file Fl_Widget_Type.cxx.

References Fl_Widget::labelsize(), and o.

Referenced by Fl_Window_Type::draw_overlay().

void Fl_Widget_Type::image_name ( const char *  n)

Definition at line 249 of file Fl_Widget_Type.cxx.

References Fluid_Image::find(), setimage(), and storestring().

const char* Fl_Widget_Type::image_name ( ) const [inline]

Definition at line 378 of file Fl_Type.h.

Referenced by read_property(), and write_properties().

void Fl_Widget_Type::inactive_name ( const char *  n)

Definition at line 254 of file Fl_Widget_Type.cxx.

References Fluid_Image::find(), setinactive(), and storestring().

const char* Fl_Widget_Type::inactive_name ( ) const [inline]

Definition at line 380 of file Fl_Type.h.

Referenced by read_property(), and write_properties().

int Fl_Widget_Type::is_public ( ) const [virtual]

Reimplemented from Fl_Type.

Definition at line 62 of file Fl_Widget_Type.cxx.

References public_.

int Fl_Widget_Type::is_widget ( ) const [virtual]

Reimplemented from Fl_Type.

Definition at line 61 of file Fl_Widget_Type.cxx.

Referenced by h_cb(), image_browse_cb(), image_cb(), inactive_browse_cb(), inactive_cb(), tooltip_cb(), w_cb(), x_cb(), and y_cb().

void Fl_Widget_Type::leave_live_mode ( ) [virtual]

Release all resources created when enetring live mode.

See also:
enter_live_mode()

Reimplemented from Fl_Type.

Reimplemented in Fl_Group_Type, and Fl_Window_Type.

Definition at line 2778 of file Fl_Widget_Type.cxx.

void Fl_Widget_Type::open ( ) [virtual]

Reimplemented from Fl_Type.

Reimplemented in Fl_Window_Type.

Definition at line 1876 of file Fl_Widget_Type.cxx.

References make_widget_panel(), and Fl_Window::show().

void Fl_Widget_Type::resizable ( uchar  v)
void Fl_Widget_Type::setimage ( Fluid_Image i)
void Fl_Widget_Type::setinactive ( Fluid_Image i)
void Fl_Widget_Type::subclass ( const char *  n)

Definition at line 239 of file Fl_Widget_Type.cxx.

References redraw_browser(), storestring(), and Fl_Type::visible.

const char* Fl_Widget_Type::subclass ( ) const [inline]
Fl_Menu_Item * Fl_Widget_Type::subtypes ( ) [virtual]

Reimplemented in Fl_Window_Type, Fl_Menu_Item_Type, and Fl_Submenu_Type.

Definition at line 1701 of file Fl_Widget_Type.cxx.

Referenced by read_property(), subtype_cb(), and write_properties().

int Fl_Widget_Type::textstuff ( int  what,
Fl_Font ,
int &  ,
Fl_Color  
) [virtual]
void Fl_Widget_Type::tooltip ( const char *  n)

Definition at line 244 of file Fl_Widget_Type.cxx.

References o, storestring(), and Fl_Widget::tooltip().

const char* Fl_Widget_Type::tooltip ( ) const [inline]
void Fl_Widget_Type::write_block_close ( ) [protected]
void Fl_Widget_Type::write_code2 ( ) [protected, virtual]

Reimplemented from Fl_Type.

Reimplemented in Fl_Group_Type, Fl_Window_Type, Fl_Widget_Class_Type, Fl_Menu_Item_Type, and Fl_Menu_Type.

Definition at line 2381 of file Fl_Widget_Type.cxx.

References write_block_close(), and write_extra_code().

void Fl_Widget_Type::write_extra_code ( ) [protected]
void Fl_Widget_Type::write_widget_code ( ) [protected]

Member Data Documentation

Definition at line 360 of file Fl_Type.h.

Referenced by active_cb(), Fl_Window_Type::add_child(), Fl_Table_Type::add_child(), Fl_Group_Type::add_child(), align_cb(), align_position_cb(), align_text_image_cb(), border_cb(), box_cb(), Fl_Menu_Type::build_menu(), Fl_Input_Choice_Type::build_menu(), check_redraw_corresponding_parent(), Fl_Input_Choice_Type::click_test(), Fl_Menu_Type::click_test(), Fl_Tabs_Type::click_test(), color2_cb(), color_cb(), Fl_Pack_Type::copy_properties(), copy_properties(), Fl_Input_Choice_Type::copy_properties(), Fl_Menu_Type::copy_properties(), Fl_Scroll_Type::copy_properties(), Fl_Input_Type::copy_properties(), down_box_cb(), Fl_Window_Type::draw_overlay(), Fl_Window_Type::enter_live_mode(), Fl_Scroll_Type::enter_live_mode(), Fl_Table_Type::enter_live_mode(), Fl_Tabs_Type::enter_live_mode(), Fl_Group_Type::enter_live_mode(), fix_group_size(), Fl_Window_Type::fix_overlay(), Fl_Widget_Type(), Fl_Menu_Item_Type::flags(), grid_cb(), group_cb(), guides_cb(), Fl_Window_Type::handle(), ideal_size(), Fl_Menu_Bar_Type::ideal_size(), Fl_Input_Choice_Type::ideal_size(), Fl_Choice_Type::ideal_size(), Fl_Menu_Button_Type::ideal_size(), Fl_Value_Output_Type::ideal_size(), Fl_Value_Input_Type::ideal_size(), Fl_Output_Type::ideal_size(), Fl_Help_View_Type::ideal_size(), Fl_Text_Editor_Type::ideal_size(), Fl_Text_Display_Type::ideal_size(), Fl_File_Input_Type::ideal_size(), Fl_Input_Type::ideal_size(), Fl_Spinner_Type::ideal_size(), Fl_File_Browser_Type::ideal_size(), Fl_Check_Browser_Type::ideal_size(), Fl_Browser_Type::ideal_size(), Fl_Return_Button_Type::ideal_size(), Fl_Button_Type::ideal_size(), ideal_spacing(), Fl_Tabs_Type::ideal_spacing(), labelcolor_cb(), labelfont_cb(), labelsize_cb(), labeltype_cb(), Fl_Widget_Class_Type::make(), Fl_Window_Type::make(), make(), Fl_Menu_Item_Type::make(), max_cb(), min_cb(), Fl_Window_Type::move_child(), Fl_Table_Type::move_child(), Fl_Group_Type::move_child(), Fl_Window_Type::moveallchildren(), Fl_Window_Type::newdx(), Fl_Window_Type::newposition(), Fl_Window_Type::open(), Fl_Window_Type::read_fdesign(), read_fdesign(), Fl_Window_Type::read_image(), Fl_Window_Type::read_property(), redraw(), Fl_Window_Type::remove_child(), Fl_Table_Type::remove_child(), Fl_Tabs_Type::remove_child(), Fl_Group_Type::remove_child(), resizable(), set_max_size_cb(), set_min_size_cb(), setimage(), setinactive(), Fl_Window_Type::setlabel(), shortcut_in_cb(), slider_size_cb(), step_cb(), subclassname(), subtype_cb(), textcolor_cb(), textfont_cb(), textsize_cb(), Fl_Value_Output_Type::textstuff(), Fl_Value_Input_Type::textstuff(), toggle_overlays(), tooltip(), value_cb(), visible_cb(), when_button_cb(), when_cb(), Fl_Widget_Class_Type::write_code1(), Fl_Widget_Class_Type::write_code2(), Fl_Window_Type::write_code2(), Fl_Menu_Item_Type::write_item(), Fl_Window_Type::write_properties(), write_widget_code(), xclass_cb(), Fl_Menu_Type::~Fl_Menu_Type(), and ~Fl_Widget_Type().


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