summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/imagekit/IKSlideshow.inc
blob: adef20702ce18432ae86b8a3fa46cfb4af8239d1 (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 ImageKit.framework IKSlideshow.h }


{$ifdef TYPES}
type
  IKSlideshowPtr = ^IKSlideshow;
  IKSlideshowDataSourceProtocolPtr = ^IKSlideshowDataSourceProtocol;
{$endif}

{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)}
{$ifdef PROTOCOLS}

type
  IKSlideshowDataSourceProtocol = objcprotocol external name 'IKSlideshowDataSource'
  required
    function numberOfSlideshowItems: NSUInteger; message 'numberOfSlideshowItems';
    function slideshowItemAtIndex (index: NSUInteger): id; message 'slideshowItemAtIndex:';
  optional
    function nameOfSlideshowItemAtIndex (index: NSUInteger): NSString; message 'nameOfSlideshowItemAtIndex:';
    function canExportSlideshowItemAtIndex_toApplication (index: NSUInteger; applicationBundleIdentifier: NSString): ObjCBOOL; message 'canExportSlideshowItemAtIndex:toApplication:';
    procedure slideshowWillStart; message 'slideshowWillStart';
    procedure slideshowDidStop; message 'slideshowDidStop';
    procedure slideshowDidChangeCurrentIndex (newIndex: NSUInteger); message 'slideshowDidChangeCurrentIndex:';
  end;
{$endif}

{$ifdef CLASSES}

type
  IKSlideshow = objcclass external (NSObject)
  private
    _privateData: id;
  public
    procedure setAutoPlayDelay(newValue: NSTimeInterval); message 'setAutoPlayDelay:';
    function autoPlayDelay: NSTimeInterval; message 'autoPlayDelay';
    class function sharedSlideshow: IKSlideshow; message 'sharedSlideshow';
    procedure runSlideshowWithDataSource_inMode_options (dataSource: IKSlideshowDataSourceProtocol; slideshowMode: NSString; slideshowOptions: NSDictionary); message 'runSlideshowWithDataSource:inMode:options:';
    procedure stopSlideshow (sender: id); message 'stopSlideshow:';
    procedure reloadData; message 'reloadData';
    procedure reloadSlideshowItemAtIndex (index: NSUInteger); message 'reloadSlideshowItemAtIndex:';
    function indexOfCurrentSlideshowItem: NSUInteger; message 'indexOfCurrentSlideshowItem';
    class function canExportToApplication (applicationBundleIdentifier: NSString): ObjCBOOL; message 'canExportToApplication:';
    class procedure exportSlideshowItem_toApplication (item: id; applicationBundleIdentifier: NSString); message 'exportSlideshowItem:toApplication:';
  end;
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
var
  IKSlideshowModeImages: NSString; cvar; external;
  IKSlideshowModePDF: NSString; cvar; external;
  IKSlideshowModeOther: NSString; cvar; external;
  IKSlideshowWrapAround: NSString; cvar; external;
  IKSlideshowStartPaused: NSString; cvar; external;
  IKSlideshowStartIndex: NSString; cvar; external;
{$endif}

{$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6)}
{$ifdef EXTERNAL_SYMBOLS}
var
  IKSlideshowScreen: NSString; cvar; external;
  IKSlideshowAudioFile: NSString; cvar; external;
{$endif}

{$endif}
{$ifdef EXTERNAL_SYMBOLS}
var
  IKSlideshowPDFDisplayBox: NSString; cvar; external;
  IKSlideshowPDFDisplayMode: NSString; cvar; external;
  IKSlideshowPDFDisplaysAsBook: NSString; cvar; external;
  IK_iPhotoBundleIdentifier: NSString; cvar; external;
  IK_ApertureBundleIdentifier: NSString; cvar; external;
  IK_MailBundleIdentifier: NSString; cvar; external;
{$endif}

{$endif}