class
#include <bn_mosaic_attributes_hbe_ptr.h>
mosaic_attributes_hbe_ptr std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the attributes to commit to the GBA mosaic register in each screen horizontal line.
Base classes
- class hbe_ptr
- std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect.
Public static functions
-
static auto create(const span<const mosaic_
attributes>& attributes_ref) -> mosaic_ attributes_ hbe_ ptr - Creates a mosaic_
attributes_ hbe_ ptr which changes the attributes to commit to the GBA mosaic register in each screen horizontal line. -
static auto create_optional(const span<const mosaic_
attributes>& attributes_ref) -> optional<mosaic_ attributes_ hbe_ ptr> - Creates a mosaic_
attributes_ hbe_ ptr which changes the attributes to commit to the GBA mosaic register in each screen horizontal line.
Public functions
-
auto attributes_ref() const -> span<const mosaic_
attributes> - Returns the referenced array of 160 mosaic_
attributes objects with the attributes to commit to the GBA mosaic register in each screen horizontal line. -
void set_attributes_ref(const span<const mosaic_
attributes>& attributes_ref) - Sets the reference to an array of 160 mosaic_
attributes objects with the attributes to commit to the GBA mosaic register in each screen horizontal line. - void reload_attributes_ref()
- Rereads the content of the referenced attributes to the GBA mosaic register in each screen horizontal line.
-
void swap(mosaic_
attributes_ hbe_ ptr& other) - Exchanges the contents of this mosaic_
attributes_ hbe_ ptr with those of the other one.
Friends
-
void swap(mosaic_
attributes_ hbe_ ptr& a, mosaic_ attributes_ hbe_ ptr& b) - Exchanges the contents of a mosaic_
attributes_ hbe_ ptr with those of another one.
Function documentation
static mosaic_ attributes_ hbe_ ptr bn:: mosaic_attributes_hbe_ptr:: create(const span<const mosaic_ attributes>& attributes_ref)
Creates a mosaic_
Parameters | |
---|---|
attributes_ref | Reference to an array of 160 mosaic_ |
Returns | The requested mosaic_ |
The attributes are not copied but referenced, so they should outlive the mosaic_
static optional<mosaic_ attributes_ hbe_ ptr> bn:: mosaic_attributes_hbe_ptr:: create_optional(const span<const mosaic_ attributes>& attributes_ref)
Creates a mosaic_
Parameters | |
---|---|
attributes_ref | Reference to an array of 160 mosaic_ |
Returns | The requested mosaic_ |
The attributes are not copied but referenced, so they should outlive the mosaic_
span<const mosaic_ attributes> bn:: mosaic_attributes_hbe_ptr:: attributes_ref() const
Returns the referenced array of 160 mosaic_
The attributes are not copied but referenced, so they should outlive the mosaic_
void bn:: mosaic_attributes_hbe_ptr:: set_attributes_ref(const span<const mosaic_ attributes>& attributes_ref)
Sets the reference to an array of 160 mosaic_
The attributes are not copied but referenced, so they should outlive the mosaic_
void bn:: mosaic_attributes_hbe_ptr:: reload_attributes_ref()
Rereads the content of the referenced attributes to the GBA mosaic register in each screen horizontal line.
The attributes are not copied but referenced, so they should outlive the mosaic_
void bn:: mosaic_attributes_hbe_ptr:: swap(mosaic_ attributes_ hbe_ ptr& other)
Exchanges the contents of this mosaic_
Parameters | |
---|---|
other | mosaic_ |
void swap(mosaic_ attributes_ hbe_ ptr& a,
mosaic_ attributes_ hbe_ ptr& b)
Exchanges the contents of a mosaic_
Parameters | |
---|---|
a | First mosaic_ |
b | Second mosaic_ |