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 colors as part of the object model module.
void set_colors(uint32_t red,uint32_t green,uint32_t blue,uint32_t background_red,uint32_t background_green,uint32_t background_blue)Sets colors as part of the object model module.
| Parameter | Type | Meaning |
|---|---|---|
red | uint32_t | Value supplied for red. Keep referenced or pointed-to data valid for the complete call. |
green | uint32_t | Value supplied for green. Keep referenced or pointed-to data valid for the complete call. |
blue | uint32_t | Value supplied for blue. Keep referenced or pointed-to data valid for the complete call. |
background_red | uint32_t | Value supplied for background_red. Keep referenced or pointed-to data valid for the complete call. |
background_green | uint32_t | Value supplied for background_green. Keep referenced or pointed-to data valid for the complete call. |
background_blue | uint32_t | Value supplied for background_blue. 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:
// uint32_t red
// uint32_t green
// uint32_t blue
// uint32_t background_red
// uint32_t background_green
// uint32_t background_blue
epok::ProgressBarComponent& object = /* obtain a valid instance */;
object.set_colors(red, green, blue, background_red, background_green, background_blue);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:826
class_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_valueSets value as part of the object model module.MethodvaluePerforms `value` as part of the object model module.Method