The Cogent Core Demo
A demonstration of the various features of the Cogent Core 2D and 3D Go GUI framework
Text
Cogent Core provides fully customizable text elements that can be styled in any way you want. Also, there are pre-configured style types for text that allow you to easily create common text types.
Display large
Display medium
Display small
Headline large
Headline medium
Headline small
Title large
Title medium
Title small
Body large
Body medium
Body small
Label large
Label medium
Label small
Supporting
Buttons
Cogent Core provides customizable buttons that support various events and can be styled in any way you want. Also, there are pre-configured style types for buttons that allow you to achieve common functionality with ease. All buttons support any combination of text, an icon, and an indicator.
Inputs
Cogent Core provides various customizable input widgets that cover all common uses. Various events can be bound to inputs, and their data can easily be fetched and used wherever needed. There are also pre-configured style types for most inputs that allow you to easily switch among common styling patterns.
Toggle
Switch 1
Switch 2
Switch 3
Chip 1
Chip 2
Chip 3
Checkbox 1
Checkbox 2
Checkbox 3
Indeterminate 1
Indeterminate 2
Indeterminate 3
Radio Button 1
Radio Button 2
Radio Button 3
Indeterminate 1
Indeterminate 2
Indeterminate 3
Segmented Button 1
Segmented Button 2
Segmented Button 3
Sliders and meters
Cogent Core provides interactive sliders and customizable meters, allowing you to edit and display bounded numbers.
Dialogs, snackbars, and windows
Cogent Core provides completely customizable dialogs, snackbars, and windows that allow you to easily display, obtain, and organize information.
Dialogs
Snackbars
Windows
Window manipulations
Text editors
Cogent Core provides powerful text editors that support advanced code editing features, like syntax highlighting, completion, undo and redo, copy and paste, rectangular selection, and word, line, and page based navigation, selection, and deletion.
Collections
Cogent Core provides powerful collection widgets that allow you to easily view and edit complex data types like structs, maps, and slices, allowing you to easily create widgets like lists, tables, and forms.
Condition
Condition2
Table struct
Value
Vector
Table
2 table structs
List
7 numbers
File
Select file
Open depth
Closed
Select mode
Root
/widget-base/Cogen…ts-0/frame-1/tree-0
Selected nodes
None
Value binding
Cogent Core provides the value binding system, which allows you to instantly bind Go values to interactive widgets with just a single simple line of code.
Auto
Light
Dark
Invisible
Disabled
Read only
Selected
Active
Dragging
Sliding
Focused
Checked
Indeterminate
Hovered
Long hovered
Long pressed
Drag hovered
Edit color
demo.go
Roboto
Hello
New style
Styles and layouts
Cogent Core provides a fully customizable styling and layout system that allows you to easily control the position, size, and appearance of all widgets. You can edit the style properties of the outer frame below.
Right
Bottom
Left
Margin
Right
Bottom
Left
Display
Direction
Row
Column
Wrap
Justify
Align
Min
Y
Max
Y
Grow
Grow wrap
Render box
Fill margin
Overflow
Gap
Y
Columns
Object fit
Object position
Y
Border
Border
Max border
Border
Box shadow
None
Max box shadow
None
Color
Background
Edit color
Opacity
State layer
State color
Actual background
Virtual keyboard
Pos
Y
Z index
Row
Col
Row span
Col span
Scrollbar width
Font
Font
Text
Text
Unit context
Context