roo_display
API Documentation for roo_display
Loading...
Searching...
No Matches
alignment.h File Reference
#include <inttypes.h>
#include "roo_display/core/box.h"
Include dependency graph for alignment.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  roo_display::internal::AlignBase
 
class  roo_display::HAlign
 Horizontal alignment. More...
 
class  roo_display::VAlign
 Vertical alignment. More...
 
struct  roo_display::Offset
 
class  roo_display::Alignment
 Combines horizontal and vertical alignment. More...
 

Namespaces

namespace  roo_display
 Defines 140 opaque HTML named colors.
 
namespace  roo_display::internal
 

Enumerations

enum  roo_display::Anchor { roo_display::ANCHOR_ORIGIN = 0 , roo_display::ANCHOR_MIN = 1 , roo_display::ANCHOR_MID = 2 , roo_display::ANCHOR_MAX = 3 }
 Anchor point used for alignment. More...
 

Functions

template<typename Dim >
Dim roo_display::internal::resolveAnchor (Anchor anchor, Dim first, Dim last)
 
constexpr Alignment roo_display::operator| (HAlign h, VAlign v)
 Combine horizontal and vertical alignments.
 
constexpr Alignment roo_display::operator| (VAlign v, HAlign h)
 Combine vertical and horizontal alignments.
 

Variables

static constexpr HAlign roo_display::kLeft = HAlign(ANCHOR_MIN, ANCHOR_MIN, 0)
 Left-to-left with no shift.
 
static constexpr HAlign roo_display::kCenter = HAlign(ANCHOR_MID, ANCHOR_MID, 0)
 Center-to-center with no shift.
 
static constexpr HAlign roo_display::kRight = HAlign(ANCHOR_MAX, ANCHOR_MAX, 0)
 Right-to-right with no shift.
 
static constexpr HAlign roo_display::kOrigin = HAlign(ANCHOR_ORIGIN, ANCHOR_ORIGIN, 0)
 Origin-to-origin with no shift.
 
static constexpr VAlign roo_display::kTop = VAlign(ANCHOR_MIN, ANCHOR_MIN, 0)
 Top-to-top with no shift.
 
static constexpr VAlign roo_display::kMiddle = VAlign(ANCHOR_MID, ANCHOR_MID, 0)
 Middle-to-middle with no shift.
 
static constexpr VAlign roo_display::kBottom = VAlign(ANCHOR_MAX, ANCHOR_MAX, 0)
 Bottom-to-bottom with no shift.
 
static constexpr VAlign roo_display::kBaseline = VAlign(ANCHOR_ORIGIN, ANCHOR_ORIGIN, 0)
 Baseline-to-baseline with no shift.
 
static constexpr Alignment roo_display::kNoAlign = Alignment()
 Absolute alignment (no repositioning).