A sorted list of virtual elements. Stored in an elements computed style.
Public Member Functions | |
Node | Get (int priority) |
Gets by priority (unique for each virtual element type). Null if it doesn't exist. More... | |
bool | Has (int priority) |
True if a virtual element of the given priority is in the set (priority is unique per type of element, e.g. :after is always x). More... | |
void | push (int priority, Node ve) |
bool | remove (int priority) |
Safely removes a virtual element with the given priority. More... | |
VirtualElements () | |
Public Attributes | |
const int | SCROLLBAR_ZONE =AFTER_ZONE+200 |
Priority offset for elements in the "scrollbar" (beyond after) zone. More... | |
const int | AFTER_ZONE =1000 |
Priority offset for elements in the "after" zone. More... | |
const int | DURING_ZONE =0 |
Priority offset for elements in the "during" zone. More... | |
const int | BEFORE_ZONE =-1000 |
Priority offset for elements in the "before" zone. More... | |
bool | AllowDrawKids =true |
True if this element should its own childnodes. Essentially childNodes act like they aren't there at all during rendering and the element is handled by virtuals only otherwise. More... | |
SortedDictionary< int, Node > | Elements =new SortedDictionary<int,Node>() |
The virtual elements. More... | |
Package Functions | |
void | RemovedAll () |
Called when all virtual elements are being removed. More... | |
|
inline |
|
inline |
Gets by priority (unique for each virtual element type). Null if it doesn't exist.
|
inline |
True if a virtual element of the given priority is in the set (priority is unique per type of element, e.g. :after is always x).
|
inline |
|
inline |
Safely removes a virtual element with the given priority.
|
inlinepackage |
Called when all virtual elements are being removed.
const int Css.VirtualElements.AFTER_ZONE =1000 |
Priority offset for elements in the "after" zone.
bool Css.VirtualElements.AllowDrawKids =true |
True if this element should its own childnodes. Essentially childNodes act like they aren't there at all during rendering and the element is handled by virtuals only otherwise.
const int Css.VirtualElements.BEFORE_ZONE =-1000 |
Priority offset for elements in the "before" zone.
const int Css.VirtualElements.DURING_ZONE =0 |
Priority offset for elements in the "during" zone.
The virtual elements.
const int Css.VirtualElements.SCROLLBAR_ZONE =AFTER_ZONE+200 |
Priority offset for elements in the "scrollbar" (beyond after) zone.