Module reloc

Module reloc 

Source
Expand description

Trait for relocatable widgets. See also rat-reloc

Macros§

impl_relocatable_state
Create the implementation of RelocatableState for the given list of struct members.

Traits§

RelocatableState
Widgets can be rendered to a temporary Buffer that will be dumped to the main render Buffer at a later point.

Functions§

relocate_area
Shift the area by offset and clip it.
relocate_areas
Shift the area by offset and clip it.
relocate_position
Shift the position by offset and clip it. Returns None if the position is clipped.
relocate_positions
Shift the position by offset and clip it. Clipped positions are replaced with (0,0) for this function.