Loading...
Searching...
No Matches
Public Types | Protected Types | Protected Member Functions | Protected Attributes | List of all members
LayoutSVG Class Reference

Higher level controller for setting alignments. More...

#include <LayoutSVG.h>

Collaboration diagram for LayoutSVG:
Collaboration graph
[legend]

Public Types

enum  Direction { UNDEFINED_DIRECTION =0 , INCR = 1 , DECR = 2 }
 Direction for "Stacked", horziontally or vertically sequentially aligned layout. More...
 
enum  GroupType {
  STACK_LAYOUT , ADAPTER , ALIGN , COMPOUND ,
  FIXED , INDEPENDENT , INEFFECTIVE , CROP
}
 Experimental SVG style classes (requests)
 

Protected Types

typedef drain::EnumFlagger< drain::SingleFlagger< AlignBase::Axis > > AxisFlagger
 
typedef drain::EnumFlagger< drain::SingleFlagger< Direction > > DirectionFlagger
 

Protected Member Functions

 LayoutSVG (AlignBase::Axis v=AlignBase::HORZ, Direction d=INCR)
 
 LayoutSVG (const LayoutSVG &layout)
 
template<typename V >
void setOrientation (const V &axis)
 Set orientation: horizontal or vertical axis.
 
template<typename D >
void setDirection (const D &dir)
 Set direction: coordinates increasing or decreasing.
 
template<typename D , typename V >
void set (const D &d, const V &v)
 Set direction and orientation.
 

Protected Attributes

AxisFlagger orientation = AlignBase::HORZ
 
DirectionFlagger direction = INCR
 

Detailed Description

Higher level controller for setting alignments.

Also applied by PanelSVG

Member Enumeration Documentation

◆ Direction

enum Direction

Direction for "Stacked", horziontally or vertically sequentially aligned layout.

Typically, the axis is Align::Axis .

Member Function Documentation

◆ setDirection()

template<typename D >
void setDirection ( const D &  dir)
inlineprotected

Set direction: coordinates increasing or decreasing.

Template Parameters
D- enum type LayoutSVG::Direction or string.
Parameters
dir- direction as enum type (INCR or DECR) or string.

◆ setOrientation()

template<typename V >
void setOrientation ( const V &  axis)
inlineprotected

Set orientation: horizontal or vertical axis.

Template Parameters
V- enum type AlignBase::Axis or string.
Parameters
axis- axis as enum type (HORZ or VERT) or string.

The documentation for this class was generated from the following file: