mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:02:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			853 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			853 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## Name
 | |
| 
 | |
| GML Checkbox Widget
 | |
| 
 | |
| ## Description
 | |
| 
 | |
| Defines a GUI checkbox widget.
 | |
| 
 | |
| ## Synopsis
 | |
| 
 | |
| `@GUI::CheckBox`
 | |
| 
 | |
| ## Examples
 | |
| 
 | |
| ```gml
 | |
| @GUI::CheckBox {
 | |
|     name: "top_checkbox"
 | |
|     text: "Checkbox"
 | |
| }
 | |
| 
 | |
| @GUI::CheckBox {
 | |
|     name: "bottom_checkbox"
 | |
|     text: "Disabled"
 | |
|     enabled: false
 | |
| }
 | |
| ```
 | |
| 
 | |
| ## Registered Properties
 | |
| 
 | |
| | Property          | Type   | Possible values   | Description                                                        |
 | |
| |-------------------|--------|-------------------|--------------------------------------------------------------------|
 | |
| | autosize          | bool   | true or false     | Determines if auto-sized                                           |
 | |
| | checkbox_position | String | "Left" or "Right" | Place the checkbox itself on either the left or right of its label |
 | |
| 
 | |
| ## See also
 | |
| - [GML Button](help://man/5/GML-Widget-Button)
 | 
