Trait NSRuleEditorDelegate

Source
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 { ... }
    unsafe fn ruleEditorRowsDidChange(&self, notification: &NSNotification)
       where Self: Sized + Message { ... }
}
Available on crate feature NSRuleEditor only.
Expand description

Provided Methods§

Source

unsafe fn ruleEditor_numberOfChildrenForCriterion_withRowType( &self, editor: &NSRuleEditor, criterion: Option<&AnyObject>, row_type: NSRuleEditorRowType, ) -> NSInteger
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSView only.
Source

unsafe fn ruleEditor_child_forCriterion_withRowType( &self, editor: &NSRuleEditor, index: NSInteger, criterion: Option<&AnyObject>, row_type: NSRuleEditorRowType, ) -> Retained<AnyObject>
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSView only.
Source

unsafe fn ruleEditor_displayValueForCriterion_inRow( &self, editor: &NSRuleEditor, criterion: &AnyObject, row: NSInteger, ) -> Retained<AnyObject>
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSView only.
Source

unsafe fn ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow( &self, editor: &NSRuleEditor, criterion: &AnyObject, value: &AnyObject, row: NSInteger, ) -> Option<Retained<NSDictionary<NSRuleEditorPredicatePartKey, AnyObject>>>
where Self: Sized + Message,

Available on crate features NSControl and NSResponder and NSView only.
Source

unsafe fn ruleEditorRowsDidChange(&self, notification: &NSNotification)
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn NSRuleEditorDelegate

Source§

const NAME: &'static str = "NSRuleEditorDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn NSRuleEditorDelegate

Implementations on Foreign Types§

Source§

impl<T> NSRuleEditorDelegate for ProtocolObject<T>

Implementors§