From e12a57268a090dfc43eea25b4a6890e40e399ff0 Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Thu, 22 Aug 2024 20:38:02 -0400 Subject: [PATCH] update auto-generated code, require GTK 4.14 and Pango 1.54 --- Project.toml | 6 +- src/gen/gdk4_consts | 13 +- src/gen/gdk4_functions | 4 + src/gen/gdk4_methods | 210 +++++++++++- src/gen/gdk4_structs | 146 +++++++-- src/gen/gsk4_consts | 44 ++- src/gen/gsk4_functions | 12 + src/gen/gsk4_methods | 429 +++++++++++++++++++++++++ src/gen/gsk4_structs | 171 +++++++++- src/gen/gtk4_consts | 121 ++++++- src/gen/gtk4_methods | 704 ++++++++++++++++++++++++++++++++++++++++- src/gen/gtk4_structs | 129 +++++++- src/gen/pango_consts | 4 +- src/gen/pango_methods | 11 + 14 files changed, 1935 insertions(+), 69 deletions(-) diff --git a/Project.toml b/Project.toml index 591ef00b..b390b5f9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Gtk4" uuid = "9db2cae5-386f-4011-9d63-a5602296539b" -version = "0.6.8" +version = "0.6.9" [deps] BitFlags = "d1d4a3ce-64b1-5f1a-9ba4-7e7e69966f35" @@ -33,7 +33,7 @@ Cairo = "1.0.0" Cairo_jll = "1.16.0" ColorTypes = "0.10, 0.11" FixedPointNumbers = "0.5, 0.6, 0.7, 0.8" -GTK4_jll = "4.12.0" +GTK4_jll = "4.14.0" Glib_jll = "2.78.0" Graphene_jll = "1.10" Graphics = "1" @@ -41,7 +41,7 @@ JLLWrappers = "1.4.0" Libdl = "1.6" libpng_jll = "<1.6.42" Librsvg_jll = "2.54" -Pango_jll = "1.51" +Pango_jll = "1.54" Preferences = "1" Reexport = "1.0" Scratch = "1.1.0" diff --git a/src/gen/gdk4_consts b/src/gen/gdk4_consts index 7c5d2b52..322a3b17 100644 --- a/src/gen/gdk4_consts +++ b/src/gen/gdk4_consts @@ -2312,6 +2312,12 @@ $(Expr(:toplevel, quote ccall(("gdk_device_tool_type_get_type", libgtk4), GType, ()) end end + begin + @cenum DmabufError::Int32 DmabufError_NOT_AVAILABLE = 0 DmabufError_UNSUPPORTED_FORMAT = 1 DmabufError_CREATION_FAILED = 2 + (GLib.g_type(::Type{T}) where T <: DmabufError) = begin + ccall(("gdk_dmabuf_error_get_type", libgtk4), GType, ()) + end + end begin @cenum DragCancelReason::Int32 DragCancelReason_NO_TARGET = 0 DragCancelReason_USER_CANCELLED = 1 DragCancelReason_ERROR = 2 (GLib.g_type(::Type{T}) where T <: DragCancelReason) = begin @@ -2355,7 +2361,7 @@ $(Expr(:toplevel, quote end end begin - @cenum MemoryFormat::Int32 MemoryFormat_B8G8R8A8_PREMULTIPLIED = 0 MemoryFormat_A8R8G8B8_PREMULTIPLIED = 1 MemoryFormat_R8G8B8A8_PREMULTIPLIED = 2 MemoryFormat_B8G8R8A8 = 3 MemoryFormat_A8R8G8B8 = 4 MemoryFormat_R8G8B8A8 = 5 MemoryFormat_A8B8G8R8 = 6 MemoryFormat_R8G8B8 = 7 MemoryFormat_B8G8R8 = 8 MemoryFormat_R16G16B16 = 9 MemoryFormat_R16G16B16A16_PREMULTIPLIED = 10 MemoryFormat_R16G16B16A16 = 11 MemoryFormat_R16G16B16_FLOAT = 12 MemoryFormat_R16G16B16A16_FLOAT_PREMULTIPLIED = 13 MemoryFormat_R16G16B16A16_FLOAT = 14 MemoryFormat_R32G32B32_FLOAT = 15 MemoryFormat_R32G32B32A32_FLOAT_PREMULTIPLIED = 16 MemoryFormat_R32G32B32A32_FLOAT = 17 MemoryFormat_G8A8_PREMULTIPLIED = 18 MemoryFormat_G8A8 = 19 MemoryFormat_G8 = 20 MemoryFormat_G16A16_PREMULTIPLIED = 21 MemoryFormat_G16A16 = 22 MemoryFormat_G16 = 23 MemoryFormat_A8 = 24 MemoryFormat_A16 = 25 MemoryFormat_A16_FLOAT = 26 MemoryFormat_A32_FLOAT = 27 MemoryFormat_N_FORMATS = 28 + @cenum MemoryFormat::Int32 MemoryFormat_B8G8R8A8_PREMULTIPLIED = 0 MemoryFormat_A8R8G8B8_PREMULTIPLIED = 1 MemoryFormat_R8G8B8A8_PREMULTIPLIED = 2 MemoryFormat_B8G8R8A8 = 3 MemoryFormat_A8R8G8B8 = 4 MemoryFormat_R8G8B8A8 = 5 MemoryFormat_A8B8G8R8 = 6 MemoryFormat_R8G8B8 = 7 MemoryFormat_B8G8R8 = 8 MemoryFormat_R16G16B16 = 9 MemoryFormat_R16G16B16A16_PREMULTIPLIED = 10 MemoryFormat_R16G16B16A16 = 11 MemoryFormat_R16G16B16_FLOAT = 12 MemoryFormat_R16G16B16A16_FLOAT_PREMULTIPLIED = 13 MemoryFormat_R16G16B16A16_FLOAT = 14 MemoryFormat_R32G32B32_FLOAT = 15 MemoryFormat_R32G32B32A32_FLOAT_PREMULTIPLIED = 16 MemoryFormat_R32G32B32A32_FLOAT = 17 MemoryFormat_G8A8_PREMULTIPLIED = 18 MemoryFormat_G8A8 = 19 MemoryFormat_G8 = 20 MemoryFormat_G16A16_PREMULTIPLIED = 21 MemoryFormat_G16A16 = 22 MemoryFormat_G16 = 23 MemoryFormat_A8 = 24 MemoryFormat_A16 = 25 MemoryFormat_A16_FLOAT = 26 MemoryFormat_A32_FLOAT = 27 MemoryFormat_A8B8G8R8_PREMULTIPLIED = 28 MemoryFormat_B8G8R8X8 = 29 MemoryFormat_X8R8G8B8 = 30 MemoryFormat_R8G8B8X8 = 31 MemoryFormat_X8B8G8R8 = 32 MemoryFormat_N_FORMATS = 33 (GLib.g_type(::Type{T}) where T <: MemoryFormat) = begin ccall(("gdk_memory_format_get_type", libgtk4), GType, ()) end @@ -2445,7 +2451,7 @@ $(Expr(:toplevel, quote end end begin - @bitflag ModifierType::UInt32 ModifierType_SHIFT_MASK = 1 ModifierType_LOCK_MASK = 2 ModifierType_CONTROL_MASK = 4 ModifierType_ALT_MASK = 8 ModifierType_BUTTON1_MASK = 256 ModifierType_BUTTON2_MASK = 512 ModifierType_BUTTON3_MASK = 1024 ModifierType_BUTTON4_MASK = 2048 ModifierType_BUTTON5_MASK = 4096 ModifierType_SUPER_MASK = 67108864 ModifierType_HYPER_MASK = 134217728 ModifierType_META_MASK = 268435456 ModifierType_NONE = 0 + @bitflag ModifierType::UInt32 ModifierType_NO_MODIFIER_MASK = 0 ModifierType_SHIFT_MASK = 1 ModifierType_LOCK_MASK = 2 ModifierType_CONTROL_MASK = 4 ModifierType_ALT_MASK = 8 ModifierType_BUTTON1_MASK = 256 ModifierType_BUTTON2_MASK = 512 ModifierType_BUTTON3_MASK = 1024 ModifierType_BUTTON4_MASK = 2048 ModifierType_BUTTON5_MASK = 4096 ModifierType_SUPER_MASK = 67108864 ModifierType_HYPER_MASK = 134217728 ModifierType_META_MASK = 268435456 (GLib.g_type(::Type{T}) where T <: ModifierType) = begin ccall(("gdk_modifier_type_get_type", libgtk4), GType, ()) end @@ -2481,6 +2487,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gdk4/enum.CrossingMode.html)." CrossingMode @doc "See the [GTK docs](https://docs.gtk.org/gdk4/enum.DevicePadFeature.html)." DevicePadFeature @doc "See the [GTK docs](https://docs.gtk.org/gdk4/enum.DeviceToolType.html)." DeviceToolType + @doc "See the [GTK docs](https://docs.gtk.org/gdk4/enum.DmabufError.html)." DmabufError @doc "See the [GTK docs](https://docs.gtk.org/gdk4/enum.DragCancelReason.html)." DragCancelReason @doc "See the [GTK docs](https://docs.gtk.org/gdk4/enum.EventType.html)." EventType @doc "See the [GTK docs](https://docs.gtk.org/gdk4/enum.FullscreenMode.html)." FullscreenMode @@ -2506,7 +2513,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gdk4/flags.PaintableFlags.html)." PaintableFlags @doc "See the [GTK docs](https://docs.gtk.org/gdk4/flags.SeatCapabilities.html)." SeatCapabilities @doc "See the [GTK docs](https://docs.gtk.org/gdk4/flags.ToplevelState.html)." ToplevelState - export AxisUse, CrossingMode, DevicePadFeature, DeviceToolType, DragCancelReason, EventType, FullscreenMode, GLError, Gravity, InputSource, KeyMatch, MemoryFormat, NotifyType, ScrollDirection, ScrollUnit, SubpixelLayout, SurfaceEdge, TextureError, TitlebarGesture, TouchpadGesturePhase, VulkanError, AnchorHints, AxisFlags, DragAction, FrameClockPhase, GLAPI, ModifierType, PaintableFlags, SeatCapabilities, ToplevelState + export AxisUse, CrossingMode, DevicePadFeature, DeviceToolType, DmabufError, DragCancelReason, EventType, FullscreenMode, GLError, Gravity, InputSource, KeyMatch, MemoryFormat, NotifyType, ScrollDirection, ScrollUnit, SubpixelLayout, SurfaceEdge, TextureError, TitlebarGesture, TouchpadGesturePhase, VulkanError, AnchorHints, AxisFlags, DragAction, FrameClockPhase, GLAPI, ModifierType, PaintableFlags, SeatCapabilities, ToplevelState end end)) end diff --git a/src/gen/gdk4_functions b/src/gen/gdk4_functions index 58ec137d..2efe59d1 100644 --- a/src/gen/gdk4_functions +++ b/src/gen/gdk4_functions @@ -66,6 +66,10 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function dmabuf_error_quark() + ret = ccall(("gdk_dmabuf_error_quark", libgtk4), UInt32, ()) + ret + end function drag_action_is_unique(_action) ret = ccall(("gdk_drag_action_is_unique", libgtk4), Cint, (UInt32,), _action) ret2 = convert(Bool, ret) diff --git a/src/gen/gdk4_methods b/src/gen/gdk4_methods index c29be2f2..8cdc5f3b 100644 --- a/src/gen/gdk4_methods +++ b/src/gen/gdk4_methods @@ -124,6 +124,38 @@ $(Expr(:toplevel, quote ret = ccall(("gdk_content_formats_builder_unref", libgtk4), Nothing, (Ptr{GdkContentFormatsBuilder},), instance) nothing end + function contains(instance::GdkDmabufFormats, _fourcc::Integer, _modifier::Integer) + ret = ccall(("gdk_dmabuf_formats_contains", libgtk4), Cint, (Ptr{GdkDmabufFormats}, UInt32, UInt64), instance, _fourcc, _modifier) + ret2 = convert(Bool, ret) + ret2 + end + function equal(instance::GdkDmabufFormats, _formats2::Maybe(GdkDmabufFormats)) + _formats2_maybe = nothing_to_null(_formats2) + ret = ccall(("gdk_dmabuf_formats_equal", libgtk4), Cint, (Ptr{GdkDmabufFormats}, Ptr{GdkDmabufFormats}), instance, _formats2_maybe) + ret2 = convert(Bool, ret) + ret2 + end + function get_format(instance::GdkDmabufFormats, _idx::Integer) + m_fourcc = Ref{UInt32}() + m_modifier = Ref{UInt64}() + ret = ccall(("gdk_dmabuf_formats_get_format", libgtk4), Nothing, (Ptr{GdkDmabufFormats}, UInt64, Ptr{UInt32}, Ptr{UInt64}), instance, _idx, m_fourcc, m_modifier) + _fourcc = m_fourcc[] + _modifier = m_modifier[] + (_fourcc, _modifier) + end + function get_n_formats(instance::GdkDmabufFormats) + ret = ccall(("gdk_dmabuf_formats_get_n_formats", libgtk4), UInt64, (Ptr{GdkDmabufFormats},), instance) + ret + end + function ref(instance::GdkDmabufFormats) + ret = ccall(("gdk_dmabuf_formats_ref", libgtk4), Ptr{GdkDmabufFormats}, (Ptr{GdkDmabufFormats},), instance) + ret2 = convert(GdkDmabufFormats, ret, true) + ret2 + end + function unref(instance::GdkDmabufFormats) + ret = ccall(("gdk_dmabuf_formats_unref", libgtk4), Nothing, (Ptr{GdkDmabufFormats},), instance) + nothing + end function set_size(instance::GdkDragSurfaceSize, _width::Integer, _height::Integer) ret = ccall(("gdk_drag_surface_size_set_size", libgtk4), Nothing, (Ptr{GdkDragSurfaceSize}, Int32, Int32), instance, _width, _height) nothing @@ -974,6 +1006,11 @@ $(Expr(:toplevel, quote ret2 = convert_if_not_null(GdkSeat, ret, false) ret2 end + function get_dmabuf_formats(instance::GdkDisplay) + ret = ccall(("gdk_display_get_dmabuf_formats", libgtk4), Ptr{GdkDmabufFormats}, (Ptr{GObject},), instance) + ret2 = convert(GdkDmabufFormats, ret, false) + ret2 + end function get_monitor_at_surface(instance::GdkDisplay, _surface::GdkSurface) ret = ccall(("gdk_display_get_monitor_at_surface", libgtk4), Ptr{GObject}, (Ptr{GObject}, Ptr{GObject}), instance, _surface) ret2 = convert_if_not_null(GdkMonitor, ret, false) @@ -1069,6 +1106,11 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function supports_shadow_width(instance::GdkDisplay) + ret = ccall(("gdk_display_supports_shadow_width", libgtk4), Cint, (Ptr{GObject},), instance) + ret2 = convert(Bool, ret) + ret2 + end function sync(instance::GdkDisplay) ret = ccall(("gdk_display_sync", libgtk4), Nothing, (Ptr{GObject},), instance) nothing @@ -1112,6 +1154,161 @@ $(Expr(:toplevel, quote ret = ccall(("gdk_display_manager_set_default_display", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _display) nothing end + function compute_concrete_size(instance::GdkDmabufTexture, _specified_width::Real, _specified_height::Real, _default_width::Real, _default_height::Real) + compute_concrete_size(GdkPaintable(instance), _specified_width, _specified_height, _default_width, _default_height) + end + function get_current_image(instance::GdkDmabufTexture) + get_current_image(GdkPaintable(instance)) + end + function get_flags(instance::GdkDmabufTexture) + get_flags(GdkPaintable(instance)) + end + function get_intrinsic_aspect_ratio(instance::GdkDmabufTexture) + get_intrinsic_aspect_ratio(GdkPaintable(instance)) + end + function get_intrinsic_height(instance::GdkDmabufTexture) + get_intrinsic_height(GdkPaintable(instance)) + end + function get_intrinsic_width(instance::GdkDmabufTexture) + get_intrinsic_width(GdkPaintable(instance)) + end + function invalidate_contents(instance::GdkDmabufTexture) + invalidate_contents(GdkPaintable(instance)) + end + function invalidate_size(instance::GdkDmabufTexture) + invalidate_size(GdkPaintable(instance)) + end + function snapshot(instance::GdkDmabufTexture, _snapshot::GdkSnapshot, _width::Real, _height::Real) + snapshot(GdkPaintable(instance), _snapshot, _width, _height) + end + function equal(instance::GdkDmabufTexture, _icon2::Maybe(GIcon)) + equal(GIcon(instance), _icon2) + end + function hash(instance::GdkDmabufTexture) + hash(GIcon(instance)) + end + function serialize(instance::GdkDmabufTexture) + serialize(GIcon(instance)) + end + function to_string(instance::GdkDmabufTexture) + to_string(GIcon(instance)) + end + function load(instance::GdkDmabufTexture, _size::Integer, _cancellable::Maybe(GCancellable)) + load(GLoadableIcon(instance), _size, _cancellable) + end + function load_async(instance::GdkDmabufTexture, _size::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + load_async(GLoadableIcon(instance), _size, _cancellable, _callback) + end + function load_finish(instance::GdkDmabufTexture, _res::GAsyncResult) + load_finish(GLoadableIcon(instance), _res) + end + function DmabufTextureBuilder_new() + ret = ccall(("gdk_dmabuf_texture_builder_new", libgtk4), Ptr{GObject}, ()) + ret2 = GdkDmabufTextureBuilderLeaf(ret, true) + ret2 + end + function get_display(instance::GdkDmabufTextureBuilder) + ret = ccall(("gdk_dmabuf_texture_builder_get_display", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) + ret2 = convert(GdkDisplay, ret, false) + ret2 + end + function get_fd(instance::GdkDmabufTextureBuilder, _plane::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_get_fd", libgtk4), Int32, (Ptr{GObject}, UInt32), instance, _plane) + ret + end + function get_fourcc(instance::GdkDmabufTextureBuilder) + ret = ccall(("gdk_dmabuf_texture_builder_get_fourcc", libgtk4), UInt32, (Ptr{GObject},), instance) + ret + end + function get_height(instance::GdkDmabufTextureBuilder) + ret = ccall(("gdk_dmabuf_texture_builder_get_height", libgtk4), UInt32, (Ptr{GObject},), instance) + ret + end + function get_modifier(instance::GdkDmabufTextureBuilder) + ret = ccall(("gdk_dmabuf_texture_builder_get_modifier", libgtk4), UInt64, (Ptr{GObject},), instance) + ret + end + function get_n_planes(instance::GdkDmabufTextureBuilder) + ret = ccall(("gdk_dmabuf_texture_builder_get_n_planes", libgtk4), UInt32, (Ptr{GObject},), instance) + ret + end + function get_offset(instance::GdkDmabufTextureBuilder, _plane::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_get_offset", libgtk4), UInt32, (Ptr{GObject}, UInt32), instance, _plane) + ret + end + function get_premultiplied(instance::GdkDmabufTextureBuilder) + ret = ccall(("gdk_dmabuf_texture_builder_get_premultiplied", libgtk4), Cint, (Ptr{GObject},), instance) + ret2 = convert(Bool, ret) + ret2 + end + function get_stride(instance::GdkDmabufTextureBuilder, _plane::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_get_stride", libgtk4), UInt32, (Ptr{GObject}, UInt32), instance, _plane) + ret + end + function get_update_region(instance::GdkDmabufTextureBuilder) + ret = ccall(("gdk_dmabuf_texture_builder_get_update_region", libgtk4), Ptr{cairoRegion}, (Ptr{GObject},), instance) + ret2 = convert_if_not_null(cairoRegion, ret, false) + ret2 + end + function get_update_texture(instance::GdkDmabufTextureBuilder) + ret = ccall(("gdk_dmabuf_texture_builder_get_update_texture", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) + ret2 = convert_if_not_null(GdkTexture, ret, false) + ret2 + end + function get_width(instance::GdkDmabufTextureBuilder) + ret = ccall(("gdk_dmabuf_texture_builder_get_width", libgtk4), UInt32, (Ptr{GObject},), instance) + ret + end + function set_display(instance::GdkDmabufTextureBuilder, _display::GdkDisplay) + ret = ccall(("gdk_dmabuf_texture_builder_set_display", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _display) + nothing + end + function set_fd(instance::GdkDmabufTextureBuilder, _plane::Integer, _fd::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_set_fd", libgtk4), Nothing, (Ptr{GObject}, UInt32, Int32), instance, _plane, _fd) + nothing + end + function set_fourcc(instance::GdkDmabufTextureBuilder, _fourcc::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_set_fourcc", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _fourcc) + nothing + end + function set_height(instance::GdkDmabufTextureBuilder, _height::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_set_height", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _height) + nothing + end + function set_modifier(instance::GdkDmabufTextureBuilder, _modifier::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_set_modifier", libgtk4), Nothing, (Ptr{GObject}, UInt64), instance, _modifier) + nothing + end + function set_n_planes(instance::GdkDmabufTextureBuilder, _n_planes::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_set_n_planes", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _n_planes) + nothing + end + function set_offset(instance::GdkDmabufTextureBuilder, _plane::Integer, _offset::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_set_offset", libgtk4), Nothing, (Ptr{GObject}, UInt32, UInt32), instance, _plane, _offset) + nothing + end + function set_premultiplied(instance::GdkDmabufTextureBuilder, _premultiplied::Bool) + ret = ccall(("gdk_dmabuf_texture_builder_set_premultiplied", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _premultiplied) + nothing + end + function set_stride(instance::GdkDmabufTextureBuilder, _plane::Integer, _stride::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_set_stride", libgtk4), Nothing, (Ptr{GObject}, UInt32, UInt32), instance, _plane, _stride) + nothing + end + function set_update_region(instance::GdkDmabufTextureBuilder, _region::Maybe(cairoRegion)) + _region_maybe = nothing_to_null(_region) + ret = ccall(("gdk_dmabuf_texture_builder_set_update_region", libgtk4), Nothing, (Ptr{GObject}, Ptr{cairoRegion}), instance, _region_maybe) + nothing + end + function set_update_texture(instance::GdkDmabufTextureBuilder, _texture::Maybe(GdkTexture)) + _texture_maybe = nothing_to_null(_texture) + ret = ccall(("gdk_dmabuf_texture_builder_set_update_texture", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _texture_maybe) + nothing + end + function set_width(instance::GdkDmabufTextureBuilder, _width::Integer) + ret = ccall(("gdk_dmabuf_texture_builder_set_width", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _width) + nothing + end function drop_done(instance::GdkDrag, _success::Bool) ret = ccall(("gdk_drag_drop_done", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _success) nothing @@ -1241,7 +1438,7 @@ $(Expr(:toplevel, quote check_err(err) ret2 = convert_if_not_null(GInputStream, ret, true) _out_mime_type = m_out_mime_type[] - _out_mime_type = string_or_nothing(_out_mime_type, true) + _out_mime_type = string_or_nothing(_out_mime_type, false) (ret2, _out_mime_type) end function read_value_async(instance::GdkDrop, _type::Integer, _io_priority::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) @@ -1826,6 +2023,10 @@ $(Expr(:toplevel, quote ret = ccall(("gdk_monitor_get_refresh_rate", libgtk4), Int32, (Ptr{GObject},), instance) ret end + function get_scale(instance::GdkMonitor) + ret = ccall(("gdk_monitor_get_scale", libgtk4), Float64, (Ptr{GObject},), instance) + ret + end function get_scale_factor(instance::GdkMonitor) ret = ccall(("gdk_monitor_get_scale_factor", libgtk4), Int32, (Ptr{GObject},), instance) ret @@ -1943,13 +2144,6 @@ $(Expr(:toplevel, quote ret2 = convert(GdkGLContext, ret, true) ret2 end - function create_vulkan_context(instance::GdkSurface) - err = err_buf() - ret = ccall(("gdk_surface_create_vulkan_context", libgtk4), Ptr{GObject}, (Ptr{GObject}, Ptr{Ptr{GError}}), instance, err) - check_err(err) - ret2 = convert(GdkVulkanContext, ret, true) - ret2 - end function destroy(instance::GdkSurface) ret = ccall(("gdk_surface_destroy", libgtk4), Nothing, (Ptr{GObject},), instance) nothing diff --git a/src/gen/gdk4_structs b/src/gen/gdk4_structs index 09d106af..abc9e172 100644 --- a/src/gen/gdk4_structs +++ b/src/gen/gdk4_structs @@ -37,6 +37,24 @@ $(Expr(:toplevel, quote push!(gboxed_types, GdkContentFormatsBuilder) end end + mutable struct GdkDmabufFormats <: GBoxed + handle::Ptr{GdkDmabufFormats} + begin + (GLib.g_type(::Type{T}) where T <: GdkDmabufFormats) = begin + ccall(("gdk_dmabuf_formats_get_type", libgtk4), GType, ()) + end + function GdkDmabufFormats(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GdkDmabufFormats) + end + end mutable struct GdkDragSurfaceSize handle::Ptr{GdkDragSurfaceSize} end @@ -230,6 +248,7 @@ $(Expr(:toplevel, quote end @doc "See the [GTK docs](https://docs.gtk.org/gdk4/struct.ContentFormats.html)." GdkContentFormats @doc "See the [GTK docs](https://docs.gtk.org/gdk4/struct.ContentFormatsBuilder.html)." GdkContentFormatsBuilder + @doc "See the [GTK docs](https://docs.gtk.org/gdk4/struct.DmabufFormats.html)." GdkDmabufFormats @doc "See the [GTK docs](https://docs.gtk.org/gdk4/struct.DragSurfaceSize.html)." GdkDragSurfaceSize @doc "See the [GTK docs](https://docs.gtk.org/gdk4/struct.EventSequence.html)." GdkEventSequence @doc "See the [GTK docs](https://docs.gtk.org/gdk4/struct.FileList.html)." GdkFileList @@ -627,6 +646,88 @@ $(Expr(:toplevel, quote end end end + begin + abstract type GdkTexture <: GObject end + mutable struct GdkTextureLeaf <: GdkTexture + handle::Ptr{GObject} + function GdkTextureLeaf(handle::Ptr{GObject}, owns = false) + if handle == C_NULL + error("Cannot construct GdkTextureLeaf with a NULL pointer") + end + GLib.gobject_maybe_sink(handle, owns) + return gobject_ref(new(handle)) + end + end + gtype_wrapper_cache[:GdkTexture] = GdkTextureLeaf + (GLib.g_type(::Type{T}) where T <: GdkTexture) = begin + ccall(("gdk_texture_get_type", libgtk4), GType, ()) + end + end + begin + function GLib.signalnames(::Type{GdkTexture}) + vcat([:invalidate_contents, :invalidate_size], signalnames(supertype(GdkTexture))) + end + let d = Dict{Symbol, Tuple{Any, Any}}(:notify => (:Nothing, Any[:(Ptr{GParamSpec})])) + function GLib.signal_return_type(::Type{T}, name::Symbol) where T <: GdkTexture + eval((d[name])[1]) + end + function GLib.signal_argument_types(::Type{T}, name::Symbol) where T <: GdkTexture + Tuple(eval.((d[name])[2])) + end + end + end + begin + abstract type GdkDmabufTexture <: GdkTexture end + mutable struct GdkDmabufTextureLeaf <: GdkDmabufTexture + handle::Ptr{GObject} + function GdkDmabufTextureLeaf(handle::Ptr{GObject}, owns = false) + if handle == C_NULL + error("Cannot construct GdkDmabufTextureLeaf with a NULL pointer") + end + GLib.gobject_maybe_sink(handle, owns) + return gobject_ref(new(handle)) + end + end + gtype_wrapper_cache[:GdkDmabufTexture] = GdkDmabufTextureLeaf + (GLib.g_type(::Type{T}) where T <: GdkDmabufTexture) = begin + ccall(("gdk_dmabuf_texture_get_type", libgtk4), GType, ()) + end + end + begin + function GLib.signalnames(::Type{GdkDmabufTexture}) + vcat([:invalidate_contents, :invalidate_size], signalnames(supertype(GdkDmabufTexture))) + end + let d = Dict{Symbol, Tuple{Any, Any}}(:notify => (:Nothing, Any[:(Ptr{GParamSpec})])) + function GLib.signal_return_type(::Type{T}, name::Symbol) where T <: GdkDmabufTexture + eval((d[name])[1]) + end + function GLib.signal_argument_types(::Type{T}, name::Symbol) where T <: GdkDmabufTexture + Tuple(eval.((d[name])[2])) + end + end + end + begin + abstract type GdkDmabufTextureBuilder <: GObject end + mutable struct GdkDmabufTextureBuilderLeaf <: GdkDmabufTextureBuilder + handle::Ptr{GObject} + function GdkDmabufTextureBuilderLeaf(handle::Ptr{GObject}, owns = false) + if handle == C_NULL + error("Cannot construct GdkDmabufTextureBuilderLeaf with a NULL pointer") + end + GLib.gobject_maybe_sink(handle, owns) + return gobject_ref(new(handle)) + end + end + gtype_wrapper_cache[:GdkDmabufTextureBuilder] = GdkDmabufTextureBuilderLeaf + (GLib.g_type(::Type{T}) where T <: GdkDmabufTextureBuilder) = begin + ccall(("gdk_dmabuf_texture_builder_get_type", libgtk4), GType, ()) + end + end + begin + function GLib.signalnames(::Type{GdkDmabufTextureBuilder}) + signalnames(supertype(GdkDmabufTextureBuilder)) + end + end begin abstract type GdkDrag <: GObject end mutable struct GdkDragLeaf <: GdkDrag @@ -739,36 +840,6 @@ $(Expr(:toplevel, quote signalnames(supertype(GdkGLContext)) end end - begin - abstract type GdkTexture <: GObject end - mutable struct GdkTextureLeaf <: GdkTexture - handle::Ptr{GObject} - function GdkTextureLeaf(handle::Ptr{GObject}, owns = false) - if handle == C_NULL - error("Cannot construct GdkTextureLeaf with a NULL pointer") - end - GLib.gobject_maybe_sink(handle, owns) - return gobject_ref(new(handle)) - end - end - gtype_wrapper_cache[:GdkTexture] = GdkTextureLeaf - (GLib.g_type(::Type{T}) where T <: GdkTexture) = begin - ccall(("gdk_texture_get_type", libgtk4), GType, ()) - end - end - begin - function GLib.signalnames(::Type{GdkTexture}) - vcat([:invalidate_contents, :invalidate_size], signalnames(supertype(GdkTexture))) - end - let d = Dict{Symbol, Tuple{Any, Any}}(:notify => (:Nothing, Any[:(Ptr{GParamSpec})])) - function GLib.signal_return_type(::Type{T}, name::Symbol) where T <: GdkTexture - eval((d[name])[1]) - end - function GLib.signal_argument_types(::Type{T}, name::Symbol) where T <: GdkTexture - Tuple(eval.((d[name])[2])) - end - end - end begin abstract type GdkGLTexture <: GdkTexture end mutable struct GdkGLTextureLeaf <: GdkGLTexture @@ -1087,6 +1158,11 @@ $(Expr(:toplevel, quote GLib.setproperties!(obj; kwargs...) obj end + function GdkDmabufTextureBuilder(; kwargs...) + obj = G_.DmabufTextureBuilder_new() + GLib.setproperties!(obj; kwargs...) + obj + end function GdkGLTextureBuilder(; kwargs...) obj = G_.GLTextureBuilder_new() GLib.setproperties!(obj; kwargs...) @@ -1164,6 +1240,8 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gdk4/class.DeviceTool.html)." GdkDeviceTool @doc "See the [GTK docs](https://docs.gtk.org/gdk4/class.Display.html)." GdkDisplay @doc "See the [GTK docs](https://docs.gtk.org/gdk4/class.DisplayManager.html)." GdkDisplayManager + @doc "See the [GTK docs](https://docs.gtk.org/gdk4/class.DmabufTexture.html)." GdkDmabufTexture + @doc "See the [GTK docs](https://docs.gtk.org/gdk4/class.DmabufTextureBuilder.html)." GdkDmabufTextureBuilder @doc "See the [GTK docs](https://docs.gtk.org/gdk4/class.Drag.html)." GdkDrag @doc "See the [GTK docs](https://docs.gtk.org/gdk4/class.DrawContext.html)." GdkDrawContext @doc "See the [GTK docs](https://docs.gtk.org/gdk4/class.Drop.html)." GdkDrop @@ -1218,6 +1296,12 @@ $(Expr(:toplevel, quote function on_display_opened(f, object::GdkDisplayManager, user_data = object, after = false) GLib.signal_connect_generic(f, object, "display-opened", Nothing, (Ptr{GObject},), after, user_data) end + function on_invalidate_contents(f, object::GdkDmabufTexture, user_data = object, after = false) + GLib.signal_connect_generic(f, object, "invalidate-contents", Nothing, (), after, user_data) + end + function on_invalidate_size(f, object::GdkDmabufTexture, user_data = object, after = false) + GLib.signal_connect_generic(f, object, "invalidate-size", Nothing, (), after, user_data) + end function on_cancel(f, object::GdkDrag, user_data = object, after = false) GLib.signal_connect_generic(f, object, "cancel", Nothing, (UInt32,), after, user_data) end @@ -1299,6 +1383,6 @@ $(Expr(:toplevel, quote function on_images_updated(f, object::GdkVulkanContext, user_data = object, after = false) GLib.signal_connect_generic(f, object, "images-updated", Nothing, (), after, user_data) end - export GdkContentFormats, GdkContentFormatsBuilder, GdkDragSurfaceSize, GdkEventSequence, GdkFileList, GdkFrameTimings, GdkKeymapKey, _GdkKeymapKey, GdkPopupLayout, GdkRGBA, _GdkRGBA, GdkRectangle, _GdkRectangle, GdkTextureDownloader, GdkTimeCoord, _GdkTimeCoord, GdkToplevelLayout, GdkDevicePad, GdkDragSurface, GdkPaintable, GdkPopup, GdkToplevel, GdkAppLaunchContext, GdkAppLaunchContextLeaf, GdkButtonEvent, GdkButtonEventLeaf, GdkCairoContext, GdkClipboard, GdkClipboardLeaf, GdkContentDeserializer, GdkContentDeserializerLeaf, GdkContentProvider, GdkContentProviderLeaf, GdkContentSerializer, GdkContentSerializerLeaf, GdkCrossingEvent, GdkCrossingEventLeaf, GdkCursor, GdkCursorLeaf, GdkDNDEvent, GdkDNDEventLeaf, GdkDeleteEvent, GdkDeleteEventLeaf, GdkDevice, GdkDeviceTool, GdkDeviceToolLeaf, GdkDisplay, GdkDisplayLeaf, GdkDisplayManager, GdkDisplayManagerLeaf, GdkDrag, GdkDrawContext, GdkDrop, GdkEvent, GdkFocusEvent, GdkFocusEventLeaf, GdkFrameClock, GdkGLContext, GdkGLTexture, GdkGLTextureLeaf, GdkGLTextureBuilder, GdkGLTextureBuilderLeaf, GdkGrabBrokenEvent, GdkGrabBrokenEventLeaf, GdkKeyEvent, GdkKeyEventLeaf, GdkMemoryTexture, GdkMemoryTextureLeaf, GdkMonitor, GdkMonitorLeaf, GdkMotionEvent, GdkMotionEventLeaf, GdkPadEvent, GdkPadEventLeaf, GdkProximityEvent, GdkProximityEventLeaf, GdkScrollEvent, GdkScrollEventLeaf, GdkSeat, GdkSnapshot, GdkSurface, GdkTexture, GdkTouchEvent, GdkTouchEventLeaf, GdkTouchpadEvent, GdkTouchpadEventLeaf, GdkVulkanContext + export GdkContentFormats, GdkContentFormatsBuilder, GdkDmabufFormats, GdkDragSurfaceSize, GdkEventSequence, GdkFileList, GdkFrameTimings, GdkKeymapKey, _GdkKeymapKey, GdkPopupLayout, GdkRGBA, _GdkRGBA, GdkRectangle, _GdkRectangle, GdkTextureDownloader, GdkTimeCoord, _GdkTimeCoord, GdkToplevelLayout, GdkDevicePad, GdkDragSurface, GdkPaintable, GdkPopup, GdkToplevel, GdkAppLaunchContext, GdkAppLaunchContextLeaf, GdkButtonEvent, GdkButtonEventLeaf, GdkCairoContext, GdkClipboard, GdkClipboardLeaf, GdkContentDeserializer, GdkContentDeserializerLeaf, GdkContentProvider, GdkContentProviderLeaf, GdkContentSerializer, GdkContentSerializerLeaf, GdkCrossingEvent, GdkCrossingEventLeaf, GdkCursor, GdkCursorLeaf, GdkDNDEvent, GdkDNDEventLeaf, GdkDeleteEvent, GdkDeleteEventLeaf, GdkDevice, GdkDeviceTool, GdkDeviceToolLeaf, GdkDisplay, GdkDisplayLeaf, GdkDisplayManager, GdkDisplayManagerLeaf, GdkDmabufTexture, GdkDmabufTextureLeaf, GdkDmabufTextureBuilder, GdkDmabufTextureBuilderLeaf, GdkDrag, GdkDrawContext, GdkDrop, GdkEvent, GdkFocusEvent, GdkFocusEventLeaf, GdkFrameClock, GdkGLContext, GdkGLTexture, GdkGLTextureLeaf, GdkGLTextureBuilder, GdkGLTextureBuilderLeaf, GdkGrabBrokenEvent, GdkGrabBrokenEventLeaf, GdkKeyEvent, GdkKeyEventLeaf, GdkMemoryTexture, GdkMemoryTextureLeaf, GdkMonitor, GdkMonitorLeaf, GdkMotionEvent, GdkMotionEventLeaf, GdkPadEvent, GdkPadEventLeaf, GdkProximityEvent, GdkProximityEventLeaf, GdkScrollEvent, GdkScrollEventLeaf, GdkSeat, GdkSnapshot, GdkSurface, GdkTexture, GdkTouchEvent, GdkTouchEventLeaf, GdkTouchpadEvent, GdkTouchpadEventLeaf, GdkVulkanContext end)) end diff --git a/src/gen/gsk4_consts b/src/gen/gsk4_consts index 586b43f3..06898856 100644 --- a/src/gen/gsk4_consts +++ b/src/gen/gsk4_consts @@ -13,12 +13,30 @@ $(Expr(:toplevel, quote ccall(("gsk_corner_get_type", libgtk4), GType, ()) end end + begin + @cenum FillRule::Int32 FillRule_WINDING = 0 FillRule_EVEN_ODD = 1 + (GLib.g_type(::Type{T}) where T <: FillRule) = begin + ccall(("gsk_fill_rule_get_type", libgtk4), GType, ()) + end + end begin @cenum GLUniformType::Int32 GLUniformType_NONE = 0 GLUniformType_FLOAT = 1 GLUniformType_INT = 2 GLUniformType_UINT = 3 GLUniformType_BOOL = 4 GLUniformType_VEC2 = 5 GLUniformType_VEC3 = 6 GLUniformType_VEC4 = 7 (GLib.g_type(::Type{T}) where T <: GLUniformType) = begin ccall(("gsk_gl_uniform_type_get_type", libgtk4), GType, ()) end end + begin + @cenum LineCap::Int32 LineCap_BUTT = 0 LineCap_ROUND = 1 LineCap_SQUARE = 2 + (GLib.g_type(::Type{T}) where T <: LineCap) = begin + ccall(("gsk_line_cap_get_type", libgtk4), GType, ()) + end + end + begin + @cenum LineJoin::Int32 LineJoin_MITER = 0 LineJoin_ROUND = 1 LineJoin_BEVEL = 2 + (GLib.g_type(::Type{T}) where T <: LineJoin) = begin + ccall(("gsk_line_join_get_type", libgtk4), GType, ()) + end + end begin @cenum MaskMode::Int32 MaskMode_ALPHA = 0 MaskMode_INVERTED_ALPHA = 1 MaskMode_LUMINANCE = 2 MaskMode_INVERTED_LUMINANCE = 3 (GLib.g_type(::Type{T}) where T <: MaskMode) = begin @@ -26,7 +44,19 @@ $(Expr(:toplevel, quote end end begin - @cenum RenderNodeType::Int32 RenderNodeType_NOT_A_RENDER_NODE = 0 RenderNodeType_CONTAINER_NODE = 1 RenderNodeType_CAIRO_NODE = 2 RenderNodeType_COLOR_NODE = 3 RenderNodeType_LINEAR_GRADIENT_NODE = 4 RenderNodeType_REPEATING_LINEAR_GRADIENT_NODE = 5 RenderNodeType_RADIAL_GRADIENT_NODE = 6 RenderNodeType_REPEATING_RADIAL_GRADIENT_NODE = 7 RenderNodeType_CONIC_GRADIENT_NODE = 8 RenderNodeType_BORDER_NODE = 9 RenderNodeType_TEXTURE_NODE = 10 RenderNodeType_INSET_SHADOW_NODE = 11 RenderNodeType_OUTSET_SHADOW_NODE = 12 RenderNodeType_TRANSFORM_NODE = 13 RenderNodeType_OPACITY_NODE = 14 RenderNodeType_COLOR_MATRIX_NODE = 15 RenderNodeType_REPEAT_NODE = 16 RenderNodeType_CLIP_NODE = 17 RenderNodeType_ROUNDED_CLIP_NODE = 18 RenderNodeType_SHADOW_NODE = 19 RenderNodeType_BLEND_NODE = 20 RenderNodeType_CROSS_FADE_NODE = 21 RenderNodeType_TEXT_NODE = 22 RenderNodeType_BLUR_NODE = 23 RenderNodeType_DEBUG_NODE = 24 RenderNodeType_GL_SHADER_NODE = 25 RenderNodeType_TEXTURE_SCALE_NODE = 26 RenderNodeType_MASK_NODE = 27 + @cenum PathDirection::Int32 PathDirection_FROM_START = 0 PathDirection_TO_START = 1 PathDirection_TO_END = 2 PathDirection_FROM_END = 3 + (GLib.g_type(::Type{T}) where T <: PathDirection) = begin + ccall(("gsk_path_direction_get_type", libgtk4), GType, ()) + end + end + begin + @cenum PathOperation::Int32 PathOperation_MOVE = 0 PathOperation_CLOSE = 1 PathOperation_LINE = 2 PathOperation_QUAD = 3 PathOperation_CUBIC = 4 PathOperation_CONIC = 5 + (GLib.g_type(::Type{T}) where T <: PathOperation) = begin + ccall(("gsk_path_operation_get_type", libgtk4), GType, ()) + end + end + begin + @cenum RenderNodeType::Int32 RenderNodeType_NOT_A_RENDER_NODE = 0 RenderNodeType_CONTAINER_NODE = 1 RenderNodeType_CAIRO_NODE = 2 RenderNodeType_COLOR_NODE = 3 RenderNodeType_LINEAR_GRADIENT_NODE = 4 RenderNodeType_REPEATING_LINEAR_GRADIENT_NODE = 5 RenderNodeType_RADIAL_GRADIENT_NODE = 6 RenderNodeType_REPEATING_RADIAL_GRADIENT_NODE = 7 RenderNodeType_CONIC_GRADIENT_NODE = 8 RenderNodeType_BORDER_NODE = 9 RenderNodeType_TEXTURE_NODE = 10 RenderNodeType_INSET_SHADOW_NODE = 11 RenderNodeType_OUTSET_SHADOW_NODE = 12 RenderNodeType_TRANSFORM_NODE = 13 RenderNodeType_OPACITY_NODE = 14 RenderNodeType_COLOR_MATRIX_NODE = 15 RenderNodeType_REPEAT_NODE = 16 RenderNodeType_CLIP_NODE = 17 RenderNodeType_ROUNDED_CLIP_NODE = 18 RenderNodeType_SHADOW_NODE = 19 RenderNodeType_BLEND_NODE = 20 RenderNodeType_CROSS_FADE_NODE = 21 RenderNodeType_TEXT_NODE = 22 RenderNodeType_BLUR_NODE = 23 RenderNodeType_DEBUG_NODE = 24 RenderNodeType_GL_SHADER_NODE = 25 RenderNodeType_TEXTURE_SCALE_NODE = 26 RenderNodeType_MASK_NODE = 27 RenderNodeType_FILL_NODE = 28 RenderNodeType_STROKE_NODE = 29 RenderNodeType_SUBSURFACE_NODE = 30 (GLib.g_type(::Type{T}) where T <: RenderNodeType) = begin ccall(("gsk_render_node_type_get_type", libgtk4), GType, ()) end @@ -49,14 +79,26 @@ $(Expr(:toplevel, quote ccall(("gsk_transform_category_get_type", libgtk4), GType, ()) end end + begin + @bitflag PathForeachFlags::UInt32 PathForeachFlags_ONLY_LINES = 0 PathForeachFlags_QUAD = 1 PathForeachFlags_CUBIC = 2 PathForeachFlags_CONIC = 4 + (GLib.g_type(::Type{T}) where T <: PathForeachFlags) = begin + ccall(("gsk_path_foreach_flags_get_type", libgtk4), GType, ()) + end + end @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.BlendMode.html)." BlendMode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.Corner.html)." Corner + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.FillRule.html)." FillRule @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.GLUniformType.html)." GLUniformType + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.LineCap.html)." LineCap + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.LineJoin.html)." LineJoin @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.MaskMode.html)." MaskMode + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.PathDirection.html)." PathDirection + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.PathOperation.html)." PathOperation @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.RenderNodeType.html)." RenderNodeType @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.ScalingFilter.html)." ScalingFilter @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.SerializationError.html)." SerializationError @doc "See the [GTK docs](https://docs.gtk.org/gsk4/enum.TransformCategory.html)." TransformCategory + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/flags.PathForeachFlags.html)." PathForeachFlags end end)) end diff --git a/src/gen/gsk4_functions b/src/gen/gsk4_functions index 6c0d4eda..af64525e 100644 --- a/src/gen/gsk4_functions +++ b/src/gen/gsk4_functions @@ -1,9 +1,21 @@ quote $(Expr(:toplevel, quote + function path_parse(_string::Union{AbstractString, Symbol}) + ret = ccall(("gsk_path_parse", libgtk4), Ptr{GskPath}, (Cstring,), _string) + ret2 = convert_if_not_null(GskPath, ret, true) + ret2 + end function serialization_error_quark() ret = ccall(("gsk_serialization_error_quark", libgtk4), UInt32, ()) ret end + function stroke_equal(_stroke1::Maybe(Nothing), _stroke2::Maybe(Nothing)) + _stroke1_maybe = nothing_to_null(_stroke1) + _stroke2_maybe = nothing_to_null(_stroke2) + ret = ccall(("gsk_stroke_equal", libgtk4), Cint, (Ptr{Nothing}, Ptr{Nothing}), _stroke1_maybe, _stroke2_maybe) + ret2 = convert(Bool, ret) + ret2 + end function transform_parse(_string::Union{AbstractString, Symbol}) m_out_transform = Ref{Ptr{GskTransform}}() ret = ccall(("gsk_transform_parse", libgtk4), Cint, (Cstring, Ptr{Ptr{GskTransform}}), _string, m_out_transform) diff --git a/src/gen/gsk4_methods b/src/gen/gsk4_methods index 5f27e7d5..d2e3d2a0 100644 --- a/src/gen/gsk4_methods +++ b/src/gen/gsk4_methods @@ -1,5 +1,299 @@ quote $(Expr(:toplevel, quote + function foreach(instance::GskPath, _flags, _func::Function) + begin + _func_cfunc = @cfunction(GskPathForeachFunc, Cint, (UInt32, Ptr{_GraphenePoint}, UInt64, Float32, Ref{Function})) + begin + ref = Ref{Any}(_func) + _func_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) + end + end + ret = ccall(("gsk_path_foreach", libgtk4), Cint, (Ptr{GskPath}, UInt32, Ptr{Cvoid}, Ptr{Nothing}), instance, _flags, _func_cfunc, _func_closure) + ret2 = convert(Bool, ret) + ret2 + end + function get_bounds(instance::GskPath) + m_bounds = Ref{_GrapheneRect}() + ret = ccall(("gsk_path_get_bounds", libgtk4), Cint, (Ptr{GskPath}, Ptr{_GrapheneRect}), instance, m_bounds) + ret2 = convert(Bool, ret) + _bounds = m_bounds[] + (ret2, _bounds) + end + function get_closest_point(instance::GskPath, _point::Union{GraphenePoint, Ref{_GraphenePoint}}, _threshold::Real) + m_result = Ref{GskPathPoint}() + m_distance = Ref{Float32}() + ret = ccall(("gsk_path_get_closest_point", libgtk4), Cint, (Ptr{GskPath}, Ptr{_GraphenePoint}, Float32, Ptr{GskPathPoint}, Ptr{Float32}), instance, _point, _threshold, m_result, m_distance) + ret2 = convert(Bool, ret) + _result = m_result[] + _distance = m_distance[] + (ret2, _result, _distance) + end + function get_end_point(instance::GskPath) + m_result = Ref{GskPathPoint}() + ret = ccall(("gsk_path_get_end_point", libgtk4), Cint, (Ptr{GskPath}, Ptr{GskPathPoint}), instance, m_result) + ret2 = convert(Bool, ret) + _result = m_result[] + (ret2, _result) + end + function get_start_point(instance::GskPath) + m_result = Ref{GskPathPoint}() + ret = ccall(("gsk_path_get_start_point", libgtk4), Cint, (Ptr{GskPath}, Ptr{GskPathPoint}), instance, m_result) + ret2 = convert(Bool, ret) + _result = m_result[] + (ret2, _result) + end + function get_stroke_bounds(instance::GskPath, _stroke::GskStroke) + m_bounds = Ref{_GrapheneRect}() + ret = ccall(("gsk_path_get_stroke_bounds", libgtk4), Cint, (Ptr{GskPath}, Ptr{GskStroke}, Ptr{_GrapheneRect}), instance, _stroke, m_bounds) + ret2 = convert(Bool, ret) + _bounds = m_bounds[] + (ret2, _bounds) + end + function in_fill(instance::GskPath, _point::Union{GraphenePoint, Ref{_GraphenePoint}}, _fill_rule) + ret = ccall(("gsk_path_in_fill", libgtk4), Cint, (Ptr{GskPath}, Ptr{_GraphenePoint}, UInt32), instance, _point, _fill_rule) + ret2 = convert(Bool, ret) + ret2 + end + function is_closed(instance::GskPath) + ret = ccall(("gsk_path_is_closed", libgtk4), Cint, (Ptr{GskPath},), instance) + ret2 = convert(Bool, ret) + ret2 + end + function is_empty(instance::GskPath) + ret = ccall(("gsk_path_is_empty", libgtk4), Cint, (Ptr{GskPath},), instance) + ret2 = convert(Bool, ret) + ret2 + end + function print(instance::GskPath, _string::Union{GString, Ref{_GString}}) + ret = ccall(("gsk_path_print", libgtk4), Nothing, (Ptr{GskPath}, Ptr{_GString}), instance, _string) + nothing + end + function ref(instance::GskPath) + ret = ccall(("gsk_path_ref", libgtk4), Ptr{GskPath}, (Ptr{GskPath},), instance) + ret2 = convert(GskPath, ret, true) + ret2 + end + function to_cairo(instance::GskPath, _cr::cairoContext) + ret = ccall(("gsk_path_to_cairo", libgtk4), Nothing, (Ptr{GskPath}, Ptr{cairoContext}), instance, _cr) + nothing + end + function to_string(instance::GskPath) + ret = ccall(("gsk_path_to_string", libgtk4), Cstring, (Ptr{GskPath},), instance) + ret2 = string_or_nothing(ret, true) + ret2 + end + function unref(instance::GskPath) + ret = ccall(("gsk_path_unref", libgtk4), Nothing, (Ptr{GskPath},), instance) + nothing + end + function PathBuilder_new() + ret = ccall(("gsk_path_builder_new", libgtk4), Ptr{GskPathBuilder}, ()) + ret2 = convert(GskPathBuilder, ret, true) + ret2 + end + function add_cairo_path(instance::GskPathBuilder, _path::cairoPath) + ret = ccall(("gsk_path_builder_add_cairo_path", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{cairoPath}), instance, _path) + nothing + end + function add_circle(instance::GskPathBuilder, _center::Union{GraphenePoint, Ref{_GraphenePoint}}, _radius::Real) + ret = ccall(("gsk_path_builder_add_circle", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{_GraphenePoint}, Float32), instance, _center, _radius) + nothing + end + function add_layout(instance::GskPathBuilder, _layout::PangoLayout) + ret = ccall(("gsk_path_builder_add_layout", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{GObject}), instance, _layout) + nothing + end + function add_path(instance::GskPathBuilder, _path::GskPath) + ret = ccall(("gsk_path_builder_add_path", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{GskPath}), instance, _path) + nothing + end + function add_rect(instance::GskPathBuilder, _rect::Union{GrapheneRect, Ref{_GrapheneRect}}) + ret = ccall(("gsk_path_builder_add_rect", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{_GrapheneRect}), instance, _rect) + nothing + end + function add_reverse_path(instance::GskPathBuilder, _path::GskPath) + ret = ccall(("gsk_path_builder_add_reverse_path", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{GskPath}), instance, _path) + nothing + end + function add_rounded_rect(instance::GskPathBuilder, _rect::Union{GskRoundedRect, Ref{_GskRoundedRect}}) + ret = ccall(("gsk_path_builder_add_rounded_rect", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{_GskRoundedRect}), instance, _rect) + nothing + end + function add_segment(instance::GskPathBuilder, _path::GskPath, _start::GskPathPoint, _end::GskPathPoint) + ret = ccall(("gsk_path_builder_add_segment", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{GskPath}, Ptr{GskPathPoint}, Ptr{GskPathPoint}), instance, _path, _start, _end) + nothing + end + function arc_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real) + ret = ccall(("gsk_path_builder_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2) + nothing + end + function close(instance::GskPathBuilder) + ret = ccall(("gsk_path_builder_close", libgtk4), Nothing, (Ptr{GskPathBuilder},), instance) + nothing + end + function conic_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _weight::Real) + ret = ccall(("gsk_path_builder_conic_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _weight) + nothing + end + function cubic_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _x3::Real, _y3::Real) + ret = ccall(("gsk_path_builder_cubic_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _x3, _y3) + nothing + end + function get_current_point(instance::GskPathBuilder) + ret = ccall(("gsk_path_builder_get_current_point", libgtk4), Ptr{_GraphenePoint}, (Ptr{GskPathBuilder},), instance) + ret2 = convert(Union{GraphenePoint, Ref{_GraphenePoint}}, ret, false) + ret2 + end + function html_arc_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _radius::Real) + ret = ccall(("gsk_path_builder_html_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _radius) + nothing + end + function line_to(instance::GskPathBuilder, _x::Real, _y::Real) + ret = ccall(("gsk_path_builder_line_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32), instance, _x, _y) + nothing + end + function move_to(instance::GskPathBuilder, _x::Real, _y::Real) + ret = ccall(("gsk_path_builder_move_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32), instance, _x, _y) + nothing + end + function quad_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real) + ret = ccall(("gsk_path_builder_quad_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2) + nothing + end + function ref(instance::GskPathBuilder) + ret = ccall(("gsk_path_builder_ref", libgtk4), Ptr{GskPathBuilder}, (Ptr{GskPathBuilder},), instance) + ret2 = convert(GskPathBuilder, ret, false) + ret2 + end + function rel_arc_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real) + ret = ccall(("gsk_path_builder_rel_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2) + nothing + end + function rel_conic_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _weight::Real) + ret = ccall(("gsk_path_builder_rel_conic_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _weight) + nothing + end + function rel_cubic_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _x3::Real, _y3::Real) + ret = ccall(("gsk_path_builder_rel_cubic_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _x3, _y3) + nothing + end + function rel_html_arc_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _radius::Real) + ret = ccall(("gsk_path_builder_rel_html_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _radius) + nothing + end + function rel_line_to(instance::GskPathBuilder, _x::Real, _y::Real) + ret = ccall(("gsk_path_builder_rel_line_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32), instance, _x, _y) + nothing + end + function rel_move_to(instance::GskPathBuilder, _x::Real, _y::Real) + ret = ccall(("gsk_path_builder_rel_move_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32), instance, _x, _y) + nothing + end + function rel_quad_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real) + ret = ccall(("gsk_path_builder_rel_quad_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2) + nothing + end + function rel_svg_arc_to(instance::GskPathBuilder, _rx::Real, _ry::Real, _x_axis_rotation::Real, _large_arc::Bool, _positive_sweep::Bool, _x::Real, _y::Real) + ret = ccall(("gsk_path_builder_rel_svg_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Cint, Cint, Float32, Float32), instance, _rx, _ry, _x_axis_rotation, _large_arc, _positive_sweep, _x, _y) + nothing + end + function svg_arc_to(instance::GskPathBuilder, _rx::Real, _ry::Real, _x_axis_rotation::Real, _large_arc::Bool, _positive_sweep::Bool, _x::Real, _y::Real) + ret = ccall(("gsk_path_builder_svg_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Cint, Cint, Float32, Float32), instance, _rx, _ry, _x_axis_rotation, _large_arc, _positive_sweep, _x, _y) + nothing + end + function to_path(instance::GskPathBuilder) + ret = ccall(("gsk_path_builder_to_path", libgtk4), Ptr{GskPath}, (Ptr{GskPathBuilder},), instance) + ret2 = convert(GskPath, ret, true) + ret2 + end + function unref(instance::GskPathBuilder) + ret = ccall(("gsk_path_builder_unref", libgtk4), Nothing, (Ptr{GskPathBuilder},), instance) + nothing + end + function PathMeasure_new(_path::GskPath) + ret = ccall(("gsk_path_measure_new", libgtk4), Ptr{GskPathMeasure}, (Ptr{GskPath},), _path) + ret2 = convert(GskPathMeasure, ret, true) + ret2 + end + function PathMeasure_new_with_tolerance(_path::GskPath, _tolerance::Real) + ret = ccall(("gsk_path_measure_new_with_tolerance", libgtk4), Ptr{GskPathMeasure}, (Ptr{GskPath}, Float32), _path, _tolerance) + ret2 = convert(GskPathMeasure, ret, true) + ret2 + end + function get_length(instance::GskPathMeasure) + ret = ccall(("gsk_path_measure_get_length", libgtk4), Float32, (Ptr{GskPathMeasure},), instance) + ret + end + function get_path(instance::GskPathMeasure) + ret = ccall(("gsk_path_measure_get_path", libgtk4), Ptr{GskPath}, (Ptr{GskPathMeasure},), instance) + ret2 = convert(GskPath, ret, false) + ret2 + end + function get_point(instance::GskPathMeasure, _distance::Real) + m_result = Ref{GskPathPoint}() + ret = ccall(("gsk_path_measure_get_point", libgtk4), Cint, (Ptr{GskPathMeasure}, Float32, Ptr{GskPathPoint}), instance, _distance, m_result) + ret2 = convert(Bool, ret) + _result = m_result[] + (ret2, _result) + end + function get_tolerance(instance::GskPathMeasure) + ret = ccall(("gsk_path_measure_get_tolerance", libgtk4), Float32, (Ptr{GskPathMeasure},), instance) + ret + end + function ref(instance::GskPathMeasure) + ret = ccall(("gsk_path_measure_ref", libgtk4), Ptr{GskPathMeasure}, (Ptr{GskPathMeasure},), instance) + ret2 = convert(GskPathMeasure, ret, true) + ret2 + end + function unref(instance::GskPathMeasure) + ret = ccall(("gsk_path_measure_unref", libgtk4), Nothing, (Ptr{GskPathMeasure},), instance) + nothing + end + function compare(instance::GskPathPoint, _point2::GskPathPoint) + ret = ccall(("gsk_path_point_compare", libgtk4), Int32, (Ptr{GskPathPoint}, Ptr{GskPathPoint}), instance, _point2) + ret + end + function copy(instance::GskPathPoint) + ret = ccall(("gsk_path_point_copy", libgtk4), Ptr{GskPathPoint}, (Ptr{GskPathPoint},), instance) + ret2 = convert(GskPathPoint, ret, true) + ret2 + end + function equal(instance::GskPathPoint, _point2::GskPathPoint) + ret = ccall(("gsk_path_point_equal", libgtk4), Cint, (Ptr{GskPathPoint}, Ptr{GskPathPoint}), instance, _point2) + ret2 = convert(Bool, ret) + ret2 + end + function free(instance::GskPathPoint) + ret = ccall(("gsk_path_point_free", libgtk4), Nothing, (Ptr{GskPathPoint},), instance) + nothing + end + function get_curvature(instance::GskPathPoint, _path::GskPath, _direction) + m_center = Ref{_GraphenePoint}() + ret = ccall(("gsk_path_point_get_curvature", libgtk4), Float32, (Ptr{GskPathPoint}, Ptr{GskPath}, UInt32, Ptr{_GraphenePoint}), instance, _path, _direction, m_center) + _center = m_center[] + _center = convert_if_not_null(Union{GraphenePoint, Ref{_GraphenePoint}}, _center, false) + (ret, _center) + end + function get_distance(instance::GskPathPoint, _measure::GskPathMeasure) + ret = ccall(("gsk_path_point_get_distance", libgtk4), Float32, (Ptr{GskPathPoint}, Ptr{GskPathMeasure}), instance, _measure) + ret + end + function get_position(instance::GskPathPoint, _path::GskPath) + m_position = Ref{_GraphenePoint}() + ret = ccall(("gsk_path_point_get_position", libgtk4), Nothing, (Ptr{GskPathPoint}, Ptr{GskPath}, Ptr{_GraphenePoint}), instance, _path, m_position) + _position = m_position[] + _position + end + function get_rotation(instance::GskPathPoint, _path::GskPath, _direction) + ret = ccall(("gsk_path_point_get_rotation", libgtk4), Float32, (Ptr{GskPathPoint}, Ptr{GskPath}, UInt32), instance, _path, _direction) + ret + end + function get_tangent(instance::GskPathPoint, _path::GskPath, _direction) + m_tangent = Ref{_GrapheneVec2}() + ret = ccall(("gsk_path_point_get_tangent", libgtk4), Nothing, (Ptr{GskPathPoint}, Ptr{GskPath}, UInt32, Ptr{_GrapheneVec2}), instance, _path, _direction, m_tangent) + _tangent = m_tangent[] + _tangent + end function contains_point(instance::Union{GskRoundedRect, Ref{_GskRoundedRect}}, _point::Union{GraphenePoint, Ref{_GraphenePoint}}) ret = ccall(("gsk_rounded_rect_contains_point", libgtk4), Cint, (Ptr{_GskRoundedRect}, Ptr{_GraphenePoint}), instance, _point) ret2 = convert(Bool, ret) @@ -98,6 +392,79 @@ $(Expr(:toplevel, quote ret = ccall(("gsk_shader_args_builder_unref", libgtk4), Nothing, (Ptr{GskShaderArgsBuilder},), instance) nothing end + function Stroke_new(_line_width::Real) + ret = ccall(("gsk_stroke_new", libgtk4), Ptr{GskStroke}, (Float32,), _line_width) + ret2 = convert(GskStroke, ret, true) + ret2 + end + function copy(instance::GskStroke) + ret = ccall(("gsk_stroke_copy", libgtk4), Ptr{GskStroke}, (Ptr{GskStroke},), instance) + ret2 = convert(GskStroke, ret, true) + ret2 + end + function free(instance::GskStroke) + ret = ccall(("gsk_stroke_free", libgtk4), Nothing, (Ptr{GskStroke},), instance) + nothing + end + function get_dash(instance::GskStroke) + m_n_dash = Ref{UInt64}() + ret = ccall(("gsk_stroke_get_dash", libgtk4), Ptr{Float32}, (Ptr{GskStroke}, Ptr{UInt64}), instance, m_n_dash) + ret2 = collect(unsafe_wrap(Vector{Float32}, ret, m_n_dash[])) + _n_dash = m_n_dash[] + ret2 + end + function get_dash_offset(instance::GskStroke) + ret = ccall(("gsk_stroke_get_dash_offset", libgtk4), Float32, (Ptr{GskStroke},), instance) + ret + end + function get_line_cap(instance::GskStroke) + ret = ccall(("gsk_stroke_get_line_cap", libgtk4), UInt32, (Ptr{GskStroke},), instance) + ret2 = LineCap(ret) + ret2 + end + function get_line_join(instance::GskStroke) + ret = ccall(("gsk_stroke_get_line_join", libgtk4), UInt32, (Ptr{GskStroke},), instance) + ret2 = LineJoin(ret) + ret2 + end + function get_line_width(instance::GskStroke) + ret = ccall(("gsk_stroke_get_line_width", libgtk4), Float32, (Ptr{GskStroke},), instance) + ret + end + function get_miter_limit(instance::GskStroke) + ret = ccall(("gsk_stroke_get_miter_limit", libgtk4), Float32, (Ptr{GskStroke},), instance) + ret + end + function set_dash(instance::GskStroke, _dash) + _dash_arr = convert(Vector{Float32}, _dash) + _n_dash = length(_dash) + ret = ccall(("gsk_stroke_set_dash", libgtk4), Nothing, (Ptr{GskStroke}, Ptr{Float32}, UInt64), instance, _dash_arr, _n_dash) + nothing + end + function set_dash_offset(instance::GskStroke, _offset::Real) + ret = ccall(("gsk_stroke_set_dash_offset", libgtk4), Nothing, (Ptr{GskStroke}, Float32), instance, _offset) + nothing + end + function set_line_cap(instance::GskStroke, _line_cap) + ret = ccall(("gsk_stroke_set_line_cap", libgtk4), Nothing, (Ptr{GskStroke}, UInt32), instance, _line_cap) + nothing + end + function set_line_join(instance::GskStroke, _line_join) + ret = ccall(("gsk_stroke_set_line_join", libgtk4), Nothing, (Ptr{GskStroke}, UInt32), instance, _line_join) + nothing + end + function set_line_width(instance::GskStroke, _line_width::Real) + ret = ccall(("gsk_stroke_set_line_width", libgtk4), Nothing, (Ptr{GskStroke}, Float32), instance, _line_width) + nothing + end + function set_miter_limit(instance::GskStroke, _limit::Real) + ret = ccall(("gsk_stroke_set_miter_limit", libgtk4), Nothing, (Ptr{GskStroke}, Float32), instance, _limit) + nothing + end + function to_cairo(instance::GskStroke, _cr::cairoContext) + ret = ccall(("gsk_stroke_to_cairo", libgtk4), Nothing, (Ptr{GskStroke}, Ptr{cairoContext}), instance, _cr) + nothing + end function Transform_new() ret = ccall(("gsk_transform_new", libgtk4), Ptr{GskTransform}, ()) ret2 = convert(GskTransform, ret, true) @@ -466,6 +833,26 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, false) ret2 end + function FillNode_new(_child::GskRenderNode, _path::GskPath, _fill_rule) + ret = ccall(("gsk_fill_node_new", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode}, Ptr{GskPath}, UInt32), _child, _path, _fill_rule) + ret2 = convert(GskRenderNode, ret) + ret2 + end + function get_child(instance::GskFillNode) + ret = ccall(("gsk_fill_node_get_child", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode},), instance) + ret2 = convert(GskRenderNode, ret) + ret2 + end + function get_fill_rule(instance::GskFillNode) + ret = ccall(("gsk_fill_node_get_fill_rule", libgtk4), UInt32, (Ptr{GskRenderNode},), instance) + ret2 = FillRule(ret) + ret2 + end + function get_path(instance::GskFillNode) + ret = ccall(("gsk_fill_node_get_path", libgtk4), Ptr{GskPath}, (Ptr{GskRenderNode},), instance) + ret2 = convert(GskPath, ret, false) + ret2 + end function GLRenderer_new() ret = ccall(("gsk_gl_renderer_new", libgtk4), Ptr{GObject}, ()) ret2 = GskGLRendererLeaf(ret, true) @@ -662,6 +1049,11 @@ $(Expr(:toplevel, quote ret2 = convert(GskRenderNode, ret) ret2 end + function NglRenderer_new() + ret = ccall(("gsk_ngl_renderer_new", libgtk4), Ptr{GObject}, ()) + ret2 = GskNglRendererLeaf(ret, true) + ret2 + end function OpacityNode_new(_child::GskRenderNode, _opacity::Real) ret = ccall(("gsk_opacity_node_new", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode}, Float32), _child, _opacity) ret2 = convert(GskRenderNode, ret) @@ -820,6 +1212,13 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function realize_for_display(instance::GskRenderer, _display::GdkDisplay) + err = err_buf() + ret = ccall(("gsk_renderer_realize_for_display", libgtk4), Cint, (Ptr{GObject}, Ptr{GObject}, Ptr{Ptr{GError}}), instance, _display, err) + check_err(err) + ret2 = convert(Bool, ret) + ret2 + end function render(instance::GskRenderer, _root::GskRenderNode, _region::Maybe(cairoRegion)) _region_maybe = nothing_to_null(_region) ret = ccall(("gsk_renderer_render", libgtk4), Nothing, (Ptr{GObject}, Ptr{GskRenderNode}, Ptr{cairoRegion}), instance, _root, _region_maybe) @@ -901,6 +1300,31 @@ $(Expr(:toplevel, quote ret2 = convert(Union{GskShadow, Ref{_GskShadow}}, ret) ret2 end + function StrokeNode_new(_child::GskRenderNode, _path::GskPath, _stroke::GskStroke) + ret = ccall(("gsk_stroke_node_new", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode}, Ptr{GskPath}, Ptr{GskStroke}), _child, _path, _stroke) + ret2 = convert(GskRenderNode, ret) + ret2 + end + function get_child(instance::GskStrokeNode) + ret = ccall(("gsk_stroke_node_get_child", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode},), instance) + ret2 = convert(GskRenderNode, ret) + ret2 + end + function get_path(instance::GskStrokeNode) + ret = ccall(("gsk_stroke_node_get_path", libgtk4), Ptr{GskPath}, (Ptr{GskRenderNode},), instance) + ret2 = convert(GskPath, ret, false) + ret2 + end + function get_stroke(instance::GskStrokeNode) + ret = ccall(("gsk_stroke_node_get_stroke", libgtk4), Ptr{GskStroke}, (Ptr{GskRenderNode},), instance) + ret2 = convert(GskStroke, ret, false) + ret2 + end + function get_child(instance::GskSubsurfaceNode) + ret = ccall(("gsk_subsurface_node_get_child", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode},), instance) + ret2 = convert(GskRenderNode, ret) + ret2 + end function TextNode_new(_font::PangoFont, _glyphs::Union{PangoGlyphString, Ref{_PangoGlyphString}}, _color::Union{GdkRGBA, Ref{_GdkRGBA}}, _offset::Union{GraphenePoint, Ref{_GraphenePoint}}) ret = ccall(("gsk_text_node_new", libgtk4), Ptr{GskRenderNode}, (Ptr{GObject}, Ptr{_PangoGlyphString}, Ptr{_GdkRGBA}, Ptr{_GraphenePoint}), _font, _glyphs, _color, _offset) ret2 = convert(GskRenderNode, ret) @@ -977,5 +1401,10 @@ $(Expr(:toplevel, quote ret2 = convert(GskTransform, ret, false) ret2 end + function VulkanRenderer_new() + ret = ccall(("gsk_vulkan_renderer_new", libgtk4), Ptr{GObject}, ()) + ret2 = GskVulkanRendererLeaf(ret, true) + ret2 + end end)) end diff --git a/src/gen/gsk4_structs b/src/gen/gsk4_structs index a0a20177..b7f20c2e 100644 --- a/src/gen/gsk4_structs +++ b/src/gen/gsk4_structs @@ -27,6 +27,78 @@ $(Expr(:toplevel, quote convert(Ptr{_GskParseLocation}, box.handle) end end + mutable struct GskPath <: GBoxed + handle::Ptr{GskPath} + begin + (GLib.g_type(::Type{T}) where T <: GskPath) = begin + ccall(("gsk_path_get_type", libgtk4), GType, ()) + end + function GskPath(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GskPath) + end + end + mutable struct GskPathBuilder <: GBoxed + handle::Ptr{GskPathBuilder} + begin + (GLib.g_type(::Type{T}) where T <: GskPathBuilder) = begin + ccall(("gsk_path_builder_get_type", libgtk4), GType, ()) + end + function GskPathBuilder(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GskPathBuilder) + end + end + mutable struct GskPathMeasure <: GBoxed + handle::Ptr{GskPathMeasure} + begin + (GLib.g_type(::Type{T}) where T <: GskPathMeasure) = begin + ccall(("gsk_path_measure_get_type", libgtk4), GType, ()) + end + function GskPathMeasure(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GskPathMeasure) + end + end + mutable struct GskPathPoint <: GBoxed + handle::Ptr{GskPathPoint} + begin + (GLib.g_type(::Type{T}) where T <: GskPathPoint) = begin + ccall(("gsk_path_point_get_type", libgtk4), GType, ()) + end + function GskPathPoint(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GskPathPoint) + end + end begin mutable struct GskRoundedRect handle::Ptr{GskRoundedRect} @@ -65,6 +137,24 @@ $(Expr(:toplevel, quote convert(Ptr{_GskShadow}, box.handle) end end + mutable struct GskStroke <: GBoxed + handle::Ptr{GskStroke} + begin + (GLib.g_type(::Type{T}) where T <: GskStroke) = begin + ccall(("gsk_stroke_get_type", libgtk4), GType, ()) + end + function GskStroke(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GskStroke) + end + end mutable struct GskTransform <: GBoxed handle::Ptr{GskTransform} begin @@ -85,9 +175,14 @@ $(Expr(:toplevel, quote end @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.ColorStop.html)." GskColorStop @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.ParseLocation.html)." GskParseLocation + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.Path.html)." GskPath + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.PathBuilder.html)." GskPathBuilder + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.PathMeasure.html)." GskPathMeasure + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.PathPoint.html)." GskPathPoint @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.RoundedRect.html)." GskRoundedRect @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.ShaderArgsBuilder.html)." GskShaderArgsBuilder @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.Shadow.html)." GskShadow + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.Stroke.html)." GskStroke @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.Transform.html)." GskTransform begin abstract type GskRenderNode <: GTypeInstance end @@ -257,6 +352,14 @@ $(Expr(:toplevel, quote handle::Ptr{GskRenderNode} end end + begin + abstract type GskFillNode <: GskRenderNode end + end + begin + mutable struct GskFillNodeLeaf <: GskFillNode + handle::Ptr{GskRenderNode} + end + end begin abstract type GskGLRenderer <: GskRenderer end mutable struct GskGLRendererLeaf <: GskGLRenderer @@ -419,6 +522,22 @@ $(Expr(:toplevel, quote handle::Ptr{GskRenderNode} end end + begin + abstract type GskStrokeNode <: GskRenderNode end + end + begin + mutable struct GskStrokeNodeLeaf <: GskStrokeNode + handle::Ptr{GskRenderNode} + end + end + begin + abstract type GskSubsurfaceNode <: GskRenderNode end + end + begin + mutable struct GskSubsurfaceNodeLeaf <: GskSubsurfaceNode + handle::Ptr{GskRenderNode} + end + end begin abstract type GskTextNode <: GskRenderNode end end @@ -451,6 +570,28 @@ $(Expr(:toplevel, quote handle::Ptr{GskRenderNode} end end + begin + abstract type GskVulkanRenderer <: GskRenderer end + mutable struct GskVulkanRendererLeaf <: GskVulkanRenderer + handle::Ptr{GObject} + function GskVulkanRendererLeaf(handle::Ptr{GObject}, owns = false) + if handle == C_NULL + error("Cannot construct GskVulkanRendererLeaf with a NULL pointer") + end + GLib.gobject_maybe_sink(handle, owns) + return gobject_ref(new(handle)) + end + end + gtype_wrapper_cache[:GskVulkanRenderer] = GskVulkanRendererLeaf + (GLib.g_type(::Type{T}) where T <: GskVulkanRenderer) = begin + ccall(("gsk_vulkan_renderer_get_type", libgtk4), GType, ()) + end + end + begin + function GLib.signalnames(::Type{GskVulkanRenderer}) + signalnames(supertype(GskVulkanRenderer)) + end + end function GskBlendNode(_bottom::GskRenderNode, _top::GskRenderNode, _blend_mode) G_.BlendNode_new(_bottom, _top, _blend_mode) end @@ -490,6 +631,9 @@ $(Expr(:toplevel, quote function GskDebugNode(_child::GskRenderNode, _message::Union{AbstractString, Symbol}) G_.DebugNode_new(_child, _message) end + function GskFillNode(_child::GskRenderNode, _path::GskPath, _fill_rule) + G_.FillNode_new(_child, _path, _fill_rule) + end function GskGLRenderer() G_.GLRenderer_new() end @@ -515,6 +659,9 @@ $(Expr(:toplevel, quote function GskMaskNode(_source::GskRenderNode, _mask::GskRenderNode, _mask_mode) G_.MaskNode_new(_source, _mask, _mask_mode) end + function GskNglRenderer() + G_.NglRenderer_new() + end function GskOpacityNode(_child::GskRenderNode, _opacity::Real) G_.OpacityNode_new(_child, _opacity) end @@ -544,6 +691,9 @@ $(Expr(:toplevel, quote function GskShadowNode(_child::GskRenderNode, _shadows) G_.ShadowNode_new(_child, _shadows) end + function GskStrokeNode(_child::GskRenderNode, _path::GskPath, _stroke::GskStroke) + G_.StrokeNode_new(_child, _path, _stroke) + end function GskTextNode(_font::PangoFont, _glyphs::Union{PangoGlyphString, Ref{_PangoGlyphString}}, _color::Union{GdkRGBA, Ref{_GdkRGBA}}, _offset::Union{GraphenePoint, Ref{_GraphenePoint}}) G_.TextNode_new(_font, _glyphs, _color, _offset) end @@ -556,9 +706,24 @@ $(Expr(:toplevel, quote function GskTransformNode(_child::GskRenderNode, _transform::GskTransform) G_.TransformNode_new(_child, _transform) end + function GskVulkanRenderer() + G_.VulkanRenderer_new() + end + function GskPathBuilder() + G_.PathBuilder_new() + end + function GskPathMeasure(_path::GskPath) + G_.PathMeasure_new(_path) + end + function GskPathMeasure(_path::GskPath, _tolerance::Real) + G_.PathMeasure_new_with_tolerance(_path, _tolerance) + end function GskShaderArgsBuilder(_shader::GskGLShader, _initial_values::Maybe(GBytes)) G_.ShaderArgsBuilder_new(_shader, _initial_values) end + function GskStroke(_line_width::Real) + G_.Stroke_new(_line_width) + end function GskTransform() G_.Transform_new() end @@ -574,6 +739,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.ContainerNode.html)." GskContainerNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.CrossFadeNode.html)." GskCrossFadeNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.DebugNode.html)." GskDebugNode + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.FillNode.html)." GskFillNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.GLShader.html)." GskGLShader @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.GLShaderNode.html)." GskGLShaderNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.InsetShadowNode.html)." GskInsetShadowNode @@ -589,10 +755,13 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.RepeatingRadialGradientNode.html)." GskRepeatingRadialGradientNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.RoundedClipNode.html)." GskRoundedClipNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.ShadowNode.html)." GskShadowNode + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.StrokeNode.html)." GskStrokeNode + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.SubsurfaceNode.html)." GskSubsurfaceNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.TextNode.html)." GskTextNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.TextureNode.html)." GskTextureNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.TextureScaleNode.html)." GskTextureScaleNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.TransformNode.html)." GskTransformNode - export GskColorStop, _GskColorStop, GskParseLocation, _GskParseLocation, GskRoundedRect, _GskRoundedRect, GskShaderArgsBuilder, GskShadow, _GskShadow, GskTransform, GskBlendNode, GskBlendNodeLeaf, GskBlurNode, GskBlurNodeLeaf, GskBorderNode, GskBorderNodeLeaf, GskBroadwayRenderer, GskBroadwayRendererLeaf, GskCairoNode, GskCairoNodeLeaf, GskCairoRenderer, GskCairoRendererLeaf, GskClipNode, GskClipNodeLeaf, GskColorMatrixNode, GskColorMatrixNodeLeaf, GskColorNode, GskColorNodeLeaf, GskConicGradientNode, GskConicGradientNodeLeaf, GskContainerNode, GskContainerNodeLeaf, GskCrossFadeNode, GskCrossFadeNodeLeaf, GskDebugNode, GskDebugNodeLeaf, GskGLRenderer, GskGLRendererLeaf, GskGLShader, GskGLShaderLeaf, GskGLShaderNode, GskGLShaderNodeLeaf, GskInsetShadowNode, GskInsetShadowNodeLeaf, GskLinearGradientNode, GskLinearGradientNodeLeaf, GskMaskNode, GskMaskNodeLeaf, GskNglRenderer, GskNglRendererLeaf, GskOpacityNode, GskOpacityNodeLeaf, GskOutsetShadowNode, GskOutsetShadowNodeLeaf, GskRadialGradientNode, GskRadialGradientNodeLeaf, GskRenderNode, GskRenderer, GskRepeatNode, GskRepeatNodeLeaf, GskRepeatingLinearGradientNode, GskRepeatingLinearGradientNodeLeaf, GskRepeatingRadialGradientNode, GskRepeatingRadialGradientNodeLeaf, GskRoundedClipNode, GskRoundedClipNodeLeaf, GskShadowNode, GskShadowNodeLeaf, GskTextNode, GskTextNodeLeaf, GskTextureNode, GskTextureNodeLeaf, GskTextureScaleNode, GskTextureScaleNodeLeaf, GskTransformNode, GskTransformNodeLeaf + @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.VulkanRenderer.html)." GskVulkanRenderer + export GskColorStop, _GskColorStop, GskParseLocation, _GskParseLocation, GskPath, GskPathBuilder, GskPathMeasure, GskPathPoint, GskRoundedRect, _GskRoundedRect, GskShaderArgsBuilder, GskShadow, _GskShadow, GskStroke, GskTransform, GskBlendNode, GskBlendNodeLeaf, GskBlurNode, GskBlurNodeLeaf, GskBorderNode, GskBorderNodeLeaf, GskBroadwayRenderer, GskBroadwayRendererLeaf, GskCairoNode, GskCairoNodeLeaf, GskCairoRenderer, GskCairoRendererLeaf, GskClipNode, GskClipNodeLeaf, GskColorMatrixNode, GskColorMatrixNodeLeaf, GskColorNode, GskColorNodeLeaf, GskConicGradientNode, GskConicGradientNodeLeaf, GskContainerNode, GskContainerNodeLeaf, GskCrossFadeNode, GskCrossFadeNodeLeaf, GskDebugNode, GskDebugNodeLeaf, GskFillNode, GskFillNodeLeaf, GskGLRenderer, GskGLRendererLeaf, GskGLShader, GskGLShaderLeaf, GskGLShaderNode, GskGLShaderNodeLeaf, GskInsetShadowNode, GskInsetShadowNodeLeaf, GskLinearGradientNode, GskLinearGradientNodeLeaf, GskMaskNode, GskMaskNodeLeaf, GskNglRenderer, GskNglRendererLeaf, GskOpacityNode, GskOpacityNodeLeaf, GskOutsetShadowNode, GskOutsetShadowNodeLeaf, GskRadialGradientNode, GskRadialGradientNodeLeaf, GskRenderNode, GskRenderer, GskRepeatNode, GskRepeatNodeLeaf, GskRepeatingLinearGradientNode, GskRepeatingLinearGradientNodeLeaf, GskRepeatingRadialGradientNode, GskRepeatingRadialGradientNodeLeaf, GskRoundedClipNode, GskRoundedClipNodeLeaf, GskShadowNode, GskShadowNodeLeaf, GskStrokeNode, GskStrokeNodeLeaf, GskSubsurfaceNode, GskSubsurfaceNodeLeaf, GskTextNode, GskTextNodeLeaf, GskTextureNode, GskTextureNodeLeaf, GskTextureScaleNode, GskTextureScaleNodeLeaf, GskTransformNode, GskTransformNodeLeaf, GskVulkanRenderer, GskVulkanRendererLeaf end)) end diff --git a/src/gen/gtk4_consts b/src/gen/gtk4_consts index 757b447f..d900c15d 100644 --- a/src/gen/gtk4_consts +++ b/src/gen/gtk4_consts @@ -1,11 +1,46 @@ quote $(Expr(:toplevel, quote begin + const ACCESSIBLE_ATTRIBUTE_BACKGROUND = "bg-color" + const ACCESSIBLE_ATTRIBUTE_FAMILY = "family-name" + const ACCESSIBLE_ATTRIBUTE_FOREGROUND = "fg-color" + const ACCESSIBLE_ATTRIBUTE_OVERLINE = "overline" + const ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE = "none" + const ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE = "single" + const ACCESSIBLE_ATTRIBUTE_SIZE = "size" + const ACCESSIBLE_ATTRIBUTE_STRETCH = "stretch" + const ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED = "condensed" + const ACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED = "expanded" + const ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED = "extra_condensed" + const ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED = "extra_expanded" + const ACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL = "normal" + const ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED = "semi_condensed" + const ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED = "semi_expanded" + const ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED = "ultra_condensed" + const ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_EXPANDED = "ultra_expanded" + const ACCESSIBLE_ATTRIBUTE_STRIKETHROUGH = "strikethrough" + const ACCESSIBLE_ATTRIBUTE_STYLE = "style" + const ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC = "italic" + const ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL = "normal" + const ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE = "oblique" + const ACCESSIBLE_ATTRIBUTE_UNDERLINE = "underline" + const ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE = "double" + const ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR = "error" + const ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE = "none" + const ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE = "single" + const ACCESSIBLE_ATTRIBUTE_VARIANT = "variant" + const ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS = "all-petite-caps" + const ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS = "all-small-caps" + const ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS = "petite-caps" + const ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS = "small-caps" + const ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS = "title-caps" + const ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE = "unicase" + const ACCESSIBLE_ATTRIBUTE_WEIGHT = "weight" const ACCESSIBLE_VALUE_UNDEFINED = -1 - const BINARY_AGE = 1205 + const BINARY_AGE = 1404 const IM_MODULE_EXTENSION_POINT_NAME = "gtk-im-module" const INPUT_ERROR = -1 - const INTERFACE_AGE = 5 + const INTERFACE_AGE = 4 const INVALID_LIST_POSITION = 0xffffffff const LEVEL_BAR_OFFSET_FULL = "full" const LEVEL_BAR_OFFSET_HIGH = "high" @@ -13,8 +48,8 @@ $(Expr(:toplevel, quote const MAJOR_VERSION = 4 const MAX_COMPOSE_LEN = 7 const MEDIA_FILE_EXTENSION_POINT_NAME = "gtk-media-file" - const MICRO_VERSION = 5 - const MINOR_VERSION = 12 + const MICRO_VERSION = 4 + const MINOR_VERSION = 14 const PAPER_NAME_A3 = "iso_a3" const PAPER_NAME_A4 = "iso_a4" const PAPER_NAME_A5 = "iso_a5" @@ -63,6 +98,12 @@ $(Expr(:toplevel, quote const TEXT_VIEW_PRIORITY_VALIDATE = 125 const TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID = -1 const TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = -2 + begin + @cenum AccessibleAnnouncementPriority::Int32 AccessibleAnnouncementPriority_LOW = 0 AccessibleAnnouncementPriority_MEDIUM = 1 AccessibleAnnouncementPriority_HIGH = 2 + (GLib.g_type(::Type{T}) where T <: AccessibleAnnouncementPriority) = begin + ccall(("gtk_accessible_announcement_priority_get_type", libgtk4), GType, ()) + end + end begin @cenum AccessibleAutocomplete::Int32 AccessibleAutocomplete_NONE = 0 AccessibleAutocomplete_INLINE = 1 AccessibleAutocomplete_LIST = 2 AccessibleAutocomplete_BOTH = 3 (GLib.g_type(::Type{T}) where T <: AccessibleAutocomplete) = begin @@ -94,7 +135,7 @@ $(Expr(:toplevel, quote end end begin - @cenum AccessibleRole::Int32 AccessibleRole_ALERT = 0 AccessibleRole_ALERT_DIALOG = 1 AccessibleRole_BANNER = 2 AccessibleRole_BUTTON = 3 AccessibleRole_CAPTION = 4 AccessibleRole_CELL = 5 AccessibleRole_CHECKBOX = 6 AccessibleRole_COLUMN_HEADER = 7 AccessibleRole_COMBO_BOX = 8 AccessibleRole_COMMAND = 9 AccessibleRole_COMPOSITE = 10 AccessibleRole_DIALOG = 11 AccessibleRole_DOCUMENT = 12 AccessibleRole_FEED = 13 AccessibleRole_FORM = 14 AccessibleRole_GENERIC = 15 AccessibleRole_GRID = 16 AccessibleRole_GRID_CELL = 17 AccessibleRole_GROUP = 18 AccessibleRole_HEADING = 19 AccessibleRole_IMG = 20 AccessibleRole_INPUT = 21 AccessibleRole_LABEL = 22 AccessibleRole_LANDMARK = 23 AccessibleRole_LEGEND = 24 AccessibleRole_LINK = 25 AccessibleRole_LIST = 26 AccessibleRole_LIST_BOX = 27 AccessibleRole_LIST_ITEM = 28 AccessibleRole_LOG = 29 AccessibleRole_MAIN = 30 AccessibleRole_MARQUEE = 31 AccessibleRole_MATH = 32 AccessibleRole_METER = 33 AccessibleRole_MENU = 34 AccessibleRole_MENU_BAR = 35 AccessibleRole_MENU_ITEM = 36 AccessibleRole_MENU_ITEM_CHECKBOX = 37 AccessibleRole_MENU_ITEM_RADIO = 38 AccessibleRole_NAVIGATION = 39 AccessibleRole_NONE = 40 AccessibleRole_NOTE = 41 AccessibleRole_OPTION = 42 AccessibleRole_PRESENTATION = 43 AccessibleRole_PROGRESS_BAR = 44 AccessibleRole_RADIO = 45 AccessibleRole_RADIO_GROUP = 46 AccessibleRole_RANGE = 47 AccessibleRole_REGION = 48 AccessibleRole_ROW = 49 AccessibleRole_ROW_GROUP = 50 AccessibleRole_ROW_HEADER = 51 AccessibleRole_SCROLLBAR = 52 AccessibleRole_SEARCH = 53 AccessibleRole_SEARCH_BOX = 54 AccessibleRole_SECTION = 55 AccessibleRole_SECTION_HEAD = 56 AccessibleRole_SELECT = 57 AccessibleRole_SEPARATOR = 58 AccessibleRole_SLIDER = 59 AccessibleRole_SPIN_BUTTON = 60 AccessibleRole_STATUS = 61 AccessibleRole_STRUCTURE = 62 AccessibleRole_SWITCH = 63 AccessibleRole_TAB = 64 AccessibleRole_TABLE = 65 AccessibleRole_TAB_LIST = 66 AccessibleRole_TAB_PANEL = 67 AccessibleRole_TEXT_BOX = 68 AccessibleRole_TIME = 69 AccessibleRole_TIMER = 70 AccessibleRole_TOOLBAR = 71 AccessibleRole_TOOLTIP = 72 AccessibleRole_TREE = 73 AccessibleRole_TREE_GRID = 74 AccessibleRole_TREE_ITEM = 75 AccessibleRole_WIDGET = 76 AccessibleRole_WINDOW = 77 AccessibleRole_TOGGLE_BUTTON = 78 AccessibleRole_APPLICATION = 79 + @cenum AccessibleRole::Int32 AccessibleRole_ALERT = 0 AccessibleRole_ALERT_DIALOG = 1 AccessibleRole_BANNER = 2 AccessibleRole_BUTTON = 3 AccessibleRole_CAPTION = 4 AccessibleRole_CELL = 5 AccessibleRole_CHECKBOX = 6 AccessibleRole_COLUMN_HEADER = 7 AccessibleRole_COMBO_BOX = 8 AccessibleRole_COMMAND = 9 AccessibleRole_COMPOSITE = 10 AccessibleRole_DIALOG = 11 AccessibleRole_DOCUMENT = 12 AccessibleRole_FEED = 13 AccessibleRole_FORM = 14 AccessibleRole_GENERIC = 15 AccessibleRole_GRID = 16 AccessibleRole_GRID_CELL = 17 AccessibleRole_GROUP = 18 AccessibleRole_HEADING = 19 AccessibleRole_IMG = 20 AccessibleRole_INPUT = 21 AccessibleRole_LABEL = 22 AccessibleRole_LANDMARK = 23 AccessibleRole_LEGEND = 24 AccessibleRole_LINK = 25 AccessibleRole_LIST = 26 AccessibleRole_LIST_BOX = 27 AccessibleRole_LIST_ITEM = 28 AccessibleRole_LOG = 29 AccessibleRole_MAIN = 30 AccessibleRole_MARQUEE = 31 AccessibleRole_MATH = 32 AccessibleRole_METER = 33 AccessibleRole_MENU = 34 AccessibleRole_MENU_BAR = 35 AccessibleRole_MENU_ITEM = 36 AccessibleRole_MENU_ITEM_CHECKBOX = 37 AccessibleRole_MENU_ITEM_RADIO = 38 AccessibleRole_NAVIGATION = 39 AccessibleRole_NONE = 40 AccessibleRole_NOTE = 41 AccessibleRole_OPTION = 42 AccessibleRole_PRESENTATION = 43 AccessibleRole_PROGRESS_BAR = 44 AccessibleRole_RADIO = 45 AccessibleRole_RADIO_GROUP = 46 AccessibleRole_RANGE = 47 AccessibleRole_REGION = 48 AccessibleRole_ROW = 49 AccessibleRole_ROW_GROUP = 50 AccessibleRole_ROW_HEADER = 51 AccessibleRole_SCROLLBAR = 52 AccessibleRole_SEARCH = 53 AccessibleRole_SEARCH_BOX = 54 AccessibleRole_SECTION = 55 AccessibleRole_SECTION_HEAD = 56 AccessibleRole_SELECT = 57 AccessibleRole_SEPARATOR = 58 AccessibleRole_SLIDER = 59 AccessibleRole_SPIN_BUTTON = 60 AccessibleRole_STATUS = 61 AccessibleRole_STRUCTURE = 62 AccessibleRole_SWITCH = 63 AccessibleRole_TAB = 64 AccessibleRole_TABLE = 65 AccessibleRole_TAB_LIST = 66 AccessibleRole_TAB_PANEL = 67 AccessibleRole_TEXT_BOX = 68 AccessibleRole_TIME = 69 AccessibleRole_TIMER = 70 AccessibleRole_TOOLBAR = 71 AccessibleRole_TOOLTIP = 72 AccessibleRole_TREE = 73 AccessibleRole_TREE_GRID = 74 AccessibleRole_TREE_ITEM = 75 AccessibleRole_WIDGET = 76 AccessibleRole_WINDOW = 77 AccessibleRole_TOGGLE_BUTTON = 78 AccessibleRole_APPLICATION = 79 AccessibleRole_PARAGRAPH = 80 AccessibleRole_BLOCK_QUOTE = 81 AccessibleRole_ARTICLE = 82 AccessibleRole_COMMENT = 83 AccessibleRole_TERMINAL = 84 (GLib.g_type(::Type{T}) where T <: AccessibleRole) = begin ccall(("gtk_accessible_role_get_type", libgtk4), GType, ()) end @@ -111,6 +152,18 @@ $(Expr(:toplevel, quote ccall(("gtk_accessible_state_get_type", libgtk4), GType, ()) end end + begin + @cenum AccessibleTextContentChange::Int32 AccessibleTextContentChange_INSERT = 0 AccessibleTextContentChange_REMOVE = 1 + (GLib.g_type(::Type{T}) where T <: AccessibleTextContentChange) = begin + ccall(("gtk_accessible_text_content_change_get_type", libgtk4), GType, ()) + end + end + begin + @cenum AccessibleTextGranularity::Int32 AccessibleTextGranularity_CHARACTER = 0 AccessibleTextGranularity_WORD = 1 AccessibleTextGranularity_SENTENCE = 2 AccessibleTextGranularity_LINE = 3 AccessibleTextGranularity_PARAGRAPH = 4 + (GLib.g_type(::Type{T}) where T <: AccessibleTextGranularity) = begin + ccall(("gtk_accessible_text_granularity_get_type", libgtk4), GType, ()) + end + end begin @cenum AccessibleTristate::Int32 AccessibleTristate_FALSE = 0 AccessibleTristate_TRUE = 1 AccessibleTristate_MIXED = 2 (GLib.g_type(::Type{T}) where T <: AccessibleTristate) = begin @@ -281,6 +334,12 @@ $(Expr(:toplevel, quote ccall(("gtk_font_level_get_type", libgtk4), GType, ()) end end + begin + @cenum GraphicsOffloadEnabled::Int32 GraphicsOffloadEnabled_ENABLED = 0 GraphicsOffloadEnabled_DISABLED = 1 + (GLib.g_type(::Type{T}) where T <: GraphicsOffloadEnabled) = begin + ccall(("gtk_graphics_offload_enabled_get_type", libgtk4), GType, ()) + end + end begin @cenum IconSize::Int32 IconSize_INHERIT = 0 IconSize_NORMAL = 1 IconSize_LARGE = 2 (GLib.g_type(::Type{T}) where T <: IconSize) = begin @@ -330,7 +389,7 @@ $(Expr(:toplevel, quote end end begin - @cenum License::Int32 License_UNKNOWN = 0 License_CUSTOM = 1 License_GPL_2_0 = 2 License_GPL_3_0 = 3 License_LGPL_2_1 = 4 License_LGPL_3_0 = 5 License_BSD = 6 License_MIT_X11 = 7 License_ARTISTIC = 8 License_GPL_2_0_ONLY = 9 License_GPL_3_0_ONLY = 10 License_LGPL_2_1_ONLY = 11 License_LGPL_3_0_ONLY = 12 License_AGPL_3_0 = 13 License_AGPL_3_0_ONLY = 14 License_BSD_3 = 15 License_APACHE_2_0 = 16 License_MPL_2_0 = 17 + @cenum License::Int32 License_UNKNOWN = 0 License_CUSTOM = 1 License_GPL_2_0 = 2 License_GPL_3_0 = 3 License_LGPL_2_1 = 4 License_LGPL_3_0 = 5 License_BSD = 6 License_MIT_X11 = 7 License_ARTISTIC = 8 License_GPL_2_0_ONLY = 9 License_GPL_3_0_ONLY = 10 License_LGPL_2_1_ONLY = 11 License_LGPL_3_0_ONLY = 12 License_AGPL_3_0 = 13 License_AGPL_3_0_ONLY = 14 License_BSD_3 = 15 License_APACHE_2_0 = 16 License_MPL_2_0 = 17 License_0BSD = 18 (GLib.g_type(::Type{T}) where T <: License) = begin ccall(("gtk_license_get_type", libgtk4), GType, ()) end @@ -732,7 +791,7 @@ $(Expr(:toplevel, quote end end begin - @bitflag PopoverMenuFlags::UInt32 PopoverMenuFlags_NESTED = 1 PopoverMenuFlags_NONE = 0 + @bitflag PopoverMenuFlags::UInt32 PopoverMenuFlags_SLIDING = 0 PopoverMenuFlags_NESTED = 1 (GLib.g_type(::Type{T}) where T <: PopoverMenuFlags) = begin ccall(("gtk_popover_menu_flags_get_type", libgtk4), GType, ()) end @@ -767,12 +826,41 @@ $(Expr(:toplevel, quote ccall(("gtk_text_search_flags_get_type", libgtk4), GType, ()) end end - begin - @bitflag TreeModelFlags::UInt32 TreeModelFlags_ITERS_PERSIST = 1 TreeModelFlags_LIST_ONLY = 2 TreeModelFlags_NONE = 0 - (GLib.g_type(::Type{T}) where T <: TreeModelFlags) = begin - ccall(("gtk_tree_model_flags_get_type", libgtk4), GType, ()) - end - end + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_BACKGROUND.html)." ACCESSIBLE_ATTRIBUTE_BACKGROUND + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_FAMILY.html)." ACCESSIBLE_ATTRIBUTE_FAMILY + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_FOREGROUND.html)." ACCESSIBLE_ATTRIBUTE_FOREGROUND + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_OVERLINE.html)." ACCESSIBLE_ATTRIBUTE_OVERLINE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE.html)." ACCESSIBLE_ATTRIBUTE_OVERLINE_NONE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE.html)." ACCESSIBLE_ATTRIBUTE_OVERLINE_SINGLE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_SIZE.html)." ACCESSIBLE_ATTRIBUTE_SIZE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRETCH.html)." ACCESSIBLE_ATTRIBUTE_STRETCH + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED.html)." ACCESSIBLE_ATTRIBUTE_STRETCH_CONDENSED + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED.html)." ACCESSIBLE_ATTRIBUTE_STRETCH_EXPANDED + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED.html)." ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_CONDENSED + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED.html)." ACCESSIBLE_ATTRIBUTE_STRETCH_EXTRA_EXPANDED + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL.html)." ACCESSIBLE_ATTRIBUTE_STRETCH_NORMAL + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED.html)." ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_CONDENSED + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED.html)." ACCESSIBLE_ATTRIBUTE_STRETCH_SEMI_EXPANDED + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED.html)." ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_CONDENSED + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_EXPANDED.html)." ACCESSIBLE_ATTRIBUTE_STRETCH_ULTRA_EXPANDED + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STRIKETHROUGH.html)." ACCESSIBLE_ATTRIBUTE_STRIKETHROUGH + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STYLE.html)." ACCESSIBLE_ATTRIBUTE_STYLE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC.html)." ACCESSIBLE_ATTRIBUTE_STYLE_ITALIC + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL.html)." ACCESSIBLE_ATTRIBUTE_STYLE_NORMAL + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE.html)." ACCESSIBLE_ATTRIBUTE_STYLE_OBLIQUE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_UNDERLINE.html)." ACCESSIBLE_ATTRIBUTE_UNDERLINE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE.html)." ACCESSIBLE_ATTRIBUTE_UNDERLINE_DOUBLE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR.html)." ACCESSIBLE_ATTRIBUTE_UNDERLINE_ERROR + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE.html)." ACCESSIBLE_ATTRIBUTE_UNDERLINE_NONE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE.html)." ACCESSIBLE_ATTRIBUTE_UNDERLINE_SINGLE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_VARIANT.html)." ACCESSIBLE_ATTRIBUTE_VARIANT + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS.html)." ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_PETITE_CAPS + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS.html)." ACCESSIBLE_ATTRIBUTE_VARIANT_ALL_SMALL_CAPS + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS.html)." ACCESSIBLE_ATTRIBUTE_VARIANT_PETITE_CAPS + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS.html)." ACCESSIBLE_ATTRIBUTE_VARIANT_SMALL_CAPS + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS.html)." ACCESSIBLE_ATTRIBUTE_VARIANT_TITLE_CAPS + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE.html)." ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_ATTRIBUTE_WEIGHT.html)." ACCESSIBLE_ATTRIBUTE_WEIGHT @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.ACCESSIBLE_VALUE_UNDEFINED.html)." ACCESSIBLE_VALUE_UNDEFINED @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.BINARY_AGE.html)." BINARY_AGE @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.INPUT_ERROR.html)." INPUT_ERROR @@ -804,6 +892,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.TEXT_VIEW_PRIORITY_VALIDATE.html)." TEXT_VIEW_PRIORITY_VALIDATE @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID.html)." TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID @doc "See the [GTK docs](https://docs.gtk.org/gtk4/const.TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID.html)." TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.AccessibleAnnouncementPriority.html)." AccessibleAnnouncementPriority @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.AccessibleAutocomplete.html)." AccessibleAutocomplete @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.AccessibleInvalidState.html)." AccessibleInvalidState @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.AccessiblePlatformState.html)." AccessiblePlatformState @@ -812,6 +901,8 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.AccessibleRole.html)." AccessibleRole @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.AccessibleSort.html)." AccessibleSort @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.AccessibleState.html)." AccessibleState + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.AccessibleTextContentChange.html)." AccessibleTextContentChange + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.AccessibleTextGranularity.html)." AccessibleTextGranularity @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.AccessibleTristate.html)." AccessibleTristate @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.Align.html)." Align @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.ArrowType.html)." ArrowType @@ -842,6 +933,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.FilterChange.html)." FilterChange @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.FilterMatch.html)." FilterMatch @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.FontLevel.html)." FontLevel + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.GraphicsOffloadEnabled.html)." GraphicsOffloadEnabled @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.IconSize.html)." IconSize @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.IconThemeError.html)." IconThemeError @doc "See the [GTK docs](https://docs.gtk.org/gtk4/enum.IconViewDropPosition.html)." IconViewDropPosition @@ -923,8 +1015,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gtk4/flags.StateFlags.html)." StateFlags @doc "See the [GTK docs](https://docs.gtk.org/gtk4/flags.StyleContextPrintFlags.html)." StyleContextPrintFlags @doc "See the [GTK docs](https://docs.gtk.org/gtk4/flags.TextSearchFlags.html)." TextSearchFlags - @doc "See the [GTK docs](https://docs.gtk.org/gtk4/flags.TreeModelFlags.html)." TreeModelFlags - export AccessibleAutocomplete, AccessibleInvalidState, AccessiblePlatformState, AccessibleProperty, AccessibleRelation, AccessibleRole, AccessibleSort, AccessibleState, AccessibleTristate, Align, ArrowType, AssistantPageType, BaselinePosition, BorderStyle, BuilderError, ButtonsType, CellRendererAccelMode, CellRendererMode, Collation, ConstraintAttribute, ConstraintRelation, ConstraintStrength, ConstraintVflParserError, ContentFit, CornerType, CssParserError, CssParserWarning, DeleteType, DialogError, DirectionType, EditableProperties, EntryIconPosition, EventSequenceState, FileChooserAction, FileChooserError, FilterChange, FilterMatch, FontLevel, IconSize, IconThemeError, IconViewDropPosition, ImageType, InputPurpose, InscriptionOverflow, Justification, LevelBarMode, License, ListTabBehavior, MessageType, MovementStep, NaturalWrapMode, NotebookTab, NumberUpLayout, Ordering, Orientation, Overflow, PackType, PadActionType, PageOrientation, PageSet, PanDirection, PolicyType, PositionType, PrintDuplex, PrintError, PrintOperationAction, PrintOperationResult, PrintPages, PrintQuality, PrintStatus, PropagationLimit, PropagationPhase, RecentManagerError, ResponseType, RevealerTransitionType, ScrollStep, ScrollType, ScrollablePolicy, SelectionMode, SensitivityType, ShortcutScope, ShortcutType, SizeGroupMode, SizeRequestMode, SortType, SorterChange, SorterOrder, SpinButtonUpdatePolicy, SpinType, StackTransitionType, StringFilterMatchMode, SymbolicColor, SystemSetting, TextDirection, TextExtendSelection, TextViewLayer, TextWindowType, TreeViewColumnSizing, TreeViewDropPosition, TreeViewGridLines, Unit, WrapMode, ApplicationInhibitFlags, BuilderClosureFlags, CellRendererState, DebugFlags, DialogFlags, EventControllerScrollFlags, FontChooserLevel, IconLookupFlags, InputHints, ListScrollFlags, PickFlags, PopoverMenuFlags, PrintCapabilities, ShortcutActionFlags, StateFlags, StyleContextPrintFlags, TextSearchFlags, TreeModelFlags + export AccessibleAnnouncementPriority, AccessibleAutocomplete, AccessibleInvalidState, AccessiblePlatformState, AccessibleProperty, AccessibleRelation, AccessibleRole, AccessibleSort, AccessibleState, AccessibleTextContentChange, AccessibleTextGranularity, AccessibleTristate, Align, ArrowType, AssistantPageType, BaselinePosition, BorderStyle, BuilderError, ButtonsType, CellRendererAccelMode, CellRendererMode, Collation, ConstraintAttribute, ConstraintRelation, ConstraintStrength, ConstraintVflParserError, ContentFit, CornerType, CssParserError, CssParserWarning, DeleteType, DialogError, DirectionType, EditableProperties, EntryIconPosition, EventSequenceState, FileChooserAction, FileChooserError, FilterChange, FilterMatch, FontLevel, GraphicsOffloadEnabled, IconSize, IconThemeError, IconViewDropPosition, ImageType, InputPurpose, InscriptionOverflow, Justification, LevelBarMode, License, ListTabBehavior, MessageType, MovementStep, NaturalWrapMode, NotebookTab, NumberUpLayout, Ordering, Orientation, Overflow, PackType, PadActionType, PageOrientation, PageSet, PanDirection, PolicyType, PositionType, PrintDuplex, PrintError, PrintOperationAction, PrintOperationResult, PrintPages, PrintQuality, PrintStatus, PropagationLimit, PropagationPhase, RecentManagerError, ResponseType, RevealerTransitionType, ScrollStep, ScrollType, ScrollablePolicy, SelectionMode, SensitivityType, ShortcutScope, ShortcutType, SizeGroupMode, SizeRequestMode, SortType, SorterChange, SorterOrder, SpinButtonUpdatePolicy, SpinType, StackTransitionType, StringFilterMatchMode, SymbolicColor, SystemSetting, TextDirection, TextExtendSelection, TextViewLayer, TextWindowType, TreeViewColumnSizing, TreeViewDropPosition, TreeViewGridLines, Unit, WrapMode, ApplicationInhibitFlags, BuilderClosureFlags, CellRendererState, DebugFlags, DialogFlags, EventControllerScrollFlags, FontChooserLevel, IconLookupFlags, InputHints, ListScrollFlags, PickFlags, PopoverMenuFlags, PrintCapabilities, ShortcutActionFlags, StateFlags, StyleContextPrintFlags, TextSearchFlags end end)) end diff --git a/src/gen/gtk4_methods b/src/gen/gtk4_methods index 37e6635f..8386ad0b 100644 --- a/src/gen/gtk4_methods +++ b/src/gen/gtk4_methods @@ -1,5 +1,22 @@ quote $(Expr(:toplevel, quote + function AccessibleList_new_from_array(_accessibles) + _accessibles_arr = convert(Vector{Ptr{GObject}}, _accessibles) + _n_accessibles = length(_accessibles) + ret = ccall(("gtk_accessible_list_new_from_array", libgtk4), Ptr{GtkAccessibleList}, (Ptr{Ptr{GObject}}, UInt64), _accessibles_arr, _n_accessibles) + ret2 = convert(GtkAccessibleList, ret, true) + ret2 + end + function AccessibleList_new_from_list(_list::GLib.LList{GLib._GList{Ptr{GObject}}}) + ret = ccall(("gtk_accessible_list_new_from_list", libgtk4), Ptr{GtkAccessibleList}, (Ptr{GLib._GList{Ptr{GObject}}},), _list) + ret2 = convert(GtkAccessibleList, ret, true) + ret2 + end + function get_objects(instance::GtkAccessibleList) + ret = ccall(("gtk_accessible_list_get_objects", libgtk4), Ptr{GLib._GList{Ptr{GObject}}}, (Ptr{GtkAccessibleList},), instance) + ret2 = GLib.GList(ret, false) + ret2 + end function Border_new() ret = ccall(("gtk_border_new", libgtk4), Ptr{_GtkBorder}, ()) ret2 = convert(Union{GtkBorder, Ref{_GtkBorder}}, ret, true) @@ -142,6 +159,25 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_paper_size_to_key_file", libgtk4), Nothing, (Ptr{GtkPaperSize}, Ptr{GKeyFile}, Cstring), instance, _key_file, _group_name) nothing end + function get_page_setup(instance::GtkPrintSetup) + ret = ccall(("gtk_print_setup_get_page_setup", libgtk4), Ptr{GObject}, (Ptr{GtkPrintSetup},), instance) + ret2 = convert_if_not_null(GtkPageSetup, ret, false) + ret2 + end + function get_print_settings(instance::GtkPrintSetup) + ret = ccall(("gtk_print_setup_get_print_settings", libgtk4), Ptr{GObject}, (Ptr{GtkPrintSetup},), instance) + ret2 = convert_if_not_null(GtkPrintSettings, ret, false) + ret2 + end + function ref(instance::GtkPrintSetup) + ret = ccall(("gtk_print_setup_ref", libgtk4), Ptr{GtkPrintSetup}, (Ptr{GtkPrintSetup},), instance) + ret2 = convert(GtkPrintSetup, ret, true) + ret2 + end + function unref(instance::GtkPrintSetup) + ret = ccall(("gtk_print_setup_unref", libgtk4), Nothing, (Ptr{GtkPrintSetup},), instance) + nothing + end function create_app_info(instance::GtkRecentInfo, _app_name::Maybe(Union{AbstractString, Symbol})) _app_name_maybe = nothing_to_null(_app_name) err = err_buf() @@ -620,6 +656,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_about_dialog_set_wrap_license", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _wrap_license) nothing end + function announce(instance::GtkAboutDialog, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkAboutDialog) get_accessible_parent(GtkAccessible(instance)) end @@ -728,6 +767,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_action_bar_set_revealed", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _revealed) nothing end + function announce(instance::GtkActionBar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkActionBar) get_accessible_parent(GtkAccessible(instance)) end @@ -1011,6 +1053,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_app_chooser_button_set_show_dialog_item", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _setting) nothing end + function announce(instance::GtkAppChooserButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkAppChooserButton) get_accessible_parent(GtkAccessible(instance)) end @@ -1094,6 +1139,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_app_chooser_dialog_set_heading", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _heading) nothing end + function announce(instance::GtkAppChooserDialog, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkAppChooserDialog) get_accessible_parent(GtkAccessible(instance)) end @@ -1234,6 +1282,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_app_chooser_widget_set_show_recommended", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _setting) nothing end + function announce(instance::GtkAppChooserWidget, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkAppChooserWidget) get_accessible_parent(GtkAccessible(instance)) end @@ -1521,6 +1572,9 @@ $(Expr(:toplevel, quote function remove_action_entries(instance::GtkApplicationWindow, _entries) remove_action_entries(GActionMap(instance), _entries) end + function announce(instance::GtkApplicationWindow, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkApplicationWindow) get_accessible_parent(GtkAccessible(instance)) end @@ -1641,6 +1695,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_aspect_frame_set_yalign", libgtk4), Nothing, (Ptr{GObject}, Float32), instance, _yalign) nothing end + function announce(instance::GtkAspectFrame, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkAspectFrame) get_accessible_parent(GtkAccessible(instance)) end @@ -1791,6 +1848,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_assistant_update_buttons_state", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkAssistant, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkAssistant) get_accessible_parent(GtkAccessible(instance)) end @@ -2006,6 +2066,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_box_set_spacing", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _spacing) nothing end + function announce(instance::GtkBox, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkBox) get_accessible_parent(GtkAccessible(instance)) end @@ -2350,6 +2413,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_button_set_use_underline", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_underline) nothing end + function announce(instance::GtkButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkButton) get_accessible_parent(GtkAccessible(instance)) end @@ -2427,11 +2493,19 @@ $(Expr(:toplevel, quote ret2 = convert(GDateTime, ret, true) ret2 end + function get_day(instance::GtkCalendar) + ret = ccall(("gtk_calendar_get_day", libgtk4), Int32, (Ptr{GObject},), instance) + ret + end function get_day_is_marked(instance::GtkCalendar, _day::Integer) ret = ccall(("gtk_calendar_get_day_is_marked", libgtk4), Cint, (Ptr{GObject}, UInt32), instance, _day) ret2 = convert(Bool, ret) ret2 end + function get_month(instance::GtkCalendar) + ret = ccall(("gtk_calendar_get_month", libgtk4), Int32, (Ptr{GObject},), instance) + ret + end function get_show_day_names(instance::GtkCalendar) ret = ccall(("gtk_calendar_get_show_day_names", libgtk4), Cint, (Ptr{GObject},), instance) ret2 = convert(Bool, ret) @@ -2447,6 +2521,10 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function get_year(instance::GtkCalendar) + ret = ccall(("gtk_calendar_get_year", libgtk4), Int32, (Ptr{GObject},), instance) + ret + end function mark_day(instance::GtkCalendar, _day::Integer) ret = ccall(("gtk_calendar_mark_day", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _day) nothing @@ -2455,6 +2533,14 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_calendar_select_day", libgtk4), Nothing, (Ptr{GObject}, Ptr{GDateTime}), instance, _date) nothing end + function set_day(instance::GtkCalendar, _day::Integer) + ret = ccall(("gtk_calendar_set_day", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _day) + nothing + end + function set_month(instance::GtkCalendar, _month::Integer) + ret = ccall(("gtk_calendar_set_month", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _month) + nothing + end function set_show_day_names(instance::GtkCalendar, _value::Bool) ret = ccall(("gtk_calendar_set_show_day_names", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _value) nothing @@ -2467,10 +2553,17 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_calendar_set_show_week_numbers", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _value) nothing end + function set_year(instance::GtkCalendar, _year::Integer) + ret = ccall(("gtk_calendar_set_year", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _year) + nothing + end function unmark_day(instance::GtkCalendar, _day::Integer) ret = ccall(("gtk_calendar_unmark_day", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _day) nothing end + function announce(instance::GtkCalendar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkCalendar) get_accessible_parent(GtkAccessible(instance)) end @@ -3005,6 +3098,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_cell_view_set_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function announce(instance::GtkCellView, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkCellView) get_accessible_parent(GtkAccessible(instance)) end @@ -3139,6 +3235,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_center_box_set_start_widget", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child_maybe) nothing end + function announce(instance::GtkCenterBox, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkCenterBox) get_accessible_parent(GtkAccessible(instance)) end @@ -3324,6 +3423,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_check_button_set_use_underline", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _setting) nothing end + function announce(instance::GtkCheckButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkCheckButton) get_accessible_parent(GtkAccessible(instance)) end @@ -3415,6 +3517,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_color_button_set_title", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _title) nothing end + function announce(instance::GtkColorButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkColorButton) get_accessible_parent(GtkAccessible(instance)) end @@ -3485,6 +3590,9 @@ $(Expr(:toplevel, quote ret2 = GtkColorChooserDialogLeaf(ret, false) ret2 end + function announce(instance::GtkColorChooserDialog, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkColorChooserDialog) get_accessible_parent(GtkAccessible(instance)) end @@ -3577,6 +3685,9 @@ $(Expr(:toplevel, quote ret2 = GtkColorChooserWidgetLeaf(ret, false) ret2 end + function announce(instance::GtkColorChooserWidget, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkColorChooserWidget) get_accessible_parent(GtkAccessible(instance)) end @@ -3722,6 +3833,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_color_dialog_button_set_rgba", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GdkRGBA}), instance, _color) nothing end + function announce(instance::GtkColorDialogButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkColorDialogButton) get_accessible_parent(GtkAccessible(instance)) end @@ -3901,6 +4015,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_column_view_sort_by_column", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, UInt32), instance, _column_maybe, _direction) nothing end + function announce(instance::GtkColumnView, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkColumnView) get_accessible_parent(GtkAccessible(instance)) end @@ -4314,6 +4431,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_combo_box_set_popup_fixed_width", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _fixed) nothing end + function announce(instance::GtkComboBox, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkComboBox) get_accessible_parent(GtkAccessible(instance)) end @@ -4448,6 +4568,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_combo_box_text_remove_all", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkComboBoxText, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkComboBoxText) get_accessible_parent(GtkAccessible(instance)) end @@ -4805,6 +4928,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_dialog_set_response_sensitive", libgtk4), Nothing, (Ptr{GObject}, Int32, Cint), instance, _response_id, _setting) nothing end + function announce(instance::GtkDialog, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkDialog) get_accessible_parent(GtkAccessible(instance)) end @@ -4966,6 +5092,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_drag_icon_set_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child_maybe) nothing end + function announce(instance::GtkDragIcon, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkDragIcon) get_accessible_parent(GtkAccessible(instance)) end @@ -5097,6 +5226,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_drawing_area_set_content_width", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _width) nothing end + function announce(instance::GtkDrawingArea, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkDrawingArea) get_accessible_parent(GtkAccessible(instance)) end @@ -5272,6 +5404,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_drop_down_set_show_arrow", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _show_arrow) nothing end + function announce(instance::GtkDropDown, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkDropDown) get_accessible_parent(GtkAccessible(instance)) end @@ -5423,6 +5558,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_editable_label_stop_editing", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _commit) nothing end + function announce(instance::GtkEditableLabel, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkEditableLabel) get_accessible_parent(GtkAccessible(instance)) end @@ -5548,6 +5686,9 @@ $(Expr(:toplevel, quote ret2 = GtkEmojiChooserLeaf(ret, false) ret2 end + function announce(instance::GtkEmojiChooser, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkEmojiChooser) get_accessible_parent(GtkAccessible(instance)) end @@ -5885,6 +6026,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_entry_unset_invisible_char", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkEntry, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkEntry) get_accessible_parent(GtkAccessible(instance)) end @@ -6421,6 +6565,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_expander_set_use_underline", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_underline) nothing end + function announce(instance::GtkExpander, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkExpander) get_accessible_parent(GtkAccessible(instance)) end @@ -6499,6 +6646,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_expression_unref", libgtk4), Nothing, (Ptr{GtkExpression},), instance) nothing end + function announce(instance::GtkFileChooserDialog, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkFileChooserDialog) get_accessible_parent(GtkAccessible(instance)) end @@ -6755,6 +6905,9 @@ $(Expr(:toplevel, quote ret2 = GtkFileChooserWidgetLeaf(ret, false) ret2 end + function announce(instance::GtkFileChooserWidget, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkFileChooserWidget) get_accessible_parent(GtkAccessible(instance)) end @@ -7130,6 +7283,11 @@ $(Expr(:toplevel, quote ret2 = GLib.find_leaf_type_if_not_null(ret, false) ret2 end + function get_writable(instance::GtkFileLauncher) + ret = ccall(("gtk_file_launcher_get_writable", libgtk4), Cint, (Ptr{GObject},), instance) + ret2 = convert(Bool, ret) + ret2 + end function launch(instance::GtkFileLauncher, _parent::Maybe(GtkWindow), _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) _parent_maybe = nothing_to_null(_parent) _cancellable_maybe = nothing_to_null(_cancellable) @@ -7179,6 +7337,10 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_file_launcher_set_file", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _file_maybe) nothing end + function set_writable(instance::GtkFileLauncher, _writable::Bool) + ret = ccall(("gtk_file_launcher_set_writable", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _writable) + nothing + end function changed(instance::GtkFilter, _change) ret = ccall(("gtk_filter_changed", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _change) nothing @@ -7296,6 +7458,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_fixed_set_child_transform", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Ptr{GskTransform}), instance, _widget, _transform_maybe) nothing end + function announce(instance::GtkFixed, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkFixed) get_accessible_parent(GtkAccessible(instance)) end @@ -7544,6 +7709,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_flow_box_unselect_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child) nothing end + function announce(instance::GtkFlowBox, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkFlowBox) get_accessible_parent(GtkAccessible(instance)) end @@ -7626,6 +7794,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_flow_box_child_set_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child_maybe) nothing end + function announce(instance::GtkFlowBoxChild, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkFlowBoxChild) get_accessible_parent(GtkAccessible(instance)) end @@ -7720,6 +7891,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_font_button_set_use_size", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_size) nothing end + function announce(instance::GtkFontButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkFontButton) get_accessible_parent(GtkAccessible(instance)) end @@ -7832,6 +8006,9 @@ $(Expr(:toplevel, quote ret2 = GtkFontChooserDialogLeaf(ret, false) ret2 end + function announce(instance::GtkFontChooserDialog, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkFontChooserDialog) get_accessible_parent(GtkAccessible(instance)) end @@ -7966,6 +8143,9 @@ $(Expr(:toplevel, quote ret2 = GtkFontChooserWidgetLeaf(ret, false) ret2 end + function announce(instance::GtkFontChooserWidget, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkFontChooserWidget) get_accessible_parent(GtkAccessible(instance)) end @@ -8292,6 +8472,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_font_dialog_button_set_use_size", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_size) nothing end + function announce(instance::GtkFontDialogButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkFontDialogButton) get_accessible_parent(GtkAccessible(instance)) end @@ -8384,6 +8567,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_frame_set_label_widget", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _label_widget_maybe) nothing end + function announce(instance::GtkFrame, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkFrame) get_accessible_parent(GtkAccessible(instance)) end @@ -8525,6 +8711,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_gl_area_set_use_es", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_es) nothing end + function announce(instance::GtkGLArea, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkGLArea) get_accessible_parent(GtkAccessible(instance)) end @@ -8817,6 +9006,82 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_gesture_zoom_get_scale_delta", libgtk4), Float64, (Ptr{GObject},), instance) ret end + function GraphicsOffload_new(_child::Maybe(GtkWidget)) + _child_maybe = nothing_to_null(_child) + ret = ccall(("gtk_graphics_offload_new", libgtk4), Ptr{GObject}, (Ptr{GObject},), _child_maybe) + ret2 = GtkGraphicsOffloadLeaf(ret, false) + ret2 + end + function get_child(instance::GtkGraphicsOffload) + ret = ccall(("gtk_graphics_offload_get_child", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) + ret2 = convert_if_not_null(GtkWidget, ret, false) + ret2 + end + function get_enabled(instance::GtkGraphicsOffload) + ret = ccall(("gtk_graphics_offload_get_enabled", libgtk4), UInt32, (Ptr{GObject},), instance) + ret2 = GraphicsOffloadEnabled(ret) + ret2 + end + function set_child(instance::GtkGraphicsOffload, _child::Maybe(GtkWidget)) + _child_maybe = nothing_to_null(_child) + ret = ccall(("gtk_graphics_offload_set_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child_maybe) + nothing + end + function set_enabled(instance::GtkGraphicsOffload, _enabled) + ret = ccall(("gtk_graphics_offload_set_enabled", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _enabled) + nothing + end + function announce(instance::GtkGraphicsOffload, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end + function get_accessible_parent(instance::GtkGraphicsOffload) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkGraphicsOffload) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkGraphicsOffload) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkGraphicsOffload) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkGraphicsOffload) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkGraphicsOffload) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkGraphicsOffload, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkGraphicsOffload, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkGraphicsOffload, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkGraphicsOffload, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkGraphicsOffload, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkGraphicsOffload, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkGraphicsOffload, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkGraphicsOffload, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkGraphicsOffload, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkGraphicsOffload) + get_buildable_id(GtkBuildable(instance)) + end function Grid_new() ret = ccall(("gtk_grid_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkGridLeaf(ret, false) @@ -8923,6 +9188,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_grid_set_row_spacing", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _spacing) nothing end + function announce(instance::GtkGrid, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkGrid) get_accessible_parent(GtkAccessible(instance)) end @@ -9150,6 +9418,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_grid_view_set_tab_behavior", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _tab_behavior) nothing end + function announce(instance::GtkGridView, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkGridView) get_accessible_parent(GtkAccessible(instance)) end @@ -9277,6 +9548,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_header_bar_set_title_widget", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _title_widget_maybe) nothing end + function announce(instance::GtkHeaderBar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkHeaderBar) get_accessible_parent(GtkAccessible(instance)) end @@ -9325,6 +9599,12 @@ $(Expr(:toplevel, quote function get_buildable_id(instance::GtkHeaderBar) get_buildable_id(GtkBuildable(instance)) end + function activate_osk(instance::GtkIMContext, _event::Maybe(GdkEvent)) + _event_maybe = nothing_to_null(_event) + ret = ccall(("gtk_im_context_activate_osk", libgtk4), Cint, (Ptr{GObject}, Ptr{GdkEvent}), instance, _event_maybe) + ret2 = convert(Bool, ret) + ret2 + end function delete_surrounding(instance::GtkIMContext, _offset::Integer, _n_chars::Integer) ret = ccall(("gtk_im_context_delete_surrounding", libgtk4), Cint, (Ptr{GObject}, Int32, Int32), instance, _offset, _n_chars) ret2 = convert(Bool, ret) @@ -9890,6 +10170,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_icon_view_unset_model_drag_source", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkIconView, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkIconView) get_accessible_parent(GtkAccessible(instance)) end @@ -10100,6 +10383,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_image_set_pixel_size", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _pixel_size) nothing end + function announce(instance::GtkImage, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkImage) get_accessible_parent(GtkAccessible(instance)) end @@ -10213,6 +10499,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_info_bar_set_show_close_button", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _setting) nothing end + function announce(instance::GtkInfoBar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkInfoBar) get_accessible_parent(GtkAccessible(instance)) end @@ -10358,6 +10647,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_inscription_set_yalign", libgtk4), Nothing, (Ptr{GObject}, Float32), instance, _yalign) nothing end + function announce(instance::GtkInscription, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkInscription) get_accessible_parent(GtkAccessible(instance)) end @@ -10403,6 +10695,15 @@ $(Expr(:toplevel, quote function update_state(instance::GtkInscription, _states, _values) update_state(GtkAccessible(instance), _states, _values) end + function update_caret_position(instance::GtkInscription) + update_caret_position(GtkAccessibleText(instance)) + end + function update_contents(instance::GtkInscription, _change, _start::Integer, _end::Integer) + update_contents(GtkAccessibleText(instance), _change, _start, _end) + end + function update_selection_bound(instance::GtkInscription) + update_selection_bound(GtkAccessibleText(instance)) + end function get_buildable_id(instance::GtkInscription) get_buildable_id(GtkBuildable(instance)) end @@ -10658,6 +10959,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_label_set_yalign", libgtk4), Nothing, (Ptr{GObject}, Float32), instance, _yalign) nothing end + function announce(instance::GtkLabel, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkLabel) get_accessible_parent(GtkAccessible(instance)) end @@ -10703,6 +11007,15 @@ $(Expr(:toplevel, quote function update_state(instance::GtkLabel, _states, _values) update_state(GtkAccessible(instance), _states, _values) end + function update_caret_position(instance::GtkLabel) + update_caret_position(GtkAccessibleText(instance)) + end + function update_contents(instance::GtkLabel, _change, _start::Integer, _end::Integer) + update_contents(GtkAccessibleText(instance), _change, _start, _end) + end + function update_selection_bound(instance::GtkLabel) + update_selection_bound(GtkAccessibleText(instance)) + end function get_buildable_id(instance::GtkLabel) get_buildable_id(GtkBuildable(instance)) end @@ -10820,6 +11133,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_level_bar_set_value", libgtk4), Nothing, (Ptr{GObject}, Float64), instance, _value) nothing end + function announce(instance::GtkLevelBar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkLevelBar) get_accessible_parent(GtkAccessible(instance)) end @@ -10903,6 +11219,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_link_button_set_visited", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _visited) nothing end + function announce(instance::GtkLinkButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkLinkButton) get_accessible_parent(GtkAccessible(instance)) end @@ -10966,6 +11285,9 @@ $(Expr(:toplevel, quote function get_buildable_id(instance::GtkLinkButton) get_buildable_id(GtkBuildable(instance)) end + function announce(instance::GtkListBase, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkListBase) get_accessible_parent(GtkAccessible(instance)) end @@ -11182,6 +11504,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_list_box_unselect_row", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _row) nothing end + function announce(instance::GtkListBox, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkListBox) get_accessible_parent(GtkAccessible(instance)) end @@ -11286,6 +11611,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_list_box_row_set_selectable", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _selectable) nothing end + function announce(instance::GtkListBoxRow, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkListBoxRow) get_accessible_parent(GtkAccessible(instance)) end @@ -11744,6 +12072,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_list_view_set_tab_behavior", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _tab_behavior) nothing end + function announce(instance::GtkListView, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkListView) get_accessible_parent(GtkAccessible(instance)) end @@ -11841,6 +12172,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_lock_button_set_permission", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _permission_maybe) nothing end + function announce(instance::GtkLockButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkLockButton) get_accessible_parent(GtkAccessible(instance)) end @@ -11953,6 +12287,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_media_controls_set_media_stream", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _stream_maybe) nothing end + function announce(instance::GtkMediaControls, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkMediaControls) get_accessible_parent(GtkAccessible(instance)) end @@ -12363,6 +12700,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_menu_button_set_use_underline", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_underline) nothing end + function announce(instance::GtkMenuButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkMenuButton) get_accessible_parent(GtkAccessible(instance)) end @@ -12420,6 +12760,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_message_dialog_set_markup", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _str) nothing end + function announce(instance::GtkMessageDialog, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkMessageDialog) get_accessible_parent(GtkAccessible(instance)) end @@ -12994,6 +13337,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_notebook_set_tab_reorderable", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Cint), instance, _child, _reorderable) nothing end + function announce(instance::GtkNotebook, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkNotebook) get_accessible_parent(GtkAccessible(instance)) end @@ -13123,6 +13469,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_overlay_set_measure_overlay", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Cint), instance, _widget, _measure) nothing end + function announce(instance::GtkOverlay, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkOverlay) get_accessible_parent(GtkAccessible(instance)) end @@ -13420,6 +13769,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_paned_set_wide_handle", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _wide) nothing end + function announce(instance::GtkPaned, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkPaned) get_accessible_parent(GtkAccessible(instance)) end @@ -13498,6 +13850,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_password_entry_set_show_peek_icon", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _show_peek_icon) nothing end + function announce(instance::GtkPasswordEntry, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkPasswordEntry) get_accessible_parent(GtkAccessible(instance)) end @@ -13730,6 +14085,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_picture_set_resource", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _resource_path_maybe) nothing end + function announce(instance::GtkPicture, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkPicture) get_accessible_parent(GtkAccessible(instance)) end @@ -13879,6 +14237,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_popover_set_position", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _position) nothing end + function announce(instance::GtkPopover, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkPopover) get_accessible_parent(GtkAccessible(instance)) end @@ -13958,6 +14319,11 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function get_flags(instance::GtkPopoverMenu) + ret = ccall(("gtk_popover_menu_get_flags", libgtk4), UInt32, (Ptr{GObject},), instance) + ret2 = PopoverMenuFlags(ret) + ret2 + end function get_menu_model(instance::GtkPopoverMenu) ret = ccall(("gtk_popover_menu_get_menu_model", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = convert_if_not_null(GMenuModel, ret, false) @@ -13968,11 +14334,18 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function set_flags(instance::GtkPopoverMenu, _flags) + ret = ccall(("gtk_popover_menu_set_flags", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _flags) + nothing + end function set_menu_model(instance::GtkPopoverMenu, _model::Maybe(GMenuModel)) _model_maybe = nothing_to_null(_model) ret = ccall(("gtk_popover_menu_set_menu_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function announce(instance::GtkPopoverMenu, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkPopoverMenu) get_accessible_parent(GtkAccessible(instance)) end @@ -14062,6 +14435,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_popover_menu_bar_set_menu_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function announce(instance::GtkPopoverMenuBar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkPopoverMenuBar) get_accessible_parent(GtkAccessible(instance)) end @@ -14168,6 +14544,118 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_print_context_set_cairo_context", libgtk4), Nothing, (Ptr{GObject}, Ptr{cairoContext}, Float64, Float64), instance, _cr, _dpi_x, _dpi_y) nothing end + function PrintDialog_new() + ret = ccall(("gtk_print_dialog_new", libgtk4), Ptr{GObject}, ()) + ret2 = GtkPrintDialogLeaf(ret, true) + ret2 + end + function get_accept_label(instance::GtkPrintDialog) + ret = ccall(("gtk_print_dialog_get_accept_label", libgtk4), Cstring, (Ptr{GObject},), instance) + ret2 = string_or_nothing(ret, false) + ret2 + end + function get_modal(instance::GtkPrintDialog) + ret = ccall(("gtk_print_dialog_get_modal", libgtk4), Cint, (Ptr{GObject},), instance) + ret2 = convert(Bool, ret) + ret2 + end + function get_page_setup(instance::GtkPrintDialog) + ret = ccall(("gtk_print_dialog_get_page_setup", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) + ret2 = convert(GtkPageSetup, ret, false) + ret2 + end + function get_print_settings(instance::GtkPrintDialog) + ret = ccall(("gtk_print_dialog_get_print_settings", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) + ret2 = convert(GtkPrintSettings, ret, false) + ret2 + end + function get_title(instance::GtkPrintDialog) + ret = ccall(("gtk_print_dialog_get_title", libgtk4), Cstring, (Ptr{GObject},), instance) + ret2 = string_or_nothing(ret, false) + ret2 + end + function print(instance::GtkPrintDialog, _parent::Maybe(GtkWindow), _setup::Maybe(GtkPrintSetup), _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + _parent_maybe = nothing_to_null(_parent) + _setup_maybe = nothing_to_null(_setup) + _cancellable_maybe = nothing_to_null(_cancellable) + if _callback === nothing + _callback_cfunc = C_NULL + _callback_closure = C_NULL + else + _callback_cfunc = @cfunction(GAsyncReadyCallback, Nothing, (Ptr{GObject}, Ptr{GObject}, Ref{Function})) + _callback_closure = GLib.gc_ref(_callback) + end + ret = ccall(("gtk_print_dialog_print", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Ptr{GtkPrintSetup}, Ptr{GObject}, Ptr{Cvoid}, Ptr{Nothing}), instance, _parent_maybe, _setup_maybe, _cancellable_maybe, _callback_cfunc, _callback_closure) + nothing + end + function print_file(instance::GtkPrintDialog, _parent::Maybe(GtkWindow), _setup::Maybe(GtkPrintSetup), _file::GFile, _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + _parent_maybe = nothing_to_null(_parent) + _setup_maybe = nothing_to_null(_setup) + _cancellable_maybe = nothing_to_null(_cancellable) + if _callback === nothing + _callback_cfunc = C_NULL + _callback_closure = C_NULL + else + _callback_cfunc = @cfunction(GAsyncReadyCallback, Nothing, (Ptr{GObject}, Ptr{GObject}, Ref{Function})) + _callback_closure = GLib.gc_ref(_callback) + end + ret = ccall(("gtk_print_dialog_print_file", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Ptr{GtkPrintSetup}, Ptr{GObject}, Ptr{GObject}, Ptr{Cvoid}, Ptr{Nothing}), instance, _parent_maybe, _setup_maybe, _file, _cancellable_maybe, _callback_cfunc, _callback_closure) + nothing + end + function print_file_finish(instance::GtkPrintDialog, _result::GAsyncResult) + err = err_buf() + ret = ccall(("gtk_print_dialog_print_file_finish", libgtk4), Cint, (Ptr{GObject}, Ptr{GObject}, Ptr{Ptr{GError}}), instance, _result, err) + check_err(err) + ret2 = convert(Bool, ret) + ret2 + end + function print_finish(instance::GtkPrintDialog, _result::GAsyncResult) + err = err_buf() + ret = ccall(("gtk_print_dialog_print_finish", libgtk4), Ptr{GObject}, (Ptr{GObject}, Ptr{GObject}, Ptr{Ptr{GError}}), instance, _result, err) + check_err(err) + ret2 = convert_if_not_null(GOutputStream, ret, true) + ret2 + end + function set_accept_label(instance::GtkPrintDialog, _accept_label::Union{AbstractString, Symbol}) + ret = ccall(("gtk_print_dialog_set_accept_label", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _accept_label) + nothing + end + function set_modal(instance::GtkPrintDialog, _modal::Bool) + ret = ccall(("gtk_print_dialog_set_modal", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _modal) + nothing + end + function set_page_setup(instance::GtkPrintDialog, _page_setup::GtkPageSetup) + ret = ccall(("gtk_print_dialog_set_page_setup", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _page_setup) + nothing + end + function set_print_settings(instance::GtkPrintDialog, _print_settings::GtkPrintSettings) + ret = ccall(("gtk_print_dialog_set_print_settings", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _print_settings) + nothing + end + function set_title(instance::GtkPrintDialog, _title::Union{AbstractString, Symbol}) + ret = ccall(("gtk_print_dialog_set_title", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _title) + nothing + end + function setup(instance::GtkPrintDialog, _parent::Maybe(GtkWindow), _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + _parent_maybe = nothing_to_null(_parent) + _cancellable_maybe = nothing_to_null(_cancellable) + if _callback === nothing + _callback_cfunc = C_NULL + _callback_closure = C_NULL + else + _callback_cfunc = @cfunction(GAsyncReadyCallback, Nothing, (Ptr{GObject}, Ptr{GObject}, Ref{Function})) + _callback_closure = GLib.gc_ref(_callback) + end + ret = ccall(("gtk_print_dialog_setup", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Ptr{GObject}, Ptr{Cvoid}, Ptr{Nothing}), instance, _parent_maybe, _cancellable_maybe, _callback_cfunc, _callback_closure) + nothing + end + function setup_finish(instance::GtkPrintDialog, _result::GAsyncResult) + err = err_buf() + ret = ccall(("gtk_print_dialog_setup_finish", libgtk4), Ptr{GtkPrintSetup}, (Ptr{GObject}, Ptr{GObject}, Ptr{Ptr{GError}}), instance, _result, err) + check_err(err) + ret2 = convert_if_not_null(GtkPrintSetup, ret, true) + ret2 + end function PrintOperation_new() ret = ccall(("gtk_print_operation_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkPrintOperationLeaf(ret, true) @@ -14505,6 +14993,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_progress_bar_set_text", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _text_maybe) nothing end + function announce(instance::GtkProgressBar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkProgressBar) get_accessible_parent(GtkAccessible(instance)) end @@ -14681,6 +15172,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_range_set_value", libgtk4), Nothing, (Ptr{GObject}, Float64), instance, _value) nothing end + function announce(instance::GtkRange, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkRange) get_accessible_parent(GtkAccessible(instance)) end @@ -14781,6 +15275,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_revealer_set_transition_type", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _transition) nothing end + function announce(instance::GtkRevealer, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkRevealer) get_accessible_parent(GtkAccessible(instance)) end @@ -14897,6 +15394,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_scale_set_value_pos", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _pos) nothing end + function announce(instance::GtkScale, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkScale) get_accessible_parent(GtkAccessible(instance)) end @@ -14967,6 +15467,11 @@ $(Expr(:toplevel, quote ret2 = convert(GtkAdjustment, ret, false) ret2 end + function get_has_frame(instance::GtkScaleButton) + ret = ccall(("gtk_scale_button_get_has_frame", libgtk4), Cint, (Ptr{GObject},), instance) + ret2 = convert(Bool, ret) + ret2 + end function get_minus_button(instance::GtkScaleButton) ret = ccall(("gtk_scale_button_get_minus_button", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = convert(GtkButton, ret, false) @@ -14990,6 +15495,10 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_scale_button_set_adjustment", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _adjustment) nothing end + function set_has_frame(instance::GtkScaleButton, _has_frame::Bool) + ret = ccall(("gtk_scale_button_set_has_frame", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _has_frame) + nothing + end function set_icons(instance::GtkScaleButton, _icons) ret = ccall(("gtk_scale_button_set_icons", libgtk4), Nothing, (Ptr{GObject}, Ptr{Cstring}), instance, _icons) nothing @@ -14998,6 +15507,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_scale_button_set_value", libgtk4), Nothing, (Ptr{GObject}, Float64), instance, _value) nothing end + function announce(instance::GtkScaleButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkScaleButton) get_accessible_parent(GtkAccessible(instance)) end @@ -15068,6 +15580,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_scrollbar_set_adjustment", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _adjustment_maybe) nothing end + function announce(instance::GtkScrollbar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkScrollbar) get_accessible_parent(GtkAccessible(instance)) end @@ -15271,6 +15786,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_scrolled_window_unset_placement", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkScrolledWindow, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkScrolledWindow) get_accessible_parent(GtkAccessible(instance)) end @@ -15366,6 +15884,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_search_bar_set_show_close_button", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _visible) nothing end + function announce(instance::GtkSearchBar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkSearchBar) get_accessible_parent(GtkAccessible(instance)) end @@ -15419,6 +15940,16 @@ $(Expr(:toplevel, quote ret2 = GtkSearchEntryLeaf(ret, false) ret2 end + function get_input_hints(instance::GtkSearchEntry) + ret = ccall(("gtk_search_entry_get_input_hints", libgtk4), UInt32, (Ptr{GObject},), instance) + ret2 = InputHints(ret) + ret2 + end + function get_input_purpose(instance::GtkSearchEntry) + ret = ccall(("gtk_search_entry_get_input_purpose", libgtk4), UInt32, (Ptr{GObject},), instance) + ret2 = InputPurpose(ret) + ret2 + end function get_key_capture_widget(instance::GtkSearchEntry) ret = ccall(("gtk_search_entry_get_key_capture_widget", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = convert_if_not_null(GtkWidget, ret, false) @@ -15433,6 +15964,14 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_search_entry_get_search_delay", libgtk4), UInt32, (Ptr{GObject},), instance) ret end + function set_input_hints(instance::GtkSearchEntry, _hints) + ret = ccall(("gtk_search_entry_set_input_hints", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _hints) + nothing + end + function set_input_purpose(instance::GtkSearchEntry, _purpose) + ret = ccall(("gtk_search_entry_set_input_purpose", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _purpose) + nothing + end function set_key_capture_widget(instance::GtkSearchEntry, _widget::Maybe(GtkWidget)) _widget_maybe = nothing_to_null(_widget) ret = ccall(("gtk_search_entry_set_key_capture_widget", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _widget_maybe) @@ -15447,6 +15986,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_search_entry_set_search_delay", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _delay) nothing end + function announce(instance::GtkSearchEntry, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkSearchEntry) get_accessible_parent(GtkAccessible(instance)) end @@ -15600,6 +16142,9 @@ $(Expr(:toplevel, quote ret2 = GtkSeparatorLeaf(ret, false) ret2 end + function announce(instance::GtkSeparator, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkSeparator) get_accessible_parent(GtkAccessible(instance)) end @@ -15810,6 +16355,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_shortcut_label_set_disabled_text", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _disabled_text) nothing end + function announce(instance::GtkShortcutLabel, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkShortcutLabel) get_accessible_parent(GtkAccessible(instance)) end @@ -15900,6 +16448,13 @@ $(Expr(:toplevel, quote ret2 = KeyMatch(ret) ret2 end + function add_shortcut(instance::GtkShortcutsGroup, _shortcut::GtkShortcutsShortcut) + ret = ccall(("gtk_shortcuts_group_add_shortcut", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _shortcut) + nothing + end + function announce(instance::GtkShortcutsGroup, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkShortcutsGroup) get_accessible_parent(GtkAccessible(instance)) end @@ -15954,6 +16509,13 @@ $(Expr(:toplevel, quote function set_orientation(instance::GtkShortcutsGroup, _orientation) set_orientation(GtkOrientable(instance), _orientation) end + function add_group(instance::GtkShortcutsSection, _group::GtkShortcutsGroup) + ret = ccall(("gtk_shortcuts_section_add_group", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _group) + nothing + end + function announce(instance::GtkShortcutsSection, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkShortcutsSection) get_accessible_parent(GtkAccessible(instance)) end @@ -16008,6 +16570,9 @@ $(Expr(:toplevel, quote function set_orientation(instance::GtkShortcutsSection, _orientation) set_orientation(GtkOrientable(instance), _orientation) end + function announce(instance::GtkShortcutsShortcut, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkShortcutsShortcut) get_accessible_parent(GtkAccessible(instance)) end @@ -16056,6 +16621,13 @@ $(Expr(:toplevel, quote function get_buildable_id(instance::GtkShortcutsShortcut) get_buildable_id(GtkBuildable(instance)) end + function add_section(instance::GtkShortcutsWindow, _section::GtkShortcutsSection) + ret = ccall(("gtk_shortcuts_window_add_section", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _section) + nothing + end + function announce(instance::GtkShortcutsWindow, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkShortcutsWindow) get_accessible_parent(GtkAccessible(instance)) end @@ -16357,6 +16929,10 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_snapshot_append_conic_gradient", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GrapheneRect}, Ptr{_GraphenePoint}, Float32, Ptr{_GskColorStop}, UInt64), instance, _bounds, _center, _rotation, _stops_arr, _n_stops) nothing end + function append_fill(instance::GtkSnapshot, _path::GskPath, _fill_rule, _color::Union{GdkRGBA, Ref{_GdkRGBA}}) + ret = ccall(("gtk_snapshot_append_fill", libgtk4), Nothing, (Ptr{GObject}, Ptr{GskPath}, UInt32, Ptr{_GdkRGBA}), instance, _path, _fill_rule, _color) + nothing + end function append_inset_shadow(instance::GtkSnapshot, _outline::Union{GskRoundedRect, Ref{_GskRoundedRect}}, _color::Union{GdkRGBA, Ref{_GdkRGBA}}, _dx::Real, _dy::Real, _spread::Real, _blur_radius::Real) ret = ccall(("gtk_snapshot_append_inset_shadow", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GskRoundedRect}, Ptr{_GdkRGBA}, Float32, Float32, Float32, Float32), instance, _outline, _color, _dx, _dy, _spread, _blur_radius) nothing @@ -16397,6 +16973,10 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_snapshot_append_scaled_texture", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, UInt32, Ptr{_GrapheneRect}), instance, _texture, _filter, _bounds) nothing end + function append_stroke(instance::GtkSnapshot, _path::GskPath, _stroke::GskStroke, _color::Union{GdkRGBA, Ref{_GdkRGBA}}) + ret = ccall(("gtk_snapshot_append_stroke", libgtk4), Nothing, (Ptr{GObject}, Ptr{GskPath}, Ptr{GskStroke}, Ptr{_GdkRGBA}), instance, _path, _stroke, _color) + nothing + end function append_texture(instance::GtkSnapshot, _texture::GdkTexture, _bounds::Union{GrapheneRect, Ref{_GrapheneRect}}) ret = ccall(("gtk_snapshot_append_texture", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Ptr{_GrapheneRect}), instance, _texture, _bounds) nothing @@ -16433,6 +17013,10 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_snapshot_push_cross_fade", libgtk4), Nothing, (Ptr{GObject}, Float64), instance, _progress) nothing end + function push_fill(instance::GtkSnapshot, _path::GskPath, _fill_rule) + ret = ccall(("gtk_snapshot_push_fill", libgtk4), Nothing, (Ptr{GObject}, Ptr{GskPath}, UInt32), instance, _path, _fill_rule) + nothing + end function push_gl_shader(instance::GtkSnapshot, _shader::GskGLShader, _bounds::Union{GrapheneRect, Ref{_GrapheneRect}}, _take_args::GBytes) ret = ccall(("gtk_snapshot_push_gl_shader", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Ptr{_GrapheneRect}, Ptr{GBytes}), instance, _shader, _bounds, _take_args) nothing @@ -16460,6 +17044,10 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_snapshot_push_shadow", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GskShadow}, UInt64), instance, _shadow_arr, _n_shadows) nothing end + function push_stroke(instance::GtkSnapshot, _path::GskPath, _stroke::GskStroke) + ret = ccall(("gtk_snapshot_push_stroke", libgtk4), Nothing, (Ptr{GObject}, Ptr{GskPath}, Ptr{GskStroke}), instance, _path, _stroke) + nothing + end function render_background(instance::GtkSnapshot, _context::GtkStyleContext, _x::Real, _y::Real, _width::Real, _height::Real) ret = ccall(("gtk_snapshot_render_background", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Float64, Float64, Float64, Float64), instance, _context, _x, _y, _width, _height) nothing @@ -16640,6 +17228,11 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_spin_button_configure", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Float64, UInt32), instance, _adjustment_maybe, _climb_rate, _digits) nothing end + function get_activates_default(instance::GtkSpinButton) + ret = ccall(("gtk_spin_button_get_activates_default", libgtk4), Cint, (Ptr{GObject},), instance) + ret2 = convert(Bool, ret) + ret2 + end function get_adjustment(instance::GtkSpinButton) ret = ccall(("gtk_spin_button_get_adjustment", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = convert(GtkAdjustment, ret, false) @@ -16697,6 +17290,10 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function set_activates_default(instance::GtkSpinButton, _activates_default::Bool) + ret = ccall(("gtk_spin_button_set_activates_default", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _activates_default) + nothing + end function set_adjustment(instance::GtkSpinButton, _adjustment::GtkAdjustment) ret = ccall(("gtk_spin_button_set_adjustment", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _adjustment) nothing @@ -16745,6 +17342,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_spin_button_update", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkSpinButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkSpinButton) get_accessible_parent(GtkAccessible(instance)) end @@ -16902,6 +17502,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_spinner_stop", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkSpinner, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkSpinner) get_accessible_parent(GtkAccessible(instance)) end @@ -17065,6 +17668,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_stack_set_visible_child_name", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _name) nothing end + function announce(instance::GtkStack, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkStack) get_accessible_parent(GtkAccessible(instance)) end @@ -17172,6 +17778,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_stack_page_set_visible", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _visible) nothing end + function announce(instance::GtkStackPage, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkStackPage) get_accessible_parent(GtkAccessible(instance)) end @@ -17231,6 +17840,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_stack_sidebar_set_stack", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _stack) nothing end + function announce(instance::GtkStackSidebar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkStackSidebar) get_accessible_parent(GtkAccessible(instance)) end @@ -17294,6 +17906,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_stack_switcher_set_stack", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _stack_maybe) nothing end + function announce(instance::GtkStackSwitcher, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkStackSwitcher) get_accessible_parent(GtkAccessible(instance)) end @@ -17373,6 +17988,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_statusbar_remove_all", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _context_id) nothing end + function announce(instance::GtkStatusbar, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkStatusbar) get_accessible_parent(GtkAccessible(instance)) end @@ -17674,6 +18292,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_switch_set_state", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _state) nothing end + function announce(instance::GtkSwitch, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkSwitch) get_accessible_parent(GtkAccessible(instance)) end @@ -17905,6 +18526,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_text_unset_invisible_char", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkText, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkText) get_accessible_parent(GtkAccessible(instance)) end @@ -17950,6 +18574,15 @@ $(Expr(:toplevel, quote function update_state(instance::GtkText, _states, _values) update_state(GtkAccessible(instance), _states, _values) end + function update_caret_position(instance::GtkText) + update_caret_position(GtkAccessibleText(instance)) + end + function update_contents(instance::GtkText, _change, _start::Integer, _end::Integer) + update_contents(GtkAccessibleText(instance), _change, _start, _end) + end + function update_selection_bound(instance::GtkText) + update_selection_bound(GtkAccessibleText(instance)) + end function get_buildable_id(instance::GtkText) get_buildable_id(GtkBuildable(instance)) end @@ -18815,6 +19448,9 @@ $(Expr(:toplevel, quote _buffer_y = m_buffer_y[] (_buffer_x, _buffer_y) end + function announce(instance::GtkTextView, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkTextView) get_accessible_parent(GtkAccessible(instance)) end @@ -18860,6 +19496,15 @@ $(Expr(:toplevel, quote function update_state(instance::GtkTextView, _states, _values) update_state(GtkAccessible(instance), _states, _values) end + function update_caret_position(instance::GtkTextView) + update_caret_position(GtkAccessibleText(instance)) + end + function update_contents(instance::GtkTextView, _change, _start::Integer, _end::Integer) + update_contents(GtkAccessibleText(instance), _change, _start, _end) + end + function update_selection_bound(instance::GtkTextView) + update_selection_bound(GtkAccessibleText(instance)) + end function get_buildable_id(instance::GtkTextView) get_buildable_id(GtkBuildable(instance)) end @@ -18923,6 +19568,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_toggle_button_toggled", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkToggleButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkToggleButton) get_accessible_parent(GtkAccessible(instance)) end @@ -19077,6 +19725,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_tree_expander_set_list_row", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _list_row_maybe) nothing end + function announce(instance::GtkTreeExpander, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkTreeExpander) get_accessible_parent(GtkAccessible(instance)) end @@ -20299,6 +20950,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_tree_view_unset_rows_drag_source", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkTreeView, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkTreeView) get_accessible_parent(GtkAccessible(instance)) end @@ -20690,6 +21344,11 @@ $(Expr(:toplevel, quote ret2 = GLib.find_leaf_type_if_not_null(ret, false) ret2 end + function get_graphics_offload(instance::GtkVideo) + ret = ccall(("gtk_video_get_graphics_offload", libgtk4), UInt32, (Ptr{GObject},), instance) + ret2 = GraphicsOffloadEnabled(ret) + ret2 + end function get_loop(instance::GtkVideo) ret = ccall(("gtk_video_get_loop", libgtk4), Cint, (Ptr{GObject},), instance) ret2 = convert(Bool, ret) @@ -20714,6 +21373,10 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_video_set_filename", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _filename_maybe) nothing end + function set_graphics_offload(instance::GtkVideo, _enabled) + ret = ccall(("gtk_video_set_graphics_offload", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _enabled) + nothing + end function set_loop(instance::GtkVideo, _loop::Bool) ret = ccall(("gtk_video_set_loop", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _loop) nothing @@ -20728,6 +21391,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_video_set_resource", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _resource_path_maybe) nothing end + function announce(instance::GtkVideo, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkVideo) get_accessible_parent(GtkAccessible(instance)) end @@ -20807,6 +21473,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_viewport_set_scroll_to_focus", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _scroll_to_focus) nothing end + function announce(instance::GtkViewport, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkViewport) get_accessible_parent(GtkAccessible(instance)) end @@ -20887,6 +21556,9 @@ $(Expr(:toplevel, quote ret2 = GtkVolumeButtonLeaf(ret, false) ret2 end + function announce(instance::GtkVolumeButton, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkVolumeButton) get_accessible_parent(GtkAccessible(instance)) end @@ -21728,6 +22400,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_widget_unset_state_flags", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _flags) nothing end + function announce(instance::GtkWidget, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkWidget) get_accessible_parent(GtkAccessible(instance)) end @@ -22109,6 +22784,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_window_unminimize", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function announce(instance::GtkWindow, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkWindow) get_accessible_parent(GtkAccessible(instance)) end @@ -22204,6 +22882,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_window_controls_set_side", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _side) nothing end + function announce(instance::GtkWindowControls, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkWindowControls) get_accessible_parent(GtkAccessible(instance)) end @@ -22285,6 +22966,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_window_handle_set_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child_maybe) nothing end + function announce(instance::GtkWindowHandle, _message::Union{AbstractString, Symbol}, _priority) + announce(GtkAccessible(instance), _message, _priority) + end function get_accessible_parent(instance::GtkWindowHandle) get_accessible_parent(GtkAccessible(instance)) end @@ -22333,6 +23017,10 @@ $(Expr(:toplevel, quote function get_buildable_id(instance::GtkWindowHandle) get_buildable_id(GtkBuildable(instance)) end + function announce(instance::GtkAccessible, _message::Union{AbstractString, Symbol}, _priority) + ret = ccall(("gtk_accessible_announce", libgtk4), Nothing, (Ptr{GObject}, Cstring, UInt32), instance, _message, _priority) + nothing + end function get_accessible_parent(instance::GtkAccessible) ret = ccall(("gtk_accessible_get_accessible_parent", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = GLib.find_leaf_type_if_not_null(ret, true) @@ -22423,6 +23111,18 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_accessible_update_state_value", libgtk4), Nothing, (Ptr{GObject}, Int32, Ptr{UInt32}, Ptr{_GValue}), instance, _n_states, _states_arr, _values_arr) nothing end + function update_caret_position(instance::GtkAccessibleText) + ret = ccall(("gtk_accessible_text_update_caret_position", libgtk4), Nothing, (Ptr{GObject},), instance) + nothing + end + function update_contents(instance::GtkAccessibleText, _change, _start::Integer, _end::Integer) + ret = ccall(("gtk_accessible_text_update_contents", libgtk4), Nothing, (Ptr{GObject}, UInt32, UInt32, UInt32), instance, _change, _start, _end) + nothing + end + function update_selection_bound(instance::GtkAccessibleText) + ret = ccall(("gtk_accessible_text_update_selection_bound", libgtk4), Nothing, (Ptr{GObject},), instance) + nothing + end function get_action_name(instance::GtkActionable) ret = ccall(("gtk_actionable_get_action_name", libgtk4), Cstring, (Ptr{GObject},), instance) ret2 = string_or_nothing(ret, false) @@ -22878,12 +23578,12 @@ $(Expr(:toplevel, quote end function get_renderer(instance::GtkNative) ret = ccall(("gtk_native_get_renderer", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) - ret2 = convert(GskRenderer, ret, false) + ret2 = convert_if_not_null(GskRenderer, ret, false) ret2 end function get_surface(instance::GtkNative) ret = ccall(("gtk_native_get_surface", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) - ret2 = convert(GdkSurface, ret, false) + ret2 = convert_if_not_null(GdkSurface, ret, false) ret2 end function get_surface_transform(instance::GtkNative) diff --git a/src/gen/gtk4_structs b/src/gen/gtk4_structs index d65afa37..eb59e8d3 100644 --- a/src/gen/gtk4_structs +++ b/src/gen/gtk4_structs @@ -1,5 +1,35 @@ quote $(Expr(:toplevel, quote + mutable struct GtkAccessibleList <: GBoxed + handle::Ptr{GtkAccessibleList} + begin + (GLib.g_type(::Type{T}) where T <: GtkAccessibleList) = begin + ccall(("gtk_accessible_list_get_type", libgtk4), GType, ()) + end + function GtkAccessibleList(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GtkAccessibleList) + end + end + begin + struct _GtkAccessibleTextRange + start::UInt64 + length::UInt64 + end + mutable struct GtkAccessibleTextRange + handle::Ptr{_GtkAccessibleTextRange} + end + unsafe_convert(::Type{Ptr{_GtkAccessibleTextRange}}, box::GtkAccessibleTextRange) = begin + convert(Ptr{_GtkAccessibleTextRange}, box.handle) + end + end mutable struct GtkBitset <: GBoxed handle::Ptr{GtkBitset} begin @@ -167,6 +197,24 @@ $(Expr(:toplevel, quote mutable struct GtkPrintBackend handle::Ptr{GtkPrintBackend} end + mutable struct GtkPrintSetup <: GBoxed + handle::Ptr{GtkPrintSetup} + begin + (GLib.g_type(::Type{T}) where T <: GtkPrintSetup) = begin + ccall(("gtk_print_setup_get_type", libgtk4), GType, ()) + end + function GtkPrintSetup(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GtkPrintSetup) + end + end begin struct _GtkRecentData display_name::Cstring @@ -346,6 +394,8 @@ $(Expr(:toplevel, quote push!(gboxed_types, GtkTreePath) end end + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.AccessibleList.html)." GtkAccessibleList + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.AccessibleTextRange.html)." GtkAccessibleTextRange @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.Bitset.html)." GtkBitset @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.BitsetIter.html)." GtkBitsetIter @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.Border.html)." GtkBorder @@ -355,6 +405,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.ExpressionWatch.html)." GtkExpressionWatch @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.PadActionEntry.html)." GtkPadActionEntry @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.PaperSize.html)." GtkPaperSize + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.PrintSetup.html)." GtkPrintSetup @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.RecentData.html)." GtkRecentData @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.RecentInfo.html)." GtkRecentInfo @doc "See the [GTK docs](https://docs.gtk.org/gtk4/struct.RequestedSize.html)." GtkRequestedSize @@ -377,6 +428,13 @@ $(Expr(:toplevel, quote new(unsafe_convert(Ptr{GObject}, x), x) end end + struct GtkAccessibleText <: GInterface + handle::Ptr{GObject} + gc::Any + GtkAccessibleText(x::GObject) = begin + new(unsafe_convert(Ptr{GObject}, x), x) + end + end struct GtkActionable <: GInterface handle::Ptr{GObject} gc::Any @@ -3974,6 +4032,28 @@ $(Expr(:toplevel, quote end end end + begin + abstract type GtkGraphicsOffload <: GtkWidget end + mutable struct GtkGraphicsOffloadLeaf <: GtkGraphicsOffload + handle::Ptr{GObject} + function GtkGraphicsOffloadLeaf(handle::Ptr{GObject}, owns = false) + if handle == C_NULL + error("Cannot construct GtkGraphicsOffloadLeaf with a NULL pointer") + end + GLib.gobject_maybe_sink(handle, owns) + return gobject_ref(new(handle)) + end + end + gtype_wrapper_cache[:GtkGraphicsOffload] = GtkGraphicsOffloadLeaf + (GLib.g_type(::Type{T}) where T <: GtkGraphicsOffload) = begin + ccall(("gtk_graphics_offload_get_type", libgtk4), GType, ()) + end + end + begin + function GLib.signalnames(::Type{GtkGraphicsOffload}) + signalnames(supertype(GtkGraphicsOffload)) + end + end begin abstract type GtkGrid <: GtkWidget end mutable struct GtkGridLeaf <: GtkGrid @@ -5384,6 +5464,28 @@ $(Expr(:toplevel, quote signalnames(supertype(GtkPrintContext)) end end + begin + abstract type GtkPrintDialog <: GObject end + mutable struct GtkPrintDialogLeaf <: GtkPrintDialog + handle::Ptr{GObject} + function GtkPrintDialogLeaf(handle::Ptr{GObject}, owns = false) + if handle == C_NULL + error("Cannot construct GtkPrintDialogLeaf with a NULL pointer") + end + GLib.gobject_maybe_sink(handle, owns) + return gobject_ref(new(handle)) + end + end + gtype_wrapper_cache[:GtkPrintDialog] = GtkPrintDialogLeaf + (GLib.g_type(::Type{T}) where T <: GtkPrintDialog) = begin + ccall(("gtk_print_dialog_get_type", libgtk4), GType, ()) + end + end + begin + function GLib.signalnames(::Type{GtkPrintDialog}) + signalnames(supertype(GtkPrintDialog)) + end + end begin abstract type GtkPrintJob <: GObject end mutable struct GtkPrintJobLeaf <: GtkPrintJob @@ -6229,9 +6331,9 @@ $(Expr(:toplevel, quote end begin function GLib.signalnames(::Type{GtkSpinButton}) - vcat([:change_value, :input, :output, :value_changed, :wrapped, :editing_done, :remove_widget, :changed, :delete_text, :insert_text], signalnames(supertype(GtkSpinButton))) + vcat([:activate, :change_value, :input, :output, :value_changed, :wrapped, :editing_done, :remove_widget, :changed, :delete_text, :insert_text], signalnames(supertype(GtkSpinButton))) end - let d = Dict{Symbol, Tuple{Any, Any}}(:notify => (:Nothing, Any[:(Ptr{GParamSpec})]), :state_flags_changed => (:Nothing, [:UInt32]), :map => (:Nothing, Any[]), :change_value => (:Nothing, [:UInt32]), :unrealize => (:Nothing, Any[]), :input => (:Int32, [:Float64]), :value_changed => (:Nothing, Any[]), :wrapped => (:Nothing, Any[]), :output => (:Cint, Any[]), :show => (:Nothing, Any[]), :unmap => (:Nothing, Any[]), :hide => (:Nothing, Any[]), :query_tooltip => (:Cint, Any[:Int32, :Int32, :Cint, :(Ptr{GObject})]), :move_focus => (:Nothing, [:UInt32]), :mnemonic_activate => (:Cint, [:Cint]), :direction_changed => (:Nothing, [:UInt32]), :destroy => (:Nothing, Any[]), :keynav_failed => (:Cint, [:UInt32]), :realize => (:Nothing, Any[])) + let d = Dict{Symbol, Tuple{Any, Any}}(:notify => (:Nothing, Any[:(Ptr{GParamSpec})]), :state_flags_changed => (:Nothing, [:UInt32]), :map => (:Nothing, Any[]), :change_value => (:Nothing, [:UInt32]), :unrealize => (:Nothing, Any[]), :input => (:Int32, [:Float64]), :value_changed => (:Nothing, Any[]), :wrapped => (:Nothing, Any[]), :output => (:Cint, Any[]), :show => (:Nothing, Any[]), :unmap => (:Nothing, Any[]), :hide => (:Nothing, Any[]), :query_tooltip => (:Cint, Any[:Int32, :Int32, :Cint, :(Ptr{GObject})]), :move_focus => (:Nothing, [:UInt32]), :mnemonic_activate => (:Cint, [:Cint]), :direction_changed => (:Nothing, [:UInt32]), :activate => (:Nothing, Any[]), :destroy => (:Nothing, Any[]), :keynav_failed => (:Cint, [:UInt32]), :realize => (:Nothing, Any[])) function GLib.signal_return_type(::Type{T}, name::Symbol) where T <: GtkSpinButton eval((d[name])[1]) end @@ -7760,6 +7862,11 @@ $(Expr(:toplevel, quote function GtkGestureZoom() G_.GestureZoom_new() end + function GtkGraphicsOffload(_child::Maybe(GtkWidget); kwargs...) + obj = G_.GraphicsOffload_new(_child) + GLib.setproperties!(obj; kwargs...) + obj + end function GtkGrid(; kwargs...) obj = G_.Grid_new() GLib.setproperties!(obj; kwargs...) @@ -8060,6 +8167,11 @@ $(Expr(:toplevel, quote GLib.setproperties!(obj; kwargs...) obj end + function GtkPrintDialog(; kwargs...) + obj = G_.PrintDialog_new() + GLib.setproperties!(obj; kwargs...) + obj + end function GtkPrintJob(_title::Union{AbstractString, Symbol}, _printer::GtkPrinter, _settings::GtkPrintSettings, _page_setup::GtkPageSetup; kwargs...) obj = G_.PrintJob_new(_title, _printer, _settings, _page_setup) GLib.setproperties!(obj; kwargs...) @@ -8421,6 +8533,12 @@ $(Expr(:toplevel, quote GLib.setproperties!(obj; kwargs...) obj end + function GtkAccessibleList(_accessibles) + G_.AccessibleList_new_from_array(_accessibles) + end + function GtkAccessibleList(_list::GLib.LList{GLib._GList{Ptr{GObject}}}) + G_.AccessibleList_new_from_list(_list) + end function GtkBitset() G_.Bitset_new_empty() end @@ -8583,6 +8701,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.GestureStylus.html)." GtkGestureStylus @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.GestureSwipe.html)." GtkGestureSwipe @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.GestureZoom.html)." GtkGestureZoom + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.GraphicsOffload.html)." GtkGraphicsOffload @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.Grid.html)." GtkGrid @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.GridLayout.html)." GtkGridLayout @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.GridLayoutChild.html)." GtkGridLayoutChild @@ -8646,6 +8765,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.PopoverMenu.html)." GtkPopoverMenu @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.PopoverMenuBar.html)." GtkPopoverMenuBar @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.PrintContext.html)." GtkPrintContext + @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.PrintDialog.html)." GtkPrintDialog @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.PrintJob.html)." GtkPrintJob @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.PrintOperation.html)." GtkPrintOperation @doc "See the [GTK docs](https://docs.gtk.org/gtk4/class.PrintSettings.html)." GtkPrintSettings @@ -9659,6 +9779,9 @@ $(Expr(:toplevel, quote function on_changed(f, object::GtkSorter, user_data = object, after = false) GLib.signal_connect_generic(f, object, "changed", Nothing, (UInt32,), after, user_data) end + function on_activate(f, object::GtkSpinButton, user_data = object, after = false) + GLib.signal_connect_generic(f, object, "activate", Nothing, (), after, user_data) + end function on_change_value(f, object::GtkSpinButton, user_data = object, after = false) GLib.signal_connect_generic(f, object, "change-value", Nothing, (UInt32,), after, user_data) end @@ -10331,6 +10454,6 @@ $(Expr(:toplevel, quote ret = f(model, column, key, iter) convert(Cint, ret) end - export GtkBitset, GtkBitsetIter, _GtkBitsetIter, GtkBorder, _GtkBorder, GtkBuildableParseContext, GtkBuildableParser, _GtkBuildableParser, GtkCssLocation, _GtkCssLocation, GtkCssSection, GtkCssStyleChange, GtkExpressionWatch, GtkPadActionEntry, _GtkPadActionEntry, GtkPaperSize, GtkPrintBackend, GtkRecentData, _GtkRecentData, GtkRecentInfo, GtkRequestedSize, _GtkRequestedSize, GtkRequisition, _GtkRequisition, GtkScrollInfo, GtkTextIter, _GtkTextIter, GtkTreeIter, _GtkTreeIter, GtkTreePath, GtkAccessible, GtkAccessibleRange, GtkActionable, GtkAppChooser, GtkBuildable, GtkBuilderScope, GtkCellEditable, GtkCellLayout, GtkColorChooser, GtkConstraintTarget, GtkEditable, GtkFileChooser, GtkFontChooser, GtkNative, GtkOrientable, GtkPrintOperationPreview, GtkRoot, GtkScrollable, GtkSectionModel, GtkSelectionModel, GtkShortcutManager, GtkStyleProvider, GtkSymbolicPaintable, GtkTreeDragDest, GtkTreeDragSource, GtkTreeModel, GtkTreeSortable, GtkATContext, GtkAboutDialog, GtkAboutDialogLeaf, GtkActionBar, GtkActionBarLeaf, GtkActivateAction, GtkActivateActionLeaf, GtkAdjustment, GtkAdjustmentLeaf, GtkAlertDialog, GtkAlertDialogLeaf, GtkAlternativeTrigger, GtkAlternativeTriggerLeaf, GtkAnyFilter, GtkAnyFilterLeaf, GtkAppChooserButton, GtkAppChooserButtonLeaf, GtkAppChooserDialog, GtkAppChooserDialogLeaf, GtkAppChooserWidget, GtkAppChooserWidgetLeaf, GtkApplication, GtkApplicationLeaf, GtkApplicationWindow, GtkApplicationWindowLeaf, GtkAspectFrame, GtkAspectFrameLeaf, GtkAssistant, GtkAssistantLeaf, GtkAssistantPage, GtkAssistantPageLeaf, GtkBinLayout, GtkBinLayoutLeaf, GtkBookmarkList, GtkBookmarkListLeaf, GtkBoolFilter, GtkBoolFilterLeaf, GtkBox, GtkBoxLeaf, GtkBoxLayout, GtkBoxLayoutLeaf, GtkBuilder, GtkBuilderLeaf, GtkBuilderCScope, GtkBuilderCScopeLeaf, GtkBuilderListItemFactory, GtkBuilderListItemFactoryLeaf, GtkButton, GtkButtonLeaf, GtkCalendar, GtkCalendarLeaf, GtkCallbackAction, GtkCallbackActionLeaf, GtkCellArea, GtkCellAreaBox, GtkCellAreaBoxLeaf, GtkCellAreaContext, GtkCellAreaContextLeaf, GtkCellRenderer, GtkCellRendererAccel, GtkCellRendererAccelLeaf, GtkCellRendererCombo, GtkCellRendererComboLeaf, GtkCellRendererPixbuf, GtkCellRendererPixbufLeaf, GtkCellRendererProgress, GtkCellRendererProgressLeaf, GtkCellRendererSpin, GtkCellRendererSpinLeaf, GtkCellRendererSpinner, GtkCellRendererSpinnerLeaf, GtkCellRendererText, GtkCellRendererTextLeaf, GtkCellRendererToggle, GtkCellRendererToggleLeaf, GtkCellView, GtkCellViewLeaf, GtkCenterBox, GtkCenterBoxLeaf, GtkCenterLayout, GtkCenterLayoutLeaf, GtkCheckButton, GtkCheckButtonLeaf, GtkColorButton, GtkColorButtonLeaf, GtkColorChooserDialog, GtkColorChooserDialogLeaf, GtkColorChooserWidget, GtkColorChooserWidgetLeaf, GtkColorDialog, GtkColorDialogLeaf, GtkColorDialogButton, GtkColorDialogButtonLeaf, GtkColumnView, GtkColumnViewLeaf, GtkColumnViewCell, GtkColumnViewCellLeaf, GtkColumnViewColumn, GtkColumnViewColumnLeaf, GtkColumnViewRow, GtkColumnViewRowLeaf, GtkColumnViewSorter, GtkColumnViewSorterLeaf, GtkComboBox, GtkComboBoxLeaf, GtkComboBoxText, GtkComboBoxTextLeaf, GtkConstantExpression, GtkConstantExpressionLeaf, GtkConstraint, GtkConstraintLeaf, GtkConstraintGuide, GtkConstraintGuideLeaf, GtkConstraintLayout, GtkConstraintLayoutLeaf, GtkConstraintLayoutChild, GtkConstraintLayoutChildLeaf, GtkCssProvider, GtkCssProviderLeaf, GtkCustomFilter, GtkCustomFilterLeaf, GtkCustomLayout, GtkCustomLayoutLeaf, GtkCustomSorter, GtkCustomSorterLeaf, GtkDialog, GtkDialogLeaf, GtkDirectoryList, GtkDirectoryListLeaf, GtkDragIcon, GtkDragIconLeaf, GtkDragSource, GtkDragSourceLeaf, GtkDrawingArea, GtkDrawingAreaLeaf, GtkDropControllerMotion, GtkDropControllerMotionLeaf, GtkDropDown, GtkDropDownLeaf, GtkDropTarget, GtkDropTargetLeaf, GtkDropTargetAsync, GtkDropTargetAsyncLeaf, GtkEditableLabel, GtkEditableLabelLeaf, GtkEmojiChooser, GtkEmojiChooserLeaf, GtkEntry, GtkEntryLeaf, GtkEntryBuffer, GtkEntryBufferLeaf, GtkEntryCompletion, GtkEntryCompletionLeaf, GtkEventController, GtkEventControllerFocus, GtkEventControllerFocusLeaf, GtkEventControllerKey, GtkEventControllerKeyLeaf, GtkEventControllerLegacy, GtkEventControllerLegacyLeaf, GtkEventControllerMotion, GtkEventControllerMotionLeaf, GtkEventControllerScroll, GtkEventControllerScrollLeaf, GtkEveryFilter, GtkEveryFilterLeaf, GtkExpander, GtkExpanderLeaf, GtkExpression, GtkFileChooserDialog, GtkFileChooserDialogLeaf, GtkFileChooserNative, GtkFileChooserNativeLeaf, GtkFileChooserWidget, GtkFileChooserWidgetLeaf, GtkFileDialog, GtkFileDialogLeaf, GtkFileFilter, GtkFileFilterLeaf, GtkFileLauncher, GtkFileLauncherLeaf, GtkFilter, GtkFilterLeaf, GtkFilterListModel, GtkFilterListModelLeaf, GtkFixed, GtkFixedLeaf, GtkFixedLayout, GtkFixedLayoutLeaf, GtkFixedLayoutChild, GtkFixedLayoutChildLeaf, GtkFlattenListModel, GtkFlattenListModelLeaf, GtkFlowBox, GtkFlowBoxLeaf, GtkFlowBoxChild, GtkFlowBoxChildLeaf, GtkFontButton, GtkFontButtonLeaf, GtkFontChooserDialog, GtkFontChooserDialogLeaf, GtkFontChooserWidget, GtkFontChooserWidgetLeaf, GtkFontDialog, GtkFontDialogLeaf, GtkFontDialogButton, GtkFontDialogButtonLeaf, GtkFrame, GtkFrameLeaf, GtkGLArea, GtkGLAreaLeaf, GtkGesture, GtkGestureClick, GtkGestureClickLeaf, GtkGestureDrag, GtkGestureDragLeaf, GtkGestureLongPress, GtkGestureLongPressLeaf, GtkGesturePan, GtkGesturePanLeaf, GtkGestureRotate, GtkGestureRotateLeaf, GtkGestureSingle, GtkGestureSingleLeaf, GtkGestureStylus, GtkGestureStylusLeaf, GtkGestureSwipe, GtkGestureSwipeLeaf, GtkGestureZoom, GtkGestureZoomLeaf, GtkGrid, GtkGridLeaf, GtkGridLayout, GtkGridLayoutLeaf, GtkGridLayoutChild, GtkGridLayoutChildLeaf, GtkGridView, GtkGridViewLeaf, GtkHeaderBar, GtkHeaderBarLeaf, GtkIMContext, GtkIMContextSimple, GtkIMContextSimpleLeaf, GtkIMMulticontext, GtkIMMulticontextLeaf, GtkIconPaintable, GtkIconPaintableLeaf, GtkIconTheme, GtkIconThemeLeaf, GtkIconView, GtkIconViewLeaf, GtkImage, GtkImageLeaf, GtkInfoBar, GtkInfoBarLeaf, GtkInscription, GtkInscriptionLeaf, GtkKeyvalTrigger, GtkKeyvalTriggerLeaf, GtkLabel, GtkLabelLeaf, GtkLayoutChild, GtkLayoutManager, GtkLevelBar, GtkLevelBarLeaf, GtkLinkButton, GtkLinkButtonLeaf, GtkListBase, GtkListBox, GtkListBoxLeaf, GtkListBoxRow, GtkListBoxRowLeaf, GtkListHeader, GtkListHeaderLeaf, GtkListItem, GtkListItemLeaf, GtkListItemFactory, GtkListItemFactoryLeaf, GtkListStore, GtkListStoreLeaf, GtkListView, GtkListViewLeaf, GtkLockButton, GtkLockButtonLeaf, GtkMapListModel, GtkMapListModelLeaf, GtkMediaControls, GtkMediaControlsLeaf, GtkMediaFile, GtkMediaStream, GtkMenuButton, GtkMenuButtonLeaf, GtkMessageDialog, GtkMessageDialogLeaf, GtkMnemonicAction, GtkMnemonicActionLeaf, GtkMnemonicTrigger, GtkMnemonicTriggerLeaf, GtkMountOperation, GtkMountOperationLeaf, GtkMultiFilter, GtkMultiSelection, GtkMultiSelectionLeaf, GtkMultiSorter, GtkMultiSorterLeaf, GtkNamedAction, GtkNamedActionLeaf, GtkNativeDialog, GtkNeverTrigger, GtkNeverTriggerLeaf, GtkNoSelection, GtkNoSelectionLeaf, GtkNotebook, GtkNotebookLeaf, GtkNotebookPage, GtkNotebookPageLeaf, GtkNothingAction, GtkNothingActionLeaf, GtkNumericSorter, GtkNumericSorterLeaf, GtkObjectExpression, GtkObjectExpressionLeaf, GtkOverlay, GtkOverlayLeaf, GtkOverlayLayout, GtkOverlayLayoutLeaf, GtkOverlayLayoutChild, GtkOverlayLayoutChildLeaf, GtkPadController, GtkPadControllerLeaf, GtkPageSetup, GtkPageSetupLeaf, GtkPaned, GtkPanedLeaf, GtkPasswordEntry, GtkPasswordEntryLeaf, GtkPasswordEntryBuffer, GtkPasswordEntryBufferLeaf, GtkPicture, GtkPictureLeaf, GtkPopover, GtkPopoverLeaf, GtkPopoverMenu, GtkPopoverMenuLeaf, GtkPopoverMenuBar, GtkPopoverMenuBarLeaf, GtkPrintContext, GtkPrintContextLeaf, GtkPrintJob, GtkPrintJobLeaf, GtkPrintOperation, GtkPrintOperationLeaf, GtkPrintSettings, GtkPrintSettingsLeaf, GtkPrinter, GtkPrinterLeaf, GtkProgressBar, GtkProgressBarLeaf, GtkPropertyExpression, GtkPropertyExpressionLeaf, GtkRange, GtkRangeLeaf, GtkRecentManager, GtkRecentManagerLeaf, GtkRevealer, GtkRevealerLeaf, GtkScale, GtkScaleLeaf, GtkScaleButton, GtkScaleButtonLeaf, GtkScrollbar, GtkScrollbarLeaf, GtkScrolledWindow, GtkScrolledWindowLeaf, GtkSearchBar, GtkSearchBarLeaf, GtkSearchEntry, GtkSearchEntryLeaf, GtkSelectionFilterModel, GtkSelectionFilterModelLeaf, GtkSeparator, GtkSeparatorLeaf, GtkSettings, GtkSettingsLeaf, GtkShortcut, GtkShortcutLeaf, GtkShortcutAction, GtkShortcutController, GtkShortcutControllerLeaf, GtkShortcutLabel, GtkShortcutLabelLeaf, GtkShortcutTrigger, GtkShortcutsGroup, GtkShortcutsGroupLeaf, GtkShortcutsSection, GtkShortcutsSectionLeaf, GtkShortcutsShortcut, GtkShortcutsShortcutLeaf, GtkShortcutsWindow, GtkShortcutsWindowLeaf, GtkSignalAction, GtkSignalActionLeaf, GtkSignalListItemFactory, GtkSignalListItemFactoryLeaf, GtkSingleSelection, GtkSingleSelectionLeaf, GtkSizeGroup, GtkSizeGroupLeaf, GtkSliceListModel, GtkSliceListModelLeaf, GtkSnapshot, GtkSnapshotLeaf, GtkSortListModel, GtkSortListModelLeaf, GtkSorter, GtkSorterLeaf, GtkSpinButton, GtkSpinButtonLeaf, GtkSpinner, GtkSpinnerLeaf, GtkStack, GtkStackLeaf, GtkStackPage, GtkStackPageLeaf, GtkStackSidebar, GtkStackSidebarLeaf, GtkStackSwitcher, GtkStackSwitcherLeaf, GtkStatusbar, GtkStatusbarLeaf, GtkStringFilter, GtkStringFilterLeaf, GtkStringList, GtkStringListLeaf, GtkStringObject, GtkStringObjectLeaf, GtkStringSorter, GtkStringSorterLeaf, GtkStyleContext, GtkStyleContextLeaf, GtkSwitch, GtkSwitchLeaf, GtkText, GtkTextLeaf, GtkTextBuffer, GtkTextBufferLeaf, GtkTextChildAnchor, GtkTextChildAnchorLeaf, GtkTextMark, GtkTextMarkLeaf, GtkTextTag, GtkTextTagLeaf, GtkTextTagTable, GtkTextTagTableLeaf, GtkTextView, GtkTextViewLeaf, GtkToggleButton, GtkToggleButtonLeaf, GtkTooltip, GtkTooltipLeaf, GtkTreeExpander, GtkTreeExpanderLeaf, GtkTreeListModel, GtkTreeListModelLeaf, GtkTreeListRow, GtkTreeListRowLeaf, GtkTreeListRowSorter, GtkTreeListRowSorterLeaf, GtkTreeModelFilter, GtkTreeModelFilterLeaf, GtkTreeModelSort, GtkTreeModelSortLeaf, GtkTreeSelection, GtkTreeSelectionLeaf, GtkTreeStore, GtkTreeStoreLeaf, GtkTreeView, GtkTreeViewLeaf, GtkTreeViewColumn, GtkTreeViewColumnLeaf, GtkUriLauncher, GtkUriLauncherLeaf, GtkVideo, GtkVideoLeaf, GtkViewport, GtkViewportLeaf, GtkVolumeButton, GtkVolumeButtonLeaf, GtkWidget, GtkWidgetPaintable, GtkWidgetPaintableLeaf, GtkWindow, GtkWindowLeaf, GtkWindowControls, GtkWindowControlsLeaf, GtkWindowGroup, GtkWindowGroupLeaf, GtkWindowHandle, GtkWindowHandleLeaf, GtkAssistantPageFunc, GtkCellAllocCallback, GtkCellCallback, GtkCellLayoutDataFunc, GtkCustomFilterFunc, GtkDrawingAreaDrawFunc, GtkEntryCompletionMatchFunc, GtkExpressionNotify, GtkFlowBoxCreateWidgetFunc, GtkFlowBoxFilterFunc, GtkFlowBoxForeachFunc, GtkFlowBoxSortFunc, GtkFontFilterFunc, GtkIconViewForeachFunc, GtkListBoxCreateWidgetFunc, GtkListBoxFilterFunc, GtkListBoxForeachFunc, GtkListBoxSortFunc, GtkListBoxUpdateHeaderFunc, GtkMapListModelMapFunc, GtkMenuButtonCreatePopupFunc, GtkPageSetupDoneFunc, GtkPrintSettingsFunc, GtkPrinterFunc, GtkScaleFormatValueFunc, GtkShortcutFunc, GtkTextCharPredicate, GtkTextTagTableForeach, GtkTickCallback, GtkTreeCellDataFunc, GtkTreeIterCompareFunc, GtkTreeListModelCreateModelFunc, GtkTreeModelFilterModifyFunc, GtkTreeModelFilterVisibleFunc, GtkTreeModelForeachFunc, GtkTreeSelectionForeachFunc, GtkTreeSelectionFunc, GtkTreeViewColumnDropFunc, GtkTreeViewMappingFunc, GtkTreeViewRowSeparatorFunc, GtkTreeViewSearchEqualFunc + export GtkAccessibleList, GtkAccessibleTextRange, _GtkAccessibleTextRange, GtkBitset, GtkBitsetIter, _GtkBitsetIter, GtkBorder, _GtkBorder, GtkBuildableParseContext, GtkBuildableParser, _GtkBuildableParser, GtkCssLocation, _GtkCssLocation, GtkCssSection, GtkCssStyleChange, GtkExpressionWatch, GtkPadActionEntry, _GtkPadActionEntry, GtkPaperSize, GtkPrintBackend, GtkPrintSetup, GtkRecentData, _GtkRecentData, GtkRecentInfo, GtkRequestedSize, _GtkRequestedSize, GtkRequisition, _GtkRequisition, GtkScrollInfo, GtkTextIter, _GtkTextIter, GtkTreeIter, _GtkTreeIter, GtkTreePath, GtkAccessible, GtkAccessibleRange, GtkAccessibleText, GtkActionable, GtkAppChooser, GtkBuildable, GtkBuilderScope, GtkCellEditable, GtkCellLayout, GtkColorChooser, GtkConstraintTarget, GtkEditable, GtkFileChooser, GtkFontChooser, GtkNative, GtkOrientable, GtkPrintOperationPreview, GtkRoot, GtkScrollable, GtkSectionModel, GtkSelectionModel, GtkShortcutManager, GtkStyleProvider, GtkSymbolicPaintable, GtkTreeDragDest, GtkTreeDragSource, GtkTreeModel, GtkTreeSortable, GtkATContext, GtkAboutDialog, GtkAboutDialogLeaf, GtkActionBar, GtkActionBarLeaf, GtkActivateAction, GtkActivateActionLeaf, GtkAdjustment, GtkAdjustmentLeaf, GtkAlertDialog, GtkAlertDialogLeaf, GtkAlternativeTrigger, GtkAlternativeTriggerLeaf, GtkAnyFilter, GtkAnyFilterLeaf, GtkAppChooserButton, GtkAppChooserButtonLeaf, GtkAppChooserDialog, GtkAppChooserDialogLeaf, GtkAppChooserWidget, GtkAppChooserWidgetLeaf, GtkApplication, GtkApplicationLeaf, GtkApplicationWindow, GtkApplicationWindowLeaf, GtkAspectFrame, GtkAspectFrameLeaf, GtkAssistant, GtkAssistantLeaf, GtkAssistantPage, GtkAssistantPageLeaf, GtkBinLayout, GtkBinLayoutLeaf, GtkBookmarkList, GtkBookmarkListLeaf, GtkBoolFilter, GtkBoolFilterLeaf, GtkBox, GtkBoxLeaf, GtkBoxLayout, GtkBoxLayoutLeaf, GtkBuilder, GtkBuilderLeaf, GtkBuilderCScope, GtkBuilderCScopeLeaf, GtkBuilderListItemFactory, GtkBuilderListItemFactoryLeaf, GtkButton, GtkButtonLeaf, GtkCalendar, GtkCalendarLeaf, GtkCallbackAction, GtkCallbackActionLeaf, GtkCellArea, GtkCellAreaBox, GtkCellAreaBoxLeaf, GtkCellAreaContext, GtkCellAreaContextLeaf, GtkCellRenderer, GtkCellRendererAccel, GtkCellRendererAccelLeaf, GtkCellRendererCombo, GtkCellRendererComboLeaf, GtkCellRendererPixbuf, GtkCellRendererPixbufLeaf, GtkCellRendererProgress, GtkCellRendererProgressLeaf, GtkCellRendererSpin, GtkCellRendererSpinLeaf, GtkCellRendererSpinner, GtkCellRendererSpinnerLeaf, GtkCellRendererText, GtkCellRendererTextLeaf, GtkCellRendererToggle, GtkCellRendererToggleLeaf, GtkCellView, GtkCellViewLeaf, GtkCenterBox, GtkCenterBoxLeaf, GtkCenterLayout, GtkCenterLayoutLeaf, GtkCheckButton, GtkCheckButtonLeaf, GtkColorButton, GtkColorButtonLeaf, GtkColorChooserDialog, GtkColorChooserDialogLeaf, GtkColorChooserWidget, GtkColorChooserWidgetLeaf, GtkColorDialog, GtkColorDialogLeaf, GtkColorDialogButton, GtkColorDialogButtonLeaf, GtkColumnView, GtkColumnViewLeaf, GtkColumnViewCell, GtkColumnViewCellLeaf, GtkColumnViewColumn, GtkColumnViewColumnLeaf, GtkColumnViewRow, GtkColumnViewRowLeaf, GtkColumnViewSorter, GtkColumnViewSorterLeaf, GtkComboBox, GtkComboBoxLeaf, GtkComboBoxText, GtkComboBoxTextLeaf, GtkConstantExpression, GtkConstantExpressionLeaf, GtkConstraint, GtkConstraintLeaf, GtkConstraintGuide, GtkConstraintGuideLeaf, GtkConstraintLayout, GtkConstraintLayoutLeaf, GtkConstraintLayoutChild, GtkConstraintLayoutChildLeaf, GtkCssProvider, GtkCssProviderLeaf, GtkCustomFilter, GtkCustomFilterLeaf, GtkCustomLayout, GtkCustomLayoutLeaf, GtkCustomSorter, GtkCustomSorterLeaf, GtkDialog, GtkDialogLeaf, GtkDirectoryList, GtkDirectoryListLeaf, GtkDragIcon, GtkDragIconLeaf, GtkDragSource, GtkDragSourceLeaf, GtkDrawingArea, GtkDrawingAreaLeaf, GtkDropControllerMotion, GtkDropControllerMotionLeaf, GtkDropDown, GtkDropDownLeaf, GtkDropTarget, GtkDropTargetLeaf, GtkDropTargetAsync, GtkDropTargetAsyncLeaf, GtkEditableLabel, GtkEditableLabelLeaf, GtkEmojiChooser, GtkEmojiChooserLeaf, GtkEntry, GtkEntryLeaf, GtkEntryBuffer, GtkEntryBufferLeaf, GtkEntryCompletion, GtkEntryCompletionLeaf, GtkEventController, GtkEventControllerFocus, GtkEventControllerFocusLeaf, GtkEventControllerKey, GtkEventControllerKeyLeaf, GtkEventControllerLegacy, GtkEventControllerLegacyLeaf, GtkEventControllerMotion, GtkEventControllerMotionLeaf, GtkEventControllerScroll, GtkEventControllerScrollLeaf, GtkEveryFilter, GtkEveryFilterLeaf, GtkExpander, GtkExpanderLeaf, GtkExpression, GtkFileChooserDialog, GtkFileChooserDialogLeaf, GtkFileChooserNative, GtkFileChooserNativeLeaf, GtkFileChooserWidget, GtkFileChooserWidgetLeaf, GtkFileDialog, GtkFileDialogLeaf, GtkFileFilter, GtkFileFilterLeaf, GtkFileLauncher, GtkFileLauncherLeaf, GtkFilter, GtkFilterLeaf, GtkFilterListModel, GtkFilterListModelLeaf, GtkFixed, GtkFixedLeaf, GtkFixedLayout, GtkFixedLayoutLeaf, GtkFixedLayoutChild, GtkFixedLayoutChildLeaf, GtkFlattenListModel, GtkFlattenListModelLeaf, GtkFlowBox, GtkFlowBoxLeaf, GtkFlowBoxChild, GtkFlowBoxChildLeaf, GtkFontButton, GtkFontButtonLeaf, GtkFontChooserDialog, GtkFontChooserDialogLeaf, GtkFontChooserWidget, GtkFontChooserWidgetLeaf, GtkFontDialog, GtkFontDialogLeaf, GtkFontDialogButton, GtkFontDialogButtonLeaf, GtkFrame, GtkFrameLeaf, GtkGLArea, GtkGLAreaLeaf, GtkGesture, GtkGestureClick, GtkGestureClickLeaf, GtkGestureDrag, GtkGestureDragLeaf, GtkGestureLongPress, GtkGestureLongPressLeaf, GtkGesturePan, GtkGesturePanLeaf, GtkGestureRotate, GtkGestureRotateLeaf, GtkGestureSingle, GtkGestureSingleLeaf, GtkGestureStylus, GtkGestureStylusLeaf, GtkGestureSwipe, GtkGestureSwipeLeaf, GtkGestureZoom, GtkGestureZoomLeaf, GtkGraphicsOffload, GtkGraphicsOffloadLeaf, GtkGrid, GtkGridLeaf, GtkGridLayout, GtkGridLayoutLeaf, GtkGridLayoutChild, GtkGridLayoutChildLeaf, GtkGridView, GtkGridViewLeaf, GtkHeaderBar, GtkHeaderBarLeaf, GtkIMContext, GtkIMContextSimple, GtkIMContextSimpleLeaf, GtkIMMulticontext, GtkIMMulticontextLeaf, GtkIconPaintable, GtkIconPaintableLeaf, GtkIconTheme, GtkIconThemeLeaf, GtkIconView, GtkIconViewLeaf, GtkImage, GtkImageLeaf, GtkInfoBar, GtkInfoBarLeaf, GtkInscription, GtkInscriptionLeaf, GtkKeyvalTrigger, GtkKeyvalTriggerLeaf, GtkLabel, GtkLabelLeaf, GtkLayoutChild, GtkLayoutManager, GtkLevelBar, GtkLevelBarLeaf, GtkLinkButton, GtkLinkButtonLeaf, GtkListBase, GtkListBox, GtkListBoxLeaf, GtkListBoxRow, GtkListBoxRowLeaf, GtkListHeader, GtkListHeaderLeaf, GtkListItem, GtkListItemLeaf, GtkListItemFactory, GtkListItemFactoryLeaf, GtkListStore, GtkListStoreLeaf, GtkListView, GtkListViewLeaf, GtkLockButton, GtkLockButtonLeaf, GtkMapListModel, GtkMapListModelLeaf, GtkMediaControls, GtkMediaControlsLeaf, GtkMediaFile, GtkMediaStream, GtkMenuButton, GtkMenuButtonLeaf, GtkMessageDialog, GtkMessageDialogLeaf, GtkMnemonicAction, GtkMnemonicActionLeaf, GtkMnemonicTrigger, GtkMnemonicTriggerLeaf, GtkMountOperation, GtkMountOperationLeaf, GtkMultiFilter, GtkMultiSelection, GtkMultiSelectionLeaf, GtkMultiSorter, GtkMultiSorterLeaf, GtkNamedAction, GtkNamedActionLeaf, GtkNativeDialog, GtkNeverTrigger, GtkNeverTriggerLeaf, GtkNoSelection, GtkNoSelectionLeaf, GtkNotebook, GtkNotebookLeaf, GtkNotebookPage, GtkNotebookPageLeaf, GtkNothingAction, GtkNothingActionLeaf, GtkNumericSorter, GtkNumericSorterLeaf, GtkObjectExpression, GtkObjectExpressionLeaf, GtkOverlay, GtkOverlayLeaf, GtkOverlayLayout, GtkOverlayLayoutLeaf, GtkOverlayLayoutChild, GtkOverlayLayoutChildLeaf, GtkPadController, GtkPadControllerLeaf, GtkPageSetup, GtkPageSetupLeaf, GtkPaned, GtkPanedLeaf, GtkPasswordEntry, GtkPasswordEntryLeaf, GtkPasswordEntryBuffer, GtkPasswordEntryBufferLeaf, GtkPicture, GtkPictureLeaf, GtkPopover, GtkPopoverLeaf, GtkPopoverMenu, GtkPopoverMenuLeaf, GtkPopoverMenuBar, GtkPopoverMenuBarLeaf, GtkPrintContext, GtkPrintContextLeaf, GtkPrintDialog, GtkPrintDialogLeaf, GtkPrintJob, GtkPrintJobLeaf, GtkPrintOperation, GtkPrintOperationLeaf, GtkPrintSettings, GtkPrintSettingsLeaf, GtkPrinter, GtkPrinterLeaf, GtkProgressBar, GtkProgressBarLeaf, GtkPropertyExpression, GtkPropertyExpressionLeaf, GtkRange, GtkRangeLeaf, GtkRecentManager, GtkRecentManagerLeaf, GtkRevealer, GtkRevealerLeaf, GtkScale, GtkScaleLeaf, GtkScaleButton, GtkScaleButtonLeaf, GtkScrollbar, GtkScrollbarLeaf, GtkScrolledWindow, GtkScrolledWindowLeaf, GtkSearchBar, GtkSearchBarLeaf, GtkSearchEntry, GtkSearchEntryLeaf, GtkSelectionFilterModel, GtkSelectionFilterModelLeaf, GtkSeparator, GtkSeparatorLeaf, GtkSettings, GtkSettingsLeaf, GtkShortcut, GtkShortcutLeaf, GtkShortcutAction, GtkShortcutController, GtkShortcutControllerLeaf, GtkShortcutLabel, GtkShortcutLabelLeaf, GtkShortcutTrigger, GtkShortcutsGroup, GtkShortcutsGroupLeaf, GtkShortcutsSection, GtkShortcutsSectionLeaf, GtkShortcutsShortcut, GtkShortcutsShortcutLeaf, GtkShortcutsWindow, GtkShortcutsWindowLeaf, GtkSignalAction, GtkSignalActionLeaf, GtkSignalListItemFactory, GtkSignalListItemFactoryLeaf, GtkSingleSelection, GtkSingleSelectionLeaf, GtkSizeGroup, GtkSizeGroupLeaf, GtkSliceListModel, GtkSliceListModelLeaf, GtkSnapshot, GtkSnapshotLeaf, GtkSortListModel, GtkSortListModelLeaf, GtkSorter, GtkSorterLeaf, GtkSpinButton, GtkSpinButtonLeaf, GtkSpinner, GtkSpinnerLeaf, GtkStack, GtkStackLeaf, GtkStackPage, GtkStackPageLeaf, GtkStackSidebar, GtkStackSidebarLeaf, GtkStackSwitcher, GtkStackSwitcherLeaf, GtkStatusbar, GtkStatusbarLeaf, GtkStringFilter, GtkStringFilterLeaf, GtkStringList, GtkStringListLeaf, GtkStringObject, GtkStringObjectLeaf, GtkStringSorter, GtkStringSorterLeaf, GtkStyleContext, GtkStyleContextLeaf, GtkSwitch, GtkSwitchLeaf, GtkText, GtkTextLeaf, GtkTextBuffer, GtkTextBufferLeaf, GtkTextChildAnchor, GtkTextChildAnchorLeaf, GtkTextMark, GtkTextMarkLeaf, GtkTextTag, GtkTextTagLeaf, GtkTextTagTable, GtkTextTagTableLeaf, GtkTextView, GtkTextViewLeaf, GtkToggleButton, GtkToggleButtonLeaf, GtkTooltip, GtkTooltipLeaf, GtkTreeExpander, GtkTreeExpanderLeaf, GtkTreeListModel, GtkTreeListModelLeaf, GtkTreeListRow, GtkTreeListRowLeaf, GtkTreeListRowSorter, GtkTreeListRowSorterLeaf, GtkTreeModelFilter, GtkTreeModelFilterLeaf, GtkTreeModelSort, GtkTreeModelSortLeaf, GtkTreeSelection, GtkTreeSelectionLeaf, GtkTreeStore, GtkTreeStoreLeaf, GtkTreeView, GtkTreeViewLeaf, GtkTreeViewColumn, GtkTreeViewColumnLeaf, GtkUriLauncher, GtkUriLauncherLeaf, GtkVideo, GtkVideoLeaf, GtkViewport, GtkViewportLeaf, GtkVolumeButton, GtkVolumeButtonLeaf, GtkWidget, GtkWidgetPaintable, GtkWidgetPaintableLeaf, GtkWindow, GtkWindowLeaf, GtkWindowControls, GtkWindowControlsLeaf, GtkWindowGroup, GtkWindowGroupLeaf, GtkWindowHandle, GtkWindowHandleLeaf, GtkAssistantPageFunc, GtkCellAllocCallback, GtkCellCallback, GtkCellLayoutDataFunc, GtkCustomFilterFunc, GtkDrawingAreaDrawFunc, GtkEntryCompletionMatchFunc, GtkExpressionNotify, GtkFlowBoxCreateWidgetFunc, GtkFlowBoxFilterFunc, GtkFlowBoxForeachFunc, GtkFlowBoxSortFunc, GtkFontFilterFunc, GtkIconViewForeachFunc, GtkListBoxCreateWidgetFunc, GtkListBoxFilterFunc, GtkListBoxForeachFunc, GtkListBoxSortFunc, GtkListBoxUpdateHeaderFunc, GtkMapListModelMapFunc, GtkMenuButtonCreatePopupFunc, GtkPageSetupDoneFunc, GtkPrintSettingsFunc, GtkPrinterFunc, GtkScaleFormatValueFunc, GtkShortcutFunc, GtkTextCharPredicate, GtkTextTagTableForeach, GtkTickCallback, GtkTreeCellDataFunc, GtkTreeIterCompareFunc, GtkTreeListModelCreateModelFunc, GtkTreeModelFilterModifyFunc, GtkTreeModelFilterVisibleFunc, GtkTreeModelForeachFunc, GtkTreeSelectionForeachFunc, GtkTreeSelectionFunc, GtkTreeViewColumnDropFunc, GtkTreeViewMappingFunc, GtkTreeViewRowSeparatorFunc, GtkTreeViewSearchEqualFunc end)) end diff --git a/src/gen/pango_consts b/src/gen/pango_consts index 585c5be3..2b1ad531 100644 --- a/src/gen/pango_consts +++ b/src/gen/pango_consts @@ -12,8 +12,8 @@ $(Expr(:toplevel, quote const SCALE = 1024 const VERSION_MAJOR = 1 const VERSION_MICRO = 0 - const VERSION_MINOR = 51 - const VERSION_STRING = "1.51.0" + const VERSION_MINOR = 54 + const VERSION_STRING = "1.54.0" begin @cenum Alignment::Int32 Alignment_LEFT = 0 Alignment_CENTER = 1 Alignment_RIGHT = 2 (GLib.g_type(::Type{T}) where T <: Alignment) = begin diff --git a/src/gen/pango_methods b/src/gen/pango_methods index f3704752..9edef38f 100644 --- a/src/gen/pango_methods +++ b/src/gen/pango_methods @@ -530,6 +530,10 @@ $(Expr(:toplevel, quote ret = ccall(("pango_item_free", libpango), Nothing, (Ptr{_PangoItem},), instance) nothing end + function get_char_offset(instance::Union{PangoItem, Ref{_PangoItem}}) + ret = ccall(("pango_item_get_char_offset", libpango), Int32, (Ptr{_PangoItem},), instance) + ret + end function split(instance::Union{PangoItem, Ref{_PangoItem}}, _split_index::Integer, _split_offset::Integer) ret = ccall(("pango_item_split", libpango), Ptr{_PangoItem}, (Ptr{_PangoItem}, Int32, Int32), instance, _split_index, _split_offset) ret2 = convert(Union{PangoItem, Ref{_PangoItem}}, ret, true) @@ -1261,6 +1265,13 @@ $(Expr(:toplevel, quote ret2 = convert_if_not_null(PangoFontset, ret, true) ret2 end + function reload_font(instance::PangoFontMap, _font::PangoFont, _scale::Real, _context::Maybe(PangoContext), _variations::Maybe(Union{AbstractString, Symbol})) + _context_maybe = nothing_to_null(_context) + _variations_maybe = nothing_to_null(_variations) + ret = ccall(("pango_font_map_reload_font", libpango), Ptr{GObject}, (Ptr{GObject}, Ptr{GObject}, Float64, Ptr{GObject}, Cstring), instance, _font, _scale, _context_maybe, _variations_maybe) + ret2 = convert(PangoFont, ret, true) + ret2 + end function get_item_type(instance::PangoFontMap) get_item_type(GListModel(instance)) end