Loading...
Searching...
No Matches
OFT.Rendering.Context.TooltipInfo Struct Reference

Contains tooltip display information for centralized rendering. More...

Collaboration diagram for OFT.Rendering.Context.TooltipInfo:
[legend]

Public Member Functions

 TooltipInfo (string text, int x, int y, Color borderColor, Color backgroundColor, Color textColor, RenderFont font, bool right=true, int xOffset=20, int yOffset=12)
 

Public Attributes

readonly string Text
 
readonly int X
 
readonly int Y
 
readonly Color BorderColor
 
readonly Color BackgroundColor
 
readonly Color TextColor
 
readonly RenderFont Font
 
readonly bool Right
 
readonly int XOffset
 
readonly int YOffset
 

Properties

float BorderWidth = 2f [get]
 Border thickness; the default preserves the existing tooltip style.
 
bool OutlinePointer [get]
 Draws a narrow, background-filled pointer with two outlined edges.
 
Rectangle? Bounds [get]
 Optional drawing bounds for wrapping and keeping the tooltip visible.
 

Detailed Description

Contains tooltip display information for centralized rendering.

Constructor & Destructor Documentation

◆ TooltipInfo()

OFT.Rendering.Context.TooltipInfo.TooltipInfo ( string  text,
int  x,
int  y,
Color  borderColor,
Color  backgroundColor,
Color  textColor,
RenderFont  font,
bool  right = true,
int  xOffset = 20,
int  yOffset = 12 
)

Member Data Documentation

◆ BackgroundColor

readonly Color OFT.Rendering.Context.TooltipInfo.BackgroundColor

◆ BorderColor

readonly Color OFT.Rendering.Context.TooltipInfo.BorderColor

◆ Font

readonly RenderFont OFT.Rendering.Context.TooltipInfo.Font

◆ Right

readonly bool OFT.Rendering.Context.TooltipInfo.Right

◆ Text

readonly string OFT.Rendering.Context.TooltipInfo.Text

◆ TextColor

readonly Color OFT.Rendering.Context.TooltipInfo.TextColor

◆ X

readonly int OFT.Rendering.Context.TooltipInfo.X

◆ XOffset

readonly int OFT.Rendering.Context.TooltipInfo.XOffset

◆ Y

readonly int OFT.Rendering.Context.TooltipInfo.Y

◆ YOffset

readonly int OFT.Rendering.Context.TooltipInfo.YOffset

Property Documentation

◆ BorderWidth

float OFT.Rendering.Context.TooltipInfo.BorderWidth = 2f
get

Border thickness; the default preserves the existing tooltip style.

◆ Bounds

Rectangle? OFT.Rendering.Context.TooltipInfo.Bounds
get

Optional drawing bounds for wrapping and keeping the tooltip visible.

◆ OutlinePointer

bool OFT.Rendering.Context.TooltipInfo.OutlinePointer
get

Draws a narrow, background-filled pointer with two outlined edges.


The documentation for this struct was generated from the following file: