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  +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  +}