Adjustment Class Reference

#include <Pt/Forms/Adjustment.h>

Aligns content along one axis. More...

Public Types

enum  Mode {
  Left ,
  Right ,
  Center ,
  Justify
}
 Alignment along one axis. More...

Public Member Functions

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

Detailed Description

Left, Right, and Center place a line within its available width. Justify is available as a mode; a consumer may treat it as left. The default is Left.

|text | | text |
| text| |t e x t|
@ Justify
Spreads content along the axis.
Definition Adjustment.h:80
@ Left
Aligns to the start of the axis.
Definition Adjustment.h:68
@ Center
Centers on the axis.
Definition Adjustment.h:76
@ Right
Aligns to the end of the axis.
Definition Adjustment.h:72
editor.setAdjustment(Pt::Forms::Adjustment::Left);

Member Enumeration Documentation

◆ Mode

enum Mode
Enumerator
Left 

Aligns to the start of the axis.

Right 

Aligns to the end of the axis.

Center 

Centers on the axis.

Justify 

Spreads content along the axis.