Cogent Core Demo

0%

Loading...

Static preview:

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.

Enum

Name

Show next

Inline

On

Value

Condition

Condition2

Table struct

Value

Vector

X

Y

Table

2 table structs

List

7 numbers

File

Select file

Select an icon

Select file

Select an icon

Select file

Select an icon

Select file

Select an icon

Select file

Name

Children

3 nodes

Properties

Updaters • first

Updaters • normal

Update from make

Updaters • final

Makers • first

Makers • normal

Makers • final

On child added

None

Tooltip

Parts

/widget-base/Cogen…rame-1/tree-0/parts

Geom

Geom state

Override style

Styles

Style

Stylers • first

Stylers • normal

Widget base init

Tree init

Stylers • final

Widget base init

Tree init

Listeners • first

Widget base handle value on change

Listeners • normal

22 lists of functions of events

Listeners • final

Context menus

Context menu

Deferred

Scene

/Cogent Core Demo scene

Value update

None

Value on change

None

Value title

Sync node

Text

Icon

Select an icon

Icon open

Icon closed

Icon leaf

Tree init

None

Indent

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.

State

Invisible

Disabled

Read only

Selected

Active

Dragging

Sliding

Focused

Checked

Indeterminate

Hovered

Long hovered

Long pressed

Drag hovered

Abilities

Selectable

Activatable

Clickable

Double clickable

Triple clickable

Repeat clickable

Long pressable

Draggable

Droppable

Slideable

Checkable

Scrollable

Focusable

Hoverable

Long hoverable

Scrollable unfocused

Cursor

Padding

Top

Right

Bottom

Left

Margin

Top

Right

Bottom

Left

Display

Direction

Row

Column

Wrap

Justify

Content

Items

Self

Align

Content

Items

Self

Min

X

Y

Max

X

Y

Grow

X

Y

Grow wrap

Render box

Fill margin

Overflow

X

Y

Gap

X

Y

Columns

Object fit

Object position

X

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

X

Y

Z index

Row

Col

Row span

Col span

Scrollbar width

Font

Font

Text

Text

Unit context

Context