Epok Engine

EPOK RUNTIME

epok::hud_core::Compiler::layout

Method · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Method

Measure and arrange without drawing: `rects` holds every laid-out node and zeroes elsewhere, and `affines` the accumulated rotation about each pivot.

Belongs to
epok::hud_core::Compiler
Header
hud_core.hpp
Overloads
1

Declaration

Declaration
void layout(ActorData* entities,size_t count,int* first,int* next,Fixed (*sizes)[2],Rect* boxes,Affine2* affines,bool measure_intrinsics=true)

Measure and arrange without drawing: `rects` holds every laid-out node and zeroes elsewhere, and `affines` the accumulated rotation about each pivot.

ParameterTypeMeaning
entitiesActorData *Not documented; consult the linked header.
countsize_tNot documented; consult the linked header.
firstint *Not documented; consult the linked header.
nextint *Not documented; consult the linked header.
sizesFixed (*)[2]Not documented; consult the linked header.
boxesRect *Not documented; consult the linked header.
affinesAffine2 *Not documented; consult the linked header.
measure_intrinsicsboolNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "hud_core.hpp"

// Assume these named values have been initialized with valid data:
// ActorData * entities
// size_t count
// int * first
// int * next
// Fixed (*)[2] sizes
// Rect * boxes
// Affine2 * affines
// bool measure_intrinsics

epok::hud_core::Compiler& object = /* obtain a valid instance */;

object.layout(entities, count, first, next, sizes, boxes, affines, measure_intrinsics);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/hud_core.hpp:698

Related members