IScreenLabel
Description
- Derived from
- Extended by
Callback interface for rendering screen labels while avoiding overlaps.
- See also
Public / Methods
RenderScreenLabel
Renders this screen label.
The Graphics.PushDepth and Graphics.PopDepth methods are called automatically for screen labels, according to the screen depth that has been provided to the call to ScreenLabelPlacement.Add.
Extensions
Frame
Wraps this screen label in a visual frame.
+-------------------------+ bounds --+ | _______________ | | Margin | / \ | border --+ | | | | | Insets | | +---------+ | | label --+ | | | | | | | | | | wrapped | | | | size | | | label | | | | | | | | | | | | | +---------+ | | --+ | | | | | \_______________/ | | | +-------------------------+
The bounds
are provided as an argument to the IScreenLabel.RenderScreenLabel method. Based on the given bounds
, the label layout is computed as follows:
-
The ScreenLabelFrameStyle.Margin is applied to the
bounds
. This yields theborder
. -
The ScreenLabelFrameStyle.Insets are applied to the
border
frame. This yields thelabel
box. -
The wrapped screen label is rendered into the
label
box.