File: TextBlock.hx

package info (click to toggle)
haxe 1%3A4.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,520 kB
  • sloc: ml: 137,268; ansic: 2,491; makefile: 456; java: 386; cs: 336; cpp: 318; python: 318; sh: 75; objc: 64; php: 50; xml: 31; javascript: 11
file content (51 lines) | stat: -rw-r--r-- 3,362 bytes parent folder | download | duplicates (4)
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
package flash.text.engine;

extern final class TextBlock {
	@:flash.property var applyNonLinearFontScaling(get,set) : Bool;
	@:flash.property var baselineFontDescription(get,set) : FontDescription;
	@:flash.property var baselineFontSize(get,set) : Float;
	@:flash.property var baselineZero(get,set) : TextBaseline;
	@:flash.property var bidiLevel(get,set) : Int;
	@:flash.property var content(get,set) : ContentElement;
	@:flash.property var firstInvalidLine(get,never) : TextLine;
	@:flash.property var firstLine(get,never) : TextLine;
	@:flash.property var lastLine(get,never) : TextLine;
	@:flash.property var lineRotation(get,set) : TextRotation;
	@:flash.property var tabStops(get,set) : flash.Vector<TabStop>;
	@:flash.property var textJustifier(get,set) : TextJustifier;
	@:flash.property var textLineCreationResult(get,never) : TextLineCreationResult;
	var userData : Dynamic;
	function new(?content : ContentElement, ?tabStops : flash.Vector<TabStop>, ?textJustifier : TextJustifier, ?lineRotation : TextRotation, ?baselineZero : TextBaseline, bidiLevel : Int = 0, applyNonLinearFontScaling : Bool = true, ?baselineFontDescription : FontDescription, baselineFontSize : Float = 12) : Void;
	function createTextLine(?previousLine : TextLine, width : Float = 1000000, lineOffset : Float = 0, fitSomething : Bool = false) : TextLine;
	function dump() : String;
	function findNextAtomBoundary(afterCharIndex : Int) : Int;
	function findNextWordBoundary(afterCharIndex : Int) : Int;
	function findPreviousAtomBoundary(beforeCharIndex : Int) : Int;
	function findPreviousWordBoundary(beforeCharIndex : Int) : Int;
	function getTextLineAtCharIndex(charIndex : Int) : TextLine;
	private function get_applyNonLinearFontScaling() : Bool;
	private function get_baselineFontDescription() : FontDescription;
	private function get_baselineFontSize() : Float;
	private function get_baselineZero() : TextBaseline;
	private function get_bidiLevel() : Int;
	private function get_content() : ContentElement;
	private function get_firstInvalidLine() : TextLine;
	private function get_firstLine() : TextLine;
	private function get_lastLine() : TextLine;
	private function get_lineRotation() : TextRotation;
	private function get_tabStops() : flash.Vector<TabStop>;
	private function get_textJustifier() : TextJustifier;
	private function get_textLineCreationResult() : TextLineCreationResult;
	@:require(flash10_1) function recreateTextLine(textLine : TextLine, ?previousLine : TextLine, width : Float = 1000000, lineOffset : Float = 0, fitSomething : Bool = false) : TextLine;
	@:require(flash10_1) function releaseLineCreationData() : Void;
	function releaseLines(firstLine : TextLine, lastLine : TextLine) : Void;
	private function set_applyNonLinearFontScaling(value : Bool) : Bool;
	private function set_baselineFontDescription(value : FontDescription) : FontDescription;
	private function set_baselineFontSize(value : Float) : Float;
	private function set_baselineZero(value : TextBaseline) : TextBaseline;
	private function set_bidiLevel(value : Int) : Int;
	private function set_content(value : ContentElement) : ContentElement;
	private function set_lineRotation(value : TextRotation) : TextRotation;
	private function set_tabStops(value : flash.Vector<TabStop>) : flash.Vector<TabStop>;
	private function set_textJustifier(value : TextJustifier) : TextJustifier;
}