Trait glib::object::Wrapper [] [src]

pub trait Wrapper: StaticType {
    type GlibType;
    unsafe fn wrap(r: Ref) -> Self;
    fn as_ref(&self) -> &Ref;
    fn unwrap(self) -> Ref;
}
[]

A wrapper around the Ref.

Associated Types

type GlibType[]

The foreign struct type corresponding to the object.

Required Methods

unsafe fn wrap(r: Ref) -> Self[]

Wraps a Ref.

fn as_ref(&self) -> &Ref[]

Returns a reference to the inner Ref.

fn unwrap(self) -> Ref[]

Transforms into the inner Ref.

Implementors