pub struct ActionCollectionTemplate { /* private fields */ }Expand description
A template for creating a collection of IAction objects.
As the value of a style setter of the Actions of a
StyledElementTrigger it builds a new collection for each
trigger the style applies to.
Implementations§
Source§impl ActionCollectionTemplate
impl ActionCollectionTemplate
Sourcepub fn content(&self) -> Option<BoxedValue>
pub fn content(&self) -> Option<BoxedValue>
Gets or sets the content of the template: deferred content built on each
build.
pub fn set_content(&self, value: Option<BoxedValue>)
Sourcepub fn build(&self) -> Option<ActionCollection>
pub fn build(&self) -> Option<ActionCollection>
Builds the collection of actions from the template.
§Panics
Panics if the content is not template content, or builds something else than a collection of actions.
Trait Implementations§
Source§impl Default for ActionCollectionTemplate
impl Default for ActionCollectionTemplate
Source§impl ITemplate for ActionCollectionTemplate
impl ITemplate for ActionCollectionTemplate
Source§fn build(&self) -> BoxedValue
fn build(&self) -> BoxedValue
Builds the collection of actions from the template, as the value of the property (an optional collection).
Source§impl MarkupTyped for ActionCollectionTemplate
impl MarkupTyped for ActionCollectionTemplate
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !Freeze for ActionCollectionTemplate
impl !RefUnwindSafe for ActionCollectionTemplate
impl !Send for ActionCollectionTemplate
impl !Sync for ActionCollectionTemplate
impl !UnwindSafe for ActionCollectionTemplate
impl Unpin for ActionCollectionTemplate
impl UnsafeUnpin for ActionCollectionTemplate
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more