Open3D (C++ API)  0.18.0+5c982c7
Public Member Functions | Data Fields
open3d::visualization::gui::Margins Struct Reference

#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...

Data Fields

int left
int top
int right
int bottom

Constructor & Destructor Documentation

◆ Margins() [1/4]

open3d::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.

◆ Margins() [2/4]

open3d::visualization::gui::Margins::Margins ( int  px)

◆ Margins() [3/4]

open3d::visualization::gui::Margins::Margins ( int  horiz_px,
int  vert_px 

◆ Margins() [4/4]

open3d::visualization::gui::Margins::Margins ( int  left_px,
int  top_px,
int  right_px,
int  bottom_px 

Member Function Documentation

◆ GetHoriz()

int open3d::visualization::gui::Margins::GetHoriz ( ) const

Convenience function that returns left + right.

◆ GetVert()

int open3d::visualization::gui::Margins::GetVert ( ) const

Convenience function that returns top + bottom.

Field Documentation

◆ bottom

int open3d::visualization::gui::Margins::bottom

◆ left

int open3d::visualization::gui::Margins::left

◆ right

int open3d::visualization::gui::Margins::right

◆ top

int open3d::visualization::gui::Margins::top

The documentation for this struct was generated from the following files: