FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LogAction

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct LogAction
    

    An action that logs a message to the debug output.

    Deviation (DEVIATIONS.md, Behaviors): the reference writes the message to the trace listeners (Trace.TraceInformation, TraceWarning, TraceError, Debug.WriteLine) and to the console. The port writes it to the log sink of the framework (Logger, area LogAction, at the level of level) and to the standard output. The message is formatted as string.Format(message, argument) does with one argument ({0}, its alignment, {{ and }}); the format string of the item ({0:N2}) is not applied, the text form of the argument is used.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<LogAction>
    

    Returns a strong reference to this object.

    Source

    message_property

    fn message_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the Message property.

    Source

    argument_property

    fn argument_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the Argument property.

    Source

    level_property

    fn level_property() -> &'static StyledProperty<LogActionLevel>
    

    Identifies the Level property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    message

    fn message(self: &Self) -> Option<String>
    

    Gets or sets the message format string.

    Source

    set_message

    fn set_message(self: &Self, value: Option<String>)
    

    Source

    argument

    fn argument(self: &Self) -> Option<BoxedValue>
    

    Gets or sets an optional argument to format the message with.

    Source

    set_argument

    fn set_argument(self: &Self, value: Option<BoxedValue>)
    

    Source

    level

    fn level(self: &Self) -> LogActionLevel
    

    Gets or sets the log level.

    Source

    set_level

    fn set_level(self: &Self, value: LogActionLevel)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.