blob: 434d45cdd5fcf93cdc8d1700865d447f25d0de5e [file] [log] [blame]
{ "type": "interface",
"qname": "org.apache.royale.core.IViewport",
"baseInterfaceNames": [
"org.apache.royale.core.IBead"]
,
"description": "A Viewport is a window onto an area of content. A viewport is given space in which to operate by a View bead. Viewports can control their area which is specified by the IViewportModel, adding scrollbars or whatever scrolling mechanism they want.",
"members": [
{ "type": "accessor",
"access": "read-only",
"return": "org.apache.royale.core.IUIBase",
"qname": "contentView",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Get the actual parent of the container's content.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "method",
"qname": "setPosition",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Sets the upper left position of the viewport",
"tags": [
{ "tagName": "param",
"values": ["x The left position.", "y The top position."]},
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": [{ "name": "x", "type": "Number"},
{ "name": "y", "type": "Number"}]}
,
{ "type": "method",
"qname": "layoutViewportBeforeContentLayout",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Size the content area based on any visible scrolling controls and the given width and height. If width and/or height is NaN then that dimension is being sized to content.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": [{ "name": "width", "type": "Number"},
{ "name": "height", "type": "Number"}]}
,
{ "type": "method",
"qname": "layoutViewportAfterContentLayout",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "This method is invoked after layout is complete. If width and/or height is sized to content, the viewport should determine that size and set the content area size appropriately, and display any scrolling controls before returning the resulting size of the viewport (which means the area used up by both content area and scrolling controls).",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 10.2", "AIR 2.6"]},
{ "tagName": "productversion",
"values": ["Royale 0.0"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "void",
"params": [{ "name": "contentSize", "type": "org.apache.royale.geom.Size"}]}
]
}