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