Detailed Description

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, NodeElements =new SortedDictionary<int,Node>()
 The virtual elements. More...
 

Package Functions

void RemovedAll ()
 Called when all virtual elements are being removed. More...
 

Constructor & Destructor Documentation

Css.VirtualElements.VirtualElements ( )
inline

Member Function Documentation

Node Css.VirtualElements.Get ( int  priority)
inline

Gets by priority (unique for each virtual element type). Null if it doesn't exist.

bool Css.VirtualElements.Has ( int  priority)
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).

void Css.VirtualElements.push ( int  priority,
Node  ve 
)
inline
bool Css.VirtualElements.remove ( int  priority)
inline

Safely removes a virtual element with the given priority.

void Css.VirtualElements.RemovedAll ( )
inlinepackage

Called when all virtual elements are being removed.

Member Data Documentation

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.

SortedDictionary<int,Node> Css.VirtualElements.Elements =new SortedDictionary<int,Node>()

The virtual elements.

const int Css.VirtualElements.SCROLLBAR_ZONE =AFTER_ZONE+200

Priority offset for elements in the "scrollbar" (beyond after) zone.