pub unsafe trait NSRuleEditorDelegate: NSObjectProtocol + MainThreadOnly {
// Provided methods
unsafe fn ruleEditor_numberOfChildrenForCriterion_withRowType(
&self,
editor: &NSRuleEditor,
criterion: Option<&AnyObject>,
row_type: NSRuleEditorRowType,
) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn ruleEditor_child_forCriterion_withRowType(
&self,
editor: &NSRuleEditor,
index: NSInteger,
criterion: Option<&AnyObject>,
row_type: NSRuleEditorRowType,
) -> Retained<AnyObject>
where Self: Sized + Message { ... }
unsafe fn ruleEditor_displayValueForCriterion_inRow(
&self,
editor: &NSRuleEditor,
criterion: &AnyObject,
row: NSInteger,
) -> Retained<AnyObject>
where Self: Sized + Message { ... }
unsafe fn ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow(
&self,
editor: &NSRuleEditor,
criterion: &AnyObject,
value: &AnyObject,
row: NSInteger,
) -> Option<Retained<NSDictionary<NSRuleEditorPredicatePartKey, AnyObject>>>
where Self: Sized + Message { ... }
fn ruleEditorRowsDidChange(&self, notification: &NSNotification)
where Self: Sized + Message { ... }
}Available on crate feature
NSRuleEditor only.Expand description
Provided Methods§
Sourceunsafe fn ruleEditor_numberOfChildrenForCriterion_withRowType(
&self,
editor: &NSRuleEditor,
criterion: Option<&AnyObject>,
row_type: NSRuleEditorRowType,
) -> NSInteger
Available on crate features NSControl and NSResponder and NSView only.
unsafe fn ruleEditor_numberOfChildrenForCriterion_withRowType( &self, editor: &NSRuleEditor, criterion: Option<&AnyObject>, row_type: NSRuleEditorRowType, ) -> NSInteger
NSControl and NSResponder and NSView only.§Safety
criterion should be of the correct type.
Sourceunsafe fn ruleEditor_child_forCriterion_withRowType(
&self,
editor: &NSRuleEditor,
index: NSInteger,
criterion: Option<&AnyObject>,
row_type: NSRuleEditorRowType,
) -> Retained<AnyObject>
Available on crate features NSControl and NSResponder and NSView only.
unsafe fn ruleEditor_child_forCriterion_withRowType( &self, editor: &NSRuleEditor, index: NSInteger, criterion: Option<&AnyObject>, row_type: NSRuleEditorRowType, ) -> Retained<AnyObject>
NSControl and NSResponder and NSView only.§Safety
criterion should be of the correct type.
Sourceunsafe fn ruleEditor_displayValueForCriterion_inRow(
&self,
editor: &NSRuleEditor,
criterion: &AnyObject,
row: NSInteger,
) -> Retained<AnyObject>
Available on crate features NSControl and NSResponder and NSView only.
unsafe fn ruleEditor_displayValueForCriterion_inRow( &self, editor: &NSRuleEditor, criterion: &AnyObject, row: NSInteger, ) -> Retained<AnyObject>
NSControl and NSResponder and NSView only.§Safety
criterion should be of the correct type.
Sourceunsafe fn ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow(
&self,
editor: &NSRuleEditor,
criterion: &AnyObject,
value: &AnyObject,
row: NSInteger,
) -> Option<Retained<NSDictionary<NSRuleEditorPredicatePartKey, AnyObject>>>
Available on crate features NSControl and NSResponder and NSView only.
unsafe fn ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow( &self, editor: &NSRuleEditor, criterion: &AnyObject, value: &AnyObject, row: NSInteger, ) -> Option<Retained<NSDictionary<NSRuleEditorPredicatePartKey, AnyObject>>>
NSControl and NSResponder and NSView only.§Safety
criterionshould be of the correct type.valueshould be of the correct type.
fn ruleEditorRowsDidChange(&self, notification: &NSNotification)
Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSRuleEditorDelegate
Source§impl ProtocolType for dyn NSRuleEditorDelegate
impl ProtocolType for dyn NSRuleEditorDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".