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

{$ifdef TYPES}
{$ifndef NSMOVIE_PAS_T}
{$define NSMOVIE_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSMOVIE_PAS_R}
{$define NSMOVIE_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSMOVIE_PAS_F}
{$define NSMOVIE_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSMOVIE_PAS_S}
{$define NSMOVIE_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSMovie = objcclass;
  NSMoviePointer = ^NSMovie;
  NSMoviePtr = NSMoviePointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSMOVIE_PAS_C}
{$define NSMOVIE_PAS_C}

{ NSMovie }
  NSMovie = objcclass external (NSObject, NSCodingProtocol)
  private
    _movie: Pointer;
    _url: NSURL;
    __movieFlags: record
      case byte of
       0: (_anonbitfield_NSMovie0: cint);
       1: (data: bitpacked record
        _dispose: 0..1;
        reserved: 0..((1 shl 31)-1);
       end;
      );
      end;
    _reserved1: clong;
    _reserved2: clong;
    
  public
    function initWithMovie(movie: Pointer): id; message 'initWithMovie:'; deprecated 'in Mac OS X 10.5 and later';
    function initWithURL_byReference(url_: NSURL; byRef: Boolean): id; message 'initWithURL:byReference:'; deprecated 'in Mac OS X 10.5 and later';
    function initWithPasteboard(pasteboard: NSPasteboard): id; message 'initWithPasteboard:'; deprecated 'in Mac OS X 10.5 and later';
    function QTMovie_: Pointer; message 'QTMovie'; deprecated 'in Mac OS X 10.5 and later';
    function URL: NSURL; message 'URL'; deprecated 'in Mac OS X 10.5 and later';
    class function movieUnfilteredFileTypes: NSArray; message 'movieUnfilteredFileTypes'; deprecated 'in Mac OS X 10.5 and later';
    class function movieUnfilteredPasteboardTypes: NSArray; message 'movieUnfilteredPasteboardTypes'; deprecated 'in Mac OS X 10.5 and later';
    class function canInitWithPasteboard(pasteboard: NSPasteboard): Boolean; message 'canInitWithPasteboard:'; deprecated 'in Mac OS X 10.5 and later';

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

{$endif}
{$endif}