Type Alias libvips_rs::bindings::GIconIface

source ·
pub type GIconIface = _GIconIface;
Expand description

GIcon:

An abstract type that specifies an icon.

Aliased Type§

struct GIconIface {
    pub g_iface: _GTypeInterface,
    pub hash: Option<unsafe extern "C" fn(_: *mut _GIcon) -> u32>,
    pub equal: Option<unsafe extern "C" fn(_: *mut _GIcon, _: *mut _GIcon) -> i32>,
    pub to_tokens: Option<unsafe extern "C" fn(_: *mut _GIcon, _: *mut _GPtrArray, _: *mut i32) -> i32>,
    pub from_tokens: Option<unsafe extern "C" fn(_: *mut *mut i8, _: i32, _: i32, _: *mut *mut _GError) -> *mut _GIcon>,
    pub serialize: Option<unsafe extern "C" fn(_: *mut _GIcon) -> *mut _GVariant>,
}

Fields§

§g_iface: _GTypeInterface§hash: Option<unsafe extern "C" fn(_: *mut _GIcon) -> u32>§equal: Option<unsafe extern "C" fn(_: *mut _GIcon, _: *mut _GIcon) -> i32>§to_tokens: Option<unsafe extern "C" fn(_: *mut _GIcon, _: *mut _GPtrArray, _: *mut i32) -> i32>

GIconIface::to_tokens: @icon: The #GIcon @tokens: (element-type utf8) (out caller-allocates): The array to fill with tokens @out_version: (out): version of serialized tokens

Serializes the @icon into string tokens. This is can be invoked when g_icon_new_for_string() is called.

Returns: %TRUE if serialization took place, %FALSE otherwise

Since: 2.20

§from_tokens: Option<unsafe extern "C" fn(_: *mut *mut i8, _: i32, _: i32, _: *mut *mut _GError) -> *mut _GIcon>

GIconIface::from_tokens: @tokens: (array length=num_tokens): An array of tokens @num_tokens: The number of tokens in @tokens @version: Version of the serialized tokens @error: Return location for errors, or %NULL to ignore

Constructs a #GIcon from a list of @tokens.

Returns: (nullable) (transfer full): the #GIcon or %NULL on error

Since: 2.20

§serialize: Option<unsafe extern "C" fn(_: *mut _GIcon) -> *mut _GVariant>