PIP 5.6.1
Platform-Independent Primitives
Classes | Typedefs | Enumerations
PIScreenTypes Namespace Reference

Namespace with shared screen cells, layout flags, and tile event types. More...

Classes

struct  Cell
 One character cell of the console screen. More...
 
union  CellFormat
 Packed character formatting used by screen cells. More...
 
class  PIScreenBase
 Base interface used by tiles to notify the owning screen about focus, removal, and custom events. More...
 
struct  TileEvent
 User-defined event raised by a tile. More...
 

Typedefs

typedef PIFlags< CharFlagCharFlags
 Combination of CharFlag values.
 
typedef PIFlags< FocusFlagFocusFlags
 Combination of FocusFlag values.
 

Enumerations

enum  Color {
  Default , Black , Red , Green ,
  Blue , Cyan , Magenta , Yellow ,
  White , Transparent
}
 Color for a character or its background. More...
 
enum  CharFlag
 Character formatting flags.
 
enum  Alignment { Left , Center , Right }
 Horizontal text alignment inside a tile. More...
 
enum  SizePolicy { Fixed , Preferred , Expanding , Ignore }
 Layout policy used by parent tiles. More...
 
enum  Direction { Horizontal , Vertical }
 Child layout direction. More...
 
enum  FocusFlag { }
 Focus and navigation flags for tiles. More...
 

Detailed Description

Namespace with shared screen cells, layout flags, and tile event types.

Enumeration Type Documentation

◆ Color

Color for a character or its background.

Enumerator
Default 

Terminal default color

Black 

Black

Red 

Red

Green 

Green

Blue 

Blue

Cyan 

Cyan

Magenta 

Magenta

Yellow 

Yellow

White 

White

Transparent 

Preserve the background already stored in the target cell

◆ Alignment

Horizontal text alignment inside a tile.

Enumerator
Left 

Left alignment

Center 

Center alignment

Right 

Right alignment

◆ SizePolicy

Layout policy used by parent tiles.

Enumerator
Fixed 

Keep the requested size

Preferred 

Use preferred size first and share extra space after fixed tiles

Expanding 

Take extra space before preferred tiles when the parent can grow children

Ignore 

Skip automatic layout; geometry must be managed manually

◆ Direction

Child layout direction.

Enumerator
Horizontal 

Horizontal layout

Vertical 

Vertical layout

◆ FocusFlag

Focus and navigation flags for tiles.

Enumerator
NextByArrowsAll 

Any arrow key moves focus

FocusOnMouseOrWheel 

Mouse press or wheel gives focus to the tile