Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Main_Window Class Reference

The Fl_Main_Window class provides easy interface for applications main windows. More...

#include <Fl_Main_Window.h>

Inheritance diagram for Fl_Main_Window:

Fl_Window Fl_Widget Fl_Help_Dialog List of all members.

Public Methods

 Fl_Main_Window (int x, int y, int w, int h, const char *l=0)
 Create main window with given position/size and label.

 Fl_Main_Window (int w, int h, const char *l=0)
 Create main window with given size and label.

 ~Fl_Main_Window ()
 Destructor.

void menu (Fl_Menu_Bar *w)
 Set menu for main window. More...

Fl_Menu_Barmenu ()
 Returns menu for main window. More...

void toolbar (Fl_Tool_Bar *w)
 Set tool bar for main window. More...

Fl_Tool_Bartoolbar ()
 Returns tool bar for main window. More...

void view (Fl_Group *w)
 Set view group for main window. More...

Fl_Group * view ()
 Returns view group for main window. More...

void status (Fl_Widget *w)
 Set status bar widget for main window. More...

Fl_Widgetstatus ()
 Returns status bar for main window. More...


Detailed Description

The Fl_Main_Window class provides easy interface for applications main windows.

It provides automatic placement and creation for typical main window widgets, such as menu bar or tool bar. However, it is possible to bypass auto creation by setting already created widgets for main window object.

Definition at line 46 of file Fl_Main_Window.h.


Member Function Documentation

Fl_Menu_Bar* Fl_Main_Window::menu  
 

Returns menu for main window.

If no menu set, it will be created. It is always safe to call this function.

void Fl_Main_Window::menu Fl_Menu_Bar   w
 

Set menu for main window.

Menu will be inserted to window and placed correctly.

Fl_Widget* Fl_Main_Window::status  
 

Returns status bar for main window.

If no status bar set, it will be created.

Note:
Created widget is Fl_Box, if you need more complex grouping status bar, use void status(Fl_Widget *w) It is always safe to call this function.

void Fl_Main_Window::status Fl_Widget   w
 

Set status bar widget for main window.

Status bar will be inserted at bottom of the window. You may want to call this function, if you need more complex status bar than, single Fl_Box widget.

Fl_Tool_Bar* Fl_Main_Window::toolbar  
 

Returns tool bar for main window.

If no tool bar set, it will be created. It is always safe to call this function.

void Fl_Main_Window::toolbar Fl_Tool_Bar   w
 

Set tool bar for main window.

Tool bar will be inserted to window and placed correctly.

Fl_Group* Fl_Main_Window::view  
 

Returns view group for main window.

If no view group set, it will be created. It is always safe to call this function.

void Fl_Main_Window::view Fl_Group *    w
 

Set view group for main window.

view group will be inserted to window and placed correctly. You may want to call this, if you are e.g. using MDI viewport. It is more clever to set MDI viewport to main window view, than create it as child of default view group.


The documentation for this class was generated from the following file:
Generated on Thu Jul 31 15:33:49 2003 for eFLTK by doxygen1.2.15