Home | Libraries | People | FAQ | More |
boost::ui::frame — Top level widget that hosts other widgets and supports menu bar.
// In header: <boost/ui/frame.hpp> class frame : public boost::ui::window { public: // construct/copy/destruct explicit frame(const uistring &); frame(); // public member functions ui::menu_bar menu_bar(); ui::status_bar status_bar(); // private member functions detail_impl * get_impl(); };
Usage example:
class my_frame : public ui::frame { typedef my_frame this_type; public: my_frame() : ui::frame("Frame example") { ui::button(*this, "&Close this frame") .on_press(&this_type::on_close, this); menu_bar() << ( ui::menu("&File") << ui::menu::item("&Quit") .on_press(&this_type::on_close, this) ) ; status_bar().text("Ready"); } private: void on_close() { close(); } }; void run_frame() { my_frame().show_modal(); }
See Also:
frame
public
construct/copy/destructexplicit frame(const uistring & title);Creates frame with the title.
frame();
frame
public member functionsui::menu_bar menu_bar();Returns menu bar.
If menu bar wasn't created, creates menu bar.
ui::status_bar status_bar();Returns status bar.
If status bar wasn't created, creates status bar.