[][src]Trait aravis::GcEnumerationExt

pub trait GcEnumerationExt: 'static {
    fn dup_available_display_names(&self) -> Result<Vec<GString>, Error>;
fn dup_available_int_values(&self) -> Result<Vec<i64>, Error>;
fn dup_available_string_values(&self) -> Result<Vec<GString>, Error>;
fn get_entries(&self) -> Vec<GcFeatureNode>;
fn get_int_value(&self) -> Result<i64, Error>;
fn get_string_value(&self) -> Result<GString, Error>;
fn set_int_value(&self, value: i64) -> Result<(), Error>;
fn set_string_value(&self, value: &str) -> Result<(), Error>; }

Trait containing all GcEnumeration methods.

Implementors

GcEnumeration

Required methods

fn dup_available_display_names(&self) -> Result<Vec<GString>, Error>

Create an array of display names of all available entries.

n_values

placeholder for the number of values

Returns

an newly created array of const strings, which must freed after use using g_free, None on error.

fn dup_available_int_values(&self) -> Result<Vec<i64>, Error>

n_values

the number of values

Returns

a newly allocated array of 64 bit integers, to be freed after use using g_free.

fn dup_available_string_values(&self) -> Result<Vec<GString>, Error>

Create an array of all available values of self, as strings.

n_values

placeholder for the number of values

Returns

an newly created array of const strings, which must freed after use using g_free, None on error.

fn get_entries(&self) -> Vec<GcFeatureNode>

Returns

the list of enumeration entry nodes.

fn get_int_value(&self) -> Result<i64, Error>

fn get_string_value(&self) -> Result<GString, Error>

fn set_int_value(&self, value: i64) -> Result<(), Error>

fn set_string_value(&self, value: &str) -> Result<(), Error>

Loading content...

Implementors

Loading content...