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

{$ifdef TYPES}
{$ifndef NSCIIMAGEREP_PAS_T}
{$define NSCIIMAGEREP_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSCIIMAGEREP_PAS_R}
{$define NSCIIMAGEREP_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSCIIMAGEREP_PAS_F}
{$define NSCIIMAGEREP_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSCIIMAGEREP_PAS_S}
{$define NSCIIMAGEREP_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSCIImageRep = objcclass;
  NSCIImageRepPointer = ^NSCIImageRep;
  NSCIImageRepPtr = NSCIImageRepPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSCIIMAGEREP_PAS_C}
{$define NSCIIMAGEREP_PAS_C}

{ NSCIImageRep }
  NSCIImageRep = objcclass external (NSImageRep)
  private
    _ciImage: CIImage;
    
  public
    class function imageRepWithCIImage(image: CIImage): id; message 'imageRepWithCIImage:';
    function initWithCIImage(image: CIImage): id; message 'initWithCIImage:';
    function CIImage: CIImage; message 'CIImage';
  end;

{ NSAppKitAdditions_CIImageCategory }
  NSAppKitAdditions_CIImageCategory = objccategory external name 'NSAppKitAdditions' (CIImage)
    function initWithBitmapImageRep(bitmapImageRep: NSBitmapImageRep): id; message 'initWithBitmapImageRep:';
    procedure drawInRect_fromRect_operation_fraction(rect: NSRect; fromRect: NSRect; op: NSCompositingOperation; delta: CGFloat); message 'drawInRect:fromRect:operation:fraction:';
    procedure drawAtPoint_fromRect_operation_fraction(point: NSPoint; fromRect: NSRect; op: NSCompositingOperation; delta: CGFloat); message 'drawAtPoint:fromRect:operation:fraction:';
  end;

{$endif}
{$endif}