Css.TextRenderableData Class Reference
Inheritance diagram for Css.TextRenderableData:
Css.RenderableData

Public Member Functions

 TextRenderableData (Node node)
 
override void UpdateCss (Renderman renderer)
 Runs before reflow. More...
 
override void Reflow (Renderman renderer)
 Positions this node and all its children relative to their parent. More...
 
- Public Member Functions inherited from Css.RenderableData
void RequestPaintAll ()
 Requests that the document repaints this element, when possible. More...
 
void RequestPaint ()
 Requests that the document repaints this element, when possible. More...
 
void RequestLayout ()
 Requests that the renderer performs a layout on the next update. Note that layouts are more expensive than a paint. Paints simply update vertex colours and uvs where as layouts rebuild the whole mesh. More...
 
void RequestFastLayout ()
 Requests that the renderer performs a shortform layout on the next update. More...
 
float ScaleToWorldX (float value)
 Maps the given pixel value to an amount in world units. More...
 
float ScaleToWorldY (float value)
 Maps the given pixel value to an amount in world units. More...
 
void RepaintAll (Renderman renderer)
 Repaints this and all its childnodes. More...
 
void Repaint (Renderman renderer)
 Repaints this at OffsetLeft/OffsetTop with the given PixelWidth and PixelHeight values. A paint is less intensive than a layout as it only updates the uv/vert colours of the mesh. More...
 
TextRenderingProperty RequireTextProperty ()
 Creates a TextRenderingProperty if one doesn't exist yet. Note that it can be created as a 3D one if text-extrude is set. More...
 
LayoutBox BoxAt (float x, float y)
 Gets the box which contains the given x/y coords. More...
 
 RenderableData (Node node)
 
DisplayableProperty GetProperty (Type propertyType)
 Gets a render property of the given type. More...
 
int GetPropertyIndex (Type propertyType)
 Gets the index of a render property of the given type. -1 if it's not found. More...
 
void AddOrReplaceProperty (DisplayableProperty property, Type propertyType)
 Adds or replaces a render property of the given type. More...
 
void Render (bool first, LayoutBox box, Renderman renderer)
 Draws this at OffsetLeft/OffsetTop with the given PixelWidth and PixelHeight values. More...
 
void Render (Renderman renderer)
 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 WentOffScreen ()
 
float ShrinkToFit ()
 This nodes 'shrink to fit' width. More...
 
float GetWidth (bool noAuto, out bool wasAuto)
 Obtains a defined width for non-inline elements. (Special case for things like img though). More...
 
void RuleRemoved (Css.StyleRule rule)
 Refreshes this elements css style if the given selector matches its own. More...
 
void RuleAdded (Css.StyleRule rule)
 Refreshes this elements css style if the given selector matches its own. More...
 

Additional Inherited Members

- Public Attributes inherited from Css.RenderableData
Node Node
 The node that this is CSS data for. More...
 
float ValueScale =1f
 The zoom scale for all pixel based values on this style. More...
 
UpdateMode NextUpdateMode =UpdateMode.None
 True if this element is being repainted on the next frame. More...
 
LayoutBox FirstBox
 The first layout box. Forms a linked list using NextInElement. More...
 
LayoutBox LastBox
 The last layout box. Forms a linked list using NextInElement. More...
 
RenderableData Next
 Used for paint events. The next element style to paint. More...
 
RenderableData Ancestor
 This data's rendering ancestor. Used to resolve relative units and for rapid reflow. Usually set to Node.parentNode in the normal flow. More...
 
SortedDictionary< int,
RenderableData
StackingContexts
 All stacking contexts can have child stacking contexts. This exists if this is a stacking context. It will always contain at least 1 entry (at index 0) which refers to this node. That essentially enables negative z-index values to render before the normal flow. More...
 
VirtualElements Virtuals
 The set of virtual elements if it exists. More...
 
DisplayableProperty[] RenderProperties
 The set of renderable properties on this element. More...
 
- Package Functions inherited from Css.RenderableData
float ParentInnerWidth ()
 Gets the most suitable parent inner width. More...
 
float ResolveParentDecimal (CssProperty prop)
 Resolves the value from the parent of this node for the given property. More...
 
- Package Attributes inherited from Css.RenderableData
ScreenRegion OnScreenRegion
 The region that this element takes on the screen. Null if it's offscreen. More...
 
- Properties inherited from Css.RenderableData
RasterDisplayableProperty RasterProperty [get, set]
 Gets or sets a RasterDisplayableProperty. More...
 
bool IsStackingContext [get, set]
 True if this is a stacking context. More...
 
bool IsOutOfFlow [get]
 True if this is not positioned in the flow More...
 
ReflowDocument Document [get]
 A reflow-capable document. More...
 
Node parentNode [get]
 Gets the parent node. More...
 
int BoxCount [get]
 Counts the number of boxes in the box linked list (starting at FirstBox). More...
 
RenderableData parentData [get]
 The parent renderable data. More...
 
ComputedStyle computedStyle [get]
 The computed style to use. More...
 
float OffsetTop [get]
 The global offset from the top edge. Computed in secondary layout pass. More...
 
float OffsetLeft [get]
 The global offset from the left edge. Computed in secondary layout pass. More...
 
float PixelWidth [get]
 The total width in pixels of this element. More...
 
float PixelHeight [get]
 The total height in pixels of this element. More...
 
float ContentWidth [get]
 The width of the content inside the box. Note that this is different from both InnerWidth and PixelWidth (which describe the "window" in which the content is seen). More...
 
float ContentHeight [get]
 The width of the content inside the box. Note that this is different from both InnerWidth and PixelWidth (which describe the "window" in which the content is seen). More...
 
float InnerWidth [get]
 The width of this element, excluding the border and padding. More...
 
float InnerHeight [get]
 The height of this element, excluding the border and padding. More...
 
bool Ready [get]
 True if the box model is ready and loaded. More...
 
BorderProperty Border [get, set]
 This handles rendering the border around this element, if any. More...
 
BackgroundImage BGImage [get, set]
 This handles rendering a tiled, clipped, offset background image for this element. More...
 
BackgroundColour BGColour [get, set]
 This handles rendering a solid background colour for this element. More...
 
int EndSpaceSize [get]
 The width in pixels of the last whitespace of this element, if it's got one. More...
 
TextRenderingProperty Text [get, set]
 This handles rendering text contained by this element. More...
 
TextRenderingProperty3D Text3D [get, set]
 This handles rendering 3D text contained by this element. Use text-extrude CSS property (a number). More...
 
SelectionRenderingProperty Selection [get, set]
 Selection zone. More...
 
bool HasBackground [get]
 True if this element has any form of background. More...
 

Constructor & Destructor Documentation

Css.TextRenderableData.TextRenderableData ( Node  node)
inline

Member Function Documentation

override void Css.TextRenderableData.Reflow ( Renderman  renderer)
inlinevirtual

Positions this node and all its children relative to their parent.

Reimplemented from Css.RenderableData.

override void Css.TextRenderableData.UpdateCss ( Renderman  renderer)
inlinevirtual

Runs before reflow.

Reimplemented from Css.RenderableData.