summaryrefslogtreecommitdiff
path: root/engine/UI/Label.go
blob: f0a3c97afc6649f68903a8034c7f4608c13d0414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package ui

import rl "github.com/gen2brain/raylib-go/raylib"

type Label struct {
	Text string
}

func (base *Label) Init(Menu) {
}

func (base *Label) Destroy() {
}

func (base *Label) Update() {
}

func (base *Label) Draw(position *rl.Rectangle) {
	// rl.TraceLog(rl.LogInfo, "Drawn at %v/%v/%v/%v", position.X, position.Y, position.Width, position.Height)
	rl.DrawRectangleRec(*position, rl.Green)
}