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

#include <Fl_Type.h>

Inheritance diagram for Fl_Window_Type:
Collaboration diagram for Fl_Window_Type:

List of all members.

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 Attributes

uchar modal
uchar non_modal
int sr_min_w
int sr_min_h
int sr_max_w
int sr_max_h

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 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

Friends

class Overlay_Window

Detailed Description

Definition at line 543 of file Fl_Type.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
LEFT 
RIGHT 
BOTTOM 
TOP 
DRAG 
BOX 

Definition at line 556 of file Fl_Type.h.


Constructor & Destructor Documentation

Fl_Window_Type::Fl_Window_Type ( ) [inline]

Definition at line 572 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

Fl_Widget_Type* Fl_Window_Type::_make ( ) [inline, protected, virtual]

Implements Fl_Widget_Type.

Definition at line 564 of file Fl_Type.h.

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

Reimplemented from Fl_Type.

Definition at line 393 of file Fl_Window_Type.cxx.

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

virtual const char* Fl_Window_Type::alt_type_name ( ) [inline, virtual]

Reimplemented from Fl_Type.

Definition at line 577 of file Fl_Type.h.

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 1590 of file Fl_Window_Type.cxx.

Referenced by 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 1569 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().

void Fl_Window_Type::fix_overlay ( )

Definition at line 1097 of file Fl_Window_Type.cxx.

References Fl_Menu_Item::label(), Fl_Widget_Type::o, and recalc.

int Fl_Window_Type::is_group ( ) const [inline, virtual]

Reimplemented from Fl_Type.

Definition at line 593 of file Fl_Type.h.

int Fl_Window_Type::is_parent ( ) const [inline, virtual]

Reimplemented from Fl_Type.

Reimplemented in Fl_Widget_Class_Type.

Definition at line 592 of file Fl_Type.h.

int Fl_Window_Type::is_window ( ) const [inline, virtual]

Reimplemented from Fl_Type.

Definition at line 594 of file Fl_Type.h.

void Fl_Window_Type::leave_live_mode ( ) [virtual]

Release all resources created when enetring live mode.

See also:
enter_live_mode()

Reimplemented from Fl_Widget_Type.

Definition at line 1584 of file Fl_Window_Type.cxx.

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

Reimplemented from Fl_Type.

Definition at line 407 of file Fl_Window_Type.cxx.

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

void Fl_Window_Type::newdx ( ) [protected]

Definition at line 531 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().

void Fl_Window_Type::newposition ( Fl_Widget_Type myo,
int &  x,
int &  y,
int &  w,
int &  h 
) [protected]
void Fl_Window_Type::open ( ) [virtual]
int Fl_Window_Type::pixmapID ( ) [inline, protected, virtual]

Reimplemented from Fl_Type.

Reimplemented in Fl_Widget_Class_Type.

Definition at line 568 of file Fl_Type.h.

int Fl_Window_Type::read_fdesign ( const char *  propname,
const char *  value 
) [virtual]
uchar * Fl_Window_Type::read_image ( int &  ww,
int &  hh 
)

Definition at line 436 of file Fl_Window_Type.cxx.

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

Referenced by print_cb(), and save_template_cb().

void Fl_Window_Type::read_property ( const char *  c) [virtual]
void Fl_Window_Type::remove_child ( Fl_Type cc) [virtual]

Reimplemented from Fl_Type.

Definition at line 401 of file Fl_Window_Type.cxx.

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

void Fl_Window_Type::setlabel ( const char *  n) [protected, virtual]

Reimplemented from Fl_Widget_Type.

Definition at line 507 of file Fl_Window_Type.cxx.

References Fl_Widget_Type::o.

Fl_Menu_Item* Fl_Window_Type::subtypes ( ) [inline, protected, virtual]

Reimplemented from Fl_Widget_Type.

Definition at line 546 of file Fl_Type.h.

References window_type_menu.

virtual const char* Fl_Window_Type::type_name ( ) [inline, virtual]

Implements Fl_Type.

Reimplemented in Fl_Widget_Class_Type.

Definition at line 576 of file Fl_Type.h.

Fl_Widget* Fl_Window_Type::widget ( int  ,
int  ,
int  ,
int   
) [inline, protected, virtual]

Implements Fl_Widget_Type.

Definition at line 565 of file Fl_Type.h.

void Fl_Window_Type::write_code1 ( ) [protected, virtual]

Reimplemented from Fl_Widget_Type.

Reimplemented in Fl_Widget_Class_Type.

Definition at line 1356 of file Fl_Window_Type.cxx.

void Fl_Window_Type::write_properties ( ) [virtual]

Friends And Related Function Documentation

friend class Overlay_Window [friend]

Definition at line 548 of file Fl_Type.h.

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


Member Data Documentation

int Fl_Window_Type::br [protected]

Definition at line 551 of file Fl_Type.h.

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

int Fl_Window_Type::bt [protected]

Definition at line 551 of file Fl_Type.h.

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

int Fl_Window_Type::bx [protected]

Definition at line 551 of file Fl_Type.h.

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

int Fl_Window_Type::by [protected]

Definition at line 551 of file Fl_Type.h.

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

int Fl_Window_Type::drag [protected]

Definition at line 554 of file Fl_Type.h.

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

int Fl_Window_Type::dx [protected]

Definition at line 553 of file Fl_Type.h.

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

int Fl_Window_Type::dy [protected]

Definition at line 553 of file Fl_Type.h.

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

int Fl_Window_Type::mx [protected]

Definition at line 549 of file Fl_Type.h.

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

int Fl_Window_Type::my [protected]

Definition at line 549 of file Fl_Type.h.

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

int Fl_Window_Type::numselected [protected]

Definition at line 555 of file Fl_Type.h.

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

int Fl_Window_Type::recalc [protected]

Definition at line 566 of file Fl_Type.h.

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

int Fl_Window_Type::sr [protected]

Definition at line 552 of file Fl_Type.h.

Referenced by draw_overlay().

int Fl_Window_Type::st [protected]

Definition at line 552 of file Fl_Type.h.

Referenced by draw_overlay().

int Fl_Window_Type::sx [protected]

Definition at line 552 of file Fl_Type.h.

Referenced by draw_overlay().

int Fl_Window_Type::sy [protected]

Definition at line 552 of file Fl_Type.h.

Referenced by draw_overlay().

int Fl_Window_Type::x1 [protected]

Definition at line 550 of file Fl_Type.h.

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

int Fl_Window_Type::y1 [protected]

Definition at line 550 of file Fl_Type.h.

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


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