pub struct NodeChromeDescriptor {
pub key: String,
pub kind: NodeChromeKind,
pub placement: NodeChromePlacement,
pub label: Option<String>,
pub renderer_key: Option<String>,
pub icon_key: Option<String>,
pub visibility: Option<NodeChromeVisibility>,
pub order: Option<i32>,
pub interactive: bool,
}Expand description
Renderer-neutral metadata for adapter-owned node chrome.
Fields§
§key: String§kind: NodeChromeKind§placement: NodeChromePlacement§label: Option<String>§renderer_key: Option<String>§icon_key: Option<String>§visibility: Option<NodeChromeVisibility>§order: Option<i32>§interactive: boolImplementations§
Source§impl NodeChromeDescriptor
impl NodeChromeDescriptor
pub fn new( key: impl Into<String>, kind: NodeChromeKind, placement: NodeChromePlacement, ) -> Self
pub fn resizer(key: impl Into<String>) -> Self
pub fn toolbar(key: impl Into<String>, placement: NodeChromePlacement) -> Self
pub fn status_strip( key: impl Into<String>, placement: NodeChromePlacement, ) -> Self
pub fn run_action_strip( key: impl Into<String>, placement: NodeChromePlacement, ) -> Self
pub fn inspector_anchor( key: impl Into<String>, placement: NodeChromePlacement, ) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_renderer_key(self, renderer_key: impl Into<String>) -> Self
pub fn with_icon_key(self, icon_key: impl Into<String>) -> Self
pub fn with_visibility(self, visibility: NodeChromeVisibility) -> Self
pub fn with_order(self, order: i32) -> Self
pub fn interactive(self) -> Self
pub fn effective_visibility(&self) -> NodeChromeVisibility
pub fn is_visible_for_state( &self, selected: bool, hovered: bool, focused: bool, ) -> bool
Trait Implementations§
Source§impl Clone for NodeChromeDescriptor
impl Clone for NodeChromeDescriptor
Source§fn clone(&self) -> NodeChromeDescriptor
fn clone(&self) -> NodeChromeDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeChromeDescriptor
impl Debug for NodeChromeDescriptor
Source§impl<'de> Deserialize<'de> for NodeChromeDescriptor
impl<'de> Deserialize<'de> for NodeChromeDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeChromeDescriptor
Source§impl PartialEq for NodeChromeDescriptor
impl PartialEq for NodeChromeDescriptor
Source§fn eq(&self, other: &NodeChromeDescriptor) -> bool
fn eq(&self, other: &NodeChromeDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeChromeDescriptor
impl Serialize for NodeChromeDescriptor
impl StructuralPartialEq for NodeChromeDescriptor
Auto Trait Implementations§
impl Freeze for NodeChromeDescriptor
impl RefUnwindSafe for NodeChromeDescriptor
impl Send for NodeChromeDescriptor
impl Sync for NodeChromeDescriptor
impl Unpin for NodeChromeDescriptor
impl UnsafeUnpin for NodeChromeDescriptor
impl UnwindSafe for NodeChromeDescriptor
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.