Method DrawWindowFrame
DrawWindowFrame(Rect, int, int, int, int, bool, bool, Border)
Draws a frame for a window with padding and an optional visible border inside the padding.
public virtual void DrawWindowFrame(Rect region, int paddingLeft = 0, int paddingTop = 0, int paddingRight = 0, int paddingBottom = 0, bool border = true, bool fill = false, Border borderContent = null)
Parameters
region
RectScreen relative region where the frame will be drawn.
paddingLeft
intNumber of columns to pad on the left (if 0 the border will not appear on the left).
paddingTop
intNumber of rows to pad on the top (if 0 the border and title will not appear on the top).
paddingRight
intNumber of columns to pad on the right (if 0 the border will not appear on the right).
paddingBottom
intNumber of rows to pad on the bottom (if 0 the border will not appear on the bottom).
border
boolIf set to
true
and any padding dimension is > 0 the border will be drawn.fill
boolIf set to
true
it will clear the content area (the area inside the padding) with the current color, otherwise the content area will be left untouched.borderContent
BorderThe Border to be used if defined.