Epok Engine

EPOK RUNTIME

epok::hud_core::resolve

Function · 1 overload

Function

Performs `resolve` as part of native HUD layout, drawing and focus navigation.

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

Declaration

Declaration
inline Rect resolve(Rect parent,const RectTransform& r)

Performs `resolve` as part of native HUD layout, drawing and focus navigation.

ParameterTypeMeaning
parentRectValue supplied for parent. Keep referenced or pointed-to data valid for the complete call.
rconst RectTransform &Value supplied for r. Keep referenced or pointed-to data valid for the complete call.

Returns: Rect. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "hud_core.hpp"

// Assume these named values have been initialized with valid data:
// Rect parent
// const RectTransform & r

auto result = epok::hud_core::resolve(parent, r);

Why use it

It provides direct, allocation-conscious access to native HUD layout, drawing and focus navigation. 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/hud_core.hpp:11

Related members