Why use it
It provides direct, allocation-conscious access to the object model module. No exception-based error path is implied by the signature.
EPOK RUNTIME
Method · 1 overload
Sets anchors as part of the object model module.
void set_anchors(Fixed min_x,Fixed min_y,Fixed max_x,Fixed max_y)Sets anchors as part of the object model module.
| Parameter | Type | Meaning |
|---|---|---|
min_x | Fixed | Value supplied for min_x. Keep referenced or pointed-to data valid for the complete call. |
min_y | Fixed | Value supplied for min_y. Keep referenced or pointed-to data valid for the complete call. |
max_x | Fixed | Value supplied for max_x. Keep referenced or pointed-to data valid for the complete call. |
max_y | Fixed | Value supplied for max_y. Keep referenced or pointed-to data valid for the complete call. |
Returns: Nothing (void).
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// Fixed min_x
// Fixed min_y
// Fixed max_x
// Fixed max_y
epok::RectTransformComponent& object = /* obtain a valid instance */;
object.set_anchors(min_x, min_y, max_x, max_y);It provides direct, allocation-conscious access to the object model module. No exception-based error path is implied by the signature.
Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.
Declared in runtime/object_model.hpp:600
attach_slotPerforms `attach slot` as part of the object model module.Methodbind_localPerforms `bind local` as part of the object model module.Methodbind_slotPerforms `bind slot` as part of the object model module.Methodclass_idPerforms `class id` as part of the object model module.MethodenabledPerforms `enabled` as part of the object model module.Methodentity_slotPerforms `entity slot` as part of the object model module.Methodset_enabledSets enabled as part of the object model module.Methodset_pivotSets pivot as part of the object model module.Methodset_positionSets position as part of the object model module.Methodset_sizeSets size as part of the object model module.Method