Chemical Data Processing Library C++ API - Version 1.1.1
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

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

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

Specifies that an object has no special alignment.

◆ LEFT

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

Specifies an alignment to the left.

◆ RIGHT

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

Specifies an alignment to the right.

◆ H_CENTER

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

Specifies that an object has to be centered horizontally.

◆ H_ALIGNMENT_MASK

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

A bitmask for all horizontal alignment flags.

◆ TOP

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

Specifies an alignment to the top.

◆ BOTTOM

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

Specifies an alignment to the bottom.

◆ V_CENTER

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

Specifies that an object has to be centered vertically.

◆ V_ALIGNMENT_MASK

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

A bitmask for all vertical alignment flags.

◆ CENTER

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

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