pub struct HostMenuEntry {
pub id: String,
pub label: String,
pub icon: Option<&'static Icon>,
/* private fields */
}Expand description
A host row appended to the chart, series and drawing menus in registration order.
Use Self::when to restrict a row to particular click targets. Host ids must be unique
within one ChartMenus. The host owns any services invoked by the returned action.
Fields§
§id: StringStable id returned in ChartContextAction::Host.
label: StringText painted with the built-in menu style.
icon: Option<&'static Icon>Optional icon painted with the built-in tint and size.
Implementations§
Source§impl HostMenuEntry
impl HostMenuEntry
Auto Trait Implementations§
impl !RefUnwindSafe for HostMenuEntry
impl !Send for HostMenuEntry
impl !Sync for HostMenuEntry
impl !UnwindSafe for HostMenuEntry
impl Freeze for HostMenuEntry
impl Unpin for HostMenuEntry
impl UnsafeUnpin for HostMenuEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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