Diff

Differences From Artifact [8340e5f08a]:

To Artifact [6ffb33222b]:


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()
}










|










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(last Point) Point
}

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