Struct ScrolledMessageArguments
pub struct ScrolledMessageArguments(/* private fields */);Methods from Deref<Target = ScrollMessageArguments>§
pub fn get_scroll_position_x(&self) -> Result<f32, Error>
pub fn get_scroll_position_x(&self) -> Result<f32, Error>
pub fn set_scroll_position_x(&self, value: f32) -> Result<(), Error>
pub fn set_scroll_position_x(&self, value: f32) -> Result<(), Error>
pub fn get_scroll_position_y(&self) -> Result<f32, Error>
pub fn get_scroll_position_y(&self) -> Result<f32, Error>
pub fn set_scroll_position_y(&self, value: f32) -> Result<(), Error>
pub fn set_scroll_position_y(&self, value: f32) -> Result<(), Error>
pub fn get_scroll_speed(&self) -> Result<Vector2, Error>
pub fn get_scroll_speed(&self) -> Result<Vector2, Error>
pub fn set_scroll_speed(&self, value: Vector2) -> Result<(), Error>
pub fn set_scroll_speed(&self, value: Vector2) -> Result<(), Error>
Methods from Deref<Target = MessageArguments>§
pub fn as_ptr(&self) -> *mut MessageArgumentsWrapper
pub fn set_handled(&self, handled: bool) -> Result<(), Error>
pub fn set_handled(&self, handled: bool) -> Result<(), Error>
Sets the handling status for a message.
pub fn is_handled(&self) -> Result<bool, Error>
pub fn is_handled(&self) -> Result<bool, Error>
Returns whether the message is handled.
pub fn get_argument<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<<T as VariantConstraint>::RetArg, Error>where
T: PropertyTypeConstraint,
pub fn get_argument<T>(
&self,
property_type: &PropertyType<T>,
) -> Result<<T as VariantConstraint>::RetArg, Error>where
T: PropertyTypeConstraint,
Returns the value of an argument.
§Returns
The value of the argument. If the argument is not present in this message arguments instance,
returns the default value of the PropertyType.
pub fn get_optional_argument<T>(
&self,
property: &PropertyType<T>,
) -> Result<Option<<T as VariantConstraint>::RetArg>, Error>where
T: PropertyTypeConstraint,
pub fn get_optional_argument<T>(
&self,
property: &PropertyType<T>,
) -> Result<Option<<T as VariantConstraint>::RetArg>, Error>where
T: PropertyTypeConstraint,
Returns the value of an argument.
§Returns
The value of the argument. If the argument is not present in this message arguments instance, returns None.
pub fn set_argument<T>(
&self,
property: &PropertyType<T>,
value: <T as VariantConstraint>::DataArg<'_>,
) -> Result<(), Error>where
T: PropertyTypeConstraint,
pub fn set_argument<T>(
&self,
property: &PropertyType<T>,
value: <T as VariantConstraint>::DataArg<'_>,
) -> Result<(), Error>where
T: PropertyTypeConstraint,
Sets the value of an argument.
Trait Implementations§
§impl Deref for ScrolledMessageArguments
impl Deref for ScrolledMessageArguments
§type Target = ScrollMessageArguments
type Target = ScrollMessageArguments
The resulting type after dereferencing.
§fn deref(&self) -> &<ScrolledMessageArguments as Deref>::Target
fn deref(&self) -> &<ScrolledMessageArguments as Deref>::Target
Dereferences the value.
§impl Inherits<MessageArguments> for ScrolledMessageArguments
impl Inherits<MessageArguments> for ScrolledMessageArguments
fn upcast(self) -> Base
fn upcast_ref(&self) -> &Base
Auto Trait Implementations§
impl Freeze for ScrolledMessageArguments
impl RefUnwindSafe for ScrolledMessageArguments
impl !Send for ScrolledMessageArguments
impl !Sync for ScrolledMessageArguments
impl Unpin for ScrolledMessageArguments
impl UnwindSafe for ScrolledMessageArguments
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more