mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 19:32:23 -07:00
Adding whitespaces to detach procedure declaration from category comments
This commit is contained in:
Vendored
+9
@@ -210,6 +210,7 @@ SCROLLBAR_RIGHT_SIDE :: 1
|
||||
@(default_calling_convention="c")
|
||||
foreign lib {
|
||||
// Global gui state control functions
|
||||
|
||||
GuiEnable :: proc() --- // Enable gui controls (global state)
|
||||
GuiLock :: proc() --- // Lock gui controls (global state)
|
||||
GuiDisable :: proc() --- // Disable gui controls (global state)
|
||||
@@ -220,23 +221,28 @@ foreign lib {
|
||||
GuiGetState :: proc() -> c.int --- // Get gui state (global state)
|
||||
|
||||
// Font set/get functions
|
||||
|
||||
GuiSetFont :: proc(font: Font) --- // Set gui custom font (global state)
|
||||
GuiGetFont :: proc() -> Font --- // Get gui custom font (global state)
|
||||
|
||||
// Style set/get functions
|
||||
|
||||
GuiSetStyle :: proc(control: c.int, property: c.int, value: c.int) --- // Set one style property
|
||||
GuiGetStyle :: proc(control: c.int, property: c.int) -> c.int --- // Get one style property
|
||||
|
||||
// Styles loading functions
|
||||
|
||||
GuiLoadStyle :: proc(fileName: cstring) --- // Load style file over global style variable (.rgs)
|
||||
GuiLoadStyleDefault :: proc() --- // Load style default over global style
|
||||
|
||||
// Tooltips management functions
|
||||
|
||||
GuiEnableTooltip :: proc() --- // Enable gui tooltips (global state)
|
||||
GuiDisableTooltip :: proc() --- // Disable gui tooltips (global state)
|
||||
GuiSetTooltip :: proc(tooltip: cstring) --- // Set tooltip string
|
||||
|
||||
// Icons functionality
|
||||
|
||||
GuiIconText :: proc(iconId: c.int, text: cstring) -> cstring --- // Get text with icon id prepended (if supported)
|
||||
// #if !defined(RAYGUI_NO_ICONS)
|
||||
GuiSetIconScale :: proc(scale: c.int) --- // Set default icon drawing size
|
||||
@@ -249,6 +255,7 @@ foreign lib {
|
||||
// Controls
|
||||
//----------------------------------------------------------------------------------------------------------
|
||||
// Container/separator controls, useful for controls organization
|
||||
|
||||
GuiWindowBox :: proc(bounds: Rectangle, title: cstring) -> c.int --- // Window Box control, shows a window that can be closed
|
||||
GuiGroupBox :: proc(bounds: Rectangle, text: cstring) -> c.int --- // Group Box control with text name
|
||||
GuiLine :: proc(bounds: Rectangle, text: cstring) -> c.int --- // Line separator control, could contain text
|
||||
@@ -257,6 +264,7 @@ foreign lib {
|
||||
GuiScrollPanel :: proc(bounds: Rectangle, text: cstring, content: Rectangle, scroll: ^Vector2, view: ^Rectangle) -> c.int --- // Scroll Panel control
|
||||
|
||||
// Basic controls set
|
||||
|
||||
GuiLabel :: proc(bounds: Rectangle, text: cstring) -> c.int --- // Label control, shows text
|
||||
GuiButton :: proc(bounds: Rectangle, text: cstring) -> c.int --- // Button control, returns true when clicked
|
||||
GuiLabelButton :: proc(bounds: Rectangle, text: cstring) -> c.int --- // Label button control, show true when clicked
|
||||
@@ -278,6 +286,7 @@ foreign lib {
|
||||
GuiGrid :: proc(bounds: Rectangle, text: cstring, spacing: f32, subdivs: c.int, mouseCell: ^Vector2) --- // Grid control, returns mouse cell position
|
||||
|
||||
// Advance controls set
|
||||
|
||||
GuiListView :: proc(bounds: Rectangle, text: cstring, scrollIndex: ^c.int, active: ^c.int) -> c.int --- // List View control, returns selected list item index
|
||||
GuiListViewEx :: proc(bounds: Rectangle, text:[^]cstring, count: c.int, scrollIndex: ^c.int, active: ^c.int, focus: ^c.int) -> c.int --- // List View with extended parameters
|
||||
GuiMessageBox :: proc(bounds: Rectangle, title: cstring, message: cstring, buttons: cstring) -> c.int --- // Message Box control, displays a message
|
||||
|
||||
Reference in New Issue
Block a user