#[derive(Widget)]
{
// Attributes available to this derive:
#[public_slot]
#[public_signal]
#[uprocess_self]
#[uprocess_each]
#[uprocess_last]
#[uprocess_each_app]
#[uprocess_last_app]
#[uproperty_process]
#[uproperty_public_slot]
#[uproperty_public_signal]
#[base_widget]
#[data_processor]
}
Expand description
Widget derive macro
The Widget (and DataProcessor) trait will be automatically implemented for the structure.
There is few attributes which will help you to configure the implementation.
§#[base_widget]
Exactly one structure’s member with implemented Widget trait have to be marked by the attribute. All Widget stuff will be delegated to the member.
§#[public_slot]
see DataProcessor’s public_slot
§#[public_signal]
see DataProcessor’s public_signal
§#[uprocess_self(<method_name>)]
see DataProcessor’s uprocess_self
§#[uprocess_each(<method_name>)]
see DataProcessor’s uprocess_each
§#[uprocess_last(<method_name>)]
see DataProcessor’s uprocess_last
§#[uprocess_each_app(<method_name>)]
see DataProcessor’s uprocess_each_app
§#[uprocess_last_app(<method_name>)]
see DataProcessor’s uprocess_last_app
§#[uproperty_process]
see DataProcessor’s uproperty_process
§#[uproperty_public_slot(<method_name>)]
see DataProcessor’s uproperty_public_slot
§#[uproperty_public_signal(<method_name>)]
see DataProcessor’s uproperty_public_signal