Type Alias GClosure

Source
pub type GClosure = _GClosure;
Expand description

GClosure: @in_marshal: Indicates whether the closure is currently being invoked with g_closure_invoke() @is_invalid: Indicates whether the closure has been invalidated by g_closure_invalidate()

A #GClosure represents a callback supplied by the programmer.

Aliased Type§

struct GClosure {
    pub _bitfield_align_1: [u16; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
    pub marshal: Option<unsafe extern "C" fn(*mut _GClosure, *mut _GValue, u32, *const _GValue, *mut c_void, *mut c_void)>,
    pub data: *mut c_void,
    pub notifiers: *mut _GClosureNotifyData,
}

Fields§

§_bitfield_align_1: [u16; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>§marshal: Option<unsafe extern "C" fn(*mut _GClosure, *mut _GValue, u32, *const _GValue, *mut c_void, *mut c_void)>§data: *mut c_void§notifiers: *mut _GClosureNotifyData

Implementations

Source§

impl _GClosure

Source

pub fn ref_count(&self) -> guint

Source

pub fn set_ref_count(&mut self, val: guint)

Source

pub fn meta_marshal_nouse(&self) -> guint

Source

pub fn set_meta_marshal_nouse(&mut self, val: guint)

Source

pub fn n_guards(&self) -> guint

Source

pub fn set_n_guards(&mut self, val: guint)

Source

pub fn n_fnotifiers(&self) -> guint

Source

pub fn set_n_fnotifiers(&mut self, val: guint)

Source

pub fn n_inotifiers(&self) -> guint

Source

pub fn set_n_inotifiers(&mut self, val: guint)

Source

pub fn in_inotify(&self) -> guint

Source

pub fn set_in_inotify(&mut self, val: guint)

Source

pub fn floating(&self) -> guint

Source

pub fn set_floating(&mut self, val: guint)

Source

pub fn derivative_flag(&self) -> guint

Source

pub fn set_derivative_flag(&mut self, val: guint)

Source

pub fn in_marshal(&self) -> guint

Source

pub fn set_in_marshal(&mut self, val: guint)

Source

pub fn is_invalid(&self) -> guint

Source

pub fn set_is_invalid(&mut self, val: guint)

Source

pub fn new_bitfield_1( ref_count: guint, meta_marshal_nouse: guint, n_guards: guint, n_fnotifiers: guint, n_inotifiers: guint, in_inotify: guint, floating: guint, derivative_flag: guint, in_marshal: guint, is_invalid: guint, ) -> __BindgenBitfieldUnit<[u8; 4]>

Trait Implementations

Source§

impl Clone for _GClosure

Source§

fn clone(&self) -> _GClosure

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for _GClosure

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for _GClosure

Source§

fn eq(&self, other: &_GClosure) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for _GClosure

Source§

impl Eq for _GClosure

Source§

impl StructuralPartialEq for _GClosure