Chemical Data Processing Library C++ API - Version 1.2.0
Variables
CDPL::Vis::Alignment Namespace Reference

Provides flags that are used to specify the 2D alignment of graphical objects within a bounded rectangular area. More...

Variables

constexpr unsigned int NONE = 0
 Specifies that an object has no special alignment. More...
 
constexpr unsigned int LEFT = 0x1
 Specifies an alignment to the left. More...
 
constexpr unsigned int RIGHT = 0x2
 Specifies an alignment to the right. More...
 
constexpr unsigned int H_CENTER = LEFT | RIGHT
 Specifies that an object has to be centered horizontally. More...
 
constexpr unsigned int H_ALIGNMENT_MASK = H_CENTER
 A bitmask for all horizontal alignment flags. More...
 
constexpr unsigned int TOP = 0x4
 Specifies an alignment to the top. More...
 
constexpr unsigned int BOTTOM = 0x8
 Specifies an alignment to the bottom. More...
 
constexpr unsigned int V_CENTER = TOP | BOTTOM
 Specifies that an object has to be centered vertically. More...
 
constexpr unsigned int V_ALIGNMENT_MASK = V_CENTER
 A bitmask for all vertical alignment flags. More...
 
constexpr unsigned int CENTER = H_CENTER | V_CENTER
 Specifies that an object has to be centered horizontally and vertically. More...
 

Detailed Description

Provides flags that are used to specify the 2D alignment of graphical objects within a bounded rectangular area.

The flags may be combined by a bitwise OR operation to specify a composite alignment for both directions. For example: (Alignment::RIGHT | Alignment::BOTTOM) specifies an alignment to the bottom-right corner.

Variable Documentation

◆ NONE

constexpr unsigned int CDPL::Vis::Alignment::NONE = 0
constexpr

Specifies that an object has no special alignment.

◆ LEFT

constexpr unsigned int CDPL::Vis::Alignment::LEFT = 0x1
constexpr

Specifies an alignment to the left.

◆ RIGHT

constexpr unsigned int CDPL::Vis::Alignment::RIGHT = 0x2
constexpr

Specifies an alignment to the right.

◆ H_CENTER

constexpr unsigned int CDPL::Vis::Alignment::H_CENTER = LEFT | RIGHT
constexpr

Specifies that an object has to be centered horizontally.

◆ H_ALIGNMENT_MASK

constexpr unsigned int CDPL::Vis::Alignment::H_ALIGNMENT_MASK = H_CENTER
constexpr

A bitmask for all horizontal alignment flags.

◆ TOP

constexpr unsigned int CDPL::Vis::Alignment::TOP = 0x4
constexpr

Specifies an alignment to the top.

◆ BOTTOM

constexpr unsigned int CDPL::Vis::Alignment::BOTTOM = 0x8
constexpr

Specifies an alignment to the bottom.

◆ V_CENTER

constexpr unsigned int CDPL::Vis::Alignment::V_CENTER = TOP | BOTTOM
constexpr

Specifies that an object has to be centered vertically.

◆ V_ALIGNMENT_MASK

constexpr unsigned int CDPL::Vis::Alignment::V_ALIGNMENT_MASK = V_CENTER
constexpr

A bitmask for all vertical alignment flags.

◆ CENTER

constexpr unsigned int CDPL::Vis::Alignment::CENTER = H_CENTER | V_CENTER
constexpr

Specifies that an object has to be centered horizontally and vertically.