summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/appkit/NSPredicateEditorRowTemplate.inc
blob: f5f141d222ead9323583c290e8310bd393421892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{ Parsed from Appkit.framework NSPredicateEditorRowTemplate.h }

{$ifdef TYPES}
{$ifndef NSPREDICATEEDITORROWTEMPLATE_PAS_T}
{$define NSPREDICATEEDITORROWTEMPLATE_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSPREDICATEEDITORROWTEMPLATE_PAS_R}
{$define NSPREDICATEEDITORROWTEMPLATE_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSPREDICATEEDITORROWTEMPLATE_PAS_F}
{$define NSPREDICATEEDITORROWTEMPLATE_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSPREDICATEEDITORROWTEMPLATE_PAS_S}
{$define NSPREDICATEEDITORROWTEMPLATE_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSPredicateEditorRowTemplate = objcclass;
  NSPredicateEditorRowTemplatePointer = ^NSPredicateEditorRowTemplate;
  NSPredicateEditorRowTemplatePtr = NSPredicateEditorRowTemplatePointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSPREDICATEEDITORROWTEMPLATE_PAS_C}
{$define NSPREDICATEEDITORROWTEMPLATE_PAS_C}

{ NSPredicateEditorRowTemplate }
  NSPredicateEditorRowTemplate = objcclass external (NSObject, NSCodingProtocol, NSCopyingProtocol)
  private
    _templateType: NSInteger;
    _predicateOptions: NSUInteger;
    _predicateModifier: NSUInteger;
    _leftAttributeType: NSUInteger;
    _rightAttributeType: NSUInteger;
    _views: NSArray;
    __ptFlags: record
      case byte of
       0: (_anonbitfield_NSPredicateEditorRowTemplate0: cuint);
       1: (data: bitpacked record
        leftIsWildcard: 0..1;
        rightIsWildcard: 0..1;
        reserved: 0..((1 shl 30)-1);
       end;
      );
      end;
    _patternReserved: id;
    
  public
    function matchForPredicate(predicate: NSPredicate): double; message 'matchForPredicate:';
    function templateViews: NSArray; message 'templateViews';
    procedure setPredicate(predicate: NSPredicate); message 'setPredicate:';
    function predicateWithSubpredicates(subpredicates: NSArray): NSPredicate; message 'predicateWithSubpredicates:';
    function displayableSubpredicatesOfPredicate(predicate: NSPredicate): NSArray; message 'displayableSubpredicatesOfPredicate:';
    function initWithLeftExpressions_rightExpressions_modifier_operators_options(leftExpressions_: NSArray; rightExpressions_: NSArray; modifier_: NSComparisonPredicateModifier; operators_: NSArray; options_: NSUInteger): id; message 'initWithLeftExpressions:rightExpressions:modifier:operators:options:';
    function initWithLeftExpressions_rightExpressionAttributeType_modifier_operators_options(leftExpressions_: NSArray; attributeType: NSAttributeType; modifier_: NSComparisonPredicateModifier; operators_: NSArray; options_: NSUInteger): id; message 'initWithLeftExpressions:rightExpressionAttributeType:modifier:operators:options:';
    function initWithCompoundTypes(compoundTypes_: NSArray): id; message 'initWithCompoundTypes:';
    function leftExpressions: NSArray; message 'leftExpressions';
    function rightExpressions: NSArray; message 'rightExpressions';
    function rightExpressionAttributeType: NSAttributeType; message 'rightExpressionAttributeType';
    function modifier: NSComparisonPredicateModifier; message 'modifier';
    function operators: NSArray; message 'operators';
    function options: NSUInteger; message 'options';
    function compoundTypes: NSArray; message 'compoundTypes';
    class function templatesWithAttributeKeyPaths_inEntityDescription(keyPaths: NSArray; entityDescription: NSEntityDescription): NSArray; message 'templatesWithAttributeKeyPaths:inEntityDescription:';

    { Adopted Protocols }
    procedure encodeWithCoder(aCoder: NSCoder);
    function initWithCoder(aDecoder: NSCoder): id;
    function copyWithZone(zone_: NSZonePtr): id;
  end;

{$endif}
{$endif}