Struct gdk::Event[]

pub struct Event(_);

A generic GDK event.

Methods

impl Event
[src]

Creates a new event.

Set the event handler.

The callback handler is called for each event. If None, event handling is disabled.

Returns the associated Window if applicable.

Returns the event type.

Returns whether the event was sent explicitly.

Returns true if the event type matches T.

Tries to downcast to a specific event type.

Trait Implementations

impl PartialEq for Event
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Event
[src]

impl PartialOrd for Event
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Event
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for Event
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Event

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl StaticType for Event

Returns the type identifier of Self.

impl Debug for Event
[src]

Formats the value using the given formatter. Read more

impl<'a> ToGlibPtr<'a, *const GdkEventAny> for Event
[src]

Transfer: none. Read more

Transfer: container. Read more

Transfer: full. Read more

impl<'a> ToGlibPtrMut<'a, *mut GdkEventAny> for Event
[src]

Transfer: none. Read more

impl FromGlibPtrNone<*mut GdkEventAny> for Event
[src]

impl FromGlibPtrBorrow<*mut GdkEventAny> for Event
[src]

impl FromGlibPtrFull<*mut GdkEventAny> for Event
[src]

impl AsRef<GdkEventAny> for Event
[src]

Performs the conversion.

impl AsMut<GdkEventAny> for Event
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for Event

impl !Sync for Event