Represents a HTML ins(erted) element. Underlines the new text.
Additional Inherited Members | |
Public Member Functions inherited from PowerUI.HtmlElement | |
virtual void | OnClickEvent (MouseEvent clickEvent) |
Called when a 'click' (down and up on the same element) occurs. More... | |
bool | IsMousedOver () |
True if the mouse is over this element. More... | |
bool | WasPressed () |
Was the mouse clicked on this element during the last mouse down? More... | |
void | click () |
Clicks this element (mousedown and a mouseup). More... | |
void | FontLoaded (DynamicFont font) |
Called when a -face font is done loading. More... | |
BoxRegion | getBoundingClientRect () |
The union of all client rects. More... | |
LayoutBox[] | getClientRects () |
This elements client rects. 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... | |
HtmlDocument | ResolveTarget () |
Resolves the target attribute to a document. More... | |
HtmlDocument | ResolveTarget (string target) |
Resolves the given target to a document. More... | |
void | RequestLayout () |
Requests the renderer handling this element to layout next update. More... | |
virtual bool | Junk () |
Tells the parser to not include this element in the DOM. More... | |
virtual void | OnResetAllVariables () |
Called when all variable () values must have their content reloaded. More... | |
virtual void | OnRemovedFromDOM () |
Called when the host element is removed from the DOM. More... | |
virtual void | OnResetVariable (string name) |
Called when the named variable variable () values must have its content reloaded. More... | |
virtual void | OnComputeBox (Renderman renderer, Css.LayoutBox box, ref bool widthUndefined, ref bool heightUndefined) |
Called during the box compute process. Useful if your element has clever dimensions, such as the img tag or words. More... | |
virtual void | OnRender (Renderman renderer) |
Called during a global layout event on all elements. More... | |
virtual KeyboardMode | OnShowMobileKeyboard () |
Called when PowerUI attempts to display the mobile keyboard (only called on mobile platforms). More... | |
override bool | OnAttributeChange (string property) |
Called when an attribute of the element was changed. Returns true if the method handled the change to prevent unnecessary checks. More... | |
HtmlElement () | |
virtual void | OnLoadEvent (Dom.Event e) |
Called by some tags when their content is loaded. E.g. img tag or iframe. More... | |
virtual void | GetWidthBounds (out float min, out float max) |
Part of shrink-to-fit. Computes the maximum and minimum possible width for an element. More... | |
void | focus () |
Focuses this element so it receives events such as keypresses. More... | |
void | blur () |
Unfocuses this element. More... | |
virtual void | OnWheelEvent (WheelEvent e) |
Called when a default scrollwheel event occurs (focused element). More... | |
virtual void | OnKeyPress (KeyboardEvent pressEvent) |
Called when a default key press occurs. More... | |
Element | querySelector (string selector) |
Gets the first element which matches the given selector. More... | |
HTMLCollection | querySelectorAll (string selector) |
Gets all child elements with the given tag. More... | |
HTMLCollection | querySelectorAll (string selector, bool one) |
Gets all child elements with the given tag. More... | |
void | querySelectorAll (Selector[] selectors, INodeList results, CssEvent e, bool one) |
Gets all child elements with the given tag. More... | |
void | WentOffScreen () |
Called when this element goes offscreen. More... | |
void | appendChild (string html) |
Appends the given element defined as text. More... | |
void | replaceWith (string html) |
Replaces this element with the given html. More... | |
void | scrollBy (float x, float y) |
Scrolls the element by the given values. More... | |
void | scrollTo (float x, float 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 its style. More... | |
void | SetImage (ImageFormat value) |
Sets the given image as the background of this element. More... | |
UIAnimation | animate (string css, float duration, string cssTimeFunction) |
Animates css properties on this element. More... | |
UIAnimation | animate (string css, float duration) |
Animates css properties on this element. More... | |
UIAnimation | animate (string css, float duration, Blaze.VectorPath timeFunction) |
Animates css properties on this element. More... | |
UIAnimation | animate (string css, float constantSpeedTime, float timeToAccelAndDecel) |
Animates css properties on this element. More... | |
UIAnimation | animate (string css, float constantSpeedTime, float timeToAccelerate, float timeToDecelerate) |
Animates css properties on this element. More... | |
Css.ComputedStyle | getComputedStyle () |
Gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain. More... | |
Css.ComputedStyle | getComputedStyle (string pseudo) |
Gives the values of all the CSS properties of an element after applying the active stylesheets and resolving any basic computation those values may contain. More... | |
override Node | cloneNode (bool deep) |
Clones this element. More... | |
void | Lettering () |
HtmlElement | GetFocusableAbove () |
Gets the nearest focusable element above this. More... | |
HtmlElement | GetFocusableBelow () |
Gets the nearest focusable element below this. More... | |
HtmlElement | GetFocusableLeft () |
Gets the nearest focusable element left of this. More... | |
HtmlElement | GetFocusableRight () |
Gets the nearest focusable element right of this. More... | |
HtmlElement | 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 (float x) |
Checks if this element is to the left of the given point. More... | |
bool | IsRightOf (float x) |
Checks if this element is to the right of the given point. More... | |
bool | IsAbove (float y) |
Checks if this element is above the given point. More... | |
bool | IsBelow (float y) |
Checks if this element is below the given point. More... | |
bool | SearchTabIndexBefore (int search, ref int bestSoFar, ref HtmlElement best) |
Searches for the closest tab index either after this element. E.g. if search is 1, it will look for the nearest element after this element with a tab index of 1 or more. BestSoFar is the closest tabIndex found (if any). An actual match results in this function halting and returning true. More... | |
bool | SearchTabIndexAfter (int search, ref int bestSoFar, ref HtmlElement best) |
Searches for the closest tab index either after this element. E.g. if search is 1, it will look for the nearest element after this element with a tab index of 1 or more. BestSoFar is the closest tabIndex found (if any). An actual match results in this function halting and returning true. More... | |
bool | SearchChildTabIndex (int search, ref int bestSoFar, ref HtmlElement best) |
Searches for the closest tab index to the given one. Returns true if it gets a match. More... | |
void | requestFullscreen () |
Requests this element (e.g. a video) to go fullscreen. More... | |
virtual string | toDataURL (string mime) |
Gets canvas data (png only). If you want it as a byte[], use context.pngData instead. More... | |
virtual CanvasContext | getContext (string text) |
Gets a rendering context for this canvas (if it is a canvas element!). More... | |
virtual void | OnFormReset () |
Called when the parent form is reset. More... | |
virtual 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... | |
void | playAudio () |
void | stopAudio () |
void | removeAudio () |
void | playAudio (GameObject parent) |
Public Attributes inherited from PowerUI.HtmlElement | |
bool | IsFocusable |
True if this tag is focusable. More... | |
ElementStyle | Style |
Internal use only. The style of this element. Use PowerUI.HtmlElement.style instead. More... | |
NodeList | KidsToRender |
Internal use only. Children being rendered are set here. This allows multiple threads to access the DOM. More... | |
object | Data |
A custom data object for whatever you would like to pass through for e.g. callbacks. More... | |
Protected Member Functions inherited from PowerUI.HtmlElement | |
override bool | HandleLocalEvent (Dom.Event e, bool bubblePhase) |
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. Note that this is called by dispatchEvent and the attribute functions run before handlers do (same as Firefox). More... | |
Package Functions inherited from PowerUI.HtmlElement | |
virtual void | OnFocusEvent (FocusEvent fe) |
Called when this element comes into focus. More... | |
virtual void | OnBlurEvent (FocusEvent fe) |
Called when this element becomes unfocused. More... | |
override void | ResetVariable (string name) |
override void | ResetAllVariables () |
Requests all child elements to reload their if they have any. More... | |
override void | ChangedDOM () |
Called when the DOM changed. More... | |
override void | AddedToDOM () |
Called when this element got added to the DOM. More... | |
override void | RemovedFromDOM () |
Called when this element got removed from the DOM. More... | |
Static Package Attributes inherited from PowerUI.HtmlElement | |
static Node | CachedFullscreenParent |
The original FS parent node. More... | |
static string | CachedFullscreenStyle |
The original style of the FS element. More... | |
Properties inherited from PowerUI.HtmlModElement | |
string | cite [get, set] |
The cite attribute. More... | |
string | datetime [get, set] |
The datetime attribute. More... | |