mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
15 lines
153 B
V
15 lines
153 B
V
|
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)
|
||
|
}
|