Trait objc2_app_kit::NSRuleEditorDelegate

source ·
pub unsafe trait NSRuleEditorDelegate: NSObjectProtocol + IsMainThreadOnly {
    // 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.

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.
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§