#include <Fl_Main_Window.h>
Inheritance diagram for Fl_Main_Window:
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_Bar * | menu () |
Returns menu for main window. More... | |
void | toolbar (Fl_Tool_Bar *w) |
Set tool bar for main window. More... | |
Fl_Tool_Bar * | toolbar () |
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_Widget * | status () |
Returns status bar for main window. More... |
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.
|
Returns menu for main window. If no menu set, it will be created. It is always safe to call this function. |
|
Set menu for main window. Menu will be inserted to window and placed correctly. |
|
Returns status bar for main window. If no status bar set, it will be created. |
|
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. |
|
Returns tool bar for main window. If no tool bar set, it will be created. It is always safe to call this function. |
|
Set tool bar for main window. Tool bar will be inserted to window and placed correctly. |
|
Returns view group for main window. If no view group set, it will be created. It is always safe to call this function. |
|
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. |