Enum rg3d_ui::message::ScrollPanelMessage [−][src]
pub enum ScrollPanelMessage<M: MessageData, C: Control<M, C>> { VerticalScroll(f32), HorizontalScroll(f32), BringIntoView(Handle<UINode<M, C>>), }
Variants
VerticalScroll(f32)
HorizontalScroll(f32)
Adjusts vertical and horizontal scroll values so given node will be in “view box” of scroll panel.
Implementations
pub fn vertical_scroll(
destination: Handle<UINode<M, C>>,
direction: MessageDirection,
value: f32
) -> UiMessage<M, C>
[src]pub fn horizontal_scroll(
destination: Handle<UINode<M, C>>,
direction: MessageDirection,
value: f32
) -> UiMessage<M, C>
[src]pub fn bring_into_view(
destination: Handle<UINode<M, C>>,
direction: MessageDirection,
value: Handle<UINode<M, C>>
) -> UiMessage<M, C>
[src]Trait Implementations
impl<M: PartialEq + MessageData, C: PartialEq + Control<M, C>> PartialEq<ScrollPanelMessage<M, C>> for ScrollPanelMessage<M, C>
[src]
impl<M: PartialEq + MessageData, C: PartialEq + Control<M, C>> PartialEq<ScrollPanelMessage<M, C>> for ScrollPanelMessage<M, C>
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<M, C> !RefUnwindSafe for ScrollPanelMessage<M, C>
impl<M, C> Send for ScrollPanelMessage<M, C>
impl<M, C> Sync for ScrollPanelMessage<M, C>
impl<M, C> Unpin for ScrollPanelMessage<M, C> where
C: Unpin,
M: Unpin,
impl<M, C> !UnwindSafe for ScrollPanelMessage<M, C>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V