Check-in [bc1a46b4d9]
Overview
SHA1:bc1a46b4d9b6dbb953fd5a23a99f7885d35ab10b
Date: 2015-09-09 22:22:37
User: spaskalev
Comment:initial imgui api ideas
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2015-09-22
06:54
[4d1ed64397] added design notes for imgui (user: spaskalev, tags: trunk)
2015-09-09
22:22
[bc1a46b4d9] initial imgui api ideas (user: spaskalev, tags: trunk)
2015-04-06
19:20
[87e5dc43ff] sync tbd (user: spaskalev, tags: trunk)
Changes

Added src/0dev.org/imgui/imgui.go version [8340e5f08a].











































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package imgui

// Defines a point in a top-left coordinate system
type Point struct {
	X, Y uint16 // might revisit type for bigger resolutions
}

type Layout interface {
	// Advances the layout and returns a starting point
	// for an element based on the last ending point.
	Next(Point) Point
}

// Groups UI drawing routines
type Canvas interface {
	Layout
	// Draws a string
	Label(string)
	//Button()
	//TextArea()
}