Direction Class Reference

#include <Pt/Forms/Direction.h>

Names a flow direction. More...

Public Types

enum  Mode {
  Left,
  Right,
  Top,
  Bottom
}
 Flow axis and sense. More...
 

Public Member Functions

 Direction (Mode m=Left)
 Creates a direction with mode m.
 
Directionoperator= (Mode m)
 Sets the direction to m and returns this object.
 
 operator Pt::uint32_t () const
 Returns the direction as an unsigned integer value.
 

Detailed Description

Left and Right are horizontal. Top and Bottom are vertical. The default is Left.

Member Enumeration Documentation

◆ Mode

enum Mode
Enumerator
Left 

Left to right.

Right 

Right to left.

Top 

Top to bottom.

Bottom 

Bottom to top.

@ Left
Left to right.
Definition: Direction.h:60
@ Top
Top to bottom.
Definition: Direction.h:68
Arranges children in a single row or column.
Definition: FlowLayout.h:72