Skip to content

imagebox.um

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

imagebox.um

struct Image*

type Image* = struct {
	g: ui.Generic
	image: image.Image
	stretch: bool
}

An element containing an image

fn mk*

fn mk*(i: image.Image, stretch: bool = false): Image {

fn get*

fn (i: ^Image) get*(): ^ui.Generic {

fn handle*

fn (i: ^Image) handle*() {

fn draw*

fn (i: ^Image) draw*() {

Clone this wiki locally