-
Notifications
You must be signed in to change notification settings - Fork 2
/
gdkpixbuf_consts
44 lines (44 loc) · 2.63 KB
/
gdkpixbuf_consts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
quote
$(Expr(:toplevel, quote
begin
const PIXBUF_MAJOR = 2
const PIXBUF_MICRO = 8
const PIXBUF_MINOR = 42
const PIXBUF_VERSION = "2.42.8"
begin
@cenum Colorspace::Int32 Colorspace_RGB = 0
(GLib.g_type(::Type{T}) where T <: Colorspace) = begin
ccall(("gdk_colorspace_get_type", libgdkpixbuf), GType, ())
end
end
begin
@cenum InterpType::Int32 InterpType_NEAREST = 0 InterpType_TILES = 1 InterpType_BILINEAR = 2 InterpType_HYPER = 3
(GLib.g_type(::Type{T}) where T <: InterpType) = begin
ccall(("gdk_interp_type_get_type", libgdkpixbuf), GType, ())
end
end
begin
@cenum PixbufError::Int32 PixbufError_CORRUPT_IMAGE = 0 PixbufError_INSUFFICIENT_MEMORY = 1 PixbufError_BAD_OPTION = 2 PixbufError_UNKNOWN_TYPE = 3 PixbufError_UNSUPPORTED_OPERATION = 4 PixbufError_FAILED = 5 PixbufError_INCOMPLETE_ANIMATION = 6
(GLib.g_type(::Type{T}) where T <: PixbufError) = begin
ccall(("gdk_pixbuf_error_get_type", libgdkpixbuf), GType, ())
end
end
begin
@cenum PixbufRotation::Int32 PixbufRotation_NONE = 0 PixbufRotation_COUNTERCLOCKWISE = 90 PixbufRotation_UPSIDEDOWN = 180 PixbufRotation_CLOCKWISE = 270
(GLib.g_type(::Type{T}) where T <: PixbufRotation) = begin
ccall(("gdk_pixbuf_rotation_get_type", libgdkpixbuf), GType, ())
end
end
@bitflag PixbufFormatFlags::UInt32 PixbufFormatFlags_WRITABLE = 1 PixbufFormatFlags_SCALABLE = 2 PixbufFormatFlags_THREADSAFE = 4 PixbufFormatFlags_NONE = 0
@doc "See the [GTK docs](https://docs.gtk.org/gdk-pixbuf/const.PIXBUF_MAJOR.html)." PIXBUF_MAJOR
@doc "See the [GTK docs](https://docs.gtk.org/gdk-pixbuf/const.PIXBUF_MICRO.html)." PIXBUF_MICRO
@doc "See the [GTK docs](https://docs.gtk.org/gdk-pixbuf/const.PIXBUF_MINOR.html)." PIXBUF_MINOR
@doc "See the [GTK docs](https://docs.gtk.org/gdk-pixbuf/const.PIXBUF_VERSION.html)." PIXBUF_VERSION
@doc "See the [GTK docs](https://docs.gtk.org/gdk-pixbuf/enum.Colorspace.html)." Colorspace
@doc "See the [GTK docs](https://docs.gtk.org/gdk-pixbuf/enum.InterpType.html)." InterpType
@doc "See the [GTK docs](https://docs.gtk.org/gdk-pixbuf/enum.PixbufError.html)." PixbufError
@doc "See the [GTK docs](https://docs.gtk.org/gdk-pixbuf/enum.PixbufRotation.html)." PixbufRotation
@doc "See the [GTK docs](https://docs.gtk.org/gdk-pixbuf/flags.PixbufFormatFlags.html)." PixbufFormatFlags
end
end))
end