![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <Layout.h>
Public Member Functions | |
| Margins () | |
| Margins (int px) | |
| Margins (int horiz_px, int vert_px) | |
| Margins (int left_px, int top_px, int right_px, int bottom_px) | |
| int | GetHoriz () const |
| Convenience function that returns left + right. More... | |
| int | GetVert () const |
| Convenience function that returns top + bottom. More... | |
Public Attributes | |
| int | left |
| int | top |
| int | right |
| int | bottom |
| cloudViewer::visualization::gui::Margins::Margins | ( | ) |
Margins are specified in pixels, which are not the same size on all monitors. It is best to use a multiple of Window::GetTheme().fontSize to specify margins. Theme::fontSize, represents 1em and is scaled according to the scaling factor of the window. For example, 0.5em (that is, 0.5 * theme.fontSize) is typically a good size for a margin.
Definition at line 111 of file Layout.cpp.
| cloudViewer::visualization::gui::Margins::Margins | ( | int | px | ) |
Definition at line 112 of file Layout.cpp.
| cloudViewer::visualization::gui::Margins::Margins | ( | int | horiz_px, |
| int | vert_px | ||
| ) |
Definition at line 113 of file Layout.cpp.
| cloudViewer::visualization::gui::Margins::Margins | ( | int | left_px, |
| int | top_px, | ||
| int | right_px, | ||
| int | bottom_px | ||
| ) |
Definition at line 115 of file Layout.cpp.
| int cloudViewer::visualization::gui::Margins::GetHoriz | ( | ) | const |
Convenience function that returns left + right.
Definition at line 118 of file Layout.cpp.
Referenced by cloudViewer::visualization::gui::pybind_gui_classes().
| int cloudViewer::visualization::gui::Margins::GetVert | ( | ) | const |
Convenience function that returns top + bottom.
Definition at line 120 of file Layout.cpp.
Referenced by cloudViewer::visualization::gui::pybind_gui_classes().
| int cloudViewer::visualization::gui::Margins::bottom |
Definition at line 22 of file Layout.h.
Referenced by cloudViewer::visualization::gui::Layout1D::debug_PrintPreferredSizes(), GetVert(), and cloudViewer::visualization::gui::pybind_gui_classes().
| int cloudViewer::visualization::gui::Margins::left |
Definition at line 19 of file Layout.h.
Referenced by cloudViewer::visualization::gui::Layout1D::debug_PrintPreferredSizes(), GetHoriz(), and cloudViewer::visualization::gui::pybind_gui_classes().
| int cloudViewer::visualization::gui::Margins::right |
Definition at line 21 of file Layout.h.
Referenced by cloudViewer::visualization::gui::Layout1D::debug_PrintPreferredSizes(), GetHoriz(), and cloudViewer::visualization::gui::pybind_gui_classes().
| int cloudViewer::visualization::gui::Margins::top |
Definition at line 20 of file Layout.h.
Referenced by cloudViewer::visualization::gui::Layout1D::debug_PrintPreferredSizes(), GetVert(), and cloudViewer::visualization::gui::pybind_gui_classes().