# Struct gdk::EventProximity [−] [src]

    pub struct EventProximity(_);

## Methods

### `impl EventProximity`
[src]

#### `fn get_time(&self) -> u32`

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

## Methods from Deref<Target = Event>

#### `fn get_event_type(&self) -> EventType`

Returns the event type.

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

Returns the associated `Window` if applicable.

#### `fn get_send_event(&self) -> bool`

Returns whether the event was sent explicitly.

#### `fn is<T: FromEvent>(&self) -> bool`

Returns `true` if the event type matches `T`.

#### `fn downcast<T: FromEvent>(self) -> Result<T, Self>`

Tries to downcast to a specific event type.

## Trait Implementations

### `impl Clone for EventProximity`
[src]

#### `fn clone(&self) -> EventProximity`

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0

Performs copy-assignment from `source`. Read more

### `impl Debug for EventProximity`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl<'a> ToGlibPtr<'a, *const GdkEventProximity> for EventProximity`
[src]

#### `type Storage = &'a Self`

#### `fn to_glib_none(&'a self) -> Stash<'a, *const GdkEventProximity, Self>`

Transfer: none. Read more

#### `fn to_glib_container(&'a self) -> Stash<'a, P, Self>`

Transfer: container. Read more

#### `fn to_glib_full(&self) -> P`

Transfer: full. Read more

### `impl<'a> ToGlibPtrMut<'a, *mut GdkEventProximity> for EventProximity`
[src]

#### `type Storage = &'a mut Self`

#### `fn to_glib_none_mut(&'a mut self) -> StashMut<'a, *mut GdkEventProximity, Self>`

Transfer: none. Read more

### `impl FromGlibPtrNone<*mut GdkEventProximity> for EventProximity`
[src]

#### `unsafe fn from_glib_none(ptr: *mut GdkEventProximity) -> Self`

### `impl FromGlibPtrFull<*mut GdkEventProximity> for EventProximity`
[src]

#### `unsafe fn from_glib_full(ptr: *mut GdkEventProximity) -> Self`

### `impl AsRef<GdkEventProximity> for EventProximity`
[src]

#### `fn as_ref(&self) -> &GdkEventProximity`

Performs the conversion.

### `impl AsMut<GdkEventProximity> for EventProximity`
[src]

#### `fn as_mut(&mut self) -> &mut GdkEventProximity`

Performs the conversion.

### `impl Deref for EventProximity`
[src]

#### `type Target = Event`

The resulting type after dereferencing

#### `fn deref(&self) -> &Event`

The method called to dereference a value

### `impl DerefMut for EventProximity`
[src]

#### `fn deref_mut(&mut self) -> &mut Event`

The method called to mutably dereference a value

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)