DemiLib
A collection of Demigiant's utility libraries for Unity (https://github.com/Demigiant/demilib)
DG.DemiEditor.GUIStyleExtensions Class Reference

GUI extension methods More...

Static Public Member Functions

static GUIStyle Add (this GUIStyle style, params object[] formats)
 Adds the given formats to the style. You can pass any of these types of values:

  • Format:RichText, WordWrap
  • FontStyle:Font style
  • TextAnchor:Content anchor
  • int:Font size
  • Color/DeSkinColor:Font color
More...
 
static GUIStyle Background (this GUIStyle style, Texture2D background, Texture2D pressBackground=null)
 Sets the background of the style More...
 
static GUIStyle Border (this GUIStyle style, RectOffset border)
 Sets the border of the style More...
 
static GUIStyle Border (this GUIStyle style, int left, int right, int top, int bottom)
 Sets the border of the style More...
 
static GUIStyle Clone (this GUIStyle style, params object[] formats)
 Clones the style and adds the given formats to it. You can pass any of these types of values:

  • Format:Rich-text, wordwrap
  • FontStyle:Font style
  • TextAnchor:Content anchor
  • int:Font size
  • Color/DeSkinColor:Font color
More...
 
static GUIStyle ContentOffset (this GUIStyle style, Vector2 offset)
 Sets the contentOffset of the style More...
 
static GUIStyle ContentOffset (this GUIStyle style, float offsetX, float offsetY)
 Sets the contentOffset of the style More...
 
static GUIStyle ContentOffsetX (this GUIStyle style, float offsetX)
 Sets the X contentOffset of the style More...
 
static GUIStyle ContentOffsetY (this GUIStyle style, float offsetY)
 Sets the Y contentOffset of the style More...
 
static GUIStyle Height (this GUIStyle style, int height)
 Sets the fixedHeight of the style More...
 
static GUIStyle Margin (this GUIStyle style, RectOffset margin)
 Sets the margin of the style More...
 
static GUIStyle Margin (this GUIStyle style, int left, int right, int top, int bottom)
 Sets the margin of the style More...
 
static GUIStyle Margin (this GUIStyle style, int margin)
 Sets the margin of the style More...
 
static GUIStyle MarginBottom (this GUIStyle style, int bottom)
 Sets the bottom margin of the style More...
 
static GUIStyle MarginLeft (this GUIStyle style, int left)
 Sets the left margin of the style More...
 
static GUIStyle MarginRight (this GUIStyle style, int right)
 Sets the right margin of the style More...
 
static GUIStyle MarginTop (this GUIStyle style, int top)
 Sets the top margin of the style More...
 
static GUIStyle Overflow (this GUIStyle style, RectOffset overflow)
 Sets the overflow of the style More...
 
static GUIStyle Overflow (this GUIStyle style, int left, int right, int top, int bottom)
 Sets the overflow of the style More...
 
static GUIStyle Overflow (this GUIStyle style, int overflow)
 Sets the overflow of the style More...
 
static GUIStyle OverflowBottom (this GUIStyle style, int bottom)
 Sets the bottom overflow of the style More...
 
static GUIStyle OverflowLeft (this GUIStyle style, int left)
 Sets the left overflow of the style More...
 
static GUIStyle OverflowRight (this GUIStyle style, int right)
 Sets the right overflow of the style More...
 
static GUIStyle OverflowTop (this GUIStyle style, int top)
 Sets the top overflow of the style More...
 
static GUIStyle Padding (this GUIStyle style, RectOffset padding)
 Sets the padding of the style More...
 
static GUIStyle Padding (this GUIStyle style, int left, int right, int top, int bottom)
 Sets the padding of the style More...
 
static GUIStyle Padding (this GUIStyle style, int padding)
 Sets the padding of the style More...
 
static GUIStyle PaddingBottom (this GUIStyle style, int bottom)
 Sets the bottom padding of the style More...
 
static GUIStyle PaddingLeft (this GUIStyle style, int left)
 Sets the left padding of the style More...
 
static GUIStyle PaddingRight (this GUIStyle style, int right)
 Sets the right padding of the style More...
 
static GUIStyle PaddingTop (this GUIStyle style, int top)
 Sets the top padding of the style More...
 
static GUIStyle StretchHeight (this GUIStyle style, bool doStretch=true)
 Sets the stretchHeight property of the style More...
 
static GUIStyle StretchWidth (this GUIStyle style, bool doStretch=true)
 Sets the stretchWidth property of the style More...
 
static GUIStyle Width (this GUIStyle style, float width)
 Sets the Y fixedWidth of the style More...
 

Detailed Description

GUI extension methods

Member Function Documentation

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Add ( this GUIStyle  style,
params object[]  formats 
)
static

Adds the given formats to the style. You can pass any of these types of values:

  • Format:RichText, WordWrap
  • FontStyle:Font style
  • TextAnchor:Content anchor
  • int:Font size
  • Color/DeSkinColor:Font color

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Background ( this GUIStyle  style,
Texture2D  background,
Texture2D  pressBackground = null 
)
static

Sets the background of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Border ( this GUIStyle  style,
RectOffset  border 
)
static

Sets the border of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Border ( this GUIStyle  style,
int  left,
int  right,
int  top,
int  bottom 
)
static

Sets the border of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Clone ( this GUIStyle  style,
params object[]  formats 
)
static

Clones the style and adds the given formats to it. You can pass any of these types of values:

  • Format:Rich-text, wordwrap
  • FontStyle:Font style
  • TextAnchor:Content anchor
  • int:Font size
  • Color/DeSkinColor:Font color

static GUIStyle DG.DemiEditor.GUIStyleExtensions.ContentOffset ( this GUIStyle  style,
Vector2  offset 
)
static

Sets the contentOffset of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.ContentOffset ( this GUIStyle  style,
float  offsetX,
float  offsetY 
)
static

Sets the contentOffset of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.ContentOffsetX ( this GUIStyle  style,
float  offsetX 
)
static

Sets the X contentOffset of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.ContentOffsetY ( this GUIStyle  style,
float  offsetY 
)
static

Sets the Y contentOffset of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Height ( this GUIStyle  style,
int  height 
)
static

Sets the fixedHeight of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Margin ( this GUIStyle  style,
RectOffset  margin 
)
static

Sets the margin of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Margin ( this GUIStyle  style,
int  left,
int  right,
int  top,
int  bottom 
)
static

Sets the margin of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Margin ( this GUIStyle  style,
int  margin 
)
static

Sets the margin of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.MarginBottom ( this GUIStyle  style,
int  bottom 
)
static

Sets the bottom margin of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.MarginLeft ( this GUIStyle  style,
int  left 
)
static

Sets the left margin of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.MarginRight ( this GUIStyle  style,
int  right 
)
static

Sets the right margin of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.MarginTop ( this GUIStyle  style,
int  top 
)
static

Sets the top margin of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Overflow ( this GUIStyle  style,
RectOffset  overflow 
)
static

Sets the overflow of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Overflow ( this GUIStyle  style,
int  left,
int  right,
int  top,
int  bottom 
)
static

Sets the overflow of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Overflow ( this GUIStyle  style,
int  overflow 
)
static

Sets the overflow of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.OverflowBottom ( this GUIStyle  style,
int  bottom 
)
static

Sets the bottom overflow of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.OverflowLeft ( this GUIStyle  style,
int  left 
)
static

Sets the left overflow of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.OverflowRight ( this GUIStyle  style,
int  right 
)
static

Sets the right overflow of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.OverflowTop ( this GUIStyle  style,
int  top 
)
static

Sets the top overflow of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Padding ( this GUIStyle  style,
RectOffset  padding 
)
static

Sets the padding of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Padding ( this GUIStyle  style,
int  left,
int  right,
int  top,
int  bottom 
)
static

Sets the padding of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Padding ( this GUIStyle  style,
int  padding 
)
static

Sets the padding of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.PaddingBottom ( this GUIStyle  style,
int  bottom 
)
static

Sets the bottom padding of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.PaddingLeft ( this GUIStyle  style,
int  left 
)
static

Sets the left padding of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.PaddingRight ( this GUIStyle  style,
int  right 
)
static

Sets the right padding of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.PaddingTop ( this GUIStyle  style,
int  top 
)
static

Sets the top padding of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.StretchHeight ( this GUIStyle  style,
bool  doStretch = true 
)
static

Sets the stretchHeight property of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.StretchWidth ( this GUIStyle  style,
bool  doStretch = true 
)
static

Sets the stretchWidth property of the style

static GUIStyle DG.DemiEditor.GUIStyleExtensions.Width ( this GUIStyle  style,
float  width 
)
static

Sets the Y fixedWidth of the style


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