pub struct Configuration {
pub index: usize,
pub name: Option<String>,
pub creator: Option<String>,
pub base_state: BaseState,
pub on: Vec<u32>,
pub off: Vec<u32>,
pub intent: LayerIntent,
pub auto_state: Vec<AutoStateRule>,
pub order: LayerTree,
pub list_mode: ListMode,
pub rb_groups: Vec<Vec<u32>>,
pub locked: Vec<u32>,
}Expand description
One configuration of layer state and presentation.
index = 0 is the default configuration (/OCProperties /D);
indices 1..N correspond to entries 0..N-1 in /OCProperties /Configs.
Fields§
§index: usize0 = default /D; 1..N = /Configs[i-1].
name: Option<String>/Name — display label for this configuration.
creator: Option<String>/Creator — application that authored this configuration.
base_state: BaseState/BaseState — starting visibility for every layer before
/ON and /OFF overrides apply.
on: Vec<u32>/ON — layers explicitly turned on.
off: Vec<u32>/OFF — layers explicitly turned off.
intent: LayerIntent/Intent — author’s hint about the audiences this
configuration is meant for.
auto_state: Vec<AutoStateRule>/AS — automatic-state rules that re-apply /Usage hints
under render intents.
order: LayerTree/Order — display hierarchy.
list_mode: ListMode/ListMode — whether the layer panel should show all pages or
only the visible page’s layers.
rb_groups: Vec<Vec<u32>>/RBGroups — radio-button groups: turning one layer on in a
group implies turning the others in that group off.
locked: Vec<u32>/Locked — layers the user is not allowed to toggle from a
layer panel.
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnsafeUnpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more