Epok Engine

EPOK RUNTIME

epok::layout_list

Function · 1 overload

Function

List layout in native HUD pixels; anchoring remains the RectTransform system.

Belongs to
epok
Header
utility.hpp
Overloads
1

Declaration

Declaration
inline void layout_list(DataHandle* children,size_t count,Fixed item_extent,Fixed spacing,bool vertical=true)

List layout in native HUD pixels; anchoring remains the RectTransform system.

ParameterTypeMeaning
childrenDataHandle *Value supplied for children. Keep referenced or pointed-to data valid for the complete call.
countsize_tValue supplied for count. Keep referenced or pointed-to data valid for the complete call.
item_extentFixedValue supplied for item_extent. Keep referenced or pointed-to data valid for the complete call.
spacingFixedValue supplied for spacing. Keep referenced or pointed-to data valid for the complete call.
verticalboolValue supplied for vertical. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "utility.hpp"

// Assume these named values have been initialized with valid data:
// DataHandle * children
// size_t count
// Fixed item_extent
// Fixed spacing
// bool vertical

epok::layout_list(children, count, item_extent, spacing, vertical);

Why use it

It provides direct, allocation-conscious access to the utility module. No exception-based error path is implied by the signature.

Trade-offs and warnings

Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/utility.hpp:50

Related members