{ "type": "class", | |
"qname": "org.apache.royale.textLayout.utils.Twips", | |
"baseClassname": "" | |
, | |
"description": "@private Internally, we work with Twips, which we consider to be 1/20 of a pixel. This is the same measurement as used within FTE (see the kTwipsPerPixel constant in flash/core/edittext.h). Note that conversion between Pixels and Twips does not round-trip due to the loss of precision in the conversion to Twips.", | |
"members": [ | |
{ "type": "field", | |
"qname": "ONE_TWIP", | |
"return": "Number", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["static"], | |
"deprecated": {}, | |
"description": "One twip in pixels"}, | |
{ "type": "field", | |
"qname": "TWIPS_PER_PIXEL", | |
"return": "int", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["static"], | |
"deprecated": {}, | |
"description": "Twips per pixels"}, | |
{ "type": "field", | |
"qname": "MAX_VALUE", | |
"return": "int", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["static"], | |
"deprecated": {}, | |
"description": "Largest Twip value"}, | |
{ "type": "field", | |
"qname": "MIN_VALUE", | |
"return": "int", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["static"], | |
"deprecated": {}, | |
"description": "Smallest Twip value"}, | |
{ "type": "method", | |
"qname": "to", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["static"], | |
"deprecated": {}, | |
"description": "Convert Pixels to Twips (truncated). @return twips", | |
"return": "int", | |
"params": [{ "name": "n", "type": "Number"}]} | |
, | |
{ "type": "method", | |
"qname": "roundTo", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["static"], | |
"deprecated": {}, | |
"description": "Convert Pixels to Twips (rounded). @return twips", | |
"return": "int", | |
"params": [{ "name": "n", "type": "Number"}]} | |
, | |
{ "type": "method", | |
"qname": "from", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["static"], | |
"deprecated": {}, | |
"description": "Convert Twips to pixels. @return pixels", | |
"return": "Number", | |
"params": [{ "name": "t", "type": "int"}]} | |
, | |
{ "type": "method", | |
"qname": "ceil", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["static"], | |
"deprecated": {}, | |
"description": "ceil a number to the nearest twip. @return pixels", | |
"return": "Number", | |
"params": [{ "name": "n", "type": "Number"}]} | |
, | |
{ "type": "method", | |
"qname": "floor", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["static"], | |
"deprecated": {}, | |
"description": "floor a number to the nearest twip. @return pixels", | |
"return": "Number", | |
"params": [{ "name": "n", "type": "Number"}]} | |
, | |
{ "type": "method", | |
"qname": "round", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["static"], | |
"deprecated": {}, | |
"description": "round a number to the nearest twip. @return pixels", | |
"return": "Number", | |
"params": [{ "name": "n", "type": "Number"}]} | |
] | |
} |