summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/appkit/NSPICTImageRep.inc
blob: b4d04ee65f09f6f22399bfac6c55cc9181ccbe8a (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
{ Parsed from Appkit.framework NSPICTImageRep.h }

{$ifdef TYPES}
{$ifndef NSPICTIMAGEREP_PAS_T}
{$define NSPICTIMAGEREP_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSPICTIMAGEREP_PAS_R}
{$define NSPICTIMAGEREP_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSPICTIMAGEREP_PAS_F}
{$define NSPICTIMAGEREP_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSPICTIMAGEREP_PAS_S}
{$define NSPICTIMAGEREP_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSPICTImageRep = objcclass;
  NSPICTImageRepPointer = ^NSPICTImageRep;
  NSPICTImageRepPtr = NSPICTImageRepPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSPICTIMAGEREP_PAS_C}
{$define NSPICTIMAGEREP_PAS_C}

{ NSPICTImageRep }
  NSPICTImageRep = objcclass external (NSImageRep)
  private
    _pictOrigin: NSPoint;
    _pictData: NSData;
    {$ifndef cpu64}
    _reserved1: cuint;
    _reserved2: cuint;
    {$else}
    _imageRep: id;
    _pictOffset: NSUInteger;
    __reserved1: cuint;
    __reserved2: cuint;
    {$endif}
    
  public
    class function imageRepWithData(pictData: NSData): id; message 'imageRepWithData:';
    function initWithData(pictData: NSData): id; message 'initWithData:';
    function PICTRepresentation: NSData; message 'PICTRepresentation';
    function boundingBox: NSRect; message 'boundingBox';
  end;

{$endif}
{$endif}