Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,19 @@
|
||||
@[deprecated: 'module gx is deprecated, use `import gg` instead']
|
||||
@[deprecated_after: '2026-01-24']
|
||||
module gx
|
||||
|
||||
@[deprecated: 'use gg.Image']
|
||||
@[deprecated_after: '2026-01-24']
|
||||
pub struct Image {
|
||||
mut:
|
||||
obj voidptr
|
||||
pub:
|
||||
id int
|
||||
width int
|
||||
height int
|
||||
}
|
||||
|
||||
// is_empty returns true if the Image `i` is empty.
|
||||
pub fn (i Image) is_empty() bool {
|
||||
return i.obj == unsafe { nil }
|
||||
}
|
||||
Reference in new issue
Block a user