Trait RelocatableState

Source
pub trait RelocatableState {
    // Required method
    fn relocate(&mut self, shift: (i16, i16), clip: Rect);
}
Expand description

Widgets can be rendered to a temporary buffer using the buffers own coordinate system.

To adjust the Rects derived during rendering/layout to the actual screen coordinates a widget can implement this trait.

Container widgets that support this will call relocate() after rendering the widgets.

Required Methods§

Source

fn relocate(&mut self, shift: (i16, i16), clip: Rect)

Relocate the areas in this widgets state.

Implementations on Foreign Types§

Source§

impl RelocatableState for Rect

Source§

fn relocate(&mut self, shift: (i16, i16), clip: Rect)

Source§

impl RelocatableState for [Rect]

Source§

fn relocate(&mut self, shift: (i16, i16), clip: Rect)

Implementors§

Source§

impl RelocatableState for ButtonState

Source§

impl RelocatableState for CheckboxState

Source§

impl RelocatableState for DateInputState

Source§

impl RelocatableState for NumberInputState

Source§

impl RelocatableState for ParagraphState

Source§

impl RelocatableState for PopupCoreState

Source§

impl RelocatableState for ScrollState

Source§

impl RelocatableState for SplitState

Source§

impl RelocatableState for StatusLineState

Source§

impl RelocatableState for TabbedState

Source§

impl RelocatableState for TextInputState

Source§

impl RelocatableState for MaskedInputState

Source§

impl RelocatableState for TextAreaState

Source§

impl<S> RelocatableState for EditListState<S>

Source§

impl<S> RelocatableState for EditableTableState<S>

Source§

impl<S> RelocatableState for EditableTableVecState<S>

Source§

impl<Selection> RelocatableState for MonthState<Selection>

Source§

impl<Selection> RelocatableState for ListState<Selection>

Source§

impl<Selection> RelocatableState for TableState<Selection>

Source§

impl<T> RelocatableState for ChoiceState<T>
where T: PartialEq + Clone + Default,

Source§

impl<T> RelocatableState for RadioState<T>
where T: PartialEq + Clone + Default,

Source§

impl<T> RelocatableState for SliderState<T>
where T: RangeOp<Step: Copy + Debug> + MapRange<u16> + Debug + Default + Copy + PartialEq, u16: MapRange<T>,

Source§

impl<TS, US> RelocatableState for PairedState<'_, TS, US>

Source§

impl<const N: usize, Selection> RelocatableState for CalendarState<N, Selection>