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

    pub struct WindowAttr {
        pub title: Option<String>,
        pub event_mask: i32,
        pub x: Option<i32>,
        pub y: Option<i32>,
        pub width: i32,
        pub height: i32,
        pub wclass: WindowWindowClass,
        pub visual: Option<Visual>,
        pub window_type: WindowType,
        pub cursor: Option<Cursor>,
        pub override_redirect: bool,
        pub type_hint: Option<WindowTypeHint>,
    }

## Fields

`title: Option<String>` `event_mask: i32` `x: Option<i32>` `y: Option<i32>` `width: i32` `height: i32` `wclass: WindowWindowClass` `visual: Option<Visual>` `window_type: WindowType` `cursor: Option<Cursor>` `override_redirect: bool` `type_hint: Option<WindowTypeHint>`

## Trait Implementations

### `impl Default for WindowAttr`
[src]

#### `fn default() -> WindowAttr`

Returns the "default value" for a type. Read more

### `impl<'a> ToGlibPtr<'a, *mut GdkWindowAttr> for WindowAttr`
[src]

#### `type Storage = (Box<GdkWindowAttr>, Stash<'a, *mut GdkVisual, Option<Visual>>, Stash<'a, *mut GdkCursor, Option<Cursor>>, Stash<'a, *const c_char, Option<String>>)`

#### `fn to_glib_none(&'a self) -> Stash<'a, *mut GdkWindowAttr, 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

# 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`)