Struct rute::auto::icon_ffi::RUIconFuncs

source ·
#[repr(C)]
pub struct RUIconFuncs {
Show 24 fields pub destroy: extern "C" fn(self_c: *const RUBase), pub swap: extern "C" fn(self_c: *const RUBase, other: *const RUBase), pub pixmap: extern "C" fn(self_c: *const RUBase, size: *const RUBase, mode: i32, state: i32) -> RUPixmap, pub pixmap_2: extern "C" fn(self_c: *const RUBase, w: i32, h: i32, mode: i32, state: i32) -> RUPixmap, pub pixmap_3: extern "C" fn(self_c: *const RUBase, extent: i32, mode: i32, state: i32) -> RUPixmap, pub pixmap_4: extern "C" fn(self_c: *const RUBase, window: *const RUBase, size: *const RUBase, mode: i32, state: i32) -> RUPixmap, pub actual_size: extern "C" fn(self_c: *const RUBase, size: *const RUBase, mode: i32, state: i32) -> RUSize, pub actual_size_2: extern "C" fn(self_c: *const RUBase, window: *const RUBase, size: *const RUBase, mode: i32, state: i32) -> RUSize, pub name: extern "C" fn(self_c: *const RUBase) -> *const c_char, pub paint: extern "C" fn(self_c: *const RUBase, painter: *const RUBase, rect: *const RUBase, alignment: i32, mode: i32, state: i32), pub paint_2: extern "C" fn(self_c: *const RUBase, painter: *const RUBase, x: i32, y: i32, w: i32, h: i32, alignment: i32, mode: i32, state: i32), pub is_null: extern "C" fn(self_c: *const RUBase) -> bool, pub is_detached: extern "C" fn(self_c: *const RUBase) -> bool, pub detach: extern "C" fn(self_c: *const RUBase), pub cache_key: extern "C" fn(self_c: *const RUBase) -> i64, pub add_pixmap: extern "C" fn(self_c: *const RUBase, pixmap: *const RUBase, mode: i32, state: i32), pub add_file: extern "C" fn(self_c: *const RUBase, file_name: *const c_char, size: *const RUBase, mode: i32, state: i32), pub set_is_mask: extern "C" fn(self_c: *const RUBase, is_mask: bool), pub is_mask: extern "C" fn(self_c: *const RUBase) -> bool, pub from_theme: extern "C" fn(self_c: *const RUBase, name: *const c_char) -> RUIcon, pub from_theme_2: extern "C" fn(self_c: *const RUBase, name: *const c_char, fallback: *const RUBase) -> RUIcon, pub has_theme_icon: extern "C" fn(self_c: *const RUBase, name: *const c_char) -> bool, pub theme_name: extern "C" fn(self_c: *const RUBase) -> *const c_char, pub set_theme_name: extern "C" fn(self_c: *const RUBase, path: *const c_char),
}

Fields

destroy: extern "C" fn(self_c: *const RUBase)swap: extern "C" fn(self_c: *const RUBase, other: *const RUBase)pixmap: extern "C" fn(self_c: *const RUBase, size: *const RUBase, mode: i32, state: i32) -> RUPixmappixmap_2: extern "C" fn(self_c: *const RUBase, w: i32, h: i32, mode: i32, state: i32) -> RUPixmappixmap_3: extern "C" fn(self_c: *const RUBase, extent: i32, mode: i32, state: i32) -> RUPixmappixmap_4: extern "C" fn(self_c: *const RUBase, window: *const RUBase, size: *const RUBase, mode: i32, state: i32) -> RUPixmapactual_size: extern "C" fn(self_c: *const RUBase, size: *const RUBase, mode: i32, state: i32) -> RUSizeactual_size_2: extern "C" fn(self_c: *const RUBase, window: *const RUBase, size: *const RUBase, mode: i32, state: i32) -> RUSizename: extern "C" fn(self_c: *const RUBase) -> *const c_charpaint: extern "C" fn(self_c: *const RUBase, painter: *const RUBase, rect: *const RUBase, alignment: i32, mode: i32, state: i32)paint_2: extern "C" fn(self_c: *const RUBase, painter: *const RUBase, x: i32, y: i32, w: i32, h: i32, alignment: i32, mode: i32, state: i32)is_null: extern "C" fn(self_c: *const RUBase) -> boolis_detached: extern "C" fn(self_c: *const RUBase) -> booldetach: extern "C" fn(self_c: *const RUBase)cache_key: extern "C" fn(self_c: *const RUBase) -> i64add_pixmap: extern "C" fn(self_c: *const RUBase, pixmap: *const RUBase, mode: i32, state: i32)add_file: extern "C" fn(self_c: *const RUBase, file_name: *const c_char, size: *const RUBase, mode: i32, state: i32)set_is_mask: extern "C" fn(self_c: *const RUBase, is_mask: bool)is_mask: extern "C" fn(self_c: *const RUBase) -> boolfrom_theme: extern "C" fn(self_c: *const RUBase, name: *const c_char) -> RUIconfrom_theme_2: extern "C" fn(self_c: *const RUBase, name: *const c_char, fallback: *const RUBase) -> RUIconhas_theme_icon: extern "C" fn(self_c: *const RUBase, name: *const c_char) -> booltheme_name: extern "C" fn(self_c: *const RUBase) -> *const c_charset_theme_name: extern "C" fn(self_c: *const RUBase, path: *const c_char)

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.