1 2 3 4 5 6 7 8 9 10 11 12 13 14
module gx pub struct Image { mut: obj voidptr pub: id int width int height int } pub fn (i Image) is_empty() bool { return isnil(i.obj) }