Skip to content

grid.um

Marek Maskarinec edited this page Oct 9, 2022 · 2 revisions

grid.um

struct Grid*

type Grid* = struct {
	g: ui.Generic
	w, h: th.uu
	border: th.fu
	elements: []ui.Element
}

A Grid container. The grid size is fixed, not dynamic like in Tk.

fn mk*

fn mk*(w, h: th.uu, border: th.fu = 0): Grid {

Grid's constructor

fn get*

fn (g: ^Grid) get*(): ^ui.Generic {

fn handle*

fn (g: ^Grid) handle*() {

fn draw*

fn (g: ^Grid) draw*() {

Clone this wiki locally