sp_direct_bitmap_bg_pivot_position_hbe_ptr class
std::shared_ptr like smart pointer that retains shared ownership of a H-Blank effect which changes the position of the affine transformations pivot point of a single page direct bitmap background 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_horizontal(sp_
direct_ bitmap_ bg_ ptr bg, const span<const fixed>& deltas_ref) -> sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr - Creates a sp_
direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr which changes the horizontal position of the affine transformations pivot point of a single page direct bitmap background in each screen horizontal line. -
static auto create_vertical(sp_
direct_ bitmap_ bg_ ptr bg, const span<const fixed>& deltas_ref) -> sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr - Creates a sp_
direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr which changes the vertical position of the affine transformations pivot point of a single page direct bitmap background in each screen horizontal line. -
static auto create_horizontal_optional(sp_
direct_ bitmap_ bg_ ptr bg, const span<const fixed>& deltas_ref) -> optional<sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr> - Creates a sp_
direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr which changes the horizontal position of the affine transformations pivot point of a single page direct bitmap background in each screen horizontal line. -
static auto create_vertical_optional(sp_
direct_ bitmap_ bg_ ptr bg, const span<const fixed>& deltas_ref) -> optional<sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr> - Creates a sp_
direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr which changes the vertical position of the affine transformations pivot point of a single page direct bitmap background in each screen horizontal line.
Public functions
-
auto bg() const -> const sp_
direct_ bitmap_ bg_ ptr& - Returns the background modified by this H-Blank effect.
- auto deltas_ref() const -> span<const fixed>
- Returns the referenced array of 160 deltas to add to the horizontal or vertical position of the affine transformations pivot point of the managed background in each screen horizontal line.
- void set_deltas_ref(const span<const fixed>& deltas_ref)
- Sets the reference to an array of 160 deltas to add to the horizontal or vertical position of the affine transformations pivot point of the managed background in each screen horizontal line.
- void reload_deltas_ref()
- Rereads the content of the referenced deltas to add to the horizontal or vertical position of the affine transformations pivot point of the managed background in each screen horizontal line.
-
void swap(sp_
direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr& other) - Exchanges the contents of this sp_
direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr with those of the other one.
Friends
-
void swap(sp_
direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr& a, sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr& b) - Exchanges the contents of a sp_
direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr with those of another one.
Function documentation
static sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr bn:: sp_direct_bitmap_bg_pivot_position_hbe_ptr:: create_horizontal(sp_ direct_ bitmap_ bg_ ptr bg,
const span<const fixed>& deltas_ref)
Creates a sp_
| Parameters | |
|---|---|
| bg | Background to be modified. |
| deltas_ref | Reference to an array of 160 deltas to add to the horizontal position of the affine transformations pivot point of the given background in each screen horizontal line. |
| Returns | The requested sp_ |
The deltas are not copied but referenced, so they should outlive the sp_
static sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr bn:: sp_direct_bitmap_bg_pivot_position_hbe_ptr:: create_vertical(sp_ direct_ bitmap_ bg_ ptr bg,
const span<const fixed>& deltas_ref)
Creates a sp_
| Parameters | |
|---|---|
| bg | Background to be modified. |
| deltas_ref | Reference to an array of 160 deltas to add to the vertical position of the affine transformations pivot point of the given background in each screen horizontal line. |
| Returns | The requested sp_ |
The deltas are not copied but referenced, so they should outlive the sp_
static optional<sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr> bn:: sp_direct_bitmap_bg_pivot_position_hbe_ptr:: create_horizontal_optional(sp_ direct_ bitmap_ bg_ ptr bg,
const span<const fixed>& deltas_ref)
Creates a sp_
| Parameters | |
|---|---|
| bg | Background to be modified. |
| deltas_ref | Reference to an array of 160 deltas to add to the horizontal position of the affine transformations pivot point of the given background in each screen horizontal line. |
| Returns | The requested sp_ |
The deltas are not copied but referenced, so they should outlive the sp_
static optional<sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr> bn:: sp_direct_bitmap_bg_pivot_position_hbe_ptr:: create_vertical_optional(sp_ direct_ bitmap_ bg_ ptr bg,
const span<const fixed>& deltas_ref)
Creates a sp_
| Parameters | |
|---|---|
| bg | Background to be modified. |
| deltas_ref | Reference to an array of 160 deltas to add to the vertical position of the affine transformations pivot point of the given background in each screen horizontal line. |
| Returns | The requested sp_ |
The deltas are not copied but referenced, so they should outlive the sp_
span<const fixed> bn:: sp_direct_bitmap_bg_pivot_position_hbe_ptr:: deltas_ref() const
Returns the referenced array of 160 deltas to add to the horizontal or vertical position of the affine transformations pivot point of the managed background in each screen horizontal line.
The deltas are not copied but referenced, so they should outlive the sp_
void bn:: sp_direct_bitmap_bg_pivot_position_hbe_ptr:: set_deltas_ref(const span<const fixed>& deltas_ref)
Sets the reference to an array of 160 deltas to add to the horizontal or vertical position of the affine transformations pivot point of the managed background in each screen horizontal line.
The deltas are not copied but referenced, so they should outlive the sp_
void bn:: sp_direct_bitmap_bg_pivot_position_hbe_ptr:: reload_deltas_ref()
Rereads the content of the referenced deltas to add to the horizontal or vertical position of the affine transformations pivot point of the managed background in each screen horizontal line.
The deltas are not copied but referenced, so they should outlive the sp_
void bn:: sp_direct_bitmap_bg_pivot_position_hbe_ptr:: swap(sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr& other)
Exchanges the contents of this sp_
| Parameters | |
|---|---|
| other | sp_ |
void swap(sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr& a,
sp_ direct_ bitmap_ bg_ pivot_ position_ hbe_ ptr& b)
Exchanges the contents of a sp_
| Parameters | |
|---|---|
| a | First sp_ |
| b | Second sp_ |