[]Struct gdk::Cursor

pub struct Cursor(_, _);

Methods

impl Cursor[src]

pub fn new(cursor_type: CursorType) -> Cursor[src]

Deprecated

pub fn new_for_display(display: &Display, cursor_type: CursorType) -> Cursor[src]

pub fn new_from_name(display: &Display, name: &str) -> Option<Cursor>[src]

pub fn new_from_pixbuf(
    display: &Display,
    pixbuf: &Pixbuf,
    x: i32,
    y: i32
) -> Cursor
[src]

pub fn new_from_surface(
    display: &Display,
    surface: &Surface,
    x: f64,
    y: f64
) -> Cursor
[src]

pub fn get_cursor_type(&self) -> CursorType[src]

pub fn get_display(&self) -> Display[src]

pub fn get_image(&self) -> Option<Pixbuf>[src]

pub fn get_surface(&self) -> (Option<Surface>, f64, f64)[src]

Trait Implementations

impl Clone for Cursor

impl Eq for Cursor

impl Ord for Cursor

impl<T: ObjectType> PartialEq<T> for Cursor

impl<T: ObjectType> PartialOrd<T> for Cursor

impl Display for Cursor[src]

impl Debug for Cursor

impl Hash for Cursor

impl StaticType for Cursor

Auto Trait Implementations

impl !Send for Cursor

impl !Sync for Cursor

impl Unpin for Cursor

impl UnwindSafe for Cursor

impl RefUnwindSafe for Cursor

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]