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

#include <Fl_Type.h>

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

Public Member Functions

 Fl_Window_Type ()
 
Fl_Typemake ()
 
virtual const char * type_name ()
 
virtual const char * alt_type_name ()
 
void open ()
 
void fix_overlay ()
 
ucharread_image (int &ww, int &hh)
 
virtual void write_properties ()
 
virtual void read_property (const char *)
 
virtual int read_fdesign (const char *, const char *)
 
void add_child (Fl_Type *, Fl_Type *)
 
void move_child (Fl_Type *, Fl_Type *)
 
void remove_child (Fl_Type *)
 
int is_parent () const
 
int is_group () const
 
int is_window () const
 
Fl_Widgetenter_live_mode (int top=0)
 
void leave_live_mode ()
 
void copy_properties ()
 
- Public Member Functions inherited from Fl_Widget_Type
void setimage (Fluid_Image *)
 
void setinactive (Fluid_Image *)
 
 Fl_Widget_Type ()
 
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 int is_widget () const
 
virtual int is_public () const
 
virtual void ideal_size (int &w, int &h)
 
virtual void ideal_spacing (int &x, int &y)
 
 ~Fl_Widget_Type ()
 
void redraw ()
 
- Public Member Functions inherited from Fl_Type
const char * callback_name ()
 
virtual ~Fl_Type ()
 
void add (Fl_Type *parent)
 
void insert (Fl_Type *n)
 
Fl_Typeremove ()
 
void move_before (Fl_Type *)
 
virtual const char * title ()
 
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 write ()
 
void write_comment_h (const char *ind="")
 
void write_comment_c (const char *ind="")
 
void write_comment_inline_c (const char *ind=0L)
 
int msgnum ()
 
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_code () const
 
virtual int is_code_block () const
 
virtual int is_decl_block () const
 
virtual int is_comment () const
 
virtual int is_class () const
 
const char * class_name (const int need_nest) const
 
const class Fl_Class_Typeis_in_class () const
 

Public Attributes

uchar modal
 
uchar non_modal
 
int sr_min_w
 
int sr_min_h
 
int sr_max_w
 
int sr_max_h
 
- Public Attributes inherited from Fl_Widget_Type
const char * xclass
 
Fl_Widgeto
 
int public_
 
Fluid_Imageimage
 
Fluid_Imageinactive
 
- Public Attributes inherited from Fl_Type
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
 

Protected Types

enum  {
  LEFT =1, RIGHT =2, BOTTOM =4, TOP =8,
  DRAG =16, BOX =32
}
 

Protected Member Functions

Fl_Menu_Itemsubtypes ()
 
void draw_overlay ()
 
void newdx ()
 
void newposition (Fl_Widget_Type *, int &x, int &y, int &w, int &h)
 
int handle (int)
 
virtual void setlabel (const char *)
 
void write_code1 ()
 
void write_code2 ()
 
Fl_Widget_Type_make ()
 
Fl_Widgetwidget (int, int, int, int)
 
void moveallchildren ()
 
int pixmapID ()
 
- Protected Member Functions inherited from Fl_Widget_Type
void write_static ()
 
void write_widget_code ()
 
void write_extra_code ()
 
void write_block_close ()
 
void write_color (const char *, Fl_Color)
 
- Protected Member Functions inherited from Fl_Type
 Fl_Type ()
 
int user_defined (const char *cbname) const
 

Protected Attributes

int mx
 
int my
 
int x1
 
int y1
 
int bx
 
int by
 
int br
 
int bt
 
int sx
 
int sy
 
int sr
 
int st
 
int dx
 
int dy
 
int drag
 
int numselected
 
int recalc
 
- Protected Attributes inherited from Fl_Widget_Type
Fl_Widgetlive_widget
 
- Protected Attributes inherited from Fl_Type
const char * name_
 
const char * label_
 
const char * callback_
 
const char * user_data_
 
const char * user_data_type_
 
const char * comment_
 

Friends

class Overlay_Window
 

Additional Inherited Members

- Static Public Attributes inherited from Fl_Widget_Type
static int default_size = FL_NORMAL_SIZE
 
- Static Public Attributes inherited from Fl_Type
static Fl_Typefirst
 
static Fl_Typelast
 
static Fl_Typecurrent
 

Detailed Description

Definition at line 584 of file Fl_Type.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
LEFT 
RIGHT 
BOTTOM 
TOP 
DRAG 
BOX 

Definition at line 597 of file Fl_Type.h.

Constructor & Destructor Documentation

◆ Fl_Window_Type()

Fl_Window_Type::Fl_Window_Type ( )
inline

Definition at line 613 of file Fl_Type.h.

References drag, dx, dy, sr_max_h, sr_max_w, sr_min_h, and sr_min_w.

Referenced by make().

Member Function Documentation

◆ _make()

Fl_Widget_Type* Fl_Window_Type::_make ( )
inlineprotectedvirtual

Implements Fl_Widget_Type.

Definition at line 605 of file Fl_Type.h.

◆ add_child()

void Fl_Window_Type::add_child ( Fl_Type cc,
Fl_Type before 
)
virtual

Reimplemented from Fl_Type.

Definition at line 384 of file Fl_Window_Type.cxx.

References b, Fl_Type::insert(), Fl_Type::is_widget(), Fl_Widget_Type::o, and Fl_Widget::redraw().

◆ alt_type_name()

virtual const char* Fl_Window_Type::alt_type_name ( )
inlinevirtual

Reimplemented from Fl_Type.

Definition at line 618 of file Fl_Type.h.

◆ copy_properties()

void Fl_Window_Type::copy_properties ( )
virtual

copy all properties from the edit widget to the live widget

Todo:
copy resizing constraints over

Reimplemented from Fl_Widget_Type.

Definition at line 1593 of file Fl_Window_Type.cxx.

References Fl_Widget_Type::copy_properties().

Referenced by enter_live_mode().

◆ draw_overlay()

◆ enter_live_mode()

Fl_Widget * Fl_Window_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_Widget_Type.

Definition at line 1572 of file Fl_Window_Type.cxx.

References copy_properties(), Fl_Group::end(), Fl_Type::enter_live_mode(), Fl_Widget::h(), Fl_Type::level, Fl_Widget_Type::live_widget, Fl_Type::next, Fl_Widget_Type::o, Fl_Widget::w(), Fl_Widget::x(), and Fl_Widget::y().

◆ fix_overlay()

void Fl_Window_Type::fix_overlay ( )

◆ handle()

◆ is_group()

int Fl_Window_Type::is_group ( ) const
inlinevirtual

Reimplemented from Fl_Type.

Definition at line 634 of file Fl_Type.h.

◆ is_parent()

int Fl_Window_Type::is_parent ( ) const
inlinevirtual

Reimplemented from Fl_Type.

Reimplemented in Fl_Widget_Class_Type.

Definition at line 633 of file Fl_Type.h.

◆ is_window()

int Fl_Window_Type::is_window ( ) const
inlinevirtual

Reimplemented from Fl_Type.

Definition at line 635 of file Fl_Type.h.

◆ leave_live_mode()

void Fl_Window_Type::leave_live_mode ( )
virtual

Release all resources created when entering live mode.

See also
enter_live_mode()

Reimplemented from Fl_Widget_Type.

Definition at line 1587 of file Fl_Window_Type.cxx.

◆ make()

◆ move_child()

void Fl_Window_Type::move_child ( Fl_Type cc,
Fl_Type before 
)
virtual

Reimplemented from Fl_Type.

Definition at line 398 of file Fl_Window_Type.cxx.

References b, Fl_Type::insert(), Fl_Widget_Type::o, Fl_Widget::redraw(), and Fl_Type::remove().

◆ moveallchildren()

◆ newdx()

void Fl_Window_Type::newdx ( )
protected

Definition at line 522 of file Fl_Window_Type.cxx.

References BOTTOM, BOX, br, bt, bx, by, drag, DRAG, dx, dy, Fl::event_state(), FL_ALT, gridx, gridy, LEFT, mx, my, Fl_Widget_Type::o, RIGHT, snap, TOP, x1, and y1.

Referenced by handle().

◆ newposition()

void Fl_Window_Type::newposition ( Fl_Widget_Type myo,
int &  x,
int &  y,
int &  w,
int &  h 
)
protected

◆ open()

◆ pixmapID()

int Fl_Window_Type::pixmapID ( )
inlineprotectedvirtual

Reimplemented from Fl_Type.

Reimplemented in Fl_Widget_Class_Type.

Definition at line 609 of file Fl_Type.h.

◆ read_fdesign()

int Fl_Window_Type::read_fdesign ( const char *  propname,
const char *  value 
)
virtual

◆ read_image()

uchar * Fl_Window_Type::read_image ( int &  ww,
int &  hh 
)

Definition at line 427 of file Fl_Window_Type.cxx.

References Fl_Widget_Type::o, and Overlay_Window::read_image().

Referenced by save_template_cb().

◆ read_property()

void Fl_Window_Type::read_property ( const char *  c)
virtual

◆ remove_child()

void Fl_Window_Type::remove_child ( Fl_Type cc)
virtual

Reimplemented from Fl_Type.

Definition at line 392 of file Fl_Window_Type.cxx.

References Fl_Widget_Type::o, Fl_Widget::redraw(), and Fl_Type::remove().

◆ setlabel()

void Fl_Window_Type::setlabel ( const char *  n)
protectedvirtual

Reimplemented from Fl_Widget_Type.

Definition at line 498 of file Fl_Window_Type.cxx.

References Fl_Widget_Type::o.

◆ subtypes()

Fl_Menu_Item* Fl_Window_Type::subtypes ( )
inlineprotectedvirtual

Reimplemented from Fl_Widget_Type.

Definition at line 587 of file Fl_Type.h.

References window_type_menu.

◆ type_name()

virtual const char* Fl_Window_Type::type_name ( )
inlinevirtual

Implements Fl_Type.

Reimplemented in Fl_Widget_Class_Type.

Definition at line 617 of file Fl_Type.h.

◆ widget()

Fl_Widget* Fl_Window_Type::widget ( int  ,
int  ,
int  ,
int   
)
inlineprotectedvirtual

Implements Fl_Widget_Type.

Definition at line 606 of file Fl_Type.h.

◆ write_code1()

void Fl_Window_Type::write_code1 ( )
protectedvirtual

Reimplemented from Fl_Widget_Type.

Reimplemented in Fl_Widget_Class_Type.

Definition at line 1347 of file Fl_Window_Type.cxx.

References Fl_Widget_Type::write_code1().

◆ write_code2()

◆ write_properties()

void Fl_Window_Type::write_properties ( )
virtual

Friends And Related Function Documentation

◆ Overlay_Window

friend class Overlay_Window
friend

Definition at line 589 of file Fl_Type.h.

Referenced by make(), and Fl_Widget_Class_Type::make().

Member Data Documentation

◆ br

int Fl_Window_Type::br
protected

Definition at line 592 of file Fl_Type.h.

Referenced by draw_overlay(), handle(), newdx(), and newposition().

◆ bt

int Fl_Window_Type::bt
protected

Definition at line 592 of file Fl_Type.h.

Referenced by draw_overlay(), handle(), newdx(), and newposition().

◆ bx

int Fl_Window_Type::bx
protected

Definition at line 592 of file Fl_Type.h.

Referenced by draw_overlay(), handle(), newdx(), and newposition().

◆ by

int Fl_Window_Type::by
protected

Definition at line 592 of file Fl_Type.h.

Referenced by draw_overlay(), handle(), newdx(), and newposition().

◆ drag

int Fl_Window_Type::drag
protected

Definition at line 595 of file Fl_Type.h.

Referenced by draw_overlay(), Fl_Window_Type(), handle(), make(), newdx(), and newposition().

◆ dx

int Fl_Window_Type::dx
protected

Definition at line 594 of file Fl_Type.h.

Referenced by draw_overlay(), Fl_Window_Type(), handle(), moveallchildren(), newdx(), and newposition().

◆ dy

int Fl_Window_Type::dy
protected

Definition at line 594 of file Fl_Type.h.

Referenced by draw_overlay(), Fl_Window_Type(), handle(), moveallchildren(), newdx(), and newposition().

◆ modal

uchar Fl_Window_Type::modal

◆ mx

int Fl_Window_Type::mx
protected

Definition at line 590 of file Fl_Type.h.

Referenced by draw_overlay(), handle(), and newdx().

◆ my

int Fl_Window_Type::my
protected

Definition at line 590 of file Fl_Type.h.

Referenced by draw_overlay(), handle(), and newdx().

◆ non_modal

uchar Fl_Window_Type::non_modal

◆ numselected

int Fl_Window_Type::numselected
protected

Definition at line 596 of file Fl_Type.h.

Referenced by draw_overlay(), handle(), and make().

◆ recalc

int Fl_Window_Type::recalc
protected

Definition at line 607 of file Fl_Type.h.

Referenced by draw_overlay(), fix_overlay(), and moveallchildren().

◆ sr

int Fl_Window_Type::sr
protected

Definition at line 593 of file Fl_Type.h.

Referenced by draw_overlay().

◆ sr_max_h

int Fl_Window_Type::sr_max_h

◆ sr_max_w

int Fl_Window_Type::sr_max_w

◆ sr_min_h

int Fl_Window_Type::sr_min_h

◆ sr_min_w

int Fl_Window_Type::sr_min_w

◆ st

int Fl_Window_Type::st
protected

Definition at line 593 of file Fl_Type.h.

Referenced by draw_overlay().

◆ sx

int Fl_Window_Type::sx
protected

Definition at line 593 of file Fl_Type.h.

Referenced by draw_overlay().

◆ sy

int Fl_Window_Type::sy
protected

Definition at line 593 of file Fl_Type.h.

Referenced by draw_overlay().

◆ x1

int Fl_Window_Type::x1
protected

Definition at line 591 of file Fl_Type.h.

Referenced by draw_overlay(), handle(), and newdx().

◆ y1

int Fl_Window_Type::y1
protected

Definition at line 591 of file Fl_Type.h.

Referenced by draw_overlay(), handle(), and newdx().


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