pub struct GestureHandler<'a> {
pub _tab: Table<'a>,
}Fields§
§_tab: Table<'a>Implementations§
Source§impl<'a> GestureHandler<'a>
impl<'a> GestureHandler<'a>
pub const VT_NODE_ID: VOffsetT = 4
pub const VT_TARGET_NODE_ID: VOffsetT = 6
pub const VT_GESTURE_TYPE: VOffsetT = 8
pub const VT_TRIGGER_EVENT: VOffsetT = 10
pub const VT_TRIGGER_STATE_MACHINE: VOffsetT = 12
pub const VT_CONTINUOUS_PROPERTY: VOffsetT = 14
pub const VT_CONTINUOUS_AXIS: VOffsetT = 16
pub const VT_KEYBOARD_KEY: VOffsetT = 18
pub const VT_KEYBOARD_MODIFIER: VOffsetT = 20
pub const VT_THRESHOLD_PX: VOffsetT = 22
pub const VT_VELOCITY_THRESHOLD: VOffsetT = 24
pub unsafe fn init_from_table(table: Table<'a>) -> Self
pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: Allocator + 'bldr>( _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr, A>, args: &'args GestureHandlerArgs<'args>, ) -> WIPOffset<GestureHandler<'bldr>>
pub fn node_id(&self) -> &'a str
Sourcepub fn target_node_id(&self) -> &'a str
pub fn target_node_id(&self) -> &'a str
Target node that receives the gesture.
pub fn gesture_type(&self) -> GestureType
Sourcepub fn trigger_event(&self) -> Option<&'a str>
pub fn trigger_event(&self) -> Option<&'a str>
For tap/click: which state machine event to fire.
pub fn trigger_state_machine(&self) -> Option<&'a str>
Sourcepub fn continuous_property(&self) -> Option<&'a str>
pub fn continuous_property(&self) -> Option<&'a str>
For drag/continuous: property to update and value mapping.
pub fn continuous_axis(&self) -> Option<&'a str>
Sourcepub fn keyboard_key(&self) -> Option<&'a str>
pub fn keyboard_key(&self) -> Option<&'a str>
Keyboard equivalent (required by validator for accessibility).
pub fn keyboard_modifier(&self) -> Option<&'a str>
Sourcepub fn threshold_px(&self) -> f32
pub fn threshold_px(&self) -> f32
Gesture thresholds.
pub fn velocity_threshold(&self) -> f32
Trait Implementations§
Source§impl<'a> Clone for GestureHandler<'a>
impl<'a> Clone for GestureHandler<'a>
Source§fn clone(&self) -> GestureHandler<'a>
fn clone(&self) -> GestureHandler<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GestureHandler<'_>
impl Debug for GestureHandler<'_>
Source§impl<'a> Follow<'a> for GestureHandler<'a>
impl<'a> Follow<'a> for GestureHandler<'a>
Source§impl<'a> PartialEq for GestureHandler<'a>
impl<'a> PartialEq for GestureHandler<'a>
Source§impl Verifiable for GestureHandler<'_>
impl Verifiable for GestureHandler<'_>
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl<'a> Copy for GestureHandler<'a>
impl<'a> StructuralPartialEq for GestureHandler<'a>
Auto Trait Implementations§
impl<'a> Freeze for GestureHandler<'a>
impl<'a> RefUnwindSafe for GestureHandler<'a>
impl<'a> Send for GestureHandler<'a>
impl<'a> Sync for GestureHandler<'a>
impl<'a> Unpin for GestureHandler<'a>
impl<'a> UnsafeUnpin for GestureHandler<'a>
impl<'a> UnwindSafe for GestureHandler<'a>
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