Boost.UI
User Interface Boost library
|
Go to the documentation of this file.
8 #ifndef BOOST_UI_LAYOUT_HPP
9 #define BOOST_UI_LAYOUT_HPP
13 #ifdef BOOST_HAS_PRAGMA_ONCE
55 {
return append(
item); }
64 {
return margin(all, all); }
66 {
return margin(vertical, horizontal, vertical, horizontal); }
67 item& margin(
int top,
int right,
int bottom,
int left);
72 {
return margin_px(all, all); }
74 {
return margin_px(vertical, horizontal, vertical, horizontal); }
75 item& margin_px(
int top,
int right,
int bottom,
int left);
79 item& stretch(
int value = 1);
114 {
return append(
item); }
155 #endif // BOOST_UI_LAYOUT_HPP
item & margin(int all)
Sets layout item margin in spaces, that are backed-dependent.
Definition: layout.hpp:63
item layout()
Returns layout::item with this widget.
Definition: layout.hpp:108
vbox(widget &parent)
Constructs and sets layout to the widget.
Definition: layout.hpp:149
Boost C++ libraries namespace.
Definition: window.hpp:19
Abstract vertical or horizontal box layout.
Definition: layout.hpp:104
Vertical box layout.
Definition: layout.hpp:143
hbox(widget &parent)
Constructs and sets layout to the widget.
Definition: layout.hpp:137
Horizontal box layout.
Definition: layout.hpp:131
Layout item with arrangement parameters.
Definition: layout.hpp:35
Base class for all layouts.
Definition: layout.hpp:26
item & no_margin()
Resets layout item margin.
Definition: layout.hpp:59
item & margin_px(int vertical, int horizontal)
Sets layout item margin in pixels.
Definition: layout.hpp:73
box_layout & operator<<(const item &item)
Appends a layout item to the layout.
Definition: layout.hpp:113
item & margin_px(int all)
Sets layout item margin in pixels.
Definition: layout.hpp:71
item & operator<<(const item &item)
Appends subitem.
Definition: layout.hpp:54
item & margin(int vertical, int horizontal)
Sets layout item margin in spaces, that are backed-dependent.
Definition: layout.hpp:65