Struct glib::object::Ref [] [src]

pub struct Ref(_);

A reference to any GObject descendant.

Methods

impl Ref

fn from_glib_none(ptr: *mut GObject) -> Ref

Transfer: none constructor.

fn from_glib_full(ptr: *mut GObject) -> Ref

Transfer: full constructor.

fn to_glib_none(&self) -> *mut GObject

Returns a transfer: none raw pointer.

fn to_glib_full(&self) -> *mut GObject

Returns a transfer: full raw pointer.

Trait Implementations

impl Clone for Ref

fn clone(&self) -> Ref

fn clone_from(&mut self, source: &Self)

impl Drop for Ref

fn drop(&mut self)

Derived Implementations

impl Eq for Ref

impl PartialEq for Ref

fn eq(&self, __arg_0: &Ref) -> bool

fn ne(&self, __arg_0: &Ref) -> bool

impl Debug for Ref

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