class
bg_palettes_transparent_color_hbe_ptrstd::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the transparent color of the backgrounds 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 color>& colors_ref) -> bg_
palettes_ transparent_ color_ hbe_ ptr - Creates a bg_
palettes_ transparent_ color_ hbe_ ptr which changes the transparent color of the backgrounds in each screen horizontal line. -
static auto create_optional(const span<const color>& colors_ref) -> optional<bg_
palettes_ transparent_ color_ hbe_ ptr> - Creates a bg_
palettes_ transparent_ color_ hbe_ ptr which changes the transparent color of the backgrounds in each screen horizontal line.
Public functions
- auto colors_ref() const -> span<const color>
- Returns the referenced array of 160 color objects which indicate the transparent color of the backgrounds in each screen horizontal line.
- void set_colors_ref(const span<const color>& colors_ref)
- Sets the reference to an array of 160 color objects which indicate the transparent color of the backgrounds in each screen horizontal line.
- void reload_colors_ref()
- Rereads the content of the referenced color objects which indicate the transparent color of the backgrounds in each screen horizontal line.
-
void swap(bg_
palettes_ transparent_ color_ hbe_ ptr& other) - Exchanges the contents of this bg_
palettes_ transparent_ color_ hbe_ ptr with those of the other one.
Friends
-
void swap(bg_
palettes_ transparent_ color_ hbe_ ptr& a, bg_ palettes_ transparent_ color_ hbe_ ptr& b) - Exchanges the contents of a bg_
palettes_ transparent_ color_ hbe_ ptr with those of another one.
Function documentation
static bg_ palettes_ transparent_ color_ hbe_ ptr bn:: bg_palettes_transparent_color_hbe_ptr:: create(const span<const color>& colors_ref)
Creates a bg_
Parameters | |
---|---|
colors_ref | Reference to an array of 160 color objects which indicate the transparent color of the backgrounds in each screen horizontal line. |
Returns | The requested bg_ |
The colors are not copied but referenced, so they should outlive the bg_
static optional<bg_ palettes_ transparent_ color_ hbe_ ptr> bn:: bg_palettes_transparent_color_hbe_ptr:: create_optional(const span<const color>& colors_ref)
Creates a bg_
Parameters | |
---|---|
colors_ref | Reference to an array of 160 color objects which indicate the transparent color of the backgrounds in each screen horizontal line. |
Returns | The requested bg_ |
The colors are not copied but referenced, so they should outlive the bg_
span<const color> bn:: bg_palettes_transparent_color_hbe_ptr:: colors_ref() const
Returns the referenced array of 160 color objects which indicate the transparent color of the backgrounds in each screen horizontal line.
The colors are not copied but referenced, so they should outlive the bg_
void bn:: bg_palettes_transparent_color_hbe_ptr:: set_colors_ref(const span<const color>& colors_ref)
Sets the reference to an array of 160 color objects which indicate the transparent color of the backgrounds in each screen horizontal line.
The colors are not copied but referenced, so they should outlive the bg_
void bn:: bg_palettes_transparent_color_hbe_ptr:: reload_colors_ref()
Rereads the content of the referenced color objects which indicate the transparent color of the backgrounds in each screen horizontal line.
The colors are not copied but referenced, so they should outlive the bg_
void bn:: bg_palettes_transparent_color_hbe_ptr:: swap(bg_ palettes_ transparent_ color_ hbe_ ptr& other)
Exchanges the contents of this bg_
Parameters | |
---|---|
other | bg_ |
void swap(bg_ palettes_ transparent_ color_ hbe_ ptr& a,
bg_ palettes_ transparent_ color_ hbe_ ptr& b)
Exchanges the contents of a bg_
Parameters | |
---|---|
a | First bg_ |
b | Second bg_ |