package ui import "opslag.de/schobers/galleg/allegro5" type Label struct { ControlBase Text string } func (l *Label) Render(ctx Context) { var fonts = ctx.Fonts() var min = l.Bounds.Min.To32() var fnt = fonts.Get("default") fnt.Draw(min.X+leftMargin, min.Y+lineHeight-fnt.Ascent(), ctx.Palette().Darkest(), allegro5.AlignLeft, l.Text) l.ControlBase.Render(ctx) }