ScreenshotAction
struct · ferroui-xaml-interactions-custom · v0.5.0
struct ScreenshotAction
Renders the target control (or the sender) to a bitmap and saves it as a PNG file the user picks.
Members
TYPEto_reffile_name_propertytarget_control_propertyconstructnewtarget_controlset_target_controlfile_nameset_file_name
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ScreenshotAction>
Returns a strong reference to this object.
file_name_property
fn file_name_property() -> &'static StyledProperty<Option<String>>
Identifies the FileName property.
target_control_property
fn target_control_property() -> &'static StyledProperty<Option<ElementRef<Control>>>
Identifies the TargetControl property.
Deviation (DEVIATIONS.md, Behaviors): the action does not own its target, so the value is an element reference.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
target_control
fn target_control(self: &Self) -> Option<Ref<Control>>
Gets or sets the target control. If not set, the sender is used. Markup resolves a name given for it to the named element.
set_target_control
fn set_target_control(self: &Self, value: impl Into<Nullable<Control>>)
file_name
fn file_name(self: &Self) -> Option<String>
Gets or sets the file name suggested to the user. This is a property of the object model.
set_file_name
fn set_file_name(self: &Self, value: Option<String>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<ScreenshotAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.