PageRenderTime 30ms CodeModel.GetById 15ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/bin/std/flash/TextField.hx

http://github.com/Yoomee/clippy
Haxe | 93 lines | 82 code | 9 blank | 2 comment | 0 complexity | 5d36598b4cd88eb0457716d7227f2797 MD5 | raw file
 1package flash;
 2
 3extern class TextField
 4{
 5	var _x:Float;
 6	var _y:Float;
 7	var _xmouse:Float;
 8	var _ymouse:Float;
 9	var _xscale:Float;
10	var _yscale:Float;
11	var _width:Float;
12	var _height:Float;
13	var _alpha:Float;
14	var _visible:Bool;
15	var _target:String;
16	var _rotation:Float;
17	var _name:String;
18	var _framesloaded:Int;
19	var _droptarget:String;
20	var _currentframe:Int;
21	var _totalframes:Int;
22	var _quality:String;
23	var _focusrect:Bool;
24	var _soundbuftime:Float;
25	var _url:String;
26	var _parent:MovieClip;
27
28	var autoSize:Dynamic;
29	var background:Bool;
30	var backgroundColor:Int;
31	var border:Bool;
32	var borderColor:Int;
33	var bottomScroll:Float;
34	var condenseWhite:Bool;
35	var embedFonts:Bool;
36	var hscroll:Float;
37	var html:Bool;
38	var htmlText:String;
39	var length:Int;
40	var maxChars:Int;
41	var maxhscroll:Float;
42	var maxscroll:Float;
43	var multiline:Bool;
44	var password:Bool;
45	var restrict:String;
46	var scroll:Float;
47	var selectable:Bool;
48	var tabEnabled:Bool;
49	var tabIndex:Int;
50	var text:String;
51	var textColor:Int;
52	var textHeight:Float;
53	var textWidth:Float;
54	var type:String;
55	var variable:String;
56	var wordWrap:Bool;
57	var mouseWheelEnabled:Bool;
58
59#if flash8
60	var antiAliasType:String;
61	var gridFitType:String;
62	var sharpness:Float;
63	var filters : Array<Dynamic>;
64	var thickness:Float;
65#end
66
67	var styleSheet:flash.text.StyleSheet;
68
69	function replaceText(beginIndex:Int,endIndex:Int,newText:String):Void;
70	function replaceSel(newText:String):Void;
71	function getTextFormat(?beginIndex:Int,?endIndex:Int):TextFormat;
72
73	// wtf ?? optional first argument !
74	// if beginIndex and endIndex are null, does it works ?
75	function setTextFormat( begin : Dynamic, ?end : Dynamic, ?tf : TextFormat ):Void;
76	function removeTextField():Void;
77	function getNewTextFormat():TextFormat;
78	function setNewTextFormat(tf:TextFormat):Void;
79	function getDepth():Int;
80	function addListener(listener:Dynamic):Bool;
81	function removeListener(listener:Dynamic):Bool;
82	static function getFontList():Array<Dynamic>;
83
84	dynamic function onChanged(changedField:TextField):Void;
85	dynamic function onKillFocus(newFocus:Dynamic):Void;
86	dynamic function onScroller(scrolledField:TextField):Void;
87	dynamic function onSetFocus(oldFocus:Dynamic):Void;
88
89	private static function __init__() : Void untyped {
90		flash.TextField = _global["TextField"];
91	}
92
93}