Documentation ¶
Overview ¶
Package raygui - Simple and easy-to-use IMGUI (immediate mode GUI API) library
Index ¶
- Constants
- func BackgroundColor() rl.Color
- func Button(bounds rl.Rectangle, text string) bool
- func CheckBox(bounds rl.Rectangle, checked bool) bool
- func ComboBox(bounds rl.Rectangle, comboText []string, active int) int
- func GetStyleProperty(guiProperty Property) int64
- func Label(bounds rl.Rectangle, text string)
- func LabelEx(bounds rl.Rectangle, text string, textColor, border, inner rl.Color)
- func LinesColor() rl.Color
- func LoadGuiStyle(fileName string)
- func ProgressBar(bounds rl.Rectangle, value float32)
- func SaveGuiStyle(fileName string)
- func SetStyleProperty(guiProperty Property, value int64)
- func Slider(bounds rl.Rectangle, value, minValue, maxValue float32) float32
- func SliderBar(bounds rl.Rectangle, value, minValue, maxValue float32) float32
- func Spinner(bounds rl.Rectangle, value, minValue, maxValue int) int
- func TextBox(bounds rl.Rectangle, text string) string
- func TextColor() rl.Color
- func ToggleButton(bounds rl.Rectangle, text string, active bool) bool
- func ToggleGroup(bounds rl.Rectangle, toggleText []string, active int) int
- type Property
Constants ¶
View Source
const ( Disabled = iota Normal Focused Pressed )
GUI controls states
Variables ¶
This section is empty.
Functions ¶
func GetStyleProperty ¶
GetStyleProperty - Get one style property
func LabelEx ¶
func LabelEx(bounds rl.Rectangle, text string, textColor, border, inner rl.Color)
LabelEx - Label element extended, configurable colors
func ProgressBar ¶
func ProgressBar(bounds rl.Rectangle, value float32)
ProgressBar - Progress Bar element, shows current progress value
func SetStyleProperty ¶
SetStyleProperty - Set one style property
func ToggleButton ¶
ToggleButton - Toggle Button element, returns true when active
func ToggleGroup ¶
ToggleGroup - Toggle Group element, returns toggled button index
Types ¶
type Property ¶
type Property int32
Property - GUI property
const ( GlobalBaseColor Property = iota GlobalBorderColor GlobalTextColor GlobalTextFontsize GlobalBorderWidth GlobalBackgroundColor GlobalLinesColor LabelBorderWidth LabelTextColor LabelTextPadding ButtonBorderWidth ButtonTextPadding ButtonDefaultBorderColor ButtonDefaultInsideColor ButtonDefaultTextColor ButtonHoverBorderColor ButtonHoverInsideColor ButtonHoverTextColor ButtonPressedBorderColor ButtonPressedInsideColor ButtonPressedTextColor ToggleTextPadding ToggleBorderWidth ToggleDefaultBorderColor ToggleDefaultInsideColor ToggleDefaultTextColor ToggleHoverBorderColor ToggleHoverInsideColor ToggleHoverTextColor TogglePressedBorderColor TogglePressedInsideColor TogglePressedTextColor ToggleActiveBorderColor ToggleActiveInsideColor ToggleActiveTextColor TogglegroupPadding SliderBorderWidth SliderButtonBorderWidth SliderBorderColor SliderInsideColor SliderDefaultColor SliderHoverColor SliderActiveColor SliderbarBorderColor SliderbarInsideColor SliderbarDefaultColor SliderbarHoverColor SliderbarActiveColor SliderbarZeroLineColor ProgressbarBorderColor ProgressbarInsideColor ProgressbarProgressColor ProgressbarBorderWidth SpinnerLabelBorderColor SpinnerLabelInsideColor SpinnerDefaultButtonBorderColor SpinnerDefaultButtonInsideColor SpinnerDefaultSymbolColor SpinnerDefaultTextColor SpinnerHoverButtonBorderColor SpinnerHoverButtonInsideColor SpinnerHoverSymbolColor SpinnerHoverTextColor SpinnerPressedButtonBorderColor SpinnerPressedButtonInsideColor SpinnerPressedSymbolColor SpinnerPressedTextColor ComboboxPadding ComboboxBorderWidth ComboboxDefaultBorderColor ComboboxDefaultInsideColor ComboboxDefaultTextColor ComboboxDefaultListTextColor ComboboxHoverBorderColor ComboboxHoverInsideColor ComboboxHoverTextColor ComboboxHoverListTextColor ComboboxPressedBorderColor ComboboxPressedInsideColor ComboboxPressedTextColor ComboboxPressedListBorderColor ComboboxPressedListInsideColor ComboboxPressedListTextColor CheckboxDefaultBorderColor CheckboxDefaultInsideColor CheckboxHoverBorderColor CheckboxHoverInsideColor CheckboxClickBorderColor CheckboxClickInsideColor CheckboxDefaultActiveColor CheckboxInsideWidth TextboxBorderWidth TextboxBorderColor TextboxInsideColor TextboxTextColor TextboxLineColor TextboxTextFontsize )
GUI properties enumeration
Click to show internal directories.
Click to hide internal directories.