PageRenderTime 23ms CodeModel.GetById 13ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/lib/titanium/mobile/UIiPad.hx

http://github.com/visup/haxe-titanium-api
Haxe | 84 lines | 21 code | 3 blank | 60 comment | 0 complexity | 5ea5ed1e00ce97ce90736222b2bd91c7 MD5 | raw file
 1package titanium.mobile;
 2import titanium.mobile.core.Dispatcher;
 3import titanium.mobile.ui.ipad.IPadPopover;
 4import titanium.mobile.ui.ipad.IPadSplitWindow;
 5
 6/**
 7UI.iPad class
 8
 9Documentation available at:
10http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.iPad-module
11
12- namespace
13
14Titanium.UI.iPad
15
16- type
17
18module
19
20- returns
21
22object
23
24- description
25
26The iPad specific UI capabilities.  All properties, methods and events in this namespace will only work on the Apple iPad related devices.  To develop for iPad, you will need the Apple iPhone SDK 3.2 or later and Titanium Mobile SDK 1.2 or later. 
27
28For iPad UI programming guidelines, please review the [iPad Human Interface Guidelines](http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadHIG/Introduction/Introduction.html). 
29
30- since
31
321.2
33
34- platforms
35
36ipad
37
38- properties
39
40POPOVER_ARROW_DIRECTION_UP[int]: An arrow that points upward.
41POPOVER_ARROW_DIRECTION_DOWN[int]: An arrow that points downward.
42POPOVER_ARROW_DIRECTION_LEFT[int]: An arrow that points toward the left.
43POPOVER_ARROW_DIRECTION_RIGHT[int]: An arrow that points toward the right.
44POPOVER_ARROW_DIRECTION_ANY[int]: An arrow that points in any direction.
45POPOVER_ARROW_DIRECTION_UNKNOWN[int]: The status of the arrow is currently unknown.
46
47- methods
48
49createPopover: create a [[Titanium.UI.iPad.Popover]] dialog
50createSplitWindow: create a [[Titanium.UI.iPad.SplitWindow]] window
51
52- method : createPopover, object
53
54- method : createSplitWindow, object
55
56
57- notes
58
59### Custom Fonts
60
61The iPad supports the ability to embed your own fonts in your iPad application. To add your own fonts, you should add the
62
63**/
64#if iphoneos
65@:native("Titanium.UI.iPad")
66extern class UIiPad
67{
68	// static constants
69	public static var POPOVER_ARROW_DIRECTION_UP:Int;
70	public static var POPOVER_ARROW_DIRECTION_DOWN:Int;
71	public static var POPOVER_ARROW_DIRECTION_LEFT:Int;
72	public static var POPOVER_ARROW_DIRECTION_RIGHT:Int;
73	public static var POPOVER_ARROW_DIRECTION_ANY:Int;
74	public static var POPOVER_ARROW_DIRECTION_UNKNOWN:Int;
75
76	// static methods
77	public static function addEventListener(name:String, eventListener:Dynamic->Void):Void;
78	public static function fireEvent(name:String, event:Dynamic):Void;
79	public static function removeEventListener(name:String, eventListener:Dynamic->Void):Void;
80	
81	public static function createPopover(?params:Dynamic):IPadPopover;
82	public static function createSplitWindow(?params:Dynamic):IPadSplitWindow;
83}
84#end