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 position as part of the object model module.
void set_position(Fixed x,Fixed y)Sets position as part of the object model module.
| Parameter | Type | Meaning |
|---|---|---|
x | Fixed | Value supplied for x. Keep referenced or pointed-to data valid for the complete call. |
y | Fixed | Value supplied for 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 x
// Fixed y
epok::SceneComponent2D& object = /* obtain a valid instance */;
object.set_position(x, 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:572
attach_slotPerforms `attach slot` as part of the object model module.Methodattach_toPerforms `attach to` as part of the object model module.Methodclass_idPerforms `class id` as part of the object model module.Methodposition_xPerforms `position x` as part of the object model module.Methodposition_yPerforms `position y` as part of the object model module.MethodrotationPerforms `rotation` as part of the object model module.Methodset_rotationSets rotation as part of the object model module.Methodset_scaleSets scale as part of the object model module.Method