Show / Hide Table of Contents

Class StyleExtensions

Inheritance
System.Object
StyleExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: InitialPrefabs.NimGui
Assembly: InitialPrefabs.ImGui.dll
Syntax
public static class StyleExtensions

Methods

WithBackground(ref ImButtonStyle, Color32)

Declaration
public static ref ImButtonStyle WithBackground(this ref ImButtonStyle style, Color32 background)
Parameters
Type Name Description
ImButtonStyle style
UnityEngine.Color32 background
Returns
Type Description
ImButtonStyle

WithBackground(ref ImDropDownStyle, Color32)

Declaration
public static ref ImDropDownStyle WithBackground(this ref ImDropDownStyle style, Color32 background)
Parameters
Type Name Description
ImDropDownStyle style
UnityEngine.Color32 background
Returns
Type Description
ImDropDownStyle

WithBackground(ref ImProgressBarStyle, Color32)

Declaration
public static ref ImProgressBarStyle WithBackground(this ref ImProgressBarStyle style, Color32 background)
Parameters
Type Name Description
ImProgressBarStyle style
UnityEngine.Color32 background
Returns
Type Description
ImProgressBarStyle

WithBackground(ref ImSliderStyle, Color32)

Declaration
public static ref ImSliderStyle WithBackground(this ref ImSliderStyle style, Color32 background)
Parameters
Type Name Description
ImSliderStyle style
UnityEngine.Color32 background
Returns
Type Description
ImSliderStyle

WithBackground(ref ImTextFieldStyle, Color32)

Declaration
public static ref ImTextFieldStyle WithBackground(this ref ImTextFieldStyle style, Color32 background)
Parameters
Type Name Description
ImTextFieldStyle style
UnityEngine.Color32 background
Returns
Type Description
ImTextFieldStyle

WithButtonDefault(ref ImScrollAreaStyle, Color32)

Declaration
public static ref ImScrollAreaStyle WithButtonDefault(this ref ImScrollAreaStyle style, Color32 buttondefault)
Parameters
Type Name Description
ImScrollAreaStyle style
UnityEngine.Color32 buttondefault
Returns
Type Description
ImScrollAreaStyle

WithButtonDefault(ref ImSliderStyle, Color32)

Declaration
public static ref ImSliderStyle WithButtonDefault(this ref ImSliderStyle style, Color32 buttondefault)
Parameters
Type Name Description
ImSliderStyle style
UnityEngine.Color32 buttondefault
Returns
Type Description
ImSliderStyle

WithButtonHover(ref ImScrollAreaStyle, Color32)

Declaration
public static ref ImScrollAreaStyle WithButtonHover(this ref ImScrollAreaStyle style, Color32 buttonhover)
Parameters
Type Name Description
ImScrollAreaStyle style
UnityEngine.Color32 buttonhover
Returns
Type Description
ImScrollAreaStyle

WithButtonHover(ref ImSliderStyle, Color32)

Declaration
public static ref ImSliderStyle WithButtonHover(this ref ImSliderStyle style, Color32 buttonhover)
Parameters
Type Name Description
ImSliderStyle style
UnityEngine.Color32 buttonhover
Returns
Type Description
ImSliderStyle

WithButtonPressed(ref ImScrollAreaStyle, Color32)

Declaration
public static ref ImScrollAreaStyle WithButtonPressed(this ref ImScrollAreaStyle style, Color32 buttonpressed)
Parameters
Type Name Description
ImScrollAreaStyle style
UnityEngine.Color32 buttonpressed
Returns
Type Description
ImScrollAreaStyle

WithButtonPressed(ref ImSliderStyle, Color32)

Declaration
public static ref ImSliderStyle WithButtonPressed(this ref ImSliderStyle style, Color32 buttonpressed)
Parameters
Type Name Description
ImSliderStyle style
UnityEngine.Color32 buttonpressed
Returns
Type Description
ImSliderStyle

WithCloseDefaultFg(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithCloseDefaultFg(this ref ImPaneStyle style, Color32 closedefaultfg)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 closedefaultfg
Returns
Type Description
ImPaneStyle

WithCloseHoverFg(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithCloseHoverFg(this ref ImPaneStyle style, Color32 closehoverfg)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 closehoverfg
Returns
Type Description
ImPaneStyle

WithClosePressedFg(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithClosePressedFg(this ref ImPaneStyle style, Color32 closepressedfg)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 closepressedfg
Returns
Type Description
ImPaneStyle

WithCollapseDefaultFg(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithCollapseDefaultFg(this ref ImPaneStyle style, Color32 collapsedefaultfg)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 collapsedefaultfg
Returns
Type Description
ImPaneStyle

WithCollapseHoverFg(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithCollapseHoverFg(this ref ImPaneStyle style, Color32 collapsehoverfg)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 collapsehoverfg
Returns
Type Description
ImPaneStyle

WithCollapsePressedFg(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithCollapsePressedFg(this ref ImPaneStyle style, Color32 collapsepressedfg)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 collapsepressedfg
Returns
Type Description
ImPaneStyle

WithColor(ref ImLineStyle, Color32)

Declaration
public static ref ImLineStyle WithColor(this ref ImLineStyle style, Color32 color)
Parameters
Type Name Description
ImLineStyle style
UnityEngine.Color32 color
Returns
Type Description
ImLineStyle

WithColumn(ref ImButtonStyle, HorizontalAlignment)

Declaration
public static ref ImButtonStyle WithColumn(this ref ImButtonStyle style, HorizontalAlignment column)
Parameters
Type Name Description
ImButtonStyle style
HorizontalAlignment column
Returns
Type Description
ImButtonStyle

WithColumn(ref ImDropDownStyle, HorizontalAlignment)

Declaration
public static ref ImDropDownStyle WithColumn(this ref ImDropDownStyle style, HorizontalAlignment column)
Parameters
Type Name Description
ImDropDownStyle style
HorizontalAlignment column
Returns
Type Description
ImDropDownStyle

WithColumn(ref ImPaneStyle, HorizontalAlignment)

Declaration
public static ref ImPaneStyle WithColumn(this ref ImPaneStyle style, HorizontalAlignment column)
Parameters
Type Name Description
ImPaneStyle style
HorizontalAlignment column
Returns
Type Description
ImPaneStyle

WithColumn(ref ImProgressBarStyle, HorizontalAlignment)

Declaration
public static ref ImProgressBarStyle WithColumn(this ref ImProgressBarStyle style, HorizontalAlignment column)
Parameters
Type Name Description
ImProgressBarStyle style
HorizontalAlignment column
Returns
Type Description
ImProgressBarStyle

WithColumn(ref ImTextFieldStyle, HorizontalAlignment)

Declaration
public static ref ImTextFieldStyle WithColumn(this ref ImTextFieldStyle style, HorizontalAlignment column)
Parameters
Type Name Description
ImTextFieldStyle style
HorizontalAlignment column
Returns
Type Description
ImTextFieldStyle

WithColumn(ref ImTextStyle, HorizontalAlignment)

Declaration
public static ref ImTextStyle WithColumn(this ref ImTextStyle style, HorizontalAlignment column)
Parameters
Type Name Description
ImTextStyle style
HorizontalAlignment column
Returns
Type Description
ImTextStyle

WithDefaultButtonBackground(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithDefaultButtonBackground(this ref ImPaneStyle style, Color32 defaultbuttonbackground)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 defaultbuttonbackground
Returns
Type Description
ImPaneStyle

WithDefaultButtonHover(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithDefaultButtonHover(this ref ImPaneStyle style, Color32 defaultbuttonhover)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 defaultbuttonhover
Returns
Type Description
ImPaneStyle

WithDefaultButtonPress(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithDefaultButtonPress(this ref ImPaneStyle style, Color32 defaultbuttonpress)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 defaultbuttonpress
Returns
Type Description
ImPaneStyle

WithDefaultFontSize(ref ImPaneStyle, UInt16)

Declaration
public static ref ImPaneStyle WithDefaultFontSize(this ref ImPaneStyle style, ushort defaultfontsize)
Parameters
Type Name Description
ImPaneStyle style
System.UInt16 defaultfontsize
Returns
Type Description
ImPaneStyle

WithDeltaTime(ref ImScrollAreaStyle, Single)

Declaration
public static ref ImScrollAreaStyle WithDeltaTime(this ref ImScrollAreaStyle style, float deltatime)
Parameters
Type Name Description
ImScrollAreaStyle style
System.Single deltatime
Returns
Type Description
ImScrollAreaStyle

WithFontSize(ref ImButtonStyle, UInt16)

Declaration
public static ref ImButtonStyle WithFontSize(this ref ImButtonStyle style, ushort fontsize)
Parameters
Type Name Description
ImButtonStyle style
System.UInt16 fontsize
Returns
Type Description
ImButtonStyle

WithFontSize(ref ImDropDownStyle, UInt16)

Declaration
public static ref ImDropDownStyle WithFontSize(this ref ImDropDownStyle style, ushort fontsize)
Parameters
Type Name Description
ImDropDownStyle style
System.UInt16 fontsize
Returns
Type Description
ImDropDownStyle

WithFontSize(ref ImProgressBarStyle, UInt16)

Declaration
public static ref ImProgressBarStyle WithFontSize(this ref ImProgressBarStyle style, ushort fontsize)
Parameters
Type Name Description
ImProgressBarStyle style
System.UInt16 fontsize
Returns
Type Description
ImProgressBarStyle

WithFontSize(ref ImSkipLineStyle, UInt16)

Declaration
public static ref ImSkipLineStyle WithFontSize(this ref ImSkipLineStyle style, ushort fontsize)
Parameters
Type Name Description
ImSkipLineStyle style
System.UInt16 fontsize
Returns
Type Description
ImSkipLineStyle

WithFontSize(ref ImSliderStyle, UInt16)

Declaration
public static ref ImSliderStyle WithFontSize(this ref ImSliderStyle style, ushort fontsize)
Parameters
Type Name Description
ImSliderStyle style
System.UInt16 fontsize
Returns
Type Description
ImSliderStyle

WithFontSize(ref ImTextFieldStyle, UInt16)

Declaration
public static ref ImTextFieldStyle WithFontSize(this ref ImTextFieldStyle style, ushort fontsize)
Parameters
Type Name Description
ImTextFieldStyle style
System.UInt16 fontsize
Returns
Type Description
ImTextFieldStyle

WithFontSize(ref ImTextStyle, UInt16)

Declaration
public static ref ImTextStyle WithFontSize(this ref ImTextStyle style, ushort fontsize)
Parameters
Type Name Description
ImTextStyle style
System.UInt16 fontsize
Returns
Type Description
ImTextStyle

WithForeground(ref ImProgressBarStyle, Color32)

Declaration
public static ref ImProgressBarStyle WithForeground(this ref ImProgressBarStyle style, Color32 foreground)
Parameters
Type Name Description
ImProgressBarStyle style
UnityEngine.Color32 foreground
Returns
Type Description
ImProgressBarStyle

WithHover(ref ImButtonStyle, Color32)

Declaration
public static ref ImButtonStyle WithHover(this ref ImButtonStyle style, Color32 hover)
Parameters
Type Name Description
ImButtonStyle style
UnityEngine.Color32 hover
Returns
Type Description
ImButtonStyle

WithHover(ref ImDropDownStyle, Color32)

Declaration
public static ref ImDropDownStyle WithHover(this ref ImDropDownStyle style, Color32 hover)
Parameters
Type Name Description
ImDropDownStyle style
UnityEngine.Color32 hover
Returns
Type Description
ImDropDownStyle

WithHover(ref ImTextFieldStyle, Color32)

Declaration
public static ref ImTextFieldStyle WithHover(this ref ImTextFieldStyle style, Color32 hover)
Parameters
Type Name Description
ImTextFieldStyle style
UnityEngine.Color32 hover
Returns
Type Description
ImTextFieldStyle

WithPadding(ref ImButtonStyle, float2)

Declaration
public static ref ImButtonStyle WithPadding(this ref ImButtonStyle style, float2 padding)
Parameters
Type Name Description
ImButtonStyle style
Unity.Mathematics.float2 padding
Returns
Type Description
ImButtonStyle

WithPadding(ref ImDropDownStyle, float2)

Declaration
public static ref ImDropDownStyle WithPadding(this ref ImDropDownStyle style, float2 padding)
Parameters
Type Name Description
ImDropDownStyle style
Unity.Mathematics.float2 padding
Returns
Type Description
ImDropDownStyle

WithPadding(ref ImLineStyle, Single)

Declaration
public static ref ImLineStyle WithPadding(this ref ImLineStyle style, float padding)
Parameters
Type Name Description
ImLineStyle style
System.Single padding
Returns
Type Description
ImLineStyle

WithPadding(ref ImPaneStyle, float2)

Declaration
public static ref ImPaneStyle WithPadding(this ref ImPaneStyle style, float2 padding)
Parameters
Type Name Description
ImPaneStyle style
Unity.Mathematics.float2 padding
Returns
Type Description
ImPaneStyle

WithPadding(ref ImScrollAreaStyle, float2)

Declaration
public static ref ImScrollAreaStyle WithPadding(this ref ImScrollAreaStyle style, float2 padding)
Parameters
Type Name Description
ImScrollAreaStyle style
Unity.Mathematics.float2 padding
Returns
Type Description
ImScrollAreaStyle

WithPadding(ref ImSkipLineStyle, float2)

Declaration
public static ref ImSkipLineStyle WithPadding(this ref ImSkipLineStyle style, float2 padding)
Parameters
Type Name Description
ImSkipLineStyle style
Unity.Mathematics.float2 padding
Returns
Type Description
ImSkipLineStyle

WithPadding(ref ImSliderStyle, float2)

Declaration
public static ref ImSliderStyle WithPadding(this ref ImSliderStyle style, float2 padding)
Parameters
Type Name Description
ImSliderStyle style
Unity.Mathematics.float2 padding
Returns
Type Description
ImSliderStyle

WithPadding(ref ImTextFieldStyle, float2)

Declaration
public static ref ImTextFieldStyle WithPadding(this ref ImTextFieldStyle style, float2 padding)
Parameters
Type Name Description
ImTextFieldStyle style
Unity.Mathematics.float2 padding
Returns
Type Description
ImTextFieldStyle

WithPadding(ref ImTextStyle, float2)

Declaration
public static ref ImTextStyle WithPadding(this ref ImTextStyle style, float2 padding)
Parameters
Type Name Description
ImTextStyle style
Unity.Mathematics.float2 padding
Returns
Type Description
ImTextStyle

WithPane(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithPane(this ref ImPaneStyle style, Color32 pane)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 pane
Returns
Type Description
ImPaneStyle

WithPressed(ref ImButtonStyle, Color32)

Declaration
public static ref ImButtonStyle WithPressed(this ref ImButtonStyle style, Color32 pressed)
Parameters
Type Name Description
ImButtonStyle style
UnityEngine.Color32 pressed
Returns
Type Description
ImButtonStyle

WithPressed(ref ImDropDownStyle, Color32)

Declaration
public static ref ImDropDownStyle WithPressed(this ref ImDropDownStyle style, Color32 pressed)
Parameters
Type Name Description
ImDropDownStyle style
UnityEngine.Color32 pressed
Returns
Type Description
ImDropDownStyle

WithRow(ref ImButtonStyle, VerticalAlignment)

Declaration
public static ref ImButtonStyle WithRow(this ref ImButtonStyle style, VerticalAlignment row)
Parameters
Type Name Description
ImButtonStyle style
VerticalAlignment row
Returns
Type Description
ImButtonStyle

WithRow(ref ImDropDownStyle, VerticalAlignment)

Declaration
public static ref ImDropDownStyle WithRow(this ref ImDropDownStyle style, VerticalAlignment row)
Parameters
Type Name Description
ImDropDownStyle style
VerticalAlignment row
Returns
Type Description
ImDropDownStyle

WithRow(ref ImPaneStyle, VerticalAlignment)

Declaration
public static ref ImPaneStyle WithRow(this ref ImPaneStyle style, VerticalAlignment row)
Parameters
Type Name Description
ImPaneStyle style
VerticalAlignment row
Returns
Type Description
ImPaneStyle

WithRow(ref ImProgressBarStyle, VerticalAlignment)

Declaration
public static ref ImProgressBarStyle WithRow(this ref ImProgressBarStyle style, VerticalAlignment row)
Parameters
Type Name Description
ImProgressBarStyle style
VerticalAlignment row
Returns
Type Description
ImProgressBarStyle

WithRow(ref ImTextFieldStyle, VerticalAlignment)

Declaration
public static ref ImTextFieldStyle WithRow(this ref ImTextFieldStyle style, VerticalAlignment row)
Parameters
Type Name Description
ImTextFieldStyle style
VerticalAlignment row
Returns
Type Description
ImTextFieldStyle

WithRow(ref ImTextStyle, VerticalAlignment)

Declaration
public static ref ImTextStyle WithRow(this ref ImTextStyle style, VerticalAlignment row)
Parameters
Type Name Description
ImTextStyle style
VerticalAlignment row
Returns
Type Description
ImTextStyle

WithScrollBarBackground(ref ImScrollAreaStyle, Color32)

Declaration
public static ref ImScrollAreaStyle WithScrollBarBackground(this ref ImScrollAreaStyle style, Color32 scrollbarbackground)
Parameters
Type Name Description
ImScrollAreaStyle style
UnityEngine.Color32 scrollbarbackground
Returns
Type Description
ImScrollAreaStyle

WithScrollBarPanel(ref ImScrollAreaStyle, Color32)

Declaration
public static ref ImScrollAreaStyle WithScrollBarPanel(this ref ImScrollAreaStyle style, Color32 scrollbarpanel)
Parameters
Type Name Description
ImScrollAreaStyle style
UnityEngine.Color32 scrollbarpanel
Returns
Type Description
ImScrollAreaStyle

WithScrollButtonWidth(ref ImScrollAreaStyle, Single)

Declaration
public static ref ImScrollAreaStyle WithScrollButtonWidth(this ref ImScrollAreaStyle style, float scrollbuttonwidth)
Parameters
Type Name Description
ImScrollAreaStyle style
System.Single scrollbuttonwidth
Returns
Type Description
ImScrollAreaStyle

WithScrollSpeed(ref ImScrollAreaStyle, Single)

Declaration
public static ref ImScrollAreaStyle WithScrollSpeed(this ref ImScrollAreaStyle style, float scrollspeed)
Parameters
Type Name Description
ImScrollAreaStyle style
System.Single scrollspeed
Returns
Type Description
ImScrollAreaStyle

WithText(ref ImButtonStyle, Color32)

Declaration
public static ref ImButtonStyle WithText(this ref ImButtonStyle style, Color32 text)
Parameters
Type Name Description
ImButtonStyle style
UnityEngine.Color32 text
Returns
Type Description
ImButtonStyle

WithText(ref ImDropDownStyle, Color32)

Declaration
public static ref ImDropDownStyle WithText(this ref ImDropDownStyle style, Color32 text)
Parameters
Type Name Description
ImDropDownStyle style
UnityEngine.Color32 text
Returns
Type Description
ImDropDownStyle

WithText(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithText(this ref ImPaneStyle style, Color32 text)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 text
Returns
Type Description
ImPaneStyle

WithText(ref ImTextFieldStyle, Color32)

Declaration
public static ref ImTextFieldStyle WithText(this ref ImTextFieldStyle style, Color32 text)
Parameters
Type Name Description
ImTextFieldStyle style
UnityEngine.Color32 text
Returns
Type Description
ImTextFieldStyle

WithTextColor(ref ImProgressBarStyle, Color32)

Declaration
public static ref ImProgressBarStyle WithTextColor(this ref ImProgressBarStyle style, Color32 textcolor)
Parameters
Type Name Description
ImProgressBarStyle style
UnityEngine.Color32 textcolor
Returns
Type Description
ImProgressBarStyle

WithTextColor(ref ImSliderStyle, Color32)

Declaration
public static ref ImSliderStyle WithTextColor(this ref ImSliderStyle style, Color32 textcolor)
Parameters
Type Name Description
ImSliderStyle style
UnityEngine.Color32 textcolor
Returns
Type Description
ImSliderStyle

WithTextColor(ref ImTextStyle, Color32)

Declaration
public static ref ImTextStyle WithTextColor(this ref ImTextStyle style, Color32 textcolor)
Parameters
Type Name Description
ImTextStyle style
UnityEngine.Color32 textcolor
Returns
Type Description
ImTextStyle

WithTitleBar(ref ImPaneStyle, Color32)

Declaration
public static ref ImPaneStyle WithTitleBar(this ref ImPaneStyle style, Color32 titlebar)
Parameters
Type Name Description
ImPaneStyle style
UnityEngine.Color32 titlebar
Returns
Type Description
ImPaneStyle

WithTitleFontSize(ref ImPaneStyle, UInt16)

Declaration
public static ref ImPaneStyle WithTitleFontSize(this ref ImPaneStyle style, ushort titlefontsize)
Parameters
Type Name Description
ImPaneStyle style
System.UInt16 titlefontsize
Returns
Type Description
ImPaneStyle
In This Article
Back to top Generated by DocFX