13#ifndef MALENA_ANCHOR_H
14#define MALENA_ANCHOR_H
Trait that provides position, bounds, and animated movement.
bool anchorTouchesY(AnchorOp op)
@ WindowTop
my top edge at window top + margin (y)
@ CenterY
center within ref vertically, + spacing offset (y)
@ CenterX
center within ref horizontally, + spacing offset (x)
@ Above
my bottom edge to ref's top edge (y)
@ WindowRight
my right edge at window right − margin (x)
@ WindowBottom
my bottom edge at window bottom − margin (y)
@ RightOf
my left edge to ref's right edge (x)
@ CenterOn
center within ref both axes (x + y)
@ LeftOf
my right edge to ref's left edge (x)
@ WindowLeft
my left edge at window left + margin (x)
@ Below
my top edge to ref's bottom edge (y)
bool anchorTouchesX(AnchorOp op)
const Positionable * ref
live reference; nullptr == the window
float spacing
gap / offset in pixels