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

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

            1  +package imgui
            2  +
            3  +// Defines a point in a top-left coordinate system
            4  +type Point struct {
            5  +	X, Y uint16 // might revisit type for bigger resolutions
            6  +}
            7  +
            8  +type Layout interface {
            9  +	// Advances the layout and returns a starting point
           10  +	// for an element based on the last ending point.
           11  +	Next(Point) Point
           12  +}
           13  +
           14  +// Groups UI drawing routines
           15  +type Canvas interface {
           16  +	Layout
           17  +	// Draws a string
           18  +	Label(string)
           19  +	//Button()
           20  +	//TextArea()
           21  +}