|
| TextElement (Document document, Element parent) |
| Creates a new text element that belongs to the given document. More...
|
|
void | AddCharacter (char character) |
| Adds a character to the temporary stored word. More...
|
|
int | LetterIndex (int x, int y) |
| Finds the index of the nearest character to x pixels. More...
|
|
int | LetterIndex (int x) |
| Finds the index of the nearest character to x pixels. More...
|
|
void | DoneWord (bool lastOne) |
| Turns the temporary buffer into a full child word element. More...
|
|
Vector2 | GetPosition (ref int index) |
| Gets the relative position in pixels of the letter at the given index. More...
|
|
WordElement | GetWordWithLetter (int index, out int localOffset) |
| Gets the word containing the letter at the given index. More...
|
|
override string | ToTextString () |
| Gets the content of this element as text. More...
|
|
override string | ToString () |
| Gets the content of this element as text. More...
|
|
void | AddToAttributeLookups () |
| Adds this element to all fast lookups. More...
|
|
void | AddToAttributeLookup (string attrib, AttributeLookup lookup) |
| Adds this element to the given attribute lookup. More...
|
|
bool | OnClickEvent (UIEvent clickEvent) |
| Called by a tag handler when a click occurs. More...
|
|
bool | MouseWasDown () |
| Was the mouse clicked on this element during the last mouse down? More...
|
|
bool | RunClick (UIEvent clickEvent) |
| Performs a click (mouse down or up) on this element. More...
|
|
bool | GotClicked (UIEvent clickEvent) |
| Run a click on this element. More...
|
|
bool | RunClickOnKids (UIEvent clickEvent) |
| Attempts to run a click on the children of this element. More...
|
|
void | FontLoaded (DynamicFont font) |
| Called when a -face font is done loading. More...
|
|
void | PositionGlobally (ComputedStyle relativeTo) |
| This is the second pass of layout requests. It positions the element in global screen space and also fires the render events which in turn generate or reallocates mesh blocks. This call applies to all it's children elements too. More...
|
|
void | PositionLocally () |
| Positions this element and all it's children relative to their parent. More...
|
|
bool | IsMousedOver () |
| True if the mouse is over this element. Most accurate compared to MousedOver, but is more intensive. In general, only use this one from within onmouseover or onmouseout. More...
|
|
bool | MouseOver (UIEvent mouseEvent) |
| Let the element know the mouse has moved over it. More...
|
|
void | MouseOut (UIEvent mouseEvent) |
| Let the element know the mouse is no longer over it. More...
|
|
void | OnMouseMoveEvent (UIEvent moveEvent) |
| Called on focused elements only (see focus()). Runs the mouse move functions. More...
|
|
bool | RunMouseOverOnKids (UIEvent mouseEvent) |
| Performs a mouse over on the child elements of this element. More...
|
|
bool | RunMouseOver (UIEvent mouseEvent) |
| Performs a mouse over on this element. More...
|
|
bool | RunBlocked (string attribute, UIEvent uiEvent) |
| Runs the given function held in the named attribute (e.g. onkeydown) and checks if that function blocked the event. In the case of a blocked event, no default action should occur. More...
|
|
object | Run (string attribute, params object[] args) |
| Runs a nitro function whos name is held in the given attribute. More...
|
|
object | RunLiteral (string attribute, object[] args) |
| Runs a nitro function whos name is held in the given attribute with a fixed block of arguments. More...
|
|
| Element (string tag) |
| Creates a new element with the given tag, parenting it to the main UI document. More...
|
|
| Element (string tag, Element parent) |
| Creates a new element with the given tag and parent. More...
|
|
| Element (Document document, Element parent) |
| Creates a new element for the given document and as a child of the given parent. More...
|
|
override void | OnChildrenLoaded () |
|
void | SetDocument (Document document) |
| Changes the document used by this element and all it's kids. Used by iframes. More...
|
|
void | OnLoaded (string objectLoaded) |
| Called by some tags when their content is loaded. E.g. img tag or iframe. More...
|
|
void | Focus () |
| Focuses this element so it receives events such as keypresses. More...
|
|
void | Unfocus () |
| Unfocuses this element so it will no longer receive events like keypresses. More...
|
|
void | OnKeyPress (UIEvent pressEvent) |
| Called by a tag handler when a key press occurs. More...
|
|
void | RefreshSelector (Css.SelectorType type, string selector) |
| Refreshes this elements css style if the given selector matches its own. More...
|
|
Element | getElementByTagName (string tag) |
| Gets the first child element with the given tag. More...
|
|
List< Element > | getElementsByTagName (string tag) |
| Gets all child elements with the given tag. More...
|
|
List< Element > | getElementsByTagName (string tag, bool stopWithOne) |
| Gets all child elements with the given tag. More...
|
|
bool | getElementsByTagName (string tag, bool stopWithOne, List< Element > results) |
| Gets all child elements with the given tag. More...
|
|
List< Element > | getElementsByClassName (string className) |
| Gets all elements with the given class name(s), seperated by spaces. May include this element or any of it's kids. More...
|
|
void | getElementsByClassName (string[] classes, List< Element > results) |
| Gets all elements with the given class name(s). May include this element or any of it's kids. More...
|
|
List< Element > | getElementsByAttribute (string property, string value) |
| Gets all elements with the given attribute. May include this element or any of it's kids. More...
|
|
List< Element > | getElementsWithProperty (string property, string value) |
| Gets all elements with the given attribute. May include this element or any of it's kids. More...
|
|
void | getElementsByAttribute (string property, string value, List< Element > results) |
| Gets all elements with the given property. May include this element or any of it's kids. More...
|
|
Element | getElementByAttribute (string property, string value) |
| Gets an element with the given property. May be this element or any of it's kids. More...
|
|
override void | SetTag (string tag) |
| Sets the tag and the tag handler for this element. More...
|
|
override TagHandler | GetHandler () |
| Gets the tag handler for this element. More...
|
|
void | SetWidthForKids (ComputedStyle parent) |
| Resolves any percentage widths for all child elements using the given parent element. More...
|
|
void | SetHeightForKids (ComputedStyle parent) |
| Resolves any percentage heights for all child elements using the given parent element. More...
|
|
override void | ResetVariable (string name) |
|
override void | ResetAllVariables () |
| Requests all child elements to reload their if they have any. More...
|
|
override string | ToString () |
| Converts this element and it's content to it's html representitive. More...
|
|
void | appendTextContent (string text) |
| Appends the given literal text to the content of this element. This is good for preventing html injection as the text will be taken literally. More...
|
|
void | appendInnerHTML (string text) |
| Appends the given html text to the content of this element. More...
|
|
void | RemovedFromDOM () |
| Called when this element got removed from the DOM. More...
|
|
void | WentOffScreen () |
| Called when this element goes offscreen. More...
|
|
Element | appendChild (string text) |
| Appends the given element defined as text. More...
|
|
void | appendChild (Element element) |
| Adds the given element to the children of this element. More...
|
|
void | AppendNewChild (Element element) |
| Adds the given element to the children of this element. Note that this does not update CSS; it should be used for new elements only. More...
|
|
bool | isChild (Element childElement) |
| Checks if the given element is a child of this element. More...
|
|
void | removeChild (Element element) |
| Removes the given child from this element. More...
|
|
void | scrollBy (int x, int y) |
| Scrolls the element by the given values. More...
|
|
void | scrollTo (int x, int y) |
| Scrolls the element to the given exact values. More...
|
|
void | RequireLayout () |
| Forces a layout to occur if one is required. You should almost never need to call this directly - it's only needed if you want to read the fully computed size of an element immediately after having updated it's style. More...
|
|
UIAnimation | animate (string css, float constantSpeedTime, float timeToAccelAndDecel) |
| Animates css properties on this element. More...
|
|
UIAnimation | animate (string css, float constantSpeedTime) |
| Animates css properties on this element. More...
|
|
UIAnimation | animate (string css, float constantSpeedTime, float timeToAccelerate, float timeToDecelerate) |
| Animates css properties on this element. More...
|
|
void | Lettering () |
|
Element | GetFocusableAbove () |
| Gets the nearest focusable element above this. More...
|
|
Element | GetFocusableBelow () |
| Gets the nearest focusable element below this. More...
|
|
Element | GetFocusableLeft () |
| Gets the nearest focusable element left of this. More...
|
|
Element | GetFocusableRight () |
| Gets the nearest focusable element right of this. More...
|
|
Element | GetFocusedNext () |
| Used for tab focus. Gets the next available focusable element. More...
|
|
Vector2 | AxisDistanceFrom (float x, float y) |
| Finds out the distance in pixels on the x and y axis the given point is away from this elements midpoint. More...
|
|
float | DistanceFromFast (float x, float y) |
| Gets a relative 2D distance of this elements midpoint from the given point. The value returned is a fast distance used for comparison only. Use DistanceFrom for the correct distance. More...
|
|
float | DistanceFrom (float x, float y) |
| Gets the 2D distance of this elements midpoint from the given point. More...
|
|
bool | IsLeftOf (ComputedStyle computed) |
| Checks if this element is to the left of the given style. More...
|
|
bool | IsRightOf (ComputedStyle computed) |
| Checks if this element is to the right of the given style. More...
|
|
bool | IsAbove (ComputedStyle computed) |
| Checks if this element is above the given style. More...
|
|
bool | IsBelow (ComputedStyle computed) |
| Checks if this element is below the given style. More...
|
|
CanvasContext | getContext (string text) |
| Gets a rendering context for this canvas (if it is a canvas element!). More...
|
|
Element | GetForm () |
| Internal use only. PowerUI.Element.formElement. Scans up the DOM to find the parent form element. More...
|
|
void | submit () |
| Submits the form this element is in. More...
|
|
void | stop () |
| Stops the video. More...
|
|
void | pause () |
| Pauses the video. More...
|
|
void | play () |
| Plays the video. More...
|
|