[][src]Trait gtk::GestureExt

pub trait GestureExt: 'static {
    fn get_bounding_box(&self) -> Option<Rectangle>;
fn get_bounding_box_center(&self) -> Option<(f64, f64)>;
fn get_device(&self) -> Option<Device>;
fn get_group(&self) -> Vec<Gesture>;
fn get_last_event<'a, P: Into<Option<&'a EventSequence>>>(
        &self,
        sequence: P
    ) -> Option<Event>;
fn get_last_updated_sequence(&self) -> Option<EventSequence>;
fn get_point<'a, P: Into<Option<&'a EventSequence>>>(
        &self,
        sequence: P
    ) -> Option<(f64, f64)>;
fn get_sequence_state(&self, sequence: &EventSequence) -> EventSequenceState;
fn get_sequences(&self) -> Vec<EventSequence>;
fn get_window(&self) -> Option<Window>;
fn group<P: IsA<Gesture>>(&self, gesture: &P);
fn handles_sequence<'a, P: Into<Option<&'a EventSequence>>>(
        &self,
        sequence: P
    ) -> bool;
fn is_active(&self) -> bool;
fn is_grouped_with<P: IsA<Gesture>>(&self, other: &P) -> bool;
fn is_recognized(&self) -> bool;
fn set_sequence_state(
        &self,
        sequence: &EventSequence,
        state: EventSequenceState
    ) -> bool;
fn set_state(&self, state: EventSequenceState) -> bool;
fn set_window<'a, P: IsA<Window> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        window: Q
    );
fn ungroup(&self);
fn get_property_n_points(&self) -> u32;
fn connect_begin<F: Fn(&Self, &EventSequence) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_cancel<F: Fn(&Self, &EventSequence) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_end<F: Fn(&Self, &EventSequence) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_sequence_state_changed<F: Fn(&Self, &EventSequence, EventSequenceState) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_update<F: Fn(&Self, &EventSequence) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_window_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn get_bounding_box(&self) -> Option<Rectangle>

fn get_bounding_box_center(&self) -> Option<(f64, f64)>

fn get_device(&self) -> Option<Device>

fn get_group(&self) -> Vec<Gesture>

fn get_last_event<'a, P: Into<Option<&'a EventSequence>>>(
    &self,
    sequence: P
) -> Option<Event>

fn get_last_updated_sequence(&self) -> Option<EventSequence>

fn get_point<'a, P: Into<Option<&'a EventSequence>>>(
    &self,
    sequence: P
) -> Option<(f64, f64)>

fn get_sequence_state(&self, sequence: &EventSequence) -> EventSequenceState

fn get_sequences(&self) -> Vec<EventSequence>

fn get_window(&self) -> Option<Window>

fn group<P: IsA<Gesture>>(&self, gesture: &P)

fn handles_sequence<'a, P: Into<Option<&'a EventSequence>>>(
    &self,
    sequence: P
) -> bool

fn is_active(&self) -> bool

fn is_grouped_with<P: IsA<Gesture>>(&self, other: &P) -> bool

fn is_recognized(&self) -> bool

fn set_sequence_state(
    &self,
    sequence: &EventSequence,
    state: EventSequenceState
) -> bool

fn set_state(&self, state: EventSequenceState) -> bool

fn set_window<'a, P: IsA<Window> + 'a, Q: Into<Option<&'a P>>>(&self, window: Q)

fn ungroup(&self)

fn get_property_n_points(&self) -> u32

fn connect_begin<F: Fn(&Self, &EventSequence) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_cancel<F: Fn(&Self, &EventSequence) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_end<F: Fn(&Self, &EventSequence) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_sequence_state_changed<F: Fn(&Self, &EventSequence, EventSequenceState) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_update<F: Fn(&Self, &EventSequence) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_window_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<Gesture>> GestureExt for O[src]

Loading content...