Represents the border around an element.
Public Member Functions | |
BorderProperty (RenderableData data) | |
Creates a new border property for the given element. More... | |
override void | Paint (LayoutBox box, Renderman renderer) |
Called when a paint event occurs. Paint events don't relocate the whole UI so are quick and efficient. More... | |
override bool | Render (bool first, LayoutBox box, Renderman renderer) |
Make this property visible by forcing it to redraw. More... | |
override void | PostProcess (LayoutBox box, Renderman renderer) |
Transforms all the blocks that this property has allocated. Note that transformations are a post process. Special case for borders as it may also internally transform its corners. More... | |
void | SetCorner (RoundCornerPosition position, float radius) |
Public Member Functions inherited from Css.DisplayableProperty | |
DisplayableProperty (RenderableData data) | |
Creates a new displayable property for the given render data. More... | |
MeshBlock | GetFirstBlock (Renderman renderer) |
Gets the first rendered block of this property. Used during Paint passes. More... | |
void | SetVisibility (bool visible) |
Call this when the visibility of this property as a whole changes. More... | |
virtual void | OnBatchDestroy () |
Called when the isolation batch for this property gets removed. More... | |
void | Change (string property, Value newValue) |
Called when a named css property changes. More... | |
void | ClearBlocks () |
Clears all mesh blocks that this property has allocated. More... | |
void | WentOffScreen () |
virtual void | ApplyTransform (Matrix4x4 delta, Renderman renderer) |
Transforms all the verts by the given delta matrix. Used during a Paint only. More... | |
virtual void | RequestPaint () |
Requests for a paint event to occur. Note that paint events are more efficient than a layout as they only refresh the mesh colours and uvs rather than the whole mesh. More... | |
void | SetBatchMaterial (Renderman renderer, Material material) |
Sets the current batches material. More... | |
void | RequestLayout () |
Requests for a layout event to occur. Note that paint events are more efficient than a layout as they only refresh the mesh colours and uvs rather than the whole mesh. More... | |
MeshBlock | Add (Renderman renderer) |
void | Isolate () |
Isolates this property from the rest of the UI such that it can have a custom mesh/shader/texture etc. More... | |
void | Include () |
Reverses Css.DisplayableProperty.Isolate by re-including this property in the main UI batch. More... | |
bool | IsIsolated () |
Checks if this is an isolated property - that's one which is seperate and takes its own drawcall. More... | |
AtlasLocation | RequireImage (AtlasEntity image) |
Public Attributes | |
Css.Value | BaseColour =null |
The colour of the border without the colour overlay. Black if undefined. More... | |
RoundedCorners | Corners =null |
The set of round corners if any. More... | |
Public Attributes inherited from Css.DisplayableProperty | |
bool | Visible |
True if this is currently visible on screen. More... | |
bool | Isolated |
True if this property is isolated and has a seperate mesh and material from everything else. More... | |
short | BlockCount |
The number of mesh blocks that this property has allocated. More... | |
RenderableData | RenderData |
The parent render data that this is a property of. More... | |
bool | GotBatchAlready |
Only applies to Isolated properties. Set to true when this property has allocated a UIBatch on the current layout. More... | |
Package Functions | |
override void | Layout (LayoutBox box, Renderman renderer) |
Called when a layout event occurs. Layout events relocate the whole UI so should be used less frequently than a paint event. More... | |
Package Functions inherited from Css.DisplayableProperty | |
virtual bool | NowOnScreen () |
Called when this element goes on screen. More... | |
virtual void | NowOffScreen () |
Called when this element goes off screen (or is removed from the DOM). More... | |
Properties | |
override int | DrawOrder [get] |
This property's draw order. More... | |
Properties inherited from Css.DisplayableProperty | |
virtual int | DrawOrder [get] |
This property's draw order. More... | |
virtual bool | IsBackground [get] |
True if this paints across the whole background of the element. More... | |
bool | Paintable [get] |
Checks if this property can be repainted. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Css.DisplayableProperty | |
virtual void | OnChange (string property, Value newValue) |
Called when a named css property changes. More... | |
Package Attributes inherited from Css.DisplayableProperty | |
UIBatch | Batch |
The batch that this was allocated to. More... | |
int | FirstBlockIndex |
The block index in the first buffer. With this, all blocks belonging to this property can be quickly discovered. More... | |
|
inline |
Creates a new border property for the given element.
data | The renderable object to give a border to. |
Called when a layout event occurs. Layout events relocate the whole UI so should be used less frequently than a paint event.
Reimplemented from Css.DisplayableProperty.
Called when a paint event occurs. Paint events don't relocate the whole UI so are quick and efficient.
Reimplemented from Css.DisplayableProperty.
Transforms all the blocks that this property has allocated. Note that transformations are a post process. Special case for borders as it may also internally transform its corners.
topTransform | The transform that should be applied to this property. |
Reimplemented from Css.DisplayableProperty.
|
inlinevirtual |
Make this property visible by forcing it to redraw.
Reimplemented from Css.DisplayableProperty.
|
inline |
Css.Value Css.BorderProperty.BaseColour =null |
The colour of the border without the colour overlay. Black if undefined.
RoundedCorners Css.BorderProperty.Corners =null |
The set of round corners if any.
|
get |
This property's draw order.