Struct glib::FlagsValue
source · #[repr(transparent)]pub struct FlagsValue(_);
Expand description
Representation of a single flags value of a FlagsClass
.
Implementations§
source§impl FlagsValue
impl FlagsValue
sourcepub fn to_value(&self, flags: &FlagsClass) -> Value
pub fn to_value(&self, flags: &FlagsClass) -> Value
Convert flags value to a Value
.
sourcepub fn from_value(value: &Value) -> Option<(FlagsClass, Vec<&FlagsValue>)>
pub fn from_value(value: &Value) -> Option<(FlagsClass, Vec<&FlagsValue>)>
Convert flags values from a Value
. This returns all flags that are set.