ScreenLabelPlacement
Description
- Derived from
Helper object for placing rectangular labels on a screen viewport while avoiding overlaps.
Public / Methods
Occupied
Manually adds the given rectangle to the occupied screen region if it does not intersect with it.
Render
Renders the screen labels while avoiding overlaps.
Each call to IScreenLabel.RenderScreenLabel is wrapped in calls to the Graphics.PushDepth and Graphics.PopDepth methods.
Visible
Checks if a screen label has been drawn during the last call to Render.
A screen label will not be drawn if it lies outside the screen bounds or if it is occluded and IScreenLabel.IsHiddenWhenOccluded returns true
.