From 216179245d87eeeed0d9853449e486ab5fe17fa5 Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Sun, 12 Nov 2023 21:44:04 -0500 Subject: [PATCH 1/5] define interface methods that take objects that implement the interface as instance argument Saves having to type the interface name. Mainly useful in the getter/setter methods. --- GI/src/giexport.jl | 12 +- GI/src/giimport.jl | 72 +- Project.toml | 3 +- gen/gen_gobject.jl | 2 +- src/gen/gdk4_methods | 165 + src/gen/gdkpixbuf_methods | 21 + src/gen/gdkpixbuf_structs | 6 +- src/gen/gio_methods | 723 ++++ src/gen/gio_structs | 12 +- src/gen/gtk4_methods | 7955 ++++++++++++++++++++++++++++++++++++- src/gen/gtk4_structs | 20 +- src/gen/pango_methods | 24 + src/lists.jl | 7 +- 13 files changed, 8874 insertions(+), 148 deletions(-) diff --git a/GI/src/giexport.jl b/GI/src/giexport.jl index a753dc0a..3c4dc6db 100644 --- a/GI/src/giexport.jl +++ b/GI/src/giexport.jl @@ -279,7 +279,7 @@ function all_objects!(exprs,exports,ns;print_summary=true,handled=Symbol[],skipl loaded end -function all_object_methods!(exprs,ns;skiplist=Symbol[],object_skiplist=Symbol[], liboverride=nothing, exclude_deprecated=true) +function all_object_methods!(exprs,ns;skiplist=Symbol[],object_skiplist=Symbol[], liboverride=nothing, exclude_deprecated=true, interface_helpers=true) not_implemented=0 skipped=0 created=0 @@ -311,6 +311,16 @@ function all_object_methods!(exprs,ns;skiplist=Symbol[],object_skiplist=Symbol[] end end end + if interface_helpers + for i in get_interfaces(o) + printstyled("$(get_name(i))\n"; color=:blue) + for m in get_methods(i) + printstyled("$(get_name(m))\n"; color=:green) + fun = create_interface_method(m, o, liboverride) + fun !== nothing && push!(exprs, fun) + end + end + end end end diff --git a/GI/src/giimport.jl b/GI/src/giimport.jl index 684608d7..5fd6d4f5 100644 --- a/GI/src/giimport.jl +++ b/GI/src/giimport.jl @@ -1086,6 +1086,20 @@ function get_constructors(info::Union{GIStructInfo,GIObjectInfo};skiplist=Symbol outs end +function get_closure_args(info::GIFunctionInfo) + closure_args=Dict{Symbol,Int}() + for arg in get_args(info) + is_skip(arg) && continue + typ = extract_type(arg) + closure = get_closure(arg) + if typ.gitype == Function && closure > -1 + aname = Symbol("_", get_name(arg)) + closure_args[aname]=closure+1 + end + end + closure_args +end + function get_jargs(info::GIFunctionInfo) flags = get_flags(info) args = get_args(info) @@ -1097,13 +1111,15 @@ function get_jargs(info::GIFunctionInfo) push!(jargs, Arg(:instance, typeinfo.jtype)) end end - for arg in args + # go through args and find the closure arguments for each function argument + closure_args=get_closure_args(info) + for (iarg,arg) in enumerate(args) is_skip(arg) && continue aname = Symbol("_$(get_name(arg))") typ = extract_type(arg) dir = get_direction(arg) if dir != GIDirection.OUT - push!(jargs, Arg( aname, typ.jtype)) + !(iarg in values(closure_args)) && push!(jargs, Arg( aname, typ.jtype)) end end @@ -1127,6 +1143,32 @@ function constructor_name(info, mname) object !== nothing ? Symbol("$(get_name(object))_$mname") : mname end +function create_interface_method(info::GIFunctionInfo, obj::GIObjectInfo, liboverride = nothing) + name = get_name(info) + flags = get_flags(info) + if flags & GIFunction.IS_METHOD == 0 + return nothing + end + ms = get_methods(obj) + if findfirst(m->get_name(m)==name, ms) !== nothing # there is a conflicting object method + return nothing + end + jargs = get_jargs(info) + jargsp = copy(jargs) + typeinfo = extract_type(InstanceType,obj) + # replace the first argument of the definition with our object + jargsp[1] = Arg(:instance, typeinfo.jtype) + # replace the first argument of the call + callargs = Any[n for n in names(jargs)] + ifacename = get_full_name(get_container(info)) + callargs[1] = :($ifacename($(callargs[1]))) + j_call = Expr(:call, name, jparams(jargsp)... ) + blk = quote + $name($(callargs...)) + end + Expr(:function, j_call, blk) +end + # with some partial-evaluation half-magic # (or maybe just jit-compile-time macros) # this could be simplified significantly @@ -1138,12 +1180,11 @@ function create_method(info::GIFunctionInfo, liboverride = nothing) epilogue = Any[] retvals = Symbol[] cargs = Arg[] - jargs = Arg[] + jargs = get_jargs(info) if flags & GIFunction.IS_METHOD != 0 object = get_container(info) if object !== nothing typeinfo = extract_type(InstanceType,object) - push!(jargs, Arg(:instance, typeinfo.jtype)) push!(cargs, Arg(:instance, typeinfo.ctype)) end end @@ -1166,16 +1207,7 @@ function create_method(info::GIFunctionInfo, liboverride = nothing) end end # go through args and find the closure arguments for each function argument - closure_args=Dict{Symbol,Int}() - for arg in args - is_skip(arg) && continue - typ = extract_type(arg) - closure = get_closure(arg) - if typ.gitype == Function && closure > -1 - aname = Symbol("_", get_name(arg)) - closure_args[aname]=closure+1 - end - end + closure_args=get_closure_args(info) for (iarg,arg) in enumerate(args) is_skip(arg) && continue aname = Symbol("_$(get_name(arg))") @@ -1183,7 +1215,6 @@ function create_method(info::GIFunctionInfo, liboverride = nothing) dir = get_direction(arg) anametran = aname if dir != GIDirection.OUT - !(iarg in values(closure_args)) && push!(jargs, Arg( aname, typ.jtype)) anametran, expr = convert_to_c(aname,arg,typ) if expr !== nothing && !(iarg in values(closure_args)) if typ.gitype == Function @@ -1232,22 +1263,13 @@ function create_method(info::GIFunctionInfo, liboverride = nothing) arrlen=get_array_length(typeinfo) if typ.gitype == GICArray && arrlen >= 0 len_name=Symbol("_",get_name(args[arrlen+1])) - len_i=findfirst(a->(a.name === len_name),jargs) + len_i=findfirst(a->((Symbol("_$(get_name(a))") === len_name && get_direction(a) != GIDirection.OUT)),args) if len_i !== nothing - deleteat!(jargs,len_i) push!(prologue, :($len_name = length($aname))) end len_i=findfirst(==(len_name),retvals) len_i !== nothing && deleteat!(retvals,len_i) end - closure = get_closure(arg) - if typ.gitype == Function && closure > -1 - closure_name=Symbol("_",get_name(args[closure+1])) - closure_i=findfirst(a->(a.name === closure_name),jargs) - if closure_i !== nothing - deleteat!(jargs,closure_i) # could avoid this by using ignore_args to skip adding them to jargs - end - end end if rettype.gitype == GICArray arrlen=get_array_length(rettypeinfo) diff --git a/Project.toml b/Project.toml index 87daf975..2ce9a9fd 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Gtk4" uuid = "9db2cae5-386f-4011-9d63-a5602296539b" -version = "0.5.4" +version = "0.6.0" [deps] BitFlags = "d1d4a3ce-64b1-5f1a-9ba4-7e7e69966f35" @@ -35,6 +35,7 @@ Glib_jll = "2.74.0" Graphene_jll = "1.10" Graphics = "1" JLLWrappers = "1.4.0" +Libdl = "1.6" Librsvg_jll = "2.54" Pango_jll = "1.50" Preferences = "1" diff --git a/gen/gen_gobject.jl b/gen/gen_gobject.jl index 9a96307d..29326c01 100644 --- a/gen/gen_gobject.jl +++ b/gen/gen_gobject.jl @@ -60,7 +60,7 @@ skiplist=[ :watch_closure,:add_interface,:register_enum,:register_flags,:register_type, :getv,:notify_by_pspec,:interface_find_property,:interface_install_property,:interface_list_properties] -GI.all_object_methods!(exprs,ns;skiplist=skiplist,object_skiplist=[:BindingGroup,:SignalGroup]) +GI.all_object_methods!(exprs,ns;skiplist=skiplist,object_skiplist=[:BindingGroup,:SignalGroup], interface_helpers=false) GI.write_to_file(path,"gobject_methods",toplevel) diff --git a/src/gen/gdk4_methods b/src/gen/gdk4_methods index de16668e..8430e030 100644 --- a/src/gen/gdk4_methods +++ b/src/gen/gdk4_methods @@ -500,6 +500,15 @@ $(Expr(:toplevel, quote ret = ccall(("gdk_content_deserializer_return_success", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_source_object(instance::GdkContentDeserializer) + get_source_object(GAsyncResult(instance)) + end + function is_tagged(instance::GdkContentDeserializer, _source_tag::Maybe(Nothing)) + is_tagged(GAsyncResult(instance), _source_tag) + end + function legacy_propagate_error(instance::GdkContentDeserializer) + legacy_propagate_error(GAsyncResult(instance)) + end function ContentProvider_new_for_bytes(_mime_type::Union{AbstractString, Symbol}, _bytes::GBytes) ret = ccall(("gdk_content_provider_new_for_bytes", libgtk4), Ptr{GObject}, (Cstring, Ptr{GBytes}), _mime_type, _bytes) ret2 = GdkContentProviderLeaf(ret, true) @@ -605,6 +614,15 @@ $(Expr(:toplevel, quote ret = ccall(("gdk_content_serializer_return_success", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_source_object(instance::GdkContentSerializer) + get_source_object(GAsyncResult(instance)) + end + function is_tagged(instance::GdkContentSerializer, _source_tag::Maybe(Nothing)) + is_tagged(GAsyncResult(instance), _source_tag) + end + function legacy_propagate_error(instance::GdkContentSerializer) + legacy_propagate_error(GAsyncResult(instance)) + end function get_detail(instance::GdkCrossingEvent) ret = ccall(("gdk_crossing_event_get_detail", libgtk4), UInt32, (Ptr{GdkEvent},), instance) ret2 = NotifyType(ret) @@ -1388,6 +1406,54 @@ $(Expr(:toplevel, quote ret = ccall(("gdk_gl_texture_release", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function compute_concrete_size(instance::GdkGLTexture, _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::GdkGLTexture) + get_current_image(GdkPaintable(instance)) + end + function get_flags(instance::GdkGLTexture) + get_flags(GdkPaintable(instance)) + end + function get_intrinsic_aspect_ratio(instance::GdkGLTexture) + get_intrinsic_aspect_ratio(GdkPaintable(instance)) + end + function get_intrinsic_height(instance::GdkGLTexture) + get_intrinsic_height(GdkPaintable(instance)) + end + function get_intrinsic_width(instance::GdkGLTexture) + get_intrinsic_width(GdkPaintable(instance)) + end + function invalidate_contents(instance::GdkGLTexture) + invalidate_contents(GdkPaintable(instance)) + end + function invalidate_size(instance::GdkGLTexture) + invalidate_size(GdkPaintable(instance)) + end + function snapshot(instance::GdkGLTexture, _snapshot::GdkSnapshot, _width::Real, _height::Real) + snapshot(GdkPaintable(instance), _snapshot, _width, _height) + end + function equal(instance::GdkGLTexture, _icon2::Maybe(GIcon)) + equal(GIcon(instance), _icon2) + end + function hash(instance::GdkGLTexture) + hash(GIcon(instance)) + end + function serialize(instance::GdkGLTexture) + serialize(GIcon(instance)) + end + function to_string(instance::GdkGLTexture) + to_string(GIcon(instance)) + end + function load(instance::GdkGLTexture, _size::Integer, _cancellable::Maybe(GCancellable)) + load(GLoadableIcon(instance), _size, _cancellable) + end + function load_async(instance::GdkGLTexture, _size::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + load_async(GLoadableIcon(instance), _size, _cancellable, _callback) + end + function load_finish(instance::GdkGLTexture, _res::GAsyncResult) + load_finish(GLoadableIcon(instance), _res) + end function get_grab_surface(instance::GdkGrabBrokenEvent) ret = ccall(("gdk_grab_broken_event_get_grab_surface", libgtk4), Ptr{GObject}, (Ptr{GdkEvent},), instance) ret2 = convert(GdkSurface, ret, false) @@ -1444,6 +1510,54 @@ $(Expr(:toplevel, quote ret2 = GdkMemoryTextureLeaf(ret, true) ret2 end + function compute_concrete_size(instance::GdkMemoryTexture, _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::GdkMemoryTexture) + get_current_image(GdkPaintable(instance)) + end + function get_flags(instance::GdkMemoryTexture) + get_flags(GdkPaintable(instance)) + end + function get_intrinsic_aspect_ratio(instance::GdkMemoryTexture) + get_intrinsic_aspect_ratio(GdkPaintable(instance)) + end + function get_intrinsic_height(instance::GdkMemoryTexture) + get_intrinsic_height(GdkPaintable(instance)) + end + function get_intrinsic_width(instance::GdkMemoryTexture) + get_intrinsic_width(GdkPaintable(instance)) + end + function invalidate_contents(instance::GdkMemoryTexture) + invalidate_contents(GdkPaintable(instance)) + end + function invalidate_size(instance::GdkMemoryTexture) + invalidate_size(GdkPaintable(instance)) + end + function snapshot(instance::GdkMemoryTexture, _snapshot::GdkSnapshot, _width::Real, _height::Real) + snapshot(GdkPaintable(instance), _snapshot, _width, _height) + end + function equal(instance::GdkMemoryTexture, _icon2::Maybe(GIcon)) + equal(GIcon(instance), _icon2) + end + function hash(instance::GdkMemoryTexture) + hash(GIcon(instance)) + end + function serialize(instance::GdkMemoryTexture) + serialize(GIcon(instance)) + end + function to_string(instance::GdkMemoryTexture) + to_string(GIcon(instance)) + end + function load(instance::GdkMemoryTexture, _size::Integer, _cancellable::Maybe(GCancellable)) + load(GLoadableIcon(instance), _size, _cancellable) + end + function load_async(instance::GdkMemoryTexture, _size::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + load_async(GLoadableIcon(instance), _size, _cancellable, _callback) + end + function load_finish(instance::GdkMemoryTexture, _res::GAsyncResult) + load_finish(GLoadableIcon(instance), _res) + end function get_connector(instance::GdkMonitor) ret = ccall(("gdk_monitor_get_connector", libgtk4), Cstring, (Ptr{GObject},), instance) ret2 = string_or_nothing(ret, false) @@ -1780,6 +1894,54 @@ $(Expr(:toplevel, quote ret2 = convert(GBytes, ret, true) ret2 end + function compute_concrete_size(instance::GdkTexture, _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::GdkTexture) + get_current_image(GdkPaintable(instance)) + end + function get_flags(instance::GdkTexture) + get_flags(GdkPaintable(instance)) + end + function get_intrinsic_aspect_ratio(instance::GdkTexture) + get_intrinsic_aspect_ratio(GdkPaintable(instance)) + end + function get_intrinsic_height(instance::GdkTexture) + get_intrinsic_height(GdkPaintable(instance)) + end + function get_intrinsic_width(instance::GdkTexture) + get_intrinsic_width(GdkPaintable(instance)) + end + function invalidate_contents(instance::GdkTexture) + invalidate_contents(GdkPaintable(instance)) + end + function invalidate_size(instance::GdkTexture) + invalidate_size(GdkPaintable(instance)) + end + function snapshot(instance::GdkTexture, _snapshot::GdkSnapshot, _width::Real, _height::Real) + snapshot(GdkPaintable(instance), _snapshot, _width, _height) + end + function equal(instance::GdkTexture, _icon2::Maybe(GIcon)) + equal(GIcon(instance), _icon2) + end + function hash(instance::GdkTexture) + hash(GIcon(instance)) + end + function serialize(instance::GdkTexture) + serialize(GIcon(instance)) + end + function to_string(instance::GdkTexture) + to_string(GIcon(instance)) + end + function load(instance::GdkTexture, _size::Integer, _cancellable::Maybe(GCancellable)) + load(GLoadableIcon(instance), _size, _cancellable) + end + function load_async(instance::GdkTexture, _size::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + load_async(GLoadableIcon(instance), _size, _cancellable, _callback) + end + function load_finish(instance::GdkTexture, _res::GAsyncResult) + load_finish(GLoadableIcon(instance), _res) + end function get_emulating_pointer(instance::GdkTouchEvent) ret = ccall(("gdk_touch_event_get_emulating_pointer", libgtk4), Cint, (Ptr{GdkEvent},), instance) ret2 = convert(Bool, ret) @@ -1810,6 +1972,9 @@ $(Expr(:toplevel, quote ret = ccall(("gdk_touchpad_event_get_pinch_scale", libgtk4), Float64, (Ptr{GdkEvent},), instance) ret end + function init(instance::GdkVulkanContext, _cancellable::Maybe(GCancellable)) + init(GInitable(instance), _cancellable) + end function get_feature_group(instance::GdkDevicePad, _feature, _feature_idx::Integer) ret = ccall(("gdk_device_pad_get_feature_group", libgtk4), Int32, (Ptr{GObject}, UInt32, Int32), instance, _feature, _feature_idx) ret diff --git a/src/gen/gdkpixbuf_methods b/src/gen/gdkpixbuf_methods index 31790f57..86c7d1c0 100644 --- a/src/gen/gdkpixbuf_methods +++ b/src/gen/gdkpixbuf_methods @@ -416,6 +416,27 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function equal(instance::GdkPixbuf, _icon2::Maybe(GIcon)) + equal(GIcon(instance), _icon2) + end + function hash(instance::GdkPixbuf) + hash(GIcon(instance)) + end + function serialize(instance::GdkPixbuf) + serialize(GIcon(instance)) + end + function to_string(instance::GdkPixbuf) + to_string(GIcon(instance)) + end + function load(instance::GdkPixbuf, _size::Integer, _cancellable::Maybe(GCancellable)) + load(GLoadableIcon(instance), _size, _cancellable) + end + function load_async(instance::GdkPixbuf, _size::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + load_async(GLoadableIcon(instance), _size, _cancellable, _callback) + end + function load_finish(instance::GdkPixbuf, _res::GAsyncResult) + load_finish(GLoadableIcon(instance), _res) + end function PixbufAnimation_new_from_file(_filename::Union{AbstractString, Symbol}) err = err_buf() ret = ccall(("gdk_pixbuf_animation_new_from_file", libgdkpixbuf), Ptr{GObject}, (Cstring, Ptr{Ptr{GError}}), _filename, err) diff --git a/src/gen/gdkpixbuf_structs b/src/gen/gdkpixbuf_structs index a324703d..e6b9cb5d 100644 --- a/src/gen/gdkpixbuf_structs +++ b/src/gen/gdkpixbuf_structs @@ -230,8 +230,8 @@ $(Expr(:toplevel, quote GLib.setproperties!(obj; kwargs...) obj end - function GdkPixbuf(_data, _colorspace, _has_alpha::Bool, _bits_per_sample::Integer, _width::Integer, _height::Integer, _rowstride::Integer, _destroy_fn::Maybe(Function), _destroy_fn_data::Maybe(Nothing); kwargs...) - obj = G_.Pixbuf_new_from_data(_data, _colorspace, _has_alpha, _bits_per_sample, _width, _height, _rowstride, _destroy_fn, _destroy_fn_data) + function GdkPixbuf(_data, _colorspace, _has_alpha::Bool, _bits_per_sample::Integer, _width::Integer, _height::Integer, _rowstride::Integer, _destroy_fn::Maybe(Function); kwargs...) + obj = G_.Pixbuf_new_from_data(_data, _colorspace, _has_alpha, _bits_per_sample, _width, _height, _rowstride, _destroy_fn) GLib.setproperties!(obj; kwargs...) obj end @@ -307,7 +307,7 @@ $(Expr(:toplevel, quote f = data ret = f() begin - GLib.glib_ref(ret) + ret != C_NULL && GLib.glib_ref(ret) convert(Ptr{GObject}, GLib.get_pointer(ret)) end end diff --git a/src/gen/gio_methods b/src/gen/gio_methods index 976259bb..f22afcb1 100644 --- a/src/gen/gio_methods +++ b/src/gen/gio_methods @@ -500,6 +500,63 @@ $(Expr(:toplevel, quote ret = ccall(("g_application_withdraw_notification", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _id) nothing end + function action_added(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + action_added(GActionGroup(instance), _action_name) + end + function action_enabled_changed(instance::GApplication, _action_name::Union{AbstractString, Symbol}, _enabled::Bool) + action_enabled_changed(GActionGroup(instance), _action_name, _enabled) + end + function action_removed(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + action_removed(GActionGroup(instance), _action_name) + end + function action_state_changed(instance::GApplication, _action_name::Union{AbstractString, Symbol}, _state::GVariant) + action_state_changed(GActionGroup(instance), _action_name, _state) + end + function activate_action(instance::GApplication, _action_name::Union{AbstractString, Symbol}, _parameter::Maybe(GVariant)) + activate_action(GActionGroup(instance), _action_name, _parameter) + end + function change_action_state(instance::GApplication, _action_name::Union{AbstractString, Symbol}, _value::GVariant) + change_action_state(GActionGroup(instance), _action_name, _value) + end + function get_action_enabled(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + get_action_enabled(GActionGroup(instance), _action_name) + end + function get_action_parameter_type(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + get_action_parameter_type(GActionGroup(instance), _action_name) + end + function get_action_state(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + get_action_state(GActionGroup(instance), _action_name) + end + function get_action_state_hint(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + get_action_state_hint(GActionGroup(instance), _action_name) + end + function get_action_state_type(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + get_action_state_type(GActionGroup(instance), _action_name) + end + function has_action(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + has_action(GActionGroup(instance), _action_name) + end + function list_actions(instance::GApplication) + list_actions(GActionGroup(instance)) + end + function query_action(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + query_action(GActionGroup(instance), _action_name) + end + function add_action(instance::GApplication, _action::GAction) + add_action(GActionMap(instance), _action) + end + function add_action_entries(instance::GApplication, _entries, _user_data::Maybe(Nothing)) + add_action_entries(GActionMap(instance), _entries, _user_data) + end + function lookup_action(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + lookup_action(GActionMap(instance), _action_name) + end + function remove_action(instance::GApplication, _action_name::Union{AbstractString, Symbol}) + remove_action(GActionMap(instance), _action_name) + end + function remove_action_entries(instance::GApplication, _entries) + remove_action_entries(GActionMap(instance), _entries) + end function create_file_for_arg(instance::GApplicationCommandLine, _arg::Union{AbstractString, Symbol}) ret = ccall(("g_application_command_line_create_file_for_arg", libgio), Ptr{GObject}, (Ptr{GObject}, Cstring), instance, _arg) ret2 = begin @@ -633,6 +690,21 @@ $(Expr(:toplevel, quote ret = ccall(("g_buffered_input_stream_set_buffer_size", libgio), Nothing, (Ptr{GObject}, UInt64), instance, _size) nothing end + function can_seek(instance::GBufferedInputStream) + can_seek(GSeekable(instance)) + end + function can_truncate(instance::GBufferedInputStream) + can_truncate(GSeekable(instance)) + end + function seek(instance::GBufferedInputStream, _offset::Integer, _type, _cancellable::Maybe(GCancellable)) + seek(GSeekable(instance), _offset, _type, _cancellable) + end + function tell(instance::GBufferedInputStream) + tell(GSeekable(instance)) + end + function truncate(instance::GBufferedInputStream, _offset::Integer, _cancellable::Maybe(GCancellable)) + truncate(GSeekable(instance), _offset, _cancellable) + end function BufferedOutputStream_new(_base_stream::GOutputStream) ret = ccall(("g_buffered_output_stream_new", libgio), Ptr{GObject}, (Ptr{GObject},), _base_stream) ret2 = GBufferedOutputStreamLeaf(ret, true) @@ -660,6 +732,21 @@ $(Expr(:toplevel, quote ret = ccall(("g_buffered_output_stream_set_buffer_size", libgio), Nothing, (Ptr{GObject}, UInt64), instance, _size) nothing end + function can_seek(instance::GBufferedOutputStream) + can_seek(GSeekable(instance)) + end + function can_truncate(instance::GBufferedOutputStream) + can_truncate(GSeekable(instance)) + end + function seek(instance::GBufferedOutputStream, _offset::Integer, _type, _cancellable::Maybe(GCancellable)) + seek(GSeekable(instance), _offset, _type, _cancellable) + end + function tell(instance::GBufferedOutputStream) + tell(GSeekable(instance)) + end + function truncate(instance::GBufferedOutputStream, _offset::Integer, _cancellable::Maybe(GCancellable)) + truncate(GSeekable(instance), _offset, _cancellable) + end function BytesIcon_new(_bytes::GBytes) ret = ccall(("g_bytes_icon_new", libgio), Ptr{GObject}, (Ptr{GBytes},), _bytes) ret2 = GBytesIconLeaf(ret, true) @@ -670,6 +757,27 @@ $(Expr(:toplevel, quote ret2 = convert(GBytes, ret, false) ret2 end + function equal(instance::GBytesIcon, _icon2::Maybe(GIcon)) + equal(GIcon(instance), _icon2) + end + function hash(instance::GBytesIcon) + hash(GIcon(instance)) + end + function serialize(instance::GBytesIcon) + serialize(GIcon(instance)) + end + function to_string(instance::GBytesIcon) + to_string(GIcon(instance)) + end + function load(instance::GBytesIcon, _size::Integer, _cancellable::Maybe(GCancellable)) + load(GLoadableIcon(instance), _size, _cancellable) + end + function load_async(instance::GBytesIcon, _size::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + load_async(GLoadableIcon(instance), _size, _cancellable, _callback) + end + function load_finish(instance::GBytesIcon, _res::GAsyncResult) + load_finish(GLoadableIcon(instance), _res) + end function Cancellable_new() ret = ccall(("g_cancellable_new", libgio), Ptr{GObject}, ()) ret2 = GCancellableLeaf(ret, true) @@ -745,6 +853,15 @@ $(Expr(:toplevel, quote ret = ccall(("g_charset_converter_set_use_fallback", libgio), Nothing, (Ptr{GObject}, Cint), instance, _use_fallback) nothing end + function convert(instance::GCharsetConverter, _inbuf, _outbuf, _flags) + convert(GConverter(instance), _inbuf, _outbuf, _flags) + end + function reset(instance::GCharsetConverter) + reset(GConverter(instance)) + end + function init(instance::GCharsetConverter, _cancellable::Maybe(GCancellable)) + init(GInitable(instance), _cancellable) + end function ConverterInputStream_new(_base_stream::GInputStream, _converter::GConverter) ret = ccall(("g_converter_input_stream_new", libgio), Ptr{GObject}, (Ptr{GObject}, Ptr{GObject}), _base_stream, _converter) ret2 = GConverterInputStreamLeaf(ret, true) @@ -758,6 +875,18 @@ $(Expr(:toplevel, quote end ret2 end + function can_poll(instance::GConverterInputStream) + can_poll(GPollableInputStream(instance)) + end + function create_source(instance::GConverterInputStream, _cancellable::Maybe(GCancellable)) + create_source(GPollableInputStream(instance), _cancellable) + end + function is_readable(instance::GConverterInputStream) + is_readable(GPollableInputStream(instance)) + end + function read_nonblocking(instance::GConverterInputStream, _cancellable::Maybe(GCancellable)) + read_nonblocking(GPollableInputStream(instance), _cancellable) + end function ConverterOutputStream_new(_base_stream::GOutputStream, _converter::GConverter) ret = ccall(("g_converter_output_stream_new", libgio), Ptr{GObject}, (Ptr{GObject}, Ptr{GObject}), _base_stream, _converter) ret2 = GConverterOutputStreamLeaf(ret, true) @@ -771,6 +900,21 @@ $(Expr(:toplevel, quote end ret2 end + function can_poll(instance::GConverterOutputStream) + can_poll(GPollableOutputStream(instance)) + end + function create_source(instance::GConverterOutputStream, _cancellable::Maybe(GCancellable)) + create_source(GPollableOutputStream(instance), _cancellable) + end + function is_writable(instance::GConverterOutputStream) + is_writable(GPollableOutputStream(instance)) + end + function write_nonblocking(instance::GConverterOutputStream, _buffer, _cancellable::Maybe(GCancellable)) + write_nonblocking(GPollableOutputStream(instance), _buffer, _cancellable) + end + function writev_nonblocking(instance::GConverterOutputStream, _vectors, _cancellable::Maybe(GCancellable)) + writev_nonblocking(GPollableOutputStream(instance), _vectors, _cancellable) + end function Credentials_new() ret = ccall(("g_credentials_new", libgio), Ptr{GObject}, ()) ret2 = GCredentialsLeaf(ret, true) @@ -817,6 +961,54 @@ $(Expr(:toplevel, quote ret2 = convert(GDBusActionGroup, ret, true) ret2 end + function action_added(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}) + action_added(GActionGroup(instance), _action_name) + end + function action_enabled_changed(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}, _enabled::Bool) + action_enabled_changed(GActionGroup(instance), _action_name, _enabled) + end + function action_removed(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}) + action_removed(GActionGroup(instance), _action_name) + end + function action_state_changed(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}, _state::GVariant) + action_state_changed(GActionGroup(instance), _action_name, _state) + end + function activate_action(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}, _parameter::Maybe(GVariant)) + activate_action(GActionGroup(instance), _action_name, _parameter) + end + function change_action_state(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}, _value::GVariant) + change_action_state(GActionGroup(instance), _action_name, _value) + end + function get_action_enabled(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}) + get_action_enabled(GActionGroup(instance), _action_name) + end + function get_action_parameter_type(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}) + get_action_parameter_type(GActionGroup(instance), _action_name) + end + function get_action_state(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}) + get_action_state(GActionGroup(instance), _action_name) + end + function get_action_state_hint(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}) + get_action_state_hint(GActionGroup(instance), _action_name) + end + function get_action_state_type(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}) + get_action_state_type(GActionGroup(instance), _action_name) + end + function has_action(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}) + has_action(GActionGroup(instance), _action_name) + end + function list_actions(instance::GDBusActionGroup) + list_actions(GActionGroup(instance)) + end + function query_action(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}) + query_action(GActionGroup(instance), _action_name) + end + function activate_action_full(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}, _parameter::Maybe(GVariant), _platform_data::GVariant) + activate_action_full(GRemoteActionGroup(instance), _action_name, _parameter, _platform_data) + end + function change_action_state_full(instance::GDBusActionGroup, _action_name::Union{AbstractString, Symbol}, _value::GVariant, _platform_data::GVariant) + change_action_state_full(GRemoteActionGroup(instance), _action_name, _value, _platform_data) + end function DBusAuthObserver_new() ret = ccall(("g_dbus_auth_observer_new", libgio), Ptr{GObject}, ()) ret2 = GDBusAuthObserverLeaf(ret, true) @@ -879,6 +1071,12 @@ $(Expr(:toplevel, quote ret = ccall(("g_dbus_interface_skeleton_unexport_from_connection", libgio), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _connection) nothing end + function get_object(instance::GDBusInterfaceSkeleton) + get_object(GDBusInterface(instance)) + end + function set_object(instance::GDBusInterfaceSkeleton, _object::Maybe(GDBusObject)) + set_object(GDBusInterface(instance), _object) + end function DBusMessage_new() ret = ccall(("g_dbus_message_new", libgio), Ptr{GObject}, ()) ret2 = GDBusMessageLeaf(ret, true) @@ -1142,6 +1340,27 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, true) ret2 end + function init_async(instance::GDBusObjectManagerClient, _io_priority::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + init_async(GAsyncInitable(instance), _io_priority, _cancellable, _callback) + end + function init_finish(instance::GDBusObjectManagerClient, _res::GAsyncResult) + init_finish(GAsyncInitable(instance), _res) + end + function get_interface(instance::GDBusObjectManagerClient, _object_path::Union{AbstractString, Symbol}, _interface_name::Union{AbstractString, Symbol}) + get_interface(GDBusObjectManager(instance), _object_path, _interface_name) + end + function get_object(instance::GDBusObjectManagerClient, _object_path::Union{AbstractString, Symbol}) + get_object(GDBusObjectManager(instance), _object_path) + end + function get_object_path(instance::GDBusObjectManagerClient) + get_object_path(GDBusObjectManager(instance)) + end + function get_objects(instance::GDBusObjectManagerClient) + get_objects(GDBusObjectManager(instance)) + end + function init(instance::GDBusObjectManagerClient, _cancellable::Maybe(GCancellable)) + init(GInitable(instance), _cancellable) + end function DBusObjectManagerServer_new(_object_path::Union{AbstractString, Symbol}) ret = ccall(("g_dbus_object_manager_server_new", libgio), Ptr{GObject}, (Cstring,), _object_path) ret2 = GDBusObjectManagerServerLeaf(ret, true) @@ -1171,6 +1390,18 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function get_interface(instance::GDBusObjectManagerServer, _object_path::Union{AbstractString, Symbol}, _interface_name::Union{AbstractString, Symbol}) + get_interface(GDBusObjectManager(instance), _object_path, _interface_name) + end + function get_object(instance::GDBusObjectManagerServer, _object_path::Union{AbstractString, Symbol}) + get_object(GDBusObjectManager(instance), _object_path) + end + function get_object_path(instance::GDBusObjectManagerServer) + get_object_path(GDBusObjectManager(instance)) + end + function get_objects(instance::GDBusObjectManagerServer) + get_objects(GDBusObjectManager(instance)) + end function DBusObjectProxy_new(_connection::GDBusConnection, _object_path::Union{AbstractString, Symbol}) ret = ccall(("g_dbus_object_proxy_new", libgio), Ptr{GObject}, (Ptr{GObject}, Cstring), _connection, _object_path) ret2 = GDBusObjectProxyLeaf(ret, true) @@ -1181,6 +1412,15 @@ $(Expr(:toplevel, quote ret2 = convert(GDBusConnection, ret, false) ret2 end + function get_interface(instance::GDBusObjectProxy, _interface_name::Union{AbstractString, Symbol}) + get_interface(GDBusObject(instance), _interface_name) + end + function get_interfaces(instance::GDBusObjectProxy) + get_interfaces(GDBusObject(instance)) + end + function get_object_path(instance::GDBusObjectProxy) + get_object_path(GDBusObject(instance)) + end function DBusObjectSkeleton_new(_object_path::Union{AbstractString, Symbol}) ret = ccall(("g_dbus_object_skeleton_new", libgio), Ptr{GObject}, (Cstring,), _object_path) ret2 = GDBusObjectSkeletonLeaf(ret, true) @@ -1206,6 +1446,15 @@ $(Expr(:toplevel, quote ret = ccall(("g_dbus_object_skeleton_set_object_path", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _object_path) nothing end + function get_interface(instance::GDBusObjectSkeleton, _interface_name::Union{AbstractString, Symbol}) + get_interface(GDBusObject(instance), _interface_name) + end + function get_interfaces(instance::GDBusObjectSkeleton) + get_interfaces(GDBusObject(instance)) + end + function get_object_path(instance::GDBusObjectSkeleton) + get_object_path(GDBusObject(instance)) + end function get_client_address(instance::GDBusServer) ret = ccall(("g_dbus_server_get_client_address", libgio), Cstring, (Ptr{GObject},), instance) ret2 = string_or_nothing(ret, false) @@ -1234,6 +1483,9 @@ $(Expr(:toplevel, quote ret = ccall(("g_dbus_server_stop", libgio), Nothing, (Ptr{GObject},), instance) nothing end + function init(instance::GDBusServer, _cancellable::Maybe(GCancellable)) + init(GInitable(instance), _cancellable) + end function DataInputStream_new(_base_stream::GInputStream) ret = ccall(("g_data_input_stream_new", libgio), Ptr{GObject}, (Ptr{GObject},), _base_stream) ret2 = GDataInputStreamLeaf(ret, true) @@ -1368,6 +1620,21 @@ $(Expr(:toplevel, quote ret = ccall(("g_data_input_stream_set_newline_type", libgio), Nothing, (Ptr{GObject}, UInt32), instance, _type) nothing end + function can_seek(instance::GDataInputStream) + can_seek(GSeekable(instance)) + end + function can_truncate(instance::GDataInputStream) + can_truncate(GSeekable(instance)) + end + function seek(instance::GDataInputStream, _offset::Integer, _type, _cancellable::Maybe(GCancellable)) + seek(GSeekable(instance), _offset, _type, _cancellable) + end + function tell(instance::GDataInputStream) + tell(GSeekable(instance)) + end + function truncate(instance::GDataInputStream, _offset::Integer, _cancellable::Maybe(GCancellable)) + truncate(GSeekable(instance), _offset, _cancellable) + end function DataOutputStream_new(_base_stream::GOutputStream) ret = ccall(("g_data_output_stream_new", libgio), Ptr{GObject}, (Ptr{GObject},), _base_stream) ret2 = GDataOutputStreamLeaf(ret, true) @@ -1446,6 +1713,21 @@ $(Expr(:toplevel, quote ret = ccall(("g_data_output_stream_set_byte_order", libgio), Nothing, (Ptr{GObject}, UInt32), instance, _order) nothing end + function can_seek(instance::GDataOutputStream) + can_seek(GSeekable(instance)) + end + function can_truncate(instance::GDataOutputStream) + can_truncate(GSeekable(instance)) + end + function seek(instance::GDataOutputStream, _offset::Integer, _type, _cancellable::Maybe(GCancellable)) + seek(GSeekable(instance), _offset, _type, _cancellable) + end + function tell(instance::GDataOutputStream) + tell(GSeekable(instance)) + end + function truncate(instance::GDataOutputStream, _offset::Integer, _cancellable::Maybe(GCancellable)) + truncate(GSeekable(instance), _offset, _cancellable) + end function DesktopAppInfo_new(_desktop_id::Union{AbstractString, Symbol}) ret = ccall(("g_desktop_app_info_new", libgio), Ptr{GObject}, (Cstring,), _desktop_id) ret2 = convert_if_not_null(GDesktopAppInfo, ret, true) @@ -1612,6 +1894,81 @@ $(Expr(:toplevel, quote end ret2 end + function add_supports_type(instance::GDesktopAppInfo, _content_type::Union{AbstractString, Symbol}) + add_supports_type(GAppInfo(instance), _content_type) + end + function can_delete(instance::GDesktopAppInfo) + can_delete(GAppInfo(instance)) + end + function can_remove_supports_type(instance::GDesktopAppInfo) + can_remove_supports_type(GAppInfo(instance)) + end + function delete(instance::GDesktopAppInfo) + delete(GAppInfo(instance)) + end + function dup(instance::GDesktopAppInfo) + dup(GAppInfo(instance)) + end + function equal(instance::GDesktopAppInfo, _appinfo2::GAppInfo) + equal(GAppInfo(instance), _appinfo2) + end + function get_commandline(instance::GDesktopAppInfo) + get_commandline(GAppInfo(instance)) + end + function get_description(instance::GDesktopAppInfo) + get_description(GAppInfo(instance)) + end + function get_display_name(instance::GDesktopAppInfo) + get_display_name(GAppInfo(instance)) + end + function get_executable(instance::GDesktopAppInfo) + get_executable(GAppInfo(instance)) + end + function get_icon(instance::GDesktopAppInfo) + get_icon(GAppInfo(instance)) + end + function get_id(instance::GDesktopAppInfo) + get_id(GAppInfo(instance)) + end + function get_name(instance::GDesktopAppInfo) + get_name(GAppInfo(instance)) + end + function get_supported_types(instance::GDesktopAppInfo) + get_supported_types(GAppInfo(instance)) + end + function launch(instance::GDesktopAppInfo, _files::Maybe(GLib.LList{GLib._GList{Ptr{GObject}}}), _context::Maybe(GAppLaunchContext)) + launch(GAppInfo(instance), _files, _context) + end + function launch_uris(instance::GDesktopAppInfo, _uris::Maybe(GLib.LList{GLib._GList{Cstring}}), _context::Maybe(GAppLaunchContext)) + launch_uris(GAppInfo(instance), _uris, _context) + end + function launch_uris_async(instance::GDesktopAppInfo, _uris::Maybe(GLib.LList{GLib._GList{Cstring}}), _context::Maybe(GAppLaunchContext), _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + launch_uris_async(GAppInfo(instance), _uris, _context, _cancellable, _callback) + end + function launch_uris_finish(instance::GDesktopAppInfo, _result::GAsyncResult) + launch_uris_finish(GAppInfo(instance), _result) + end + function remove_supports_type(instance::GDesktopAppInfo, _content_type::Union{AbstractString, Symbol}) + remove_supports_type(GAppInfo(instance), _content_type) + end + function set_as_default_for_extension(instance::GDesktopAppInfo, _extension::Union{AbstractString, Symbol}) + set_as_default_for_extension(GAppInfo(instance), _extension) + end + function set_as_default_for_type(instance::GDesktopAppInfo, _content_type::Union{AbstractString, Symbol}) + set_as_default_for_type(GAppInfo(instance), _content_type) + end + function set_as_last_used_for_type(instance::GDesktopAppInfo, _content_type::Union{AbstractString, Symbol}) + set_as_last_used_for_type(GAppInfo(instance), _content_type) + end + function should_show(instance::GDesktopAppInfo) + should_show(GAppInfo(instance)) + end + function supports_files(instance::GDesktopAppInfo) + supports_files(GAppInfo(instance)) + end + function supports_uris(instance::GDesktopAppInfo) + supports_uris(GAppInfo(instance)) + end function Emblem_new(_icon::GIcon) ret = ccall(("g_emblem_new", libgio), Ptr{GObject}, (Ptr{GObject},), _icon) ret2 = GEmblemLeaf(ret, true) @@ -1635,6 +1992,18 @@ $(Expr(:toplevel, quote ret2 = EmblemOrigin(ret) ret2 end + function equal(instance::GEmblem, _icon2::Maybe(GIcon)) + equal(GIcon(instance), _icon2) + end + function hash(instance::GEmblem) + hash(GIcon(instance)) + end + function serialize(instance::GEmblem) + serialize(GIcon(instance)) + end + function to_string(instance::GEmblem) + to_string(GIcon(instance)) + end function EmblemedIcon_new(_icon::GIcon, _emblem::Maybe(GEmblem)) _emblem_maybe = nothing_to_null(_emblem) ret = ccall(("g_emblemed_icon_new", libgio), Ptr{GObject}, (Ptr{GObject}, Ptr{GObject}), _icon, _emblem_maybe) @@ -1661,6 +2030,18 @@ $(Expr(:toplevel, quote end ret2 end + function equal(instance::GEmblemedIcon, _icon2::Maybe(GIcon)) + equal(GIcon(instance), _icon2) + end + function hash(instance::GEmblemedIcon) + hash(GIcon(instance)) + end + function serialize(instance::GEmblemedIcon) + serialize(GIcon(instance)) + end + function to_string(instance::GEmblemedIcon) + to_string(GIcon(instance)) + end function close(instance::GFileEnumerator, _cancellable::Maybe(GCancellable)) _cancellable_maybe = nothing_to_null(_cancellable) err = err_buf() @@ -1794,6 +2175,21 @@ $(Expr(:toplevel, quote ret2 = convert(GFileInfo, ret, true) ret2 end + function can_seek(instance::GFileIOStream) + can_seek(GSeekable(instance)) + end + function can_truncate(instance::GFileIOStream) + can_truncate(GSeekable(instance)) + end + function seek(instance::GFileIOStream, _offset::Integer, _type, _cancellable::Maybe(GCancellable)) + seek(GSeekable(instance), _offset, _type, _cancellable) + end + function tell(instance::GFileIOStream) + tell(GSeekable(instance)) + end + function truncate(instance::GFileIOStream, _offset::Integer, _cancellable::Maybe(GCancellable)) + truncate(GSeekable(instance), _offset, _cancellable) + end function FileIcon_new(_file::GFile) ret = ccall(("g_file_icon_new", libgio), Ptr{GObject}, (Ptr{GObject},), _file) ret2 = GFileIconLeaf(ret, true) @@ -1807,6 +2203,27 @@ $(Expr(:toplevel, quote end ret2 end + function equal(instance::GFileIcon, _icon2::Maybe(GIcon)) + equal(GIcon(instance), _icon2) + end + function hash(instance::GFileIcon) + hash(GIcon(instance)) + end + function serialize(instance::GFileIcon) + serialize(GIcon(instance)) + end + function to_string(instance::GFileIcon) + to_string(GIcon(instance)) + end + function load(instance::GFileIcon, _size::Integer, _cancellable::Maybe(GCancellable)) + load(GLoadableIcon(instance), _size, _cancellable) + end + function load_async(instance::GFileIcon, _size::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function)) + load_async(GLoadableIcon(instance), _size, _cancellable, _callback) + end + function load_finish(instance::GFileIcon, _res::GAsyncResult) + load_finish(GLoadableIcon(instance), _res) + end function FileInfo_new() ret = ccall(("g_file_info_new", libgio), Ptr{GObject}, ()) ret2 = GFileInfoLeaf(ret, true) @@ -2152,6 +2569,21 @@ $(Expr(:toplevel, quote ret2 = convert(GFileInfo, ret, true) ret2 end + function can_seek(instance::GFileInputStream) + can_seek(GSeekable(instance)) + end + function can_truncate(instance::GFileInputStream) + can_truncate(GSeekable(instance)) + end + function seek(instance::GFileInputStream, _offset::Integer, _type, _cancellable::Maybe(GCancellable)) + seek(GSeekable(instance), _offset, _type, _cancellable) + end + function tell(instance::GFileInputStream) + tell(GSeekable(instance)) + end + function truncate(instance::GFileInputStream, _offset::Integer, _cancellable::Maybe(GCancellable)) + truncate(GSeekable(instance), _offset, _cancellable) + end function cancel(instance::GFileMonitor) ret = ccall(("g_file_monitor_cancel", libgio), Cint, (Ptr{GObject},), instance) ret2 = convert(Bool, ret) @@ -2202,6 +2634,21 @@ $(Expr(:toplevel, quote ret2 = convert(GFileInfo, ret, true) ret2 end + function can_seek(instance::GFileOutputStream) + can_seek(GSeekable(instance)) + end + function can_truncate(instance::GFileOutputStream) + can_truncate(GSeekable(instance)) + end + function seek(instance::GFileOutputStream, _offset::Integer, _type, _cancellable::Maybe(GCancellable)) + seek(GSeekable(instance), _offset, _type, _cancellable) + end + function tell(instance::GFileOutputStream) + tell(GSeekable(instance)) + end + function truncate(instance::GFileOutputStream, _offset::Integer, _cancellable::Maybe(GCancellable)) + truncate(GSeekable(instance), _offset, _cancellable) + end function FilenameCompleter_new() ret = ccall(("g_filename_completer_new", libgio), Ptr{GObject}, ()) ret2 = GFilenameCompleterLeaf(ret, true) @@ -2464,6 +2911,9 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, true) ret2 end + function init(instance::GInetAddressMask, _cancellable::Maybe(GCancellable)) + init(GInitable(instance), _cancellable) + end function InetSocketAddress_new(_address::GInetAddress, _port::Integer) ret = ccall(("g_inet_socket_address_new", libgio), Ptr{GObject}, (Ptr{GObject}, UInt16), _address, _port) ret2 = GInetSocketAddressLeaf(ret, true) @@ -2491,6 +2941,15 @@ $(Expr(:toplevel, quote ret = ccall(("g_inet_socket_address_get_scope_id", libgio), UInt32, (Ptr{GObject},), instance) ret end + function enumerate(instance::GInetSocketAddress) + enumerate(GSocketConnectable(instance)) + end + function proxy_enumerate(instance::GInetSocketAddress) + proxy_enumerate(GSocketConnectable(instance)) + end + function to_string(instance::GInetSocketAddress) + to_string(GSocketConnectable(instance)) + end function clear_pending(instance::GInputStream) ret = ccall(("g_input_stream_clear_pending", libgio), Nothing, (Ptr{GObject},), instance) nothing @@ -2734,6 +3193,18 @@ $(Expr(:toplevel, quote ret = ccall(("g_list_store_splice", libgio), Nothing, (Ptr{GObject}, UInt32, UInt32, Ptr{Ptr{GObject}}, UInt32), instance, _position, _n_removals, _additions_arr, _n_additions) nothing end + function get_item_type(instance::GListStore) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GListStore) + get_n_items(GListModel(instance)) + end + function get_item(instance::GListStore, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GListStore, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function MemoryInputStream_new() ret = ccall(("g_memory_input_stream_new", libgio), Ptr{GObject}, ()) ret2 = GMemoryInputStreamLeaf(ret, true) @@ -2748,6 +3219,33 @@ $(Expr(:toplevel, quote ret = ccall(("g_memory_input_stream_add_bytes", libgio), Nothing, (Ptr{GObject}, Ptr{GBytes}), instance, _bytes) nothing end + function can_poll(instance::GMemoryInputStream) + can_poll(GPollableInputStream(instance)) + end + function create_source(instance::GMemoryInputStream, _cancellable::Maybe(GCancellable)) + create_source(GPollableInputStream(instance), _cancellable) + end + function is_readable(instance::GMemoryInputStream) + is_readable(GPollableInputStream(instance)) + end + function read_nonblocking(instance::GMemoryInputStream, _cancellable::Maybe(GCancellable)) + read_nonblocking(GPollableInputStream(instance), _cancellable) + end + function can_seek(instance::GMemoryInputStream) + can_seek(GSeekable(instance)) + end + function can_truncate(instance::GMemoryInputStream) + can_truncate(GSeekable(instance)) + end + function seek(instance::GMemoryInputStream, _offset::Integer, _type, _cancellable::Maybe(GCancellable)) + seek(GSeekable(instance), _offset, _type, _cancellable) + end + function tell(instance::GMemoryInputStream) + tell(GSeekable(instance)) + end + function truncate(instance::GMemoryInputStream, _offset::Integer, _cancellable::Maybe(GCancellable)) + truncate(GSeekable(instance), _offset, _cancellable) + end function MemoryOutputStream_new_resizable() ret = ccall(("g_memory_output_stream_new_resizable", libgio), Ptr{GObject}, ()) ret2 = GMemoryOutputStreamLeaf(ret, true) @@ -2776,6 +3274,36 @@ $(Expr(:toplevel, quote ret2 = convert(Nothing, ret) ret2 end + function can_poll(instance::GMemoryOutputStream) + can_poll(GPollableOutputStream(instance)) + end + function create_source(instance::GMemoryOutputStream, _cancellable::Maybe(GCancellable)) + create_source(GPollableOutputStream(instance), _cancellable) + end + function is_writable(instance::GMemoryOutputStream) + is_writable(GPollableOutputStream(instance)) + end + function write_nonblocking(instance::GMemoryOutputStream, _buffer, _cancellable::Maybe(GCancellable)) + write_nonblocking(GPollableOutputStream(instance), _buffer, _cancellable) + end + function writev_nonblocking(instance::GMemoryOutputStream, _vectors, _cancellable::Maybe(GCancellable)) + writev_nonblocking(GPollableOutputStream(instance), _vectors, _cancellable) + end + function can_seek(instance::GMemoryOutputStream) + can_seek(GSeekable(instance)) + end + function can_truncate(instance::GMemoryOutputStream) + can_truncate(GSeekable(instance)) + end + function seek(instance::GMemoryOutputStream, _offset::Integer, _type, _cancellable::Maybe(GCancellable)) + seek(GSeekable(instance), _offset, _type, _cancellable) + end + function tell(instance::GMemoryOutputStream) + tell(GSeekable(instance)) + end + function truncate(instance::GMemoryOutputStream, _offset::Integer, _cancellable::Maybe(GCancellable)) + truncate(GSeekable(instance), _offset, _cancellable) + end function Menu_new() ret = ccall(("g_menu_new", libgio), Ptr{GObject}, ()) ret2 = GMenuLeaf(ret, true) @@ -3110,6 +3638,15 @@ $(Expr(:toplevel, quote ret2 = GNativeSocketAddressLeaf(ret, true) ret2 end + function enumerate(instance::GNativeSocketAddress) + enumerate(GSocketConnectable(instance)) + end + function proxy_enumerate(instance::GNativeSocketAddress) + proxy_enumerate(GSocketConnectable(instance)) + end + function to_string(instance::GNativeSocketAddress) + to_string(GSocketConnectable(instance)) + end function NetworkAddress_new(_hostname::Union{AbstractString, Symbol}, _port::Integer) ret = ccall(("g_network_address_new", libgio), Ptr{GObject}, (Cstring, UInt16), _hostname, _port) ret2 = GNetworkAddressLeaf(ret, true) @@ -3148,6 +3685,15 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, false) ret2 end + function enumerate(instance::GNetworkAddress) + enumerate(GSocketConnectable(instance)) + end + function proxy_enumerate(instance::GNetworkAddress) + proxy_enumerate(GSocketConnectable(instance)) + end + function to_string(instance::GNetworkAddress) + to_string(GSocketConnectable(instance)) + end function NetworkService_new(_service::Union{AbstractString, Symbol}, _protocol::Union{AbstractString, Symbol}, _domain::Union{AbstractString, Symbol}) ret = ccall(("g_network_service_new", libgio), Ptr{GObject}, (Cstring, Cstring, Cstring), _service, _protocol, _domain) ret2 = GNetworkServiceLeaf(ret, true) @@ -3177,6 +3723,15 @@ $(Expr(:toplevel, quote ret = ccall(("g_network_service_set_scheme", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _scheme) nothing end + function enumerate(instance::GNetworkService) + enumerate(GSocketConnectable(instance)) + end + function proxy_enumerate(instance::GNetworkService) + proxy_enumerate(GSocketConnectable(instance)) + end + function to_string(instance::GNetworkService) + to_string(GSocketConnectable(instance)) + end function Notification_new(_title::Union{AbstractString, Symbol}) ret = ccall(("g_notification_new", libgio), Ptr{GObject}, (Cstring,), _title) ret2 = GNotificationLeaf(ret, true) @@ -3540,6 +4095,30 @@ $(Expr(:toplevel, quote ret2 = GPropertyActionLeaf(ret, true) ret2 end + function activate(instance::GPropertyAction, _parameter::Maybe(GVariant)) + activate(GAction(instance), _parameter) + end + function change_state(instance::GPropertyAction, _value::GVariant) + change_state(GAction(instance), _value) + end + function get_enabled(instance::GPropertyAction) + get_enabled(GAction(instance)) + end + function get_name(instance::GPropertyAction) + get_name(GAction(instance)) + end + function get_parameter_type(instance::GPropertyAction) + get_parameter_type(GAction(instance)) + end + function get_state(instance::GPropertyAction) + get_state(GAction(instance)) + end + function get_state_hint(instance::GPropertyAction) + get_state_hint(GAction(instance)) + end + function get_state_type(instance::GPropertyAction) + get_state_type(GAction(instance)) + end function ProxyAddress_new(_inetaddr::GInetAddress, _port::Integer, _protocol::Union{AbstractString, Symbol}, _dest_hostname::Union{AbstractString, Symbol}, _dest_port::Integer, _username::Maybe(Union{AbstractString, Symbol}), _password::Maybe(Union{AbstractString, Symbol})) _username_maybe = nothing_to_null(_username) _password_maybe = nothing_to_null(_password) @@ -3581,6 +4160,15 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, false) ret2 end + function enumerate(instance::GProxyAddress) + enumerate(GSocketConnectable(instance)) + end + function proxy_enumerate(instance::GProxyAddress) + proxy_enumerate(GSocketConnectable(instance)) + end + function to_string(instance::GProxyAddress) + to_string(GSocketConnectable(instance)) + end function lookup_by_address(instance::GResolver, _address::GInetAddress, _cancellable::Maybe(GCancellable)) _cancellable_maybe = nothing_to_null(_cancellable) err = err_buf() @@ -3991,11 +4579,104 @@ $(Expr(:toplevel, quote ret = ccall(("g_simple_action_set_state_hint", libgio), Nothing, (Ptr{GObject}, Ptr{GVariant}), instance, _state_hint_maybe) nothing end + function activate(instance::GSimpleAction, _parameter::Maybe(GVariant)) + activate(GAction(instance), _parameter) + end + function change_state(instance::GSimpleAction, _value::GVariant) + change_state(GAction(instance), _value) + end + function get_enabled(instance::GSimpleAction) + get_enabled(GAction(instance)) + end + function get_name(instance::GSimpleAction) + get_name(GAction(instance)) + end + function get_parameter_type(instance::GSimpleAction) + get_parameter_type(GAction(instance)) + end + function get_state(instance::GSimpleAction) + get_state(GAction(instance)) + end + function get_state_hint(instance::GSimpleAction) + get_state_hint(GAction(instance)) + end + function get_state_type(instance::GSimpleAction) + get_state_type(GAction(instance)) + end function SimpleActionGroup_new() ret = ccall(("g_simple_action_group_new", libgio), Ptr{GObject}, ()) ret2 = GSimpleActionGroupLeaf(ret, true) ret2 end + function action_added(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + action_added(GActionGroup(instance), _action_name) + end + function action_enabled_changed(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}, _enabled::Bool) + action_enabled_changed(GActionGroup(instance), _action_name, _enabled) + end + function action_removed(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + action_removed(GActionGroup(instance), _action_name) + end + function action_state_changed(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}, _state::GVariant) + action_state_changed(GActionGroup(instance), _action_name, _state) + end + function activate_action(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}, _parameter::Maybe(GVariant)) + activate_action(GActionGroup(instance), _action_name, _parameter) + end + function change_action_state(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}, _value::GVariant) + change_action_state(GActionGroup(instance), _action_name, _value) + end + function get_action_enabled(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + get_action_enabled(GActionGroup(instance), _action_name) + end + function get_action_parameter_type(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + get_action_parameter_type(GActionGroup(instance), _action_name) + end + function get_action_state(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + get_action_state(GActionGroup(instance), _action_name) + end + function get_action_state_hint(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + get_action_state_hint(GActionGroup(instance), _action_name) + end + function get_action_state_type(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + get_action_state_type(GActionGroup(instance), _action_name) + end + function has_action(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + has_action(GActionGroup(instance), _action_name) + end + function list_actions(instance::GSimpleActionGroup) + list_actions(GActionGroup(instance)) + end + function query_action(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + query_action(GActionGroup(instance), _action_name) + end + function add_action(instance::GSimpleActionGroup, _action::GAction) + add_action(GActionMap(instance), _action) + end + function add_action_entries(instance::GSimpleActionGroup, _entries, _user_data::Maybe(Nothing)) + add_action_entries(GActionMap(instance), _entries, _user_data) + end + function lookup_action(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + lookup_action(GActionMap(instance), _action_name) + end + function remove_action(instance::GSimpleActionGroup, _action_name::Union{AbstractString, Symbol}) + remove_action(GActionMap(instance), _action_name) + end + function remove_action_entries(instance::GSimpleActionGroup, _entries) + remove_action_entries(GActionMap(instance), _entries) + end + function get_source_object(instance::GSimpleAsyncResult) + get_source_object(GAsyncResult(instance)) + end + function get_user_data(instance::GSimpleAsyncResult) + get_user_data(GAsyncResult(instance)) + end + function is_tagged(instance::GSimpleAsyncResult, _source_tag::Maybe(Nothing)) + is_tagged(GAsyncResult(instance), _source_tag) + end + function legacy_propagate_error(instance::GSimpleAsyncResult) + legacy_propagate_error(GAsyncResult(instance)) + end function SimpleIOStream_new(_input_stream::GInputStream, _output_stream::GOutputStream) ret = ccall(("g_simple_io_stream_new", libgio), Ptr{GObject}, (Ptr{GObject}, Ptr{GObject}), _input_stream, _output_stream) ret2 = GSimpleIOStreamLeaf(ret, true) @@ -4357,6 +5038,12 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function create_source(instance::GSocket, _condition, _cancellable::Maybe(GCancellable)) + create_source(GDatagramBased(instance), _condition, _cancellable) + end + function init(instance::GSocket, _cancellable::Maybe(GCancellable)) + init(GInitable(instance), _cancellable) + end function SocketAddress_new_from_native(_native::Nothing, _len::Integer) ret = ccall(("g_socket_address_new_from_native", libgio), Ptr{GObject}, (Ptr{Nothing}, UInt64), _native, _len) ret2 = convert(GSocketAddress, ret, true) @@ -4379,6 +5066,15 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function enumerate(instance::GSocketAddress) + enumerate(GSocketConnectable(instance)) + end + function proxy_enumerate(instance::GSocketAddress) + proxy_enumerate(GSocketConnectable(instance)) + end + function to_string(instance::GSocketAddress) + to_string(GSocketConnectable(instance)) + end function next(instance::GSocketAddressEnumerator, _cancellable::Maybe(GCancellable)) _cancellable_maybe = nothing_to_null(_cancellable) err = err_buf() @@ -5002,6 +5698,9 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function init(instance::GSubprocess, _cancellable::Maybe(GCancellable)) + init(GInitable(instance), _cancellable) + end function SubprocessLauncher_new(_flags) ret = ccall(("g_subprocess_launcher_new", libgio), Ptr{GObject}, (UInt32,), _flags) ret2 = GSubprocessLauncherLeaf(ret, true) @@ -5160,6 +5859,18 @@ $(Expr(:toplevel, quote ret = ccall(("g_themed_icon_prepend_name", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _iconname) nothing end + function equal(instance::GThemedIcon, _icon2::Maybe(GIcon)) + equal(GIcon(instance), _icon2) + end + function hash(instance::GThemedIcon) + hash(GIcon(instance)) + end + function serialize(instance::GThemedIcon) + serialize(GIcon(instance)) + end + function to_string(instance::GThemedIcon) + to_string(GIcon(instance)) + end function ThreadedSocketService_new(_max_threads::Integer) ret = ccall(("g_threaded_socket_service_new", libgio), Ptr{GObject}, (Int32,), _max_threads) ret2 = GThreadedSocketServiceLeaf(ret, true) @@ -5774,6 +6485,12 @@ $(Expr(:toplevel, quote ret = ccall(("g_zlib_compressor_set_file_info", libgio), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _file_info_maybe) nothing end + function convert(instance::GZlibCompressor, _inbuf, _outbuf, _flags) + convert(GConverter(instance), _inbuf, _outbuf, _flags) + end + function reset(instance::GZlibCompressor) + reset(GConverter(instance)) + end function ZlibDecompressor_new(_format) ret = ccall(("g_zlib_decompressor_new", libgio), Ptr{GObject}, (UInt32,), _format) ret2 = GZlibDecompressorLeaf(ret, true) @@ -5784,6 +6501,12 @@ $(Expr(:toplevel, quote ret2 = convert_if_not_null(GFileInfo, ret, false) ret2 end + function convert(instance::GZlibDecompressor, _inbuf, _outbuf, _flags) + convert(GConverter(instance), _inbuf, _outbuf, _flags) + end + function reset(instance::GZlibDecompressor) + reset(GConverter(instance)) + end function name_is_valid(_action_name::Union{AbstractString, Symbol}) ret = ccall(("g_action_name_is_valid", libgio), Cint, (Cstring,), _action_name) ret2 = convert(Bool, ret) diff --git a/src/gen/gio_structs b/src/gen/gio_structs index 8fface14..d13c364b 100644 --- a/src/gen/gio_structs +++ b/src/gen/gio_structs @@ -3422,8 +3422,8 @@ $(Expr(:toplevel, quote GLib.setproperties!(obj; kwargs...) obj end - function GTask(_source_object::Maybe(GObject), _cancellable::Maybe(GCancellable), _callback::Maybe(Function), _callback_data::Maybe(Nothing); kwargs...) - obj = G_.Task_new(_source_object, _cancellable, _callback, _callback_data) + function GTask(_source_object::Maybe(GObject), _cancellable::Maybe(GCancellable), _callback::Maybe(Function); kwargs...) + obj = G_.Task_new(_source_object, _cancellable, _callback) GLib.setproperties!(obj; kwargs...) obj end @@ -3664,7 +3664,7 @@ $(Expr(:toplevel, quote f = user_data ret = f(connection, sender, object_path, interface_name, property_name, error) begin - GLib.glib_ref(ret) + ret != C_NULL && GLib.glib_ref(ret) convert(Ptr{GVariant}, GLib.get_pointer(ret)) end end @@ -3698,7 +3698,7 @@ $(Expr(:toplevel, quote f = user_data ret = f(connection, message, incoming) begin - GLib.glib_ref(ret) + ret != C_NULL && GLib.glib_ref(ret) convert(Ptr{GObject}, GLib.get_pointer(ret)) end end @@ -3808,7 +3808,7 @@ $(Expr(:toplevel, quote f = user_data ret = f(value, expected_type) begin - GLib.glib_ref(ret) + ret != C_NULL && GLib.glib_ref(ret) convert(Ptr{GVariant}, GLib.get_pointer(ret)) end end @@ -3832,7 +3832,7 @@ $(Expr(:toplevel, quote f = user_data ret = f(vfs, identifier) begin - GLib.glib_ref(ret) + ret != C_NULL && GLib.glib_ref(ret) convert(Ptr{GObject}, GLib.get_pointer(ret)) end end diff --git a/src/gen/gtk4_methods b/src/gen/gtk4_methods index 7d0aa986..285f4c58 100644 --- a/src/gen/gtk4_methods +++ b/src/gen/gtk4_methods @@ -588,6 +588,78 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_about_dialog_set_wrap_license", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _wrap_license) nothing end + function get_accessible_parent(instance::GtkAboutDialog) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkAboutDialog) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkAboutDialog) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkAboutDialog) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkAboutDialog) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkAboutDialog) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkAboutDialog, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkAboutDialog, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkAboutDialog, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkAboutDialog, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkAboutDialog, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkAboutDialog, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkAboutDialog, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkAboutDialog, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkAboutDialog, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkAboutDialog) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkAboutDialog) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkAboutDialog) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkAboutDialog) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkAboutDialog) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkAboutDialog) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkAboutDialog) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkAboutDialog) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkAboutDialog, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function ActionBar_new() ret = ccall(("gtk_action_bar_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkActionBarLeaf(ret, false) @@ -624,6 +696,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_action_bar_set_revealed", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _revealed) nothing end + function get_accessible_parent(instance::GtkActionBar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkActionBar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkActionBar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkActionBar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkActionBar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkActionBar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkActionBar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkActionBar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkActionBar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkActionBar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkActionBar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkActionBar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkActionBar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkActionBar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkActionBar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkActionBar) + get_buildable_id(GtkBuildable(instance)) + end function Adjustment_new(_value::Real, _lower::Real, _upper::Real, _step_increment::Real, _page_increment::Real, _page_size::Real) ret = ccall(("gtk_adjustment_new", libgtk4), Ptr{GObject}, (Float64, Float64, Float64, Float64, Float64, Float64), _value, _lower, _upper, _step_increment, _page_increment, _page_size) ret2 = GtkAdjustmentLeaf(ret, false) @@ -791,6 +911,21 @@ $(Expr(:toplevel, quote ret2 = GtkAnyFilterLeaf(ret, true) ret2 end + function get_item_type(instance::GtkAnyFilter) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkAnyFilter) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkAnyFilter, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkAnyFilter, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end + function get_buildable_id(instance::GtkAnyFilter) + get_buildable_id(GtkBuildable(instance)) + end function AppChooserButton_new(_content_type::Union{AbstractString, Symbol}) ret = ccall(("gtk_app_chooser_button_new", libgtk4), Ptr{GObject}, (Cstring,), _content_type) ret2 = GtkAppChooserButtonLeaf(ret, false) @@ -844,6 +979,63 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_app_chooser_button_set_show_dialog_item", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _setting) nothing end + function get_accessible_parent(instance::GtkAppChooserButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkAppChooserButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkAppChooserButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkAppChooserButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkAppChooserButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkAppChooserButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkAppChooserButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkAppChooserButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkAppChooserButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkAppChooserButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkAppChooserButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkAppChooserButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkAppChooserButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkAppChooserButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkAppChooserButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_app_info(instance::GtkAppChooserButton) + get_app_info(GtkAppChooser(instance)) + end + function get_content_type(instance::GtkAppChooserButton) + get_content_type(GtkAppChooser(instance)) + end + function refresh(instance::GtkAppChooserButton) + refresh(GtkAppChooser(instance)) + end + function get_buildable_id(instance::GtkAppChooserButton) + get_buildable_id(GtkBuildable(instance)) + end function AppChooserDialog_new(_parent::Maybe(GtkWindow), _flags, _file::GFile) _parent_maybe = nothing_to_null(_parent) ret = ccall(("gtk_app_chooser_dialog_new", libgtk4), Ptr{GObject}, (Ptr{GObject}, UInt32, Ptr{GObject}), _parent_maybe, _flags, _file) @@ -870,6 +1062,87 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_app_chooser_dialog_set_heading", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _heading) nothing end + function get_accessible_parent(instance::GtkAppChooserDialog) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkAppChooserDialog) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkAppChooserDialog) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkAppChooserDialog) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkAppChooserDialog) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkAppChooserDialog) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkAppChooserDialog, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkAppChooserDialog, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkAppChooserDialog, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkAppChooserDialog, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkAppChooserDialog, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkAppChooserDialog, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkAppChooserDialog, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkAppChooserDialog, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkAppChooserDialog, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_app_info(instance::GtkAppChooserDialog) + get_app_info(GtkAppChooser(instance)) + end + function get_content_type(instance::GtkAppChooserDialog) + get_content_type(GtkAppChooser(instance)) + end + function refresh(instance::GtkAppChooserDialog) + refresh(GtkAppChooser(instance)) + end + function get_buildable_id(instance::GtkAppChooserDialog) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkAppChooserDialog) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkAppChooserDialog) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkAppChooserDialog) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkAppChooserDialog) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkAppChooserDialog) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkAppChooserDialog) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkAppChooserDialog) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkAppChooserDialog, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function AppChooserWidget_new(_content_type::Union{AbstractString, Symbol}) ret = ccall(("gtk_app_chooser_widget_new", libgtk4), Ptr{GObject}, (Cstring,), _content_type) ret2 = GtkAppChooserWidgetLeaf(ret, false) @@ -929,6 +1202,63 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_app_chooser_widget_set_show_recommended", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _setting) nothing end + function get_accessible_parent(instance::GtkAppChooserWidget) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkAppChooserWidget) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkAppChooserWidget) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkAppChooserWidget) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkAppChooserWidget) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkAppChooserWidget) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkAppChooserWidget, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkAppChooserWidget, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkAppChooserWidget, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkAppChooserWidget, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkAppChooserWidget, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkAppChooserWidget, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkAppChooserWidget, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkAppChooserWidget, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkAppChooserWidget, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_app_info(instance::GtkAppChooserWidget) + get_app_info(GtkAppChooser(instance)) + end + function get_content_type(instance::GtkAppChooserWidget) + get_content_type(GtkAppChooser(instance)) + end + function refresh(instance::GtkAppChooserWidget) + refresh(GtkAppChooser(instance)) + end + function get_buildable_id(instance::GtkAppChooserWidget) + get_buildable_id(GtkBuildable(instance)) + end function Application_new(_application_id::Maybe(Union{AbstractString, Symbol}), _flags) _application_id_maybe = nothing_to_null(_application_id) ret = ccall(("gtk_application_new", libgtk4), Ptr{GObject}, (Cstring, UInt32), _application_id_maybe, _flags) @@ -1016,6 +1346,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_application_uninhibit", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _cookie) nothing end + function action_added(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + action_added(GActionGroup(instance), _action_name) + end + function action_enabled_changed(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}, _enabled::Bool) + action_enabled_changed(GActionGroup(instance), _action_name, _enabled) + end + function action_removed(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + action_removed(GActionGroup(instance), _action_name) + end + function action_state_changed(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}, _state::GVariant) + action_state_changed(GActionGroup(instance), _action_name, _state) + end + function activate_action(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}, _parameter::Maybe(GVariant)) + activate_action(GActionGroup(instance), _action_name, _parameter) + end + function change_action_state(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}, _value::GVariant) + change_action_state(GActionGroup(instance), _action_name, _value) + end + function get_action_enabled(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + get_action_enabled(GActionGroup(instance), _action_name) + end + function get_action_parameter_type(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + get_action_parameter_type(GActionGroup(instance), _action_name) + end + function get_action_state(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + get_action_state(GActionGroup(instance), _action_name) + end + function get_action_state_hint(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + get_action_state_hint(GActionGroup(instance), _action_name) + end + function get_action_state_type(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + get_action_state_type(GActionGroup(instance), _action_name) + end + function has_action(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + has_action(GActionGroup(instance), _action_name) + end + function list_actions(instance::GtkApplication) + list_actions(GActionGroup(instance)) + end + function query_action(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + query_action(GActionGroup(instance), _action_name) + end + function add_action(instance::GtkApplication, _action::GAction) + add_action(GActionMap(instance), _action) + end + function add_action_entries(instance::GtkApplication, _entries, _user_data::Maybe(Nothing)) + add_action_entries(GActionMap(instance), _entries, _user_data) + end + function lookup_action(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + lookup_action(GActionMap(instance), _action_name) + end + function remove_action(instance::GtkApplication, _action_name::Union{AbstractString, Symbol}) + remove_action(GActionMap(instance), _action_name) + end function ApplicationWindow_new(_application::GtkApplication) ret = ccall(("gtk_application_window_new", libgtk4), Ptr{GObject}, (Ptr{GObject},), _application) ret2 = GtkApplicationWindowLeaf(ret, false) @@ -1044,6 +1428,132 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_application_window_set_show_menubar", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _show_menubar) nothing end + function action_added(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + action_added(GActionGroup(instance), _action_name) + end + function action_enabled_changed(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}, _enabled::Bool) + action_enabled_changed(GActionGroup(instance), _action_name, _enabled) + end + function action_removed(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + action_removed(GActionGroup(instance), _action_name) + end + function action_state_changed(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}, _state::GVariant) + action_state_changed(GActionGroup(instance), _action_name, _state) + end + function activate_action(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}, _parameter::Maybe(GVariant)) + activate_action(GActionGroup(instance), _action_name, _parameter) + end + function change_action_state(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}, _value::GVariant) + change_action_state(GActionGroup(instance), _action_name, _value) + end + function get_action_enabled(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + get_action_enabled(GActionGroup(instance), _action_name) + end + function get_action_parameter_type(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + get_action_parameter_type(GActionGroup(instance), _action_name) + end + function get_action_state(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + get_action_state(GActionGroup(instance), _action_name) + end + function get_action_state_hint(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + get_action_state_hint(GActionGroup(instance), _action_name) + end + function get_action_state_type(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + get_action_state_type(GActionGroup(instance), _action_name) + end + function has_action(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + has_action(GActionGroup(instance), _action_name) + end + function list_actions(instance::GtkApplicationWindow) + list_actions(GActionGroup(instance)) + end + function query_action(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + query_action(GActionGroup(instance), _action_name) + end + function add_action(instance::GtkApplicationWindow, _action::GAction) + add_action(GActionMap(instance), _action) + end + function add_action_entries(instance::GtkApplicationWindow, _entries, _user_data::Maybe(Nothing)) + add_action_entries(GActionMap(instance), _entries, _user_data) + end + function lookup_action(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + lookup_action(GActionMap(instance), _action_name) + end + function remove_action(instance::GtkApplicationWindow, _action_name::Union{AbstractString, Symbol}) + remove_action(GActionMap(instance), _action_name) + end + function get_accessible_parent(instance::GtkApplicationWindow) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkApplicationWindow) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkApplicationWindow) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkApplicationWindow) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkApplicationWindow) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkApplicationWindow) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkApplicationWindow, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkApplicationWindow, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkApplicationWindow, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkApplicationWindow, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkApplicationWindow, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkApplicationWindow, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkApplicationWindow, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkApplicationWindow, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkApplicationWindow, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkApplicationWindow) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkApplicationWindow) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkApplicationWindow) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkApplicationWindow) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkApplicationWindow) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkApplicationWindow) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkApplicationWindow) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkApplicationWindow) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkApplicationWindow, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function AspectFrame_new(_xalign::Real, _yalign::Real, _ratio::Real, _obey_child::Bool) ret = ccall(("gtk_aspect_frame_new", libgtk4), Ptr{GObject}, (Float32, Float32, Float32, Cint), _xalign, _yalign, _ratio, _obey_child) ret2 = GtkAspectFrameLeaf(ret, false) @@ -1092,6 +1602,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_aspect_frame_set_yalign", libgtk4), Nothing, (Ptr{GObject}, Float32), instance, _yalign) nothing end + function get_accessible_parent(instance::GtkAspectFrame) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkAspectFrame) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkAspectFrame) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkAspectFrame) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkAspectFrame) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkAspectFrame) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkAspectFrame, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkAspectFrame, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkAspectFrame, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkAspectFrame, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkAspectFrame, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkAspectFrame, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkAspectFrame, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkAspectFrame, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkAspectFrame, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkAspectFrame) + get_buildable_id(GtkBuildable(instance)) + end function Assistant_new() ret = ccall(("gtk_assistant_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkAssistantLeaf(ret, false) @@ -1194,6 +1752,78 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_assistant_update_buttons_state", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_accessible_parent(instance::GtkAssistant) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkAssistant) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkAssistant) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkAssistant) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkAssistant) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkAssistant) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkAssistant, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkAssistant, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkAssistant, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkAssistant, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkAssistant, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkAssistant, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkAssistant, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkAssistant, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkAssistant, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkAssistant) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkAssistant) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkAssistant) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkAssistant) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkAssistant) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkAssistant) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkAssistant) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkAssistant) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkAssistant, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function get_child(instance::GtkAssistantPage) ret = ccall(("gtk_assistant_page_get_child", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = convert(GtkWidget, ret, false) @@ -1239,6 +1869,18 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_bookmark_list_set_io_priority", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _io_priority) nothing end + function get_item_type(instance::GtkBookmarkList) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkBookmarkList) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkBookmarkList, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkBookmarkList, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function BoolFilter_new(_expression::Maybe(GtkExpression)) _expression_maybe = nothing_to_null(_expression) ret = ccall(("gtk_bool_filter_new", libgtk4), Ptr{GObject}, (Ptr{GtkExpression},), _expression_maybe) @@ -1317,6 +1959,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_box_set_spacing", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _spacing) nothing end + function get_accessible_parent(instance::GtkBox) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkBox) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkBox) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkBox) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkBox) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkBox) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkBox, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkBox, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkBox, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkBox, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkBox, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkBox, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkBox, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkBox, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkBox, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkBox) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkBox) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkBox, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function BoxLayout_new(_orientation) ret = ccall(("gtk_box_layout_new", libgtk4), Ptr{GObject}, (UInt32,), _orientation) ret2 = GtkBoxLayoutLeaf(ret, true) @@ -1348,6 +2044,12 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_box_layout_set_spacing", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _spacing) nothing end + function get_orientation(instance::GtkBoxLayout) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkBoxLayout, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function Builder_new() ret = ccall(("gtk_builder_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkBuilderLeaf(ret, true) @@ -1584,6 +2286,69 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_button_set_use_underline", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_underline) nothing end + function get_accessible_parent(instance::GtkButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_action_name(instance::GtkButton) + get_action_name(GtkActionable(instance)) + end + function get_action_target_value(instance::GtkButton) + get_action_target_value(GtkActionable(instance)) + end + function set_action_name(instance::GtkButton, _action_name::Maybe(Union{AbstractString, Symbol})) + set_action_name(GtkActionable(instance), _action_name) + end + function set_action_target_value(instance::GtkButton, _target_value::Maybe(GVariant)) + set_action_target_value(GtkActionable(instance), _target_value) + end + function set_detailed_action_name(instance::GtkButton, _detailed_action_name::Union{AbstractString, Symbol}) + set_detailed_action_name(GtkActionable(instance), _detailed_action_name) + end + function get_buildable_id(instance::GtkButton) + get_buildable_id(GtkBuildable(instance)) + end function Calendar_new() ret = ccall(("gtk_calendar_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkCalendarLeaf(ret, false) @@ -1642,7 +2407,55 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_calendar_unmark_day", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _day) nothing end - function activate(instance::GtkCellArea, _context::GtkCellAreaContext, _widget::GtkWidget, _cell_area::Union{GdkRectangle, Ref{_GdkRectangle}}, _flags, _edit_only::Bool) + function get_accessible_parent(instance::GtkCalendar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkCalendar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkCalendar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkCalendar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkCalendar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkCalendar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkCalendar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkCalendar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkCalendar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkCalendar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkCalendar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkCalendar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkCalendar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkCalendar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkCalendar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkCalendar) + get_buildable_id(GtkBuildable(instance)) + end + function activate(instance::GtkCellArea, _context::GtkCellAreaContext, _widget::GtkWidget, _cell_area::Union{GdkRectangle, Ref{_GdkRectangle}}, _flags, _edit_only::Bool) ret = ccall(("gtk_cell_area_activate", libgtk4), Cint, (Ptr{GObject}, Ptr{GObject}, Ptr{GObject}, Ptr{_GdkRectangle}, UInt32, Cint), instance, _context, _widget, _cell_area, _flags, _edit_only) ret2 = convert(Bool, ret) ret2 @@ -1845,6 +2658,36 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_cell_area_stop_editing", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _canceled) nothing end + function get_buildable_id(instance::GtkCellArea) + get_buildable_id(GtkBuildable(instance)) + end + function add_attribute(instance::GtkCellArea, _cell::GtkCellRenderer, _attribute::Union{AbstractString, Symbol}, _column::Integer) + add_attribute(GtkCellLayout(instance), _cell, _attribute, _column) + end + function clear(instance::GtkCellArea) + clear(GtkCellLayout(instance)) + end + function clear_attributes(instance::GtkCellArea, _cell::GtkCellRenderer) + clear_attributes(GtkCellLayout(instance), _cell) + end + function get_area(instance::GtkCellArea) + get_area(GtkCellLayout(instance)) + end + function get_cells(instance::GtkCellArea) + get_cells(GtkCellLayout(instance)) + end + function pack_end(instance::GtkCellArea, _cell::GtkCellRenderer, _expand::Bool) + pack_end(GtkCellLayout(instance), _cell, _expand) + end + function pack_start(instance::GtkCellArea, _cell::GtkCellRenderer, _expand::Bool) + pack_start(GtkCellLayout(instance), _cell, _expand) + end + function reorder(instance::GtkCellArea, _cell::GtkCellRenderer, _position::Integer) + reorder(GtkCellLayout(instance), _cell, _position) + end + function set_cell_data_func(instance::GtkCellArea, _cell::GtkCellRenderer, _func::Maybe(Function), _destroy::Function) + set_cell_data_func(GtkCellLayout(instance), _cell, _func, _destroy) + end function CellAreaBox_new() ret = ccall(("gtk_cell_area_box_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkCellAreaBoxLeaf(ret, false) @@ -1866,6 +2709,36 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_cell_area_box_set_spacing", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _spacing) nothing end + function get_buildable_id(instance::GtkCellAreaBox) + get_buildable_id(GtkBuildable(instance)) + end + function add_attribute(instance::GtkCellAreaBox, _cell::GtkCellRenderer, _attribute::Union{AbstractString, Symbol}, _column::Integer) + add_attribute(GtkCellLayout(instance), _cell, _attribute, _column) + end + function clear(instance::GtkCellAreaBox) + clear(GtkCellLayout(instance)) + end + function clear_attributes(instance::GtkCellAreaBox, _cell::GtkCellRenderer) + clear_attributes(GtkCellLayout(instance), _cell) + end + function get_area(instance::GtkCellAreaBox) + get_area(GtkCellLayout(instance)) + end + function get_cells(instance::GtkCellAreaBox) + get_cells(GtkCellLayout(instance)) + end + function reorder(instance::GtkCellAreaBox, _cell::GtkCellRenderer, _position::Integer) + reorder(GtkCellLayout(instance), _cell, _position) + end + function set_cell_data_func(instance::GtkCellAreaBox, _cell::GtkCellRenderer, _func::Maybe(Function), _destroy::Function) + set_cell_data_func(GtkCellLayout(instance), _cell, _func, _destroy) + end + function get_orientation(instance::GtkCellAreaBox) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkCellAreaBox, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function allocate(instance::GtkCellAreaContext, _width::Integer, _height::Integer) ret = ccall(("gtk_cell_area_context_allocate", libgtk4), Nothing, (Ptr{GObject}, Int32, Int32), instance, _width, _height) nothing @@ -1947,6 +2820,12 @@ $(Expr(:toplevel, quote ret2 = GtkCellRendererProgressLeaf(ret, false) ret2 end + function get_orientation(instance::GtkCellRendererProgress) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkCellRendererProgress, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function CellRendererSpin_new() ret = ccall(("gtk_cell_renderer_spin_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkCellRendererSpinLeaf(ret, false) @@ -2061,6 +2940,87 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_cell_view_set_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function get_accessible_parent(instance::GtkCellView) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkCellView) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkCellView) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkCellView) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkCellView) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkCellView) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkCellView, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkCellView, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkCellView, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkCellView, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkCellView, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkCellView, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkCellView, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkCellView, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkCellView, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkCellView) + get_buildable_id(GtkBuildable(instance)) + end + function add_attribute(instance::GtkCellView, _cell::GtkCellRenderer, _attribute::Union{AbstractString, Symbol}, _column::Integer) + add_attribute(GtkCellLayout(instance), _cell, _attribute, _column) + end + function clear(instance::GtkCellView) + clear(GtkCellLayout(instance)) + end + function clear_attributes(instance::GtkCellView, _cell::GtkCellRenderer) + clear_attributes(GtkCellLayout(instance), _cell) + end + function get_area(instance::GtkCellView) + get_area(GtkCellLayout(instance)) + end + function get_cells(instance::GtkCellView) + get_cells(GtkCellLayout(instance)) + end + function pack_end(instance::GtkCellView, _cell::GtkCellRenderer, _expand::Bool) + pack_end(GtkCellLayout(instance), _cell, _expand) + end + function pack_start(instance::GtkCellView, _cell::GtkCellRenderer, _expand::Bool) + pack_start(GtkCellLayout(instance), _cell, _expand) + end + function reorder(instance::GtkCellView, _cell::GtkCellRenderer, _position::Integer) + reorder(GtkCellLayout(instance), _cell, _position) + end + function set_cell_data_func(instance::GtkCellView, _cell::GtkCellRenderer, _func::Maybe(Function), _destroy::Function) + set_cell_data_func(GtkCellLayout(instance), _cell, _func, _destroy) + end + function get_orientation(instance::GtkCellView) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkCellView, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function CenterBox_new() ret = ccall(("gtk_center_box_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkCenterBoxLeaf(ret, false) @@ -2105,6 +3065,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_center_box_set_start_widget", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child_maybe) nothing end + function get_accessible_parent(instance::GtkCenterBox) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkCenterBox) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkCenterBox) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkCenterBox) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkCenterBox) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkCenterBox) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkCenterBox, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkCenterBox, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkCenterBox, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkCenterBox, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkCenterBox, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkCenterBox, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkCenterBox, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkCenterBox, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkCenterBox, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkCenterBox) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkCenterBox) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkCenterBox, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function CenterLayout_new() ret = ccall(("gtk_center_layout_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkCenterLayoutLeaf(ret, true) @@ -2227,6 +3241,69 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_check_button_set_use_underline", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _setting) nothing end + function get_accessible_parent(instance::GtkCheckButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkCheckButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkCheckButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkCheckButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkCheckButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkCheckButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkCheckButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkCheckButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkCheckButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkCheckButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkCheckButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkCheckButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkCheckButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkCheckButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkCheckButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_action_name(instance::GtkCheckButton) + get_action_name(GtkActionable(instance)) + end + function get_action_target_value(instance::GtkCheckButton) + get_action_target_value(GtkActionable(instance)) + end + function set_action_name(instance::GtkCheckButton, _action_name::Maybe(Union{AbstractString, Symbol})) + set_action_name(GtkActionable(instance), _action_name) + end + function set_action_target_value(instance::GtkCheckButton, _target_value::Maybe(GVariant)) + set_action_target_value(GtkActionable(instance), _target_value) + end + function set_detailed_action_name(instance::GtkCheckButton, _detailed_action_name::Union{AbstractString, Symbol}) + set_detailed_action_name(GtkActionable(instance), _detailed_action_name) + end + function get_buildable_id(instance::GtkCheckButton) + get_buildable_id(GtkBuildable(instance)) + end function ColorButton_new() ret = ccall(("gtk_color_button_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkColorButtonLeaf(ret, false) @@ -2255,6 +3332,69 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_color_button_set_title", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _title) nothing end + function get_accessible_parent(instance::GtkColorButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkColorButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkColorButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkColorButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkColorButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkColorButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkColorButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkColorButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkColorButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkColorButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkColorButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkColorButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkColorButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkColorButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkColorButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkColorButton) + get_buildable_id(GtkBuildable(instance)) + end + function add_palette(instance::GtkColorButton, _orientation, _colors_per_line::Integer, _colors) + add_palette(GtkColorChooser(instance), _orientation, _colors_per_line, _colors) + end + function get_rgba(instance::GtkColorButton) + get_rgba(GtkColorChooser(instance)) + end + function get_use_alpha(instance::GtkColorButton) + get_use_alpha(GtkColorChooser(instance)) + end + function set_rgba(instance::GtkColorButton, _color::Union{GdkRGBA, Ref{_GdkRGBA}}) + set_rgba(GtkColorChooser(instance), _color) + end + function set_use_alpha(instance::GtkColorButton, _use_alpha::Bool) + set_use_alpha(GtkColorChooser(instance), _use_alpha) + end function ColorChooserDialog_new(_title::Maybe(Union{AbstractString, Symbol}), _parent::Maybe(GtkWindow)) _title_maybe = nothing_to_null(_title) _parent_maybe = nothing_to_null(_parent) @@ -2262,11 +3402,161 @@ $(Expr(:toplevel, quote ret2 = GtkColorChooserDialogLeaf(ret, false) ret2 end + function get_accessible_parent(instance::GtkColorChooserDialog) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkColorChooserDialog) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkColorChooserDialog) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkColorChooserDialog) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkColorChooserDialog) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkColorChooserDialog) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkColorChooserDialog, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkColorChooserDialog, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkColorChooserDialog, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkColorChooserDialog, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkColorChooserDialog, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkColorChooserDialog, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkColorChooserDialog, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkColorChooserDialog, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkColorChooserDialog, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkColorChooserDialog) + get_buildable_id(GtkBuildable(instance)) + end + function add_palette(instance::GtkColorChooserDialog, _orientation, _colors_per_line::Integer, _colors) + add_palette(GtkColorChooser(instance), _orientation, _colors_per_line, _colors) + end + function get_rgba(instance::GtkColorChooserDialog) + get_rgba(GtkColorChooser(instance)) + end + function get_use_alpha(instance::GtkColorChooserDialog) + get_use_alpha(GtkColorChooser(instance)) + end + function set_rgba(instance::GtkColorChooserDialog, _color::Union{GdkRGBA, Ref{_GdkRGBA}}) + set_rgba(GtkColorChooser(instance), _color) + end + function set_use_alpha(instance::GtkColorChooserDialog, _use_alpha::Bool) + set_use_alpha(GtkColorChooser(instance), _use_alpha) + end + function get_renderer(instance::GtkColorChooserDialog) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkColorChooserDialog) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkColorChooserDialog) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkColorChooserDialog) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkColorChooserDialog) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkColorChooserDialog) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkColorChooserDialog) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkColorChooserDialog, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function ColorChooserWidget_new() ret = ccall(("gtk_color_chooser_widget_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkColorChooserWidgetLeaf(ret, false) ret2 end + function get_accessible_parent(instance::GtkColorChooserWidget) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkColorChooserWidget) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkColorChooserWidget) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkColorChooserWidget) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkColorChooserWidget) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkColorChooserWidget) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkColorChooserWidget, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkColorChooserWidget, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkColorChooserWidget, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkColorChooserWidget, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkColorChooserWidget, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkColorChooserWidget, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkColorChooserWidget, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkColorChooserWidget, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkColorChooserWidget, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkColorChooserWidget) + get_buildable_id(GtkBuildable(instance)) + end + function add_palette(instance::GtkColorChooserWidget, _orientation, _colors_per_line::Integer, _colors) + add_palette(GtkColorChooser(instance), _orientation, _colors_per_line, _colors) + end + function get_rgba(instance::GtkColorChooserWidget) + get_rgba(GtkColorChooser(instance)) + end + function get_use_alpha(instance::GtkColorChooserWidget) + get_use_alpha(GtkColorChooser(instance)) + end + function set_rgba(instance::GtkColorChooserWidget, _color::Union{GdkRGBA, Ref{_GdkRGBA}}) + set_rgba(GtkColorChooser(instance), _color) + end + function set_use_alpha(instance::GtkColorChooserWidget, _use_alpha::Bool) + set_use_alpha(GtkColorChooser(instance), _use_alpha) + end function ColorDialog_new() ret = ccall(("gtk_color_dialog_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkColorDialogLeaf(ret, true) @@ -2349,6 +3639,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_color_dialog_button_set_rgba", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GdkRGBA}), instance, _color) nothing end + function get_accessible_parent(instance::GtkColorDialogButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkColorDialogButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkColorDialogButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkColorDialogButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkColorDialogButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkColorDialogButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkColorDialogButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkColorDialogButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkColorDialogButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkColorDialogButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkColorDialogButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkColorDialogButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkColorDialogButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkColorDialogButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkColorDialogButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkColorDialogButton) + get_buildable_id(GtkBuildable(instance)) + end function ColumnView_new(_model::Maybe(GtkSelectionModel)) _model_maybe = begin if _model !== nothing @@ -2445,6 +3783,81 @@ $(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 get_accessible_parent(instance::GtkColumnView) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkColumnView) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkColumnView) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkColumnView) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkColumnView) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkColumnView) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkColumnView, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkColumnView, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkColumnView, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkColumnView, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkColumnView, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkColumnView, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkColumnView, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkColumnView, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkColumnView, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkColumnView) + get_buildable_id(GtkBuildable(instance)) + end + function get_border(instance::GtkColumnView) + get_border(GtkScrollable(instance)) + end + function get_hadjustment(instance::GtkColumnView) + get_hadjustment(GtkScrollable(instance)) + end + function get_hscroll_policy(instance::GtkColumnView) + get_hscroll_policy(GtkScrollable(instance)) + end + function get_vadjustment(instance::GtkColumnView) + get_vadjustment(GtkScrollable(instance)) + end + function get_vscroll_policy(instance::GtkColumnView) + get_vscroll_policy(GtkScrollable(instance)) + end + function set_hadjustment(instance::GtkColumnView, _hadjustment::Maybe(GtkAdjustment)) + set_hadjustment(GtkScrollable(instance), _hadjustment) + end + function set_hscroll_policy(instance::GtkColumnView, _policy) + set_hscroll_policy(GtkScrollable(instance), _policy) + end + function set_vadjustment(instance::GtkColumnView, _vadjustment::Maybe(GtkAdjustment)) + set_vadjustment(GtkScrollable(instance), _vadjustment) + end + function set_vscroll_policy(instance::GtkColumnView, _policy) + set_vscroll_policy(GtkScrollable(instance), _policy) + end function ColumnViewColumn_new(_title::Maybe(Union{AbstractString, Symbol}), _factory::Maybe(GtkListItemFactory)) _title_maybe = nothing_to_null(_title) _factory_maybe = begin @@ -2691,6 +4104,90 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_combo_box_set_popup_fixed_width", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _fixed) nothing end + function get_accessible_parent(instance::GtkComboBox) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkComboBox) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkComboBox) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkComboBox) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkComboBox) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkComboBox) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkComboBox, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkComboBox, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkComboBox, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkComboBox, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkComboBox, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkComboBox, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkComboBox, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkComboBox, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkComboBox, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkComboBox) + get_buildable_id(GtkBuildable(instance)) + end + function editing_done(instance::GtkComboBox) + editing_done(GtkCellEditable(instance)) + end + function remove_widget(instance::GtkComboBox) + remove_widget(GtkCellEditable(instance)) + end + function start_editing(instance::GtkComboBox, _event::Maybe(GdkEvent)) + start_editing(GtkCellEditable(instance), _event) + end + function add_attribute(instance::GtkComboBox, _cell::GtkCellRenderer, _attribute::Union{AbstractString, Symbol}, _column::Integer) + add_attribute(GtkCellLayout(instance), _cell, _attribute, _column) + end + function clear(instance::GtkComboBox) + clear(GtkCellLayout(instance)) + end + function clear_attributes(instance::GtkComboBox, _cell::GtkCellRenderer) + clear_attributes(GtkCellLayout(instance), _cell) + end + function get_area(instance::GtkComboBox) + get_area(GtkCellLayout(instance)) + end + function get_cells(instance::GtkComboBox) + get_cells(GtkCellLayout(instance)) + end + function pack_end(instance::GtkComboBox, _cell::GtkCellRenderer, _expand::Bool) + pack_end(GtkCellLayout(instance), _cell, _expand) + end + function pack_start(instance::GtkComboBox, _cell::GtkCellRenderer, _expand::Bool) + pack_start(GtkCellLayout(instance), _cell, _expand) + end + function reorder(instance::GtkComboBox, _cell::GtkCellRenderer, _position::Integer) + reorder(GtkCellLayout(instance), _cell, _position) + end + function set_cell_data_func(instance::GtkComboBox, _cell::GtkCellRenderer, _func::Maybe(Function), _destroy::Function) + set_cell_data_func(GtkCellLayout(instance), _cell, _func, _destroy) + end function ComboBoxText_new() ret = ccall(("gtk_combo_box_text_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkComboBoxTextLeaf(ret, false) @@ -2741,19 +4238,103 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_combo_box_text_remove_all", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end - function ConstantExpression_new_for_value(_value::Union{GValue, Ref{_GValue}}) - ret = ccall(("gtk_constant_expression_new_for_value", libgtk4), Ptr{GtkExpression}, (Ptr{_GValue},), _value) - ret2 = convert(GtkExpression, ret) - ret2 + function get_accessible_parent(instance::GtkComboBoxText) + get_accessible_parent(GtkAccessible(instance)) end - function get_value(instance::GtkConstantExpression) - ret = ccall(("gtk_constant_expression_get_value", libgtk4), Ptr{_GValue}, (Ptr{GtkExpression},), instance) - ret2 = convert(Union{GValue, Ref{_GValue}}, ret, false) - ret2 + function get_accessible_role(instance::GtkComboBoxText) + get_accessible_role(GtkAccessible(instance)) end - function Constraint_new(_target::Maybe(GtkConstraintTarget), _target_attribute, _relation, _source::Maybe(GtkConstraintTarget), _source_attribute, _multiplier::Real, _constant::Real, _strength::Integer) - _target_maybe = nothing_to_null(_target) - _source_maybe = nothing_to_null(_source) + function get_at_context(instance::GtkComboBoxText) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkComboBoxText) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkComboBoxText) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkComboBoxText) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkComboBoxText, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkComboBoxText, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkComboBoxText, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkComboBoxText, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkComboBoxText, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkComboBoxText, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkComboBoxText, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkComboBoxText, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkComboBoxText, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkComboBoxText) + get_buildable_id(GtkBuildable(instance)) + end + function editing_done(instance::GtkComboBoxText) + editing_done(GtkCellEditable(instance)) + end + function remove_widget(instance::GtkComboBoxText) + remove_widget(GtkCellEditable(instance)) + end + function start_editing(instance::GtkComboBoxText, _event::Maybe(GdkEvent)) + start_editing(GtkCellEditable(instance), _event) + end + function add_attribute(instance::GtkComboBoxText, _cell::GtkCellRenderer, _attribute::Union{AbstractString, Symbol}, _column::Integer) + add_attribute(GtkCellLayout(instance), _cell, _attribute, _column) + end + function clear(instance::GtkComboBoxText) + clear(GtkCellLayout(instance)) + end + function clear_attributes(instance::GtkComboBoxText, _cell::GtkCellRenderer) + clear_attributes(GtkCellLayout(instance), _cell) + end + function get_area(instance::GtkComboBoxText) + get_area(GtkCellLayout(instance)) + end + function get_cells(instance::GtkComboBoxText) + get_cells(GtkCellLayout(instance)) + end + function pack_end(instance::GtkComboBoxText, _cell::GtkCellRenderer, _expand::Bool) + pack_end(GtkCellLayout(instance), _cell, _expand) + end + function pack_start(instance::GtkComboBoxText, _cell::GtkCellRenderer, _expand::Bool) + pack_start(GtkCellLayout(instance), _cell, _expand) + end + function reorder(instance::GtkComboBoxText, _cell::GtkCellRenderer, _position::Integer) + reorder(GtkCellLayout(instance), _cell, _position) + end + function set_cell_data_func(instance::GtkComboBoxText, _cell::GtkCellRenderer, _func::Maybe(Function), _destroy::Function) + set_cell_data_func(GtkCellLayout(instance), _cell, _func, _destroy) + end + function ConstantExpression_new_for_value(_value::Union{GValue, Ref{_GValue}}) + ret = ccall(("gtk_constant_expression_new_for_value", libgtk4), Ptr{GtkExpression}, (Ptr{_GValue},), _value) + ret2 = convert(GtkExpression, ret) + ret2 + end + function get_value(instance::GtkConstantExpression) + ret = ccall(("gtk_constant_expression_get_value", libgtk4), Ptr{_GValue}, (Ptr{GtkExpression},), instance) + ret2 = convert(Union{GValue, Ref{_GValue}}, ret, false) + ret2 + end + function Constraint_new(_target::Maybe(GtkConstraintTarget), _target_attribute, _relation, _source::Maybe(GtkConstraintTarget), _source_attribute, _multiplier::Real, _constant::Real, _strength::Integer) + _target_maybe = nothing_to_null(_target) + _source_maybe = nothing_to_null(_source) ret = ccall(("gtk_constraint_new", libgtk4), Ptr{GObject}, (Ptr{GObject}, UInt32, UInt32, Ptr{GObject}, UInt32, Float64, Float64, Int32), _target_maybe, _target_attribute, _relation, _source_maybe, _source_attribute, _multiplier, _constant, _strength) ret2 = GtkConstraintLeaf(ret, true) ret2 @@ -2927,6 +4508,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_constraint_layout_remove_guide", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _guide) nothing end + function get_buildable_id(instance::GtkConstraintLayout) + get_buildable_id(GtkBuildable(instance)) + end function CssProvider_new() ret = ccall(("gtk_css_provider_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkCssProviderLeaf(ret, true) @@ -3003,6 +4587,78 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_dialog_set_response_sensitive", libgtk4), Nothing, (Ptr{GObject}, Int32, Cint), instance, _response_id, _setting) nothing end + function get_accessible_parent(instance::GtkDialog) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkDialog) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkDialog) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkDialog) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkDialog) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkDialog) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkDialog, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkDialog, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkDialog, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkDialog, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkDialog, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkDialog, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkDialog, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkDialog, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkDialog, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkDialog) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkDialog) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkDialog) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkDialog) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkDialog) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkDialog) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkDialog) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkDialog) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkDialog, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function DirectoryList_new(_attributes::Maybe(Union{AbstractString, Symbol}), _file::Maybe(GFile)) _attributes_maybe = nothing_to_null(_attributes) _file_maybe = nothing_to_null(_file) @@ -3056,6 +4712,18 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_directory_list_set_monitored", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _monitored) nothing end + function get_item_type(instance::GtkDirectoryList) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkDirectoryList) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkDirectoryList, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkDirectoryList, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function create_widget_for_value(_value::Union{GValue, Ref{_GValue}}) ret = ccall(("gtk_drag_icon_create_widget_for_value", libgtk4), Ptr{GObject}, (Ptr{_GValue},), _value) ret2 = convert_if_not_null(GtkWidget, ret, true) @@ -3080,6 +4748,78 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_drag_icon_set_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child_maybe) nothing end + function get_accessible_parent(instance::GtkDragIcon) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkDragIcon) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkDragIcon) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkDragIcon) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkDragIcon) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkDragIcon) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkDragIcon, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkDragIcon, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkDragIcon, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkDragIcon, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkDragIcon, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkDragIcon, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkDragIcon, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkDragIcon, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkDragIcon, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkDragIcon) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkDragIcon) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkDragIcon) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkDragIcon) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkDragIcon) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkDragIcon) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkDragIcon) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkDragIcon) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkDragIcon, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function DragSource_new() ret = ccall(("gtk_drag_source_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkDragSourceLeaf(ret, true) @@ -3139,6 +4879,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_drawing_area_set_content_width", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _width) nothing end + function get_accessible_parent(instance::GtkDrawingArea) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkDrawingArea) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkDrawingArea) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkDrawingArea) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkDrawingArea) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkDrawingArea) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkDrawingArea, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkDrawingArea, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkDrawingArea, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkDrawingArea, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkDrawingArea, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkDrawingArea, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkDrawingArea, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkDrawingArea, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkDrawingArea, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkDrawingArea) + get_buildable_id(GtkBuildable(instance)) + end function DropControllerMotion_new() ret = ccall(("gtk_drop_controller_motion_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkDropControllerMotionLeaf(ret, true) @@ -3247,6 +5035,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_drop_down_set_show_arrow", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _show_arrow) nothing end + function get_accessible_parent(instance::GtkDropDown) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkDropDown) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkDropDown) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkDropDown) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkDropDown) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkDropDown) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkDropDown, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkDropDown, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkDropDown, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkDropDown, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkDropDown, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkDropDown, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkDropDown, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkDropDown, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkDropDown, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkDropDown) + get_buildable_id(GtkBuildable(instance)) + end function DropTarget_new(_type::Integer, _actions) ret = ccall(("gtk_drop_target_new", libgtk4), Ptr{GObject}, (UInt64, UInt32), _type, _actions) ret2 = GtkDropTargetLeaf(ret, true) @@ -3350,11 +5186,194 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_editable_label_stop_editing", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _commit) nothing end + function get_accessible_parent(instance::GtkEditableLabel) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkEditableLabel) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkEditableLabel) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkEditableLabel) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkEditableLabel) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkEditableLabel) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkEditableLabel, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkEditableLabel, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkEditableLabel, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkEditableLabel, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkEditableLabel, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkEditableLabel, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkEditableLabel, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkEditableLabel, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkEditableLabel, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkEditableLabel) + get_buildable_id(GtkBuildable(instance)) + end + function delegate_get_accessible_platform_state(instance::GtkEditableLabel, _state) + delegate_get_accessible_platform_state(GtkEditable(instance), _state) + end + function delete_selection(instance::GtkEditableLabel) + delete_selection(GtkEditable(instance)) + end + function delete_text(instance::GtkEditableLabel, _start_pos::Integer, _end_pos::Integer) + delete_text(GtkEditable(instance), _start_pos, _end_pos) + end + function finish_delegate(instance::GtkEditableLabel) + finish_delegate(GtkEditable(instance)) + end + function get_alignment(instance::GtkEditableLabel) + get_alignment(GtkEditable(instance)) + end + function get_chars(instance::GtkEditableLabel, _start_pos::Integer, _end_pos::Integer) + get_chars(GtkEditable(instance), _start_pos, _end_pos) + end + function get_delegate(instance::GtkEditableLabel) + get_delegate(GtkEditable(instance)) + end + function get_editable(instance::GtkEditableLabel) + get_editable(GtkEditable(instance)) + end + function get_enable_undo(instance::GtkEditableLabel) + get_enable_undo(GtkEditable(instance)) + end + function get_max_width_chars(instance::GtkEditableLabel) + get_max_width_chars(GtkEditable(instance)) + end + function get_position(instance::GtkEditableLabel) + get_position(GtkEditable(instance)) + end + function get_selection_bounds(instance::GtkEditableLabel) + get_selection_bounds(GtkEditable(instance)) + end + function get_text(instance::GtkEditableLabel) + get_text(GtkEditable(instance)) + end + function get_width_chars(instance::GtkEditableLabel) + get_width_chars(GtkEditable(instance)) + end + function init_delegate(instance::GtkEditableLabel) + init_delegate(GtkEditable(instance)) + end + function insert_text(instance::GtkEditableLabel, _text::Union{AbstractString, Symbol}, _length::Integer, _position::Integer) + insert_text(GtkEditable(instance), _text, _length, _position) + end + function select_region(instance::GtkEditableLabel, _start_pos::Integer, _end_pos::Integer) + select_region(GtkEditable(instance), _start_pos, _end_pos) + end + function set_alignment(instance::GtkEditableLabel, _xalign::Real) + set_alignment(GtkEditable(instance), _xalign) + end + function set_editable(instance::GtkEditableLabel, _is_editable::Bool) + set_editable(GtkEditable(instance), _is_editable) + end + function set_enable_undo(instance::GtkEditableLabel, _enable_undo::Bool) + set_enable_undo(GtkEditable(instance), _enable_undo) + end + function set_max_width_chars(instance::GtkEditableLabel, _n_chars::Integer) + set_max_width_chars(GtkEditable(instance), _n_chars) + end + function set_position(instance::GtkEditableLabel, _position::Integer) + set_position(GtkEditable(instance), _position) + end + function set_text(instance::GtkEditableLabel, _text::Union{AbstractString, Symbol}) + set_text(GtkEditable(instance), _text) + end + function set_width_chars(instance::GtkEditableLabel, _n_chars::Integer) + set_width_chars(GtkEditable(instance), _n_chars) + end function EmojiChooser_new() ret = ccall(("gtk_emoji_chooser_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkEmojiChooserLeaf(ret, false) ret2 end + function get_accessible_parent(instance::GtkEmojiChooser) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkEmojiChooser) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkEmojiChooser) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkEmojiChooser) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkEmojiChooser) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkEmojiChooser) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkEmojiChooser, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkEmojiChooser, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkEmojiChooser, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkEmojiChooser, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkEmojiChooser, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkEmojiChooser, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkEmojiChooser, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkEmojiChooser, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkEmojiChooser, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkEmojiChooser) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkEmojiChooser) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkEmojiChooser) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkEmojiChooser) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkEmojiChooser) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkEmojiChooser) + unrealize(GtkNative(instance)) + end function Entry_new() ret = ccall(("gtk_entry_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkEntryLeaf(ret, false) @@ -3629,6 +5648,129 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_entry_unset_invisible_char", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_accessible_parent(instance::GtkEntry) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkEntry) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkEntry) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkEntry) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkEntry) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkEntry) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkEntry, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkEntry, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkEntry, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkEntry, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkEntry, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkEntry, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkEntry, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkEntry, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkEntry, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkEntry) + get_buildable_id(GtkBuildable(instance)) + end + function editing_done(instance::GtkEntry) + editing_done(GtkCellEditable(instance)) + end + function remove_widget(instance::GtkEntry) + remove_widget(GtkCellEditable(instance)) + end + function start_editing(instance::GtkEntry, _event::Maybe(GdkEvent)) + start_editing(GtkCellEditable(instance), _event) + end + function delegate_get_accessible_platform_state(instance::GtkEntry, _state) + delegate_get_accessible_platform_state(GtkEditable(instance), _state) + end + function delete_selection(instance::GtkEntry) + delete_selection(GtkEditable(instance)) + end + function delete_text(instance::GtkEntry, _start_pos::Integer, _end_pos::Integer) + delete_text(GtkEditable(instance), _start_pos, _end_pos) + end + function finish_delegate(instance::GtkEntry) + finish_delegate(GtkEditable(instance)) + end + function get_chars(instance::GtkEntry, _start_pos::Integer, _end_pos::Integer) + get_chars(GtkEditable(instance), _start_pos, _end_pos) + end + function get_delegate(instance::GtkEntry) + get_delegate(GtkEditable(instance)) + end + function get_editable(instance::GtkEntry) + get_editable(GtkEditable(instance)) + end + function get_enable_undo(instance::GtkEntry) + get_enable_undo(GtkEditable(instance)) + end + function get_max_width_chars(instance::GtkEntry) + get_max_width_chars(GtkEditable(instance)) + end + function get_position(instance::GtkEntry) + get_position(GtkEditable(instance)) + end + function get_selection_bounds(instance::GtkEntry) + get_selection_bounds(GtkEditable(instance)) + end + function get_text(instance::GtkEntry) + get_text(GtkEditable(instance)) + end + function get_width_chars(instance::GtkEntry) + get_width_chars(GtkEditable(instance)) + end + function init_delegate(instance::GtkEntry) + init_delegate(GtkEditable(instance)) + end + function insert_text(instance::GtkEntry, _text::Union{AbstractString, Symbol}, _length::Integer, _position::Integer) + insert_text(GtkEditable(instance), _text, _length, _position) + end + function select_region(instance::GtkEntry, _start_pos::Integer, _end_pos::Integer) + select_region(GtkEditable(instance), _start_pos, _end_pos) + end + function set_editable(instance::GtkEntry, _is_editable::Bool) + set_editable(GtkEditable(instance), _is_editable) + end + function set_enable_undo(instance::GtkEntry, _enable_undo::Bool) + set_enable_undo(GtkEditable(instance), _enable_undo) + end + function set_max_width_chars(instance::GtkEntry, _n_chars::Integer) + set_max_width_chars(GtkEditable(instance), _n_chars) + end + function set_position(instance::GtkEntry, _position::Integer) + set_position(GtkEditable(instance), _position) + end + function set_text(instance::GtkEntry, _text::Union{AbstractString, Symbol}) + set_text(GtkEditable(instance), _text) + end + function set_width_chars(instance::GtkEntry, _n_chars::Integer) + set_width_chars(GtkEditable(instance), _n_chars) + end function EntryBuffer_new(_initial_chars::Maybe(Union{AbstractString, Symbol}), _n_initial_chars::Integer) _initial_chars_maybe = nothing_to_null(_initial_chars) ret = ccall(("gtk_entry_buffer_new", libgtk4), Ptr{GObject}, (Cstring, Int32), _initial_chars_maybe, _n_initial_chars) @@ -3780,6 +5922,36 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_entry_completion_set_text_column", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _column) nothing end + function get_buildable_id(instance::GtkEntryCompletion) + get_buildable_id(GtkBuildable(instance)) + end + function add_attribute(instance::GtkEntryCompletion, _cell::GtkCellRenderer, _attribute::Union{AbstractString, Symbol}, _column::Integer) + add_attribute(GtkCellLayout(instance), _cell, _attribute, _column) + end + function clear(instance::GtkEntryCompletion) + clear(GtkCellLayout(instance)) + end + function clear_attributes(instance::GtkEntryCompletion, _cell::GtkCellRenderer) + clear_attributes(GtkCellLayout(instance), _cell) + end + function get_area(instance::GtkEntryCompletion) + get_area(GtkCellLayout(instance)) + end + function get_cells(instance::GtkEntryCompletion) + get_cells(GtkCellLayout(instance)) + end + function pack_end(instance::GtkEntryCompletion, _cell::GtkCellRenderer, _expand::Bool) + pack_end(GtkCellLayout(instance), _cell, _expand) + end + function pack_start(instance::GtkEntryCompletion, _cell::GtkCellRenderer, _expand::Bool) + pack_start(GtkCellLayout(instance), _cell, _expand) + end + function reorder(instance::GtkEntryCompletion, _cell::GtkCellRenderer, _position::Integer) + reorder(GtkCellLayout(instance), _cell, _position) + end + function set_cell_data_func(instance::GtkEntryCompletion, _cell::GtkCellRenderer, _func::Maybe(Function), _destroy::Function) + set_cell_data_func(GtkCellLayout(instance), _cell, _func, _destroy) + end function get_current_event(instance::GtkEventController) ret = ccall(("gtk_event_controller_get_current_event", libgtk4), Ptr{GdkEvent}, (Ptr{GObject},), instance) ret2 = convert(GdkEvent, ret) @@ -3919,6 +6091,21 @@ $(Expr(:toplevel, quote ret2 = GtkEveryFilterLeaf(ret, true) ret2 end + function get_item_type(instance::GtkEveryFilter) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkEveryFilter) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkEveryFilter, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkEveryFilter, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end + function get_buildable_id(instance::GtkEveryFilter) + get_buildable_id(GtkBuildable(instance)) + end function Expander_new(_label::Maybe(Union{AbstractString, Symbol})) _label_maybe = nothing_to_null(_label) ret = ccall(("gtk_expander_new", libgtk4), Ptr{GObject}, (Cstring,), _label_maybe) @@ -3997,24 +6184,72 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_expander_set_use_underline", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_underline) nothing end - function bind(instance::GtkExpression, _target::GObject, _property::Union{AbstractString, Symbol}, _this_::Maybe(GObject)) - _this__maybe = nothing_to_null(_this_) - ret = ccall(("gtk_expression_bind", libgtk4), Ptr{GtkExpressionWatch}, (Ptr{GtkExpression}, Ptr{GObject}, Cstring, Ptr{GObject}), instance, _target, _property, _this__maybe) - ret2 = convert(GtkExpressionWatch, ret, false) - ret2 + function get_accessible_parent(instance::GtkExpander) + get_accessible_parent(GtkAccessible(instance)) end - function evaluate(instance::GtkExpression, _this_::Maybe(GObject), _value::Union{GValue, Ref{_GValue}}) - _this__maybe = nothing_to_null(_this_) - ret = ccall(("gtk_expression_evaluate", libgtk4), Cint, (Ptr{GtkExpression}, Ptr{GObject}, Ptr{_GValue}), instance, _this__maybe, _value) - ret2 = convert(Bool, ret) - ret2 + function get_accessible_role(instance::GtkExpander) + get_accessible_role(GtkAccessible(instance)) end - function get_value_type(instance::GtkExpression) - ret = ccall(("gtk_expression_get_value_type", libgtk4), UInt64, (Ptr{GtkExpression},), instance) - ret + function get_at_context(instance::GtkExpander) + get_at_context(GtkAccessible(instance)) end - function is_static(instance::GtkExpression) - ret = ccall(("gtk_expression_is_static", libgtk4), Cint, (Ptr{GtkExpression},), instance) + function get_bounds(instance::GtkExpander) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkExpander) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkExpander) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkExpander, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkExpander, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkExpander, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkExpander, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkExpander, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkExpander, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkExpander, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkExpander, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkExpander, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkExpander) + get_buildable_id(GtkBuildable(instance)) + end + function bind(instance::GtkExpression, _target::GObject, _property::Union{AbstractString, Symbol}, _this_::Maybe(GObject)) + _this__maybe = nothing_to_null(_this_) + ret = ccall(("gtk_expression_bind", libgtk4), Ptr{GtkExpressionWatch}, (Ptr{GtkExpression}, Ptr{GObject}, Cstring, Ptr{GObject}), instance, _target, _property, _this__maybe) + ret2 = convert(GtkExpressionWatch, ret, false) + ret2 + end + function evaluate(instance::GtkExpression, _this_::Maybe(GObject), _value::Union{GValue, Ref{_GValue}}) + _this__maybe = nothing_to_null(_this_) + ret = ccall(("gtk_expression_evaluate", libgtk4), Cint, (Ptr{GtkExpression}, Ptr{GObject}, Ptr{_GValue}), instance, _this__maybe, _value) + ret2 = convert(Bool, ret) + ret2 + end + function get_value_type(instance::GtkExpression) + ret = ccall(("gtk_expression_get_value_type", libgtk4), UInt64, (Ptr{GtkExpression},), instance) + ret + end + function is_static(instance::GtkExpression) + ret = ccall(("gtk_expression_is_static", libgtk4), Cint, (Ptr{GtkExpression},), instance) ret2 = convert(Bool, ret) ret2 end @@ -4027,6 +6262,153 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_expression_unref", libgtk4), Nothing, (Ptr{GtkExpression},), instance) nothing end + function get_accessible_parent(instance::GtkFileChooserDialog) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkFileChooserDialog) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkFileChooserDialog) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkFileChooserDialog) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkFileChooserDialog) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkFileChooserDialog) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkFileChooserDialog, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkFileChooserDialog, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkFileChooserDialog, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkFileChooserDialog, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkFileChooserDialog, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkFileChooserDialog, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkFileChooserDialog, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkFileChooserDialog, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkFileChooserDialog, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkFileChooserDialog) + get_buildable_id(GtkBuildable(instance)) + end + function add_choice(instance::GtkFileChooserDialog, _id::Union{AbstractString, Symbol}, _label::Union{AbstractString, Symbol}, _options, _option_labels) + add_choice(GtkFileChooser(instance), _id, _label, _options, _option_labels) + end + function add_filter(instance::GtkFileChooserDialog, _filter::GtkFileFilter) + add_filter(GtkFileChooser(instance), _filter) + end + function add_shortcut_folder(instance::GtkFileChooserDialog, _folder::GFile) + add_shortcut_folder(GtkFileChooser(instance), _folder) + end + function get_action(instance::GtkFileChooserDialog) + get_action(GtkFileChooser(instance)) + end + function get_choice(instance::GtkFileChooserDialog, _id::Union{AbstractString, Symbol}) + get_choice(GtkFileChooser(instance), _id) + end + function get_create_folders(instance::GtkFileChooserDialog) + get_create_folders(GtkFileChooser(instance)) + end + function get_current_folder(instance::GtkFileChooserDialog) + get_current_folder(GtkFileChooser(instance)) + end + function get_current_name(instance::GtkFileChooserDialog) + get_current_name(GtkFileChooser(instance)) + end + function get_file(instance::GtkFileChooserDialog) + get_file(GtkFileChooser(instance)) + end + function get_files(instance::GtkFileChooserDialog) + get_files(GtkFileChooser(instance)) + end + function get_filter(instance::GtkFileChooserDialog) + get_filter(GtkFileChooser(instance)) + end + function get_filters(instance::GtkFileChooserDialog) + get_filters(GtkFileChooser(instance)) + end + function get_select_multiple(instance::GtkFileChooserDialog) + get_select_multiple(GtkFileChooser(instance)) + end + function get_shortcut_folders(instance::GtkFileChooserDialog) + get_shortcut_folders(GtkFileChooser(instance)) + end + function remove_choice(instance::GtkFileChooserDialog, _id::Union{AbstractString, Symbol}) + remove_choice(GtkFileChooser(instance), _id) + end + function remove_filter(instance::GtkFileChooserDialog, _filter::GtkFileFilter) + remove_filter(GtkFileChooser(instance), _filter) + end + function remove_shortcut_folder(instance::GtkFileChooserDialog, _folder::GFile) + remove_shortcut_folder(GtkFileChooser(instance), _folder) + end + function set_action(instance::GtkFileChooserDialog, _action) + set_action(GtkFileChooser(instance), _action) + end + function set_choice(instance::GtkFileChooserDialog, _id::Union{AbstractString, Symbol}, _option::Union{AbstractString, Symbol}) + set_choice(GtkFileChooser(instance), _id, _option) + end + function set_create_folders(instance::GtkFileChooserDialog, _create_folders::Bool) + set_create_folders(GtkFileChooser(instance), _create_folders) + end + function set_current_folder(instance::GtkFileChooserDialog, _file::Maybe(GFile)) + set_current_folder(GtkFileChooser(instance), _file) + end + function set_current_name(instance::GtkFileChooserDialog, _name::Union{AbstractString, Symbol}) + set_current_name(GtkFileChooser(instance), _name) + end + function set_file(instance::GtkFileChooserDialog, _file::GFile) + set_file(GtkFileChooser(instance), _file) + end + function set_filter(instance::GtkFileChooserDialog, _filter::GtkFileFilter) + set_filter(GtkFileChooser(instance), _filter) + end + function set_select_multiple(instance::GtkFileChooserDialog, _select_multiple::Bool) + set_select_multiple(GtkFileChooser(instance), _select_multiple) + end + function get_renderer(instance::GtkFileChooserDialog) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkFileChooserDialog) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkFileChooserDialog) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkFileChooserDialog) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkFileChooserDialog) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkFileChooserDialog) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkFileChooserDialog) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkFileChooserDialog, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function FileChooserNative_new(_title::Maybe(Union{AbstractString, Symbol}), _parent::Maybe(GtkWindow), _action, _accept_label::Maybe(Union{AbstractString, Symbol}), _cancel_label::Maybe(Union{AbstractString, Symbol})) _title_maybe = nothing_to_null(_title) _parent_maybe = nothing_to_null(_parent) @@ -4056,11 +6438,209 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_file_chooser_native_set_cancel_label", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _cancel_label_maybe) nothing end + function add_choice(instance::GtkFileChooserNative, _id::Union{AbstractString, Symbol}, _label::Union{AbstractString, Symbol}, _options, _option_labels) + add_choice(GtkFileChooser(instance), _id, _label, _options, _option_labels) + end + function add_filter(instance::GtkFileChooserNative, _filter::GtkFileFilter) + add_filter(GtkFileChooser(instance), _filter) + end + function add_shortcut_folder(instance::GtkFileChooserNative, _folder::GFile) + add_shortcut_folder(GtkFileChooser(instance), _folder) + end + function get_action(instance::GtkFileChooserNative) + get_action(GtkFileChooser(instance)) + end + function get_choice(instance::GtkFileChooserNative, _id::Union{AbstractString, Symbol}) + get_choice(GtkFileChooser(instance), _id) + end + function get_create_folders(instance::GtkFileChooserNative) + get_create_folders(GtkFileChooser(instance)) + end + function get_current_folder(instance::GtkFileChooserNative) + get_current_folder(GtkFileChooser(instance)) + end + function get_current_name(instance::GtkFileChooserNative) + get_current_name(GtkFileChooser(instance)) + end + function get_file(instance::GtkFileChooserNative) + get_file(GtkFileChooser(instance)) + end + function get_files(instance::GtkFileChooserNative) + get_files(GtkFileChooser(instance)) + end + function get_filter(instance::GtkFileChooserNative) + get_filter(GtkFileChooser(instance)) + end + function get_filters(instance::GtkFileChooserNative) + get_filters(GtkFileChooser(instance)) + end + function get_select_multiple(instance::GtkFileChooserNative) + get_select_multiple(GtkFileChooser(instance)) + end + function get_shortcut_folders(instance::GtkFileChooserNative) + get_shortcut_folders(GtkFileChooser(instance)) + end + function remove_choice(instance::GtkFileChooserNative, _id::Union{AbstractString, Symbol}) + remove_choice(GtkFileChooser(instance), _id) + end + function remove_filter(instance::GtkFileChooserNative, _filter::GtkFileFilter) + remove_filter(GtkFileChooser(instance), _filter) + end + function remove_shortcut_folder(instance::GtkFileChooserNative, _folder::GFile) + remove_shortcut_folder(GtkFileChooser(instance), _folder) + end + function set_action(instance::GtkFileChooserNative, _action) + set_action(GtkFileChooser(instance), _action) + end + function set_choice(instance::GtkFileChooserNative, _id::Union{AbstractString, Symbol}, _option::Union{AbstractString, Symbol}) + set_choice(GtkFileChooser(instance), _id, _option) + end + function set_create_folders(instance::GtkFileChooserNative, _create_folders::Bool) + set_create_folders(GtkFileChooser(instance), _create_folders) + end + function set_current_folder(instance::GtkFileChooserNative, _file::Maybe(GFile)) + set_current_folder(GtkFileChooser(instance), _file) + end + function set_current_name(instance::GtkFileChooserNative, _name::Union{AbstractString, Symbol}) + set_current_name(GtkFileChooser(instance), _name) + end + function set_file(instance::GtkFileChooserNative, _file::GFile) + set_file(GtkFileChooser(instance), _file) + end + function set_filter(instance::GtkFileChooserNative, _filter::GtkFileFilter) + set_filter(GtkFileChooser(instance), _filter) + end + function set_select_multiple(instance::GtkFileChooserNative, _select_multiple::Bool) + set_select_multiple(GtkFileChooser(instance), _select_multiple) + end function FileChooserWidget_new(_action) ret = ccall(("gtk_file_chooser_widget_new", libgtk4), Ptr{GObject}, (UInt32,), _action) ret2 = GtkFileChooserWidgetLeaf(ret, false) ret2 end + function get_accessible_parent(instance::GtkFileChooserWidget) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkFileChooserWidget) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkFileChooserWidget) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkFileChooserWidget) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkFileChooserWidget) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkFileChooserWidget) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkFileChooserWidget, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkFileChooserWidget, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkFileChooserWidget, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkFileChooserWidget, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkFileChooserWidget, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkFileChooserWidget, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkFileChooserWidget, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkFileChooserWidget, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkFileChooserWidget, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkFileChooserWidget) + get_buildable_id(GtkBuildable(instance)) + end + function add_choice(instance::GtkFileChooserWidget, _id::Union{AbstractString, Symbol}, _label::Union{AbstractString, Symbol}, _options, _option_labels) + add_choice(GtkFileChooser(instance), _id, _label, _options, _option_labels) + end + function add_filter(instance::GtkFileChooserWidget, _filter::GtkFileFilter) + add_filter(GtkFileChooser(instance), _filter) + end + function add_shortcut_folder(instance::GtkFileChooserWidget, _folder::GFile) + add_shortcut_folder(GtkFileChooser(instance), _folder) + end + function get_action(instance::GtkFileChooserWidget) + get_action(GtkFileChooser(instance)) + end + function get_choice(instance::GtkFileChooserWidget, _id::Union{AbstractString, Symbol}) + get_choice(GtkFileChooser(instance), _id) + end + function get_create_folders(instance::GtkFileChooserWidget) + get_create_folders(GtkFileChooser(instance)) + end + function get_current_folder(instance::GtkFileChooserWidget) + get_current_folder(GtkFileChooser(instance)) + end + function get_current_name(instance::GtkFileChooserWidget) + get_current_name(GtkFileChooser(instance)) + end + function get_file(instance::GtkFileChooserWidget) + get_file(GtkFileChooser(instance)) + end + function get_files(instance::GtkFileChooserWidget) + get_files(GtkFileChooser(instance)) + end + function get_filter(instance::GtkFileChooserWidget) + get_filter(GtkFileChooser(instance)) + end + function get_filters(instance::GtkFileChooserWidget) + get_filters(GtkFileChooser(instance)) + end + function get_select_multiple(instance::GtkFileChooserWidget) + get_select_multiple(GtkFileChooser(instance)) + end + function get_shortcut_folders(instance::GtkFileChooserWidget) + get_shortcut_folders(GtkFileChooser(instance)) + end + function remove_choice(instance::GtkFileChooserWidget, _id::Union{AbstractString, Symbol}) + remove_choice(GtkFileChooser(instance), _id) + end + function remove_filter(instance::GtkFileChooserWidget, _filter::GtkFileFilter) + remove_filter(GtkFileChooser(instance), _filter) + end + function remove_shortcut_folder(instance::GtkFileChooserWidget, _folder::GFile) + remove_shortcut_folder(GtkFileChooser(instance), _folder) + end + function set_action(instance::GtkFileChooserWidget, _action) + set_action(GtkFileChooser(instance), _action) + end + function set_choice(instance::GtkFileChooserWidget, _id::Union{AbstractString, Symbol}, _option::Union{AbstractString, Symbol}) + set_choice(GtkFileChooser(instance), _id, _option) + end + function set_create_folders(instance::GtkFileChooserWidget, _create_folders::Bool) + set_create_folders(GtkFileChooser(instance), _create_folders) + end + function set_current_folder(instance::GtkFileChooserWidget, _file::Maybe(GFile)) + set_current_folder(GtkFileChooser(instance), _file) + end + function set_current_name(instance::GtkFileChooserWidget, _name::Union{AbstractString, Symbol}) + set_current_name(GtkFileChooser(instance), _name) + end + function set_file(instance::GtkFileChooserWidget, _file::GFile) + set_file(GtkFileChooser(instance), _file) + end + function set_filter(instance::GtkFileChooserWidget, _filter::GtkFileFilter) + set_filter(GtkFileChooser(instance), _filter) + end + function set_select_multiple(instance::GtkFileChooserWidget, _select_multiple::Bool) + set_select_multiple(GtkFileChooser(instance), _select_multiple) + end function FileDialog_new() ret = ccall(("gtk_file_dialog_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkFileDialogLeaf(ret, true) @@ -4293,6 +6873,9 @@ $(Expr(:toplevel, quote ret2 = convert(GVariant, ret) ret2 end + function get_buildable_id(instance::GtkFileFilter) + get_buildable_id(GtkBuildable(instance)) + end function FileLauncher_new(_file::Maybe(GFile)) _file_maybe = nothing_to_null(_file) ret = ccall(("gtk_file_launcher_new", libgtk4), Ptr{GObject}, (Ptr{GObject},), _file_maybe) @@ -4413,6 +6996,18 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_filter_list_model_set_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function get_item_type(instance::GtkFilterListModel) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkFilterListModel) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkFilterListModel, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkFilterListModel, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function Fixed_new() ret = ccall(("gtk_fixed_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkFixedLeaf(ret, false) @@ -4448,6 +7043,54 @@ $(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 get_accessible_parent(instance::GtkFixed) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkFixed) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkFixed) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkFixed) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkFixed) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkFixed) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkFixed, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkFixed, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkFixed, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkFixed, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkFixed, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkFixed, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkFixed, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkFixed, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkFixed, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkFixed) + get_buildable_id(GtkBuildable(instance)) + end function FixedLayout_new() ret = ccall(("gtk_fixed_layout_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkFixedLayoutLeaf(ret, true) @@ -4488,6 +7131,18 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_flatten_list_model_set_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function get_item_type(instance::GtkFlattenListModel) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkFlattenListModel) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkFlattenListModel, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkFlattenListModel, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function FlowBox_new() ret = ccall(("gtk_flow_box_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkFlowBoxLeaf(ret, false) @@ -4626,6 +7281,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_flow_box_unselect_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child) nothing end + function get_accessible_parent(instance::GtkFlowBox) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkFlowBox) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkFlowBox) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkFlowBox) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkFlowBox) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkFlowBox) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkFlowBox, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkFlowBox, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkFlowBox, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkFlowBox, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkFlowBox, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkFlowBox, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkFlowBox, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkFlowBox, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkFlowBox, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkFlowBox) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkFlowBox) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkFlowBox, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function FlowBoxChild_new() ret = ccall(("gtk_flow_box_child_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkFlowBoxChildLeaf(ret, false) @@ -4654,6 +7363,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_flow_box_child_set_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child_maybe) nothing end + function get_accessible_parent(instance::GtkFlowBoxChild) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkFlowBoxChild) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkFlowBoxChild) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkFlowBoxChild) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkFlowBoxChild) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkFlowBoxChild) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkFlowBoxChild, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkFlowBoxChild, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkFlowBoxChild, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkFlowBoxChild, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkFlowBoxChild, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkFlowBoxChild, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkFlowBoxChild, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkFlowBoxChild, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkFlowBoxChild, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkFlowBoxChild) + get_buildable_id(GtkBuildable(instance)) + end function FontButton_new() ret = ccall(("gtk_font_button_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkFontButtonLeaf(ret, false) @@ -4700,6 +7457,111 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_font_button_set_use_size", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_size) nothing end + function get_accessible_parent(instance::GtkFontButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkFontButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkFontButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkFontButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkFontButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkFontButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkFontButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkFontButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkFontButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkFontButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkFontButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkFontButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkFontButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkFontButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkFontButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkFontButton) + get_buildable_id(GtkBuildable(instance)) + end + function get_font(instance::GtkFontButton) + get_font(GtkFontChooser(instance)) + end + function get_font_desc(instance::GtkFontButton) + get_font_desc(GtkFontChooser(instance)) + end + function get_font_face(instance::GtkFontButton) + get_font_face(GtkFontChooser(instance)) + end + function get_font_family(instance::GtkFontButton) + get_font_family(GtkFontChooser(instance)) + end + function get_font_features(instance::GtkFontButton) + get_font_features(GtkFontChooser(instance)) + end + function get_font_map(instance::GtkFontButton) + get_font_map(GtkFontChooser(instance)) + end + function get_font_size(instance::GtkFontButton) + get_font_size(GtkFontChooser(instance)) + end + function get_language(instance::GtkFontButton) + get_language(GtkFontChooser(instance)) + end + function get_level(instance::GtkFontButton) + get_level(GtkFontChooser(instance)) + end + function get_preview_text(instance::GtkFontButton) + get_preview_text(GtkFontChooser(instance)) + end + function get_show_preview_entry(instance::GtkFontButton) + get_show_preview_entry(GtkFontChooser(instance)) + end + function set_filter_func(instance::GtkFontButton, _filter::Maybe(Function), _destroy::Function) + set_filter_func(GtkFontChooser(instance), _filter, _destroy) + end + function set_font(instance::GtkFontButton, _fontname::Union{AbstractString, Symbol}) + set_font(GtkFontChooser(instance), _fontname) + end + function set_font_desc(instance::GtkFontButton, _font_desc::PangoFontDescription) + set_font_desc(GtkFontChooser(instance), _font_desc) + end + function set_font_map(instance::GtkFontButton, _fontmap::Maybe(PangoFontMap)) + set_font_map(GtkFontChooser(instance), _fontmap) + end + function set_language(instance::GtkFontButton, _language::Union{AbstractString, Symbol}) + set_language(GtkFontChooser(instance), _language) + end + function set_level(instance::GtkFontButton, _level) + set_level(GtkFontChooser(instance), _level) + end + function set_preview_text(instance::GtkFontButton, _text::Union{AbstractString, Symbol}) + set_preview_text(GtkFontChooser(instance), _text) + end + function set_show_preview_entry(instance::GtkFontButton, _show_preview_entry::Bool) + set_show_preview_entry(GtkFontChooser(instance), _show_preview_entry) + end function FontChooserDialog_new(_title::Maybe(Union{AbstractString, Symbol}), _parent::Maybe(GtkWindow)) _title_maybe = nothing_to_null(_title) _parent_maybe = nothing_to_null(_parent) @@ -4707,11 +7569,245 @@ $(Expr(:toplevel, quote ret2 = GtkFontChooserDialogLeaf(ret, false) ret2 end + function get_accessible_parent(instance::GtkFontChooserDialog) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkFontChooserDialog) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkFontChooserDialog) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkFontChooserDialog) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkFontChooserDialog) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkFontChooserDialog) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkFontChooserDialog, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkFontChooserDialog, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkFontChooserDialog, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkFontChooserDialog, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkFontChooserDialog, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkFontChooserDialog, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkFontChooserDialog, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkFontChooserDialog, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkFontChooserDialog, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkFontChooserDialog) + get_buildable_id(GtkBuildable(instance)) + end + function get_font(instance::GtkFontChooserDialog) + get_font(GtkFontChooser(instance)) + end + function get_font_desc(instance::GtkFontChooserDialog) + get_font_desc(GtkFontChooser(instance)) + end + function get_font_face(instance::GtkFontChooserDialog) + get_font_face(GtkFontChooser(instance)) + end + function get_font_family(instance::GtkFontChooserDialog) + get_font_family(GtkFontChooser(instance)) + end + function get_font_features(instance::GtkFontChooserDialog) + get_font_features(GtkFontChooser(instance)) + end + function get_font_map(instance::GtkFontChooserDialog) + get_font_map(GtkFontChooser(instance)) + end + function get_font_size(instance::GtkFontChooserDialog) + get_font_size(GtkFontChooser(instance)) + end + function get_language(instance::GtkFontChooserDialog) + get_language(GtkFontChooser(instance)) + end + function get_level(instance::GtkFontChooserDialog) + get_level(GtkFontChooser(instance)) + end + function get_preview_text(instance::GtkFontChooserDialog) + get_preview_text(GtkFontChooser(instance)) + end + function get_show_preview_entry(instance::GtkFontChooserDialog) + get_show_preview_entry(GtkFontChooser(instance)) + end + function set_filter_func(instance::GtkFontChooserDialog, _filter::Maybe(Function), _destroy::Function) + set_filter_func(GtkFontChooser(instance), _filter, _destroy) + end + function set_font(instance::GtkFontChooserDialog, _fontname::Union{AbstractString, Symbol}) + set_font(GtkFontChooser(instance), _fontname) + end + function set_font_desc(instance::GtkFontChooserDialog, _font_desc::PangoFontDescription) + set_font_desc(GtkFontChooser(instance), _font_desc) + end + function set_font_map(instance::GtkFontChooserDialog, _fontmap::Maybe(PangoFontMap)) + set_font_map(GtkFontChooser(instance), _fontmap) + end + function set_language(instance::GtkFontChooserDialog, _language::Union{AbstractString, Symbol}) + set_language(GtkFontChooser(instance), _language) + end + function set_level(instance::GtkFontChooserDialog, _level) + set_level(GtkFontChooser(instance), _level) + end + function set_preview_text(instance::GtkFontChooserDialog, _text::Union{AbstractString, Symbol}) + set_preview_text(GtkFontChooser(instance), _text) + end + function set_show_preview_entry(instance::GtkFontChooserDialog, _show_preview_entry::Bool) + set_show_preview_entry(GtkFontChooser(instance), _show_preview_entry) + end + function get_renderer(instance::GtkFontChooserDialog) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkFontChooserDialog) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkFontChooserDialog) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkFontChooserDialog) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkFontChooserDialog) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkFontChooserDialog) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkFontChooserDialog) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkFontChooserDialog, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function FontChooserWidget_new() ret = ccall(("gtk_font_chooser_widget_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkFontChooserWidgetLeaf(ret, false) ret2 end + function get_accessible_parent(instance::GtkFontChooserWidget) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkFontChooserWidget) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkFontChooserWidget) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkFontChooserWidget) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkFontChooserWidget) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkFontChooserWidget) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkFontChooserWidget, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkFontChooserWidget, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkFontChooserWidget, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkFontChooserWidget, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkFontChooserWidget, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkFontChooserWidget, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkFontChooserWidget, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkFontChooserWidget, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkFontChooserWidget, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkFontChooserWidget) + get_buildable_id(GtkBuildable(instance)) + end + function get_font(instance::GtkFontChooserWidget) + get_font(GtkFontChooser(instance)) + end + function get_font_desc(instance::GtkFontChooserWidget) + get_font_desc(GtkFontChooser(instance)) + end + function get_font_face(instance::GtkFontChooserWidget) + get_font_face(GtkFontChooser(instance)) + end + function get_font_family(instance::GtkFontChooserWidget) + get_font_family(GtkFontChooser(instance)) + end + function get_font_features(instance::GtkFontChooserWidget) + get_font_features(GtkFontChooser(instance)) + end + function get_font_map(instance::GtkFontChooserWidget) + get_font_map(GtkFontChooser(instance)) + end + function get_font_size(instance::GtkFontChooserWidget) + get_font_size(GtkFontChooser(instance)) + end + function get_language(instance::GtkFontChooserWidget) + get_language(GtkFontChooser(instance)) + end + function get_level(instance::GtkFontChooserWidget) + get_level(GtkFontChooser(instance)) + end + function get_preview_text(instance::GtkFontChooserWidget) + get_preview_text(GtkFontChooser(instance)) + end + function get_show_preview_entry(instance::GtkFontChooserWidget) + get_show_preview_entry(GtkFontChooser(instance)) + end + function set_filter_func(instance::GtkFontChooserWidget, _filter::Maybe(Function), _destroy::Function) + set_filter_func(GtkFontChooser(instance), _filter, _destroy) + end + function set_font(instance::GtkFontChooserWidget, _fontname::Union{AbstractString, Symbol}) + set_font(GtkFontChooser(instance), _fontname) + end + function set_font_desc(instance::GtkFontChooserWidget, _font_desc::PangoFontDescription) + set_font_desc(GtkFontChooser(instance), _font_desc) + end + function set_font_map(instance::GtkFontChooserWidget, _fontmap::Maybe(PangoFontMap)) + set_font_map(GtkFontChooser(instance), _fontmap) + end + function set_language(instance::GtkFontChooserWidget, _language::Union{AbstractString, Symbol}) + set_language(GtkFontChooser(instance), _language) + end + function set_level(instance::GtkFontChooserWidget, _level) + set_level(GtkFontChooser(instance), _level) + end + function set_preview_text(instance::GtkFontChooserWidget, _text::Union{AbstractString, Symbol}) + set_preview_text(GtkFontChooser(instance), _text) + end + function set_show_preview_entry(instance::GtkFontChooserWidget, _show_preview_entry::Bool) + set_show_preview_entry(GtkFontChooser(instance), _show_preview_entry) + end function FontDialog_new() ret = ccall(("gtk_font_dialog_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkFontDialogLeaf(ret, true) @@ -4933,6 +8029,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_font_dialog_button_set_use_size", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_size) nothing end + function get_accessible_parent(instance::GtkFontDialogButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkFontDialogButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkFontDialogButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkFontDialogButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkFontDialogButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkFontDialogButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkFontDialogButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkFontDialogButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkFontDialogButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkFontDialogButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkFontDialogButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkFontDialogButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkFontDialogButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkFontDialogButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkFontDialogButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkFontDialogButton) + get_buildable_id(GtkBuildable(instance)) + end function Frame_new(_label::Maybe(Union{AbstractString, Symbol})) _label_maybe = nothing_to_null(_label) ret = ccall(("gtk_frame_new", libgtk4), Ptr{GObject}, (Cstring,), _label_maybe) @@ -4977,6 +8121,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_frame_set_label_widget", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _label_widget_maybe) nothing end + function get_accessible_parent(instance::GtkFrame) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkFrame) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkFrame) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkFrame) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkFrame) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkFrame) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkFrame, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkFrame, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkFrame, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkFrame, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkFrame, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkFrame, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkFrame, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkFrame, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkFrame, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkFrame) + get_buildable_id(GtkBuildable(instance)) + end function GLArea_new() ret = ccall(("gtk_gl_area_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkGLAreaLeaf(ret, false) @@ -5056,6 +8248,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_gl_area_set_use_es", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_es) nothing end + function get_accessible_parent(instance::GtkGLArea) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkGLArea) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkGLArea) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkGLArea) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkGLArea) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkGLArea) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkGLArea, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkGLArea, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkGLArea, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkGLArea, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkGLArea, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkGLArea, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkGLArea, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkGLArea, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkGLArea, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkGLArea) + get_buildable_id(GtkBuildable(instance)) + end function get_bounding_box(instance::GtkGesture) m_rect = Ref{_GdkRectangle}() ret = ccall(("gtk_gesture_get_bounding_box", libgtk4), Cint, (Ptr{GObject}, Ptr{_GdkRectangle}), instance, m_rect) @@ -5406,6 +8646,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_grid_set_row_spacing", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _spacing) nothing end + function get_accessible_parent(instance::GtkGrid) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkGrid) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkGrid) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkGrid) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkGrid) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkGrid) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkGrid, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkGrid, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkGrid, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkGrid, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkGrid, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkGrid, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkGrid, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkGrid, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkGrid, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkGrid) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkGrid) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkGrid, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function GridLayout_new() ret = ccall(("gtk_grid_layout_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkGridLayoutLeaf(ret, true) @@ -5565,6 +8859,87 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_grid_view_set_single_click_activate", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _single_click_activate) nothing end + function get_accessible_parent(instance::GtkGridView) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkGridView) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkGridView) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkGridView) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkGridView) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkGridView) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkGridView, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkGridView, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkGridView, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkGridView, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkGridView, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkGridView, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkGridView, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkGridView, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkGridView, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkGridView) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkGridView) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkGridView, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end + function get_border(instance::GtkGridView) + get_border(GtkScrollable(instance)) + end + function get_hadjustment(instance::GtkGridView) + get_hadjustment(GtkScrollable(instance)) + end + function get_hscroll_policy(instance::GtkGridView) + get_hscroll_policy(GtkScrollable(instance)) + end + function get_vadjustment(instance::GtkGridView) + get_vadjustment(GtkScrollable(instance)) + end + function get_vscroll_policy(instance::GtkGridView) + get_vscroll_policy(GtkScrollable(instance)) + end + function set_hadjustment(instance::GtkGridView, _hadjustment::Maybe(GtkAdjustment)) + set_hadjustment(GtkScrollable(instance), _hadjustment) + end + function set_hscroll_policy(instance::GtkGridView, _policy) + set_hscroll_policy(GtkScrollable(instance), _policy) + end + function set_vadjustment(instance::GtkGridView, _vadjustment::Maybe(GtkAdjustment)) + set_vadjustment(GtkScrollable(instance), _vadjustment) + end + function set_vscroll_policy(instance::GtkGridView, _policy) + set_vscroll_policy(GtkScrollable(instance), _policy) + end function HeaderBar_new() ret = ccall(("gtk_header_bar_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkHeaderBarLeaf(ret, false) @@ -5611,6 +8986,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_header_bar_set_title_widget", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _title_widget_maybe) nothing end + function get_accessible_parent(instance::GtkHeaderBar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkHeaderBar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkHeaderBar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkHeaderBar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkHeaderBar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkHeaderBar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkHeaderBar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkHeaderBar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkHeaderBar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkHeaderBar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkHeaderBar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkHeaderBar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkHeaderBar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkHeaderBar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkHeaderBar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkHeaderBar) + get_buildable_id(GtkBuildable(instance)) + 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) @@ -5732,6 +9155,36 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function compute_concrete_size(instance::GtkIconPaintable, _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::GtkIconPaintable) + get_current_image(GdkPaintable(instance)) + end + function get_flags(instance::GtkIconPaintable) + get_flags(GdkPaintable(instance)) + end + function get_intrinsic_aspect_ratio(instance::GtkIconPaintable) + get_intrinsic_aspect_ratio(GdkPaintable(instance)) + end + function get_intrinsic_height(instance::GtkIconPaintable) + get_intrinsic_height(GdkPaintable(instance)) + end + function get_intrinsic_width(instance::GtkIconPaintable) + get_intrinsic_width(GdkPaintable(instance)) + end + function invalidate_contents(instance::GtkIconPaintable) + invalidate_contents(GdkPaintable(instance)) + end + function invalidate_size(instance::GtkIconPaintable) + invalidate_size(GdkPaintable(instance)) + end + function snapshot(instance::GtkIconPaintable, _snapshot::GdkSnapshot, _width::Real, _height::Real) + snapshot(GdkPaintable(instance), _snapshot, _width, _height) + end + function snapshot_symbolic(instance::GtkIconPaintable, _snapshot::GdkSnapshot, _width::Real, _height::Real, _colors) + snapshot_symbolic(GtkSymbolicPaintable(instance), _snapshot, _width, _height, _colors) + end function IconTheme_new() ret = ccall(("gtk_icon_theme_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkIconThemeLeaf(ret, true) @@ -6138,13 +9591,115 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_icon_view_unselect_path", libgtk4), Nothing, (Ptr{GObject}, Ptr{GtkTreePath}), instance, _path) nothing end - function unset_model_drag_dest(instance::GtkIconView) - ret = ccall(("gtk_icon_view_unset_model_drag_dest", libgtk4), Nothing, (Ptr{GObject},), instance) - nothing + function unset_model_drag_dest(instance::GtkIconView) + ret = ccall(("gtk_icon_view_unset_model_drag_dest", libgtk4), Nothing, (Ptr{GObject},), instance) + nothing + end + function unset_model_drag_source(instance::GtkIconView) + ret = ccall(("gtk_icon_view_unset_model_drag_source", libgtk4), Nothing, (Ptr{GObject},), instance) + nothing + end + function get_accessible_parent(instance::GtkIconView) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkIconView) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkIconView) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkIconView) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkIconView) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkIconView) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkIconView, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkIconView, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkIconView, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkIconView, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkIconView, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkIconView, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkIconView, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkIconView, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkIconView, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkIconView) + get_buildable_id(GtkBuildable(instance)) + end + function add_attribute(instance::GtkIconView, _cell::GtkCellRenderer, _attribute::Union{AbstractString, Symbol}, _column::Integer) + add_attribute(GtkCellLayout(instance), _cell, _attribute, _column) + end + function clear(instance::GtkIconView) + clear(GtkCellLayout(instance)) + end + function clear_attributes(instance::GtkIconView, _cell::GtkCellRenderer) + clear_attributes(GtkCellLayout(instance), _cell) + end + function get_area(instance::GtkIconView) + get_area(GtkCellLayout(instance)) + end + function get_cells(instance::GtkIconView) + get_cells(GtkCellLayout(instance)) + end + function pack_end(instance::GtkIconView, _cell::GtkCellRenderer, _expand::Bool) + pack_end(GtkCellLayout(instance), _cell, _expand) + end + function pack_start(instance::GtkIconView, _cell::GtkCellRenderer, _expand::Bool) + pack_start(GtkCellLayout(instance), _cell, _expand) + end + function reorder(instance::GtkIconView, _cell::GtkCellRenderer, _position::Integer) + reorder(GtkCellLayout(instance), _cell, _position) + end + function set_cell_data_func(instance::GtkIconView, _cell::GtkCellRenderer, _func::Maybe(Function), _destroy::Function) + set_cell_data_func(GtkCellLayout(instance), _cell, _func, _destroy) + end + function get_border(instance::GtkIconView) + get_border(GtkScrollable(instance)) + end + function get_hadjustment(instance::GtkIconView) + get_hadjustment(GtkScrollable(instance)) + end + function get_hscroll_policy(instance::GtkIconView) + get_hscroll_policy(GtkScrollable(instance)) + end + function get_vadjustment(instance::GtkIconView) + get_vadjustment(GtkScrollable(instance)) + end + function get_vscroll_policy(instance::GtkIconView) + get_vscroll_policy(GtkScrollable(instance)) + end + function set_hadjustment(instance::GtkIconView, _hadjustment::Maybe(GtkAdjustment)) + set_hadjustment(GtkScrollable(instance), _hadjustment) + end + function set_hscroll_policy(instance::GtkIconView, _policy) + set_hscroll_policy(GtkScrollable(instance), _policy) end - function unset_model_drag_source(instance::GtkIconView) - ret = ccall(("gtk_icon_view_unset_model_drag_source", libgtk4), Nothing, (Ptr{GObject},), instance) - nothing + function set_vadjustment(instance::GtkIconView, _vadjustment::Maybe(GtkAdjustment)) + set_vadjustment(GtkScrollable(instance), _vadjustment) + end + function set_vscroll_policy(instance::GtkIconView, _policy) + set_vscroll_policy(GtkScrollable(instance), _policy) end function Image_new() ret = ccall(("gtk_image_new", libgtk4), Ptr{GObject}, ()) @@ -6254,6 +9809,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_image_set_pixel_size", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _pixel_size) nothing end + function get_accessible_parent(instance::GtkImage) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkImage) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkImage) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkImage) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkImage) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkImage) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkImage, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkImage, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkImage, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkImage, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkImage, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkImage, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkImage, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkImage, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkImage, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkImage) + get_buildable_id(GtkBuildable(instance)) + end function InfoBar_new() ret = ccall(("gtk_info_bar_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkInfoBarLeaf(ret, false) @@ -6319,6 +9922,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_info_bar_set_show_close_button", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _setting) nothing end + function get_accessible_parent(instance::GtkInfoBar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkInfoBar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkInfoBar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkInfoBar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkInfoBar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkInfoBar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkInfoBar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkInfoBar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkInfoBar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkInfoBar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkInfoBar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkInfoBar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkInfoBar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkInfoBar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkInfoBar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkInfoBar) + get_buildable_id(GtkBuildable(instance)) + end function Inscription_new(_text::Maybe(Union{AbstractString, Symbol})) _text_maybe = nothing_to_null(_text) ret = ccall(("gtk_inscription_new", libgtk4), Ptr{GObject}, (Cstring,), _text_maybe) @@ -6416,6 +10067,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_inscription_set_yalign", libgtk4), Nothing, (Ptr{GObject}, Float32), instance, _yalign) nothing end + function get_accessible_parent(instance::GtkInscription) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkInscription) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkInscription) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkInscription) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkInscription) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkInscription) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkInscription, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkInscription, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkInscription, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkInscription, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkInscription, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkInscription, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkInscription, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkInscription, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkInscription, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkInscription) + get_buildable_id(GtkBuildable(instance)) + end function KeyvalTrigger_new(_keyval::Integer, _modifiers) ret = ccall(("gtk_keyval_trigger_new", libgtk4), Ptr{GObject}, (UInt32, UInt32), _keyval, _modifiers) ret2 = GtkKeyvalTriggerLeaf(ret, true) @@ -6668,6 +10367,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_label_set_yalign", libgtk4), Nothing, (Ptr{GObject}, Float32), instance, _yalign) nothing end + function get_accessible_parent(instance::GtkLabel) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkLabel) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkLabel) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkLabel) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkLabel) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkLabel) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkLabel, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkLabel, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkLabel, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkLabel, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkLabel, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkLabel, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkLabel, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkLabel, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkLabel, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkLabel) + get_buildable_id(GtkBuildable(instance)) + end function get_child_widget(instance::GtkLayoutChild) ret = ccall(("gtk_layout_child_get_child_widget", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = convert(GtkWidget, ret, false) @@ -6782,6 +10529,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_level_bar_set_value", libgtk4), Nothing, (Ptr{GObject}, Float64), instance, _value) nothing end + function get_accessible_parent(instance::GtkLevelBar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkLevelBar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkLevelBar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkLevelBar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkLevelBar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkLevelBar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkLevelBar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkLevelBar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkLevelBar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkLevelBar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkLevelBar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkLevelBar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkLevelBar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkLevelBar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkLevelBar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkLevelBar) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkLevelBar) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkLevelBar, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function LinkButton_new(_uri::Union{AbstractString, Symbol}) ret = ccall(("gtk_link_button_new", libgtk4), Ptr{GObject}, (Cstring,), _uri) ret2 = GtkLinkButtonLeaf(ret, false) @@ -6811,6 +10612,150 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_link_button_set_visited", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _visited) nothing end + function get_accessible_parent(instance::GtkLinkButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkLinkButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkLinkButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkLinkButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkLinkButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkLinkButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkLinkButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkLinkButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkLinkButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkLinkButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkLinkButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkLinkButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkLinkButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkLinkButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkLinkButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_action_name(instance::GtkLinkButton) + get_action_name(GtkActionable(instance)) + end + function get_action_target_value(instance::GtkLinkButton) + get_action_target_value(GtkActionable(instance)) + end + function set_action_name(instance::GtkLinkButton, _action_name::Maybe(Union{AbstractString, Symbol})) + set_action_name(GtkActionable(instance), _action_name) + end + function set_action_target_value(instance::GtkLinkButton, _target_value::Maybe(GVariant)) + set_action_target_value(GtkActionable(instance), _target_value) + end + function set_detailed_action_name(instance::GtkLinkButton, _detailed_action_name::Union{AbstractString, Symbol}) + set_detailed_action_name(GtkActionable(instance), _detailed_action_name) + end + function get_buildable_id(instance::GtkLinkButton) + get_buildable_id(GtkBuildable(instance)) + end + function get_accessible_parent(instance::GtkListBase) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkListBase) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkListBase) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkListBase) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkListBase) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkListBase) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkListBase, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkListBase, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkListBase, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkListBase, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkListBase, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkListBase, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkListBase, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkListBase, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkListBase, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkListBase) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkListBase) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkListBase, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end + function get_border(instance::GtkListBase) + get_border(GtkScrollable(instance)) + end + function get_hadjustment(instance::GtkListBase) + get_hadjustment(GtkScrollable(instance)) + end + function get_hscroll_policy(instance::GtkListBase) + get_hscroll_policy(GtkScrollable(instance)) + end + function get_vadjustment(instance::GtkListBase) + get_vadjustment(GtkScrollable(instance)) + end + function get_vscroll_policy(instance::GtkListBase) + get_vscroll_policy(GtkScrollable(instance)) + end + function set_hadjustment(instance::GtkListBase, _hadjustment::Maybe(GtkAdjustment)) + set_hadjustment(GtkScrollable(instance), _hadjustment) + end + function set_hscroll_policy(instance::GtkListBase, _policy) + set_hscroll_policy(GtkScrollable(instance), _policy) + end + function set_vadjustment(instance::GtkListBase, _vadjustment::Maybe(GtkAdjustment)) + set_vadjustment(GtkScrollable(instance), _vadjustment) + end + function set_vscroll_policy(instance::GtkListBase, _policy) + set_vscroll_policy(GtkScrollable(instance), _policy) + end function ListBox_new() ret = ccall(("gtk_list_box_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkListBoxLeaf(ret, false) @@ -6942,6 +10887,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_list_box_unselect_row", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _row) nothing end + function get_accessible_parent(instance::GtkListBox) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkListBox) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkListBox) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkListBox) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkListBox) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkListBox) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkListBox, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkListBox, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkListBox, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkListBox, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkListBox, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkListBox, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkListBox, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkListBox, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkListBox, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkListBox) + get_buildable_id(GtkBuildable(instance)) + end function ListBoxRow_new() ret = ccall(("gtk_list_box_row_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkListBoxRowLeaf(ret, false) @@ -6998,6 +10991,69 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_list_box_row_set_selectable", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _selectable) nothing end + function get_accessible_parent(instance::GtkListBoxRow) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkListBoxRow) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkListBoxRow) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkListBoxRow) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkListBoxRow) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkListBoxRow) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkListBoxRow, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkListBoxRow, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkListBoxRow, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkListBoxRow, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkListBoxRow, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkListBoxRow, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkListBoxRow, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkListBoxRow, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkListBoxRow, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_action_name(instance::GtkListBoxRow) + get_action_name(GtkActionable(instance)) + end + function get_action_target_value(instance::GtkListBoxRow) + get_action_target_value(GtkActionable(instance)) + end + function set_action_name(instance::GtkListBoxRow, _action_name::Maybe(Union{AbstractString, Symbol})) + set_action_name(GtkActionable(instance), _action_name) + end + function set_action_target_value(instance::GtkListBoxRow, _target_value::Maybe(GVariant)) + set_action_target_value(GtkActionable(instance), _target_value) + end + function set_detailed_action_name(instance::GtkListBoxRow, _detailed_action_name::Union{AbstractString, Symbol}) + set_detailed_action_name(GtkActionable(instance), _detailed_action_name) + end + function get_buildable_id(instance::GtkListBoxRow) + get_buildable_id(GtkBuildable(instance)) + end function get_activatable(instance::GtkListItem) ret = ccall(("gtk_list_item_get_activatable", libgtk4), Cint, (Ptr{GObject},), instance) ret2 = convert(Bool, ret) @@ -7082,6 +11138,7 @@ $(Expr(:toplevel, quote _columns_arr = convert(Vector{Int32}, _columns) _values_arr = convert(Vector{_GValue}, _values) _n_values = length(_columns) + _n_values = length(_values) ret = ccall(("gtk_list_store_insert_with_valuesv", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GtkTreeIter}, Int32, Ptr{Int32}, Ptr{_GValue}, Int32), instance, m_iter, _position, _columns_arr, _values_arr, _n_values) _iter = m_iter[] _iter @@ -7131,6 +11188,7 @@ $(Expr(:toplevel, quote _columns_arr = convert(Vector{Int32}, _columns) _values_arr = convert(Vector{_GValue}, _values) _n_values = length(_columns) + _n_values = length(_values) ret = ccall(("gtk_list_store_set_valuesv", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GtkTreeIter}, Ptr{Int32}, Ptr{_GValue}, Int32), instance, _iter, _columns_arr, _values_arr, _n_values) nothing end @@ -7138,6 +11196,117 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_list_store_swap", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GtkTreeIter}, Ptr{_GtkTreeIter}), instance, _a, _b) nothing end + function get_buildable_id(instance::GtkListStore) + get_buildable_id(GtkBuildable(instance)) + end + function drag_data_received(instance::GtkListStore, _dest::GtkTreePath, _value::Union{GValue, Ref{_GValue}}) + drag_data_received(GtkTreeDragDest(instance), _dest, _value) + end + function row_drop_possible(instance::GtkListStore, _dest_path::GtkTreePath, _value::Union{GValue, Ref{_GValue}}) + row_drop_possible(GtkTreeDragDest(instance), _dest_path, _value) + end + function drag_data_delete(instance::GtkListStore, _path::GtkTreePath) + drag_data_delete(GtkTreeDragSource(instance), _path) + end + function drag_data_get(instance::GtkListStore, _path::GtkTreePath) + drag_data_get(GtkTreeDragSource(instance), _path) + end + function row_draggable(instance::GtkListStore, _path::GtkTreePath) + row_draggable(GtkTreeDragSource(instance), _path) + end + function filter_new(instance::GtkListStore, _root::Maybe(GtkTreePath)) + filter_new(GtkTreeModel(instance), _root) + end + function foreach(instance::GtkListStore, _func::Function) + foreach(GtkTreeModel(instance), _func) + end + function get_column_type(instance::GtkListStore, _index_::Integer) + get_column_type(GtkTreeModel(instance), _index_) + end + function get_flags(instance::GtkListStore) + get_flags(GtkTreeModel(instance)) + end + function get_iter(instance::GtkListStore, _path::GtkTreePath) + get_iter(GtkTreeModel(instance), _path) + end + function get_iter_first(instance::GtkListStore) + get_iter_first(GtkTreeModel(instance)) + end + function get_iter_from_string(instance::GtkListStore, _path_string::Union{AbstractString, Symbol}) + get_iter_from_string(GtkTreeModel(instance), _path_string) + end + function get_n_columns(instance::GtkListStore) + get_n_columns(GtkTreeModel(instance)) + end + function get_path(instance::GtkListStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + get_path(GtkTreeModel(instance), _iter) + end + function get_string_from_iter(instance::GtkListStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + get_string_from_iter(GtkTreeModel(instance), _iter) + end + function get_value(instance::GtkListStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}, _column::Integer) + get_value(GtkTreeModel(instance), _iter, _column) + end + function iter_children(instance::GtkListStore, _parent::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}})) + iter_children(GtkTreeModel(instance), _parent) + end + function iter_has_child(instance::GtkListStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_has_child(GtkTreeModel(instance), _iter) + end + function iter_n_children(instance::GtkListStore, _iter::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}})) + iter_n_children(GtkTreeModel(instance), _iter) + end + function iter_next(instance::GtkListStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_next(GtkTreeModel(instance), _iter) + end + function iter_nth_child(instance::GtkListStore, _parent::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}}), _n::Integer) + iter_nth_child(GtkTreeModel(instance), _parent, _n) + end + function iter_parent(instance::GtkListStore, _child::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_parent(GtkTreeModel(instance), _child) + end + function iter_previous(instance::GtkListStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_previous(GtkTreeModel(instance), _iter) + end + function ref_node(instance::GtkListStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + ref_node(GtkTreeModel(instance), _iter) + end + function row_changed(instance::GtkListStore, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_changed(GtkTreeModel(instance), _path, _iter) + end + function row_deleted(instance::GtkListStore, _path::GtkTreePath) + row_deleted(GtkTreeModel(instance), _path) + end + function row_has_child_toggled(instance::GtkListStore, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_has_child_toggled(GtkTreeModel(instance), _path, _iter) + end + function row_inserted(instance::GtkListStore, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_inserted(GtkTreeModel(instance), _path, _iter) + end + function rows_reordered(instance::GtkListStore, _path::GtkTreePath, _iter::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}}), _new_order) + rows_reordered(GtkTreeModel(instance), _path, _iter, _new_order) + end + function unref_node(instance::GtkListStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + unref_node(GtkTreeModel(instance), _iter) + end + function get_sort_column_id(instance::GtkListStore) + get_sort_column_id(GtkTreeSortable(instance)) + end + function has_default_sort_func(instance::GtkListStore) + has_default_sort_func(GtkTreeSortable(instance)) + end + function set_default_sort_func(instance::GtkListStore, _sort_func::Function, _destroy::Maybe(Function)) + set_default_sort_func(GtkTreeSortable(instance), _sort_func, _destroy) + end + function set_sort_column_id(instance::GtkListStore, _sort_column_id::Integer, _order) + set_sort_column_id(GtkTreeSortable(instance), _sort_column_id, _order) + end + function set_sort_func(instance::GtkListStore, _sort_column_id::Integer, _sort_func::Function, _destroy::Maybe(Function)) + set_sort_func(GtkTreeSortable(instance), _sort_column_id, _sort_func, _destroy) + end + function sort_column_changed(instance::GtkListStore) + sort_column_changed(GtkTreeSortable(instance)) + end function ListView_new(_model::Maybe(GtkSelectionModel), _factory::Maybe(GtkListItemFactory)) _model_maybe = begin if _model !== nothing @@ -7202,6 +11371,87 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_list_view_set_single_click_activate", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _single_click_activate) nothing end + function get_accessible_parent(instance::GtkListView) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkListView) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkListView) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkListView) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkListView) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkListView) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkListView, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkListView, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkListView, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkListView, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkListView, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkListView, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkListView, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkListView, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkListView, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkListView) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkListView) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkListView, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end + function get_border(instance::GtkListView) + get_border(GtkScrollable(instance)) + end + function get_hadjustment(instance::GtkListView) + get_hadjustment(GtkScrollable(instance)) + end + function get_hscroll_policy(instance::GtkListView) + get_hscroll_policy(GtkScrollable(instance)) + end + function get_vadjustment(instance::GtkListView) + get_vadjustment(GtkScrollable(instance)) + end + function get_vscroll_policy(instance::GtkListView) + get_vscroll_policy(GtkScrollable(instance)) + end + function set_hadjustment(instance::GtkListView, _hadjustment::Maybe(GtkAdjustment)) + set_hadjustment(GtkScrollable(instance), _hadjustment) + end + function set_hscroll_policy(instance::GtkListView, _policy) + set_hscroll_policy(GtkScrollable(instance), _policy) + end + function set_vadjustment(instance::GtkListView, _vadjustment::Maybe(GtkAdjustment)) + set_vadjustment(GtkScrollable(instance), _vadjustment) + end + function set_vscroll_policy(instance::GtkListView, _policy) + set_vscroll_policy(GtkScrollable(instance), _policy) + end function LockButton_new(_permission::Maybe(GPermission)) _permission_maybe = nothing_to_null(_permission) ret = ccall(("gtk_lock_button_new", libgtk4), Ptr{GObject}, (Ptr{GObject},), _permission_maybe) @@ -7218,6 +11468,69 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_lock_button_set_permission", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _permission_maybe) nothing end + function get_accessible_parent(instance::GtkLockButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkLockButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkLockButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkLockButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkLockButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkLockButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkLockButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkLockButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkLockButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkLockButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkLockButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkLockButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkLockButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkLockButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkLockButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_action_name(instance::GtkLockButton) + get_action_name(GtkActionable(instance)) + end + function get_action_target_value(instance::GtkLockButton) + get_action_target_value(GtkActionable(instance)) + end + function set_action_name(instance::GtkLockButton, _action_name::Maybe(Union{AbstractString, Symbol})) + set_action_name(GtkActionable(instance), _action_name) + end + function set_action_target_value(instance::GtkLockButton, _target_value::Maybe(GVariant)) + set_action_target_value(GtkActionable(instance), _target_value) + end + function set_detailed_action_name(instance::GtkLockButton, _detailed_action_name::Union{AbstractString, Symbol}) + set_detailed_action_name(GtkActionable(instance), _detailed_action_name) + end + function get_buildable_id(instance::GtkLockButton) + get_buildable_id(GtkBuildable(instance)) + end function get_model(instance::GtkMapListModel) ret = ccall(("gtk_map_list_model_get_model", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = GLib.find_leaf_type_if_not_null(ret, false) @@ -7233,6 +11546,18 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_map_list_model_set_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function get_item_type(instance::GtkMapListModel) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkMapListModel) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkMapListModel, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkMapListModel, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function MediaControls_new(_stream::Maybe(GtkMediaStream)) _stream_maybe = nothing_to_null(_stream) ret = ccall(("gtk_media_controls_new", libgtk4), Ptr{GObject}, (Ptr{GObject},), _stream_maybe) @@ -7249,6 +11574,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_media_controls_set_media_stream", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _stream_maybe) nothing end + function get_accessible_parent(instance::GtkMediaControls) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkMediaControls) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkMediaControls) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkMediaControls) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkMediaControls) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkMediaControls) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkMediaControls, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkMediaControls, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkMediaControls, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkMediaControls, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkMediaControls, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkMediaControls, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkMediaControls, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkMediaControls, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkMediaControls, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkMediaControls) + get_buildable_id(GtkBuildable(instance)) + end function MediaFile_new() ret = ccall(("gtk_media_file_new", libgtk4), Ptr{GObject}, ()) ret2 = convert(GtkMediaFile, ret, true) @@ -7308,6 +11681,33 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_media_file_set_resource", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _resource_path_maybe) nothing end + function compute_concrete_size(instance::GtkMediaFile, _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::GtkMediaFile) + get_current_image(GdkPaintable(instance)) + end + function get_flags(instance::GtkMediaFile) + get_flags(GdkPaintable(instance)) + end + function get_intrinsic_aspect_ratio(instance::GtkMediaFile) + get_intrinsic_aspect_ratio(GdkPaintable(instance)) + end + function get_intrinsic_height(instance::GtkMediaFile) + get_intrinsic_height(GdkPaintable(instance)) + end + function get_intrinsic_width(instance::GtkMediaFile) + get_intrinsic_width(GdkPaintable(instance)) + end + function invalidate_contents(instance::GtkMediaFile) + invalidate_contents(GdkPaintable(instance)) + end + function invalidate_size(instance::GtkMediaFile) + invalidate_size(GdkPaintable(instance)) + end + function snapshot(instance::GtkMediaFile, _snapshot::GdkSnapshot, _width::Real, _height::Real) + snapshot(GdkPaintable(instance), _snapshot, _width, _height) + end function gerror(instance::GtkMediaStream, _error) ret = ccall(("gtk_media_stream_gerror", libgtk4), Nothing, (Ptr{GObject}, Ptr{GError}), instance, _error) nothing @@ -7433,6 +11833,33 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_media_stream_update", libgtk4), Nothing, (Ptr{GObject}, Int64), instance, _timestamp) nothing end + function compute_concrete_size(instance::GtkMediaStream, _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::GtkMediaStream) + get_current_image(GdkPaintable(instance)) + end + function get_flags(instance::GtkMediaStream) + get_flags(GdkPaintable(instance)) + end + function get_intrinsic_aspect_ratio(instance::GtkMediaStream) + get_intrinsic_aspect_ratio(GdkPaintable(instance)) + end + function get_intrinsic_height(instance::GtkMediaStream) + get_intrinsic_height(GdkPaintable(instance)) + end + function get_intrinsic_width(instance::GtkMediaStream) + get_intrinsic_width(GdkPaintable(instance)) + end + function invalidate_contents(instance::GtkMediaStream) + invalidate_contents(GdkPaintable(instance)) + end + function invalidate_size(instance::GtkMediaStream) + invalidate_size(GdkPaintable(instance)) + end + function snapshot(instance::GtkMediaStream, _snapshot::GdkSnapshot, _width::Real, _height::Real) + snapshot(GdkPaintable(instance), _snapshot, _width, _height) + end function MenuButton_new() ret = ccall(("gtk_menu_button_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkMenuButtonLeaf(ret, false) @@ -7548,6 +11975,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_menu_button_set_use_underline", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _use_underline) nothing end + function get_accessible_parent(instance::GtkMenuButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkMenuButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkMenuButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkMenuButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkMenuButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkMenuButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkMenuButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkMenuButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkMenuButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkMenuButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkMenuButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkMenuButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkMenuButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkMenuButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkMenuButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkMenuButton) + get_buildable_id(GtkBuildable(instance)) + end function get_message_area(instance::GtkMessageDialog) ret = ccall(("gtk_message_dialog_get_message_area", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = convert(GtkWidget, ret, false) @@ -7557,6 +12032,78 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_message_dialog_set_markup", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _str) nothing end + function get_accessible_parent(instance::GtkMessageDialog) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkMessageDialog) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkMessageDialog) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkMessageDialog) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkMessageDialog) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkMessageDialog) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkMessageDialog, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkMessageDialog, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkMessageDialog, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkMessageDialog, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkMessageDialog, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkMessageDialog, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkMessageDialog, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkMessageDialog, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkMessageDialog, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkMessageDialog) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkMessageDialog) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkMessageDialog) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkMessageDialog) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkMessageDialog) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkMessageDialog) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkMessageDialog) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkMessageDialog) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkMessageDialog, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function MnemonicTrigger_new(_keyval::Integer) ret = ccall(("gtk_mnemonic_trigger_new", libgtk4), Ptr{GObject}, (UInt32,), _keyval) ret2 = GtkMnemonicTriggerLeaf(ret, true) @@ -7605,6 +12152,21 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_multi_filter_remove", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _position) nothing end + function get_item_type(instance::GtkMultiFilter) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkMultiFilter) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkMultiFilter, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkMultiFilter, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end + function get_buildable_id(instance::GtkMultiFilter) + get_buildable_id(GtkBuildable(instance)) + end function MultiSelection_new(_model::Maybe(GListModel)) _model_maybe = begin if _model !== nothing @@ -7626,6 +12188,51 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_multi_selection_set_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function get_item_type(instance::GtkMultiSelection) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkMultiSelection) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkMultiSelection, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkMultiSelection, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end + function get_selection(instance::GtkMultiSelection) + get_selection(GtkSelectionModel(instance)) + end + function get_selection_in_range(instance::GtkMultiSelection, _position::Integer, _n_items::Integer) + get_selection_in_range(GtkSelectionModel(instance), _position, _n_items) + end + function is_selected(instance::GtkMultiSelection, _position::Integer) + is_selected(GtkSelectionModel(instance), _position) + end + function select_all(instance::GtkMultiSelection) + select_all(GtkSelectionModel(instance)) + end + function select_item(instance::GtkMultiSelection, _position::Integer, _unselect_rest::Bool) + select_item(GtkSelectionModel(instance), _position, _unselect_rest) + end + function select_range(instance::GtkMultiSelection, _position::Integer, _n_items::Integer, _unselect_rest::Bool) + select_range(GtkSelectionModel(instance), _position, _n_items, _unselect_rest) + end + function selection_changed(instance::GtkMultiSelection, _position::Integer, _n_items::Integer) + selection_changed(GtkSelectionModel(instance), _position, _n_items) + end + function set_selection(instance::GtkMultiSelection, _selected::GtkBitset, _mask::GtkBitset) + set_selection(GtkSelectionModel(instance), _selected, _mask) + end + function unselect_all(instance::GtkMultiSelection) + unselect_all(GtkSelectionModel(instance)) + end + function unselect_item(instance::GtkMultiSelection, _position::Integer) + unselect_item(GtkSelectionModel(instance), _position) + end + function unselect_range(instance::GtkMultiSelection, _position::Integer, _n_items::Integer) + unselect_range(GtkSelectionModel(instance), _position, _n_items) + end function MultiSorter_new() ret = ccall(("gtk_multi_sorter_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkMultiSorterLeaf(ret, true) @@ -7640,6 +12247,21 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_multi_sorter_remove", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _position) nothing end + function get_item_type(instance::GtkMultiSorter) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkMultiSorter) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkMultiSorter, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkMultiSorter, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end + function get_buildable_id(instance::GtkMultiSorter) + get_buildable_id(GtkBuildable(instance)) + end function NamedAction_new(_name::Union{AbstractString, Symbol}) ret = ccall(("gtk_named_action_new", libgtk4), Ptr{GObject}, (Cstring,), _name) ret2 = GtkNamedActionLeaf(ret, true) @@ -7716,6 +12338,51 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_no_selection_set_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function get_item_type(instance::GtkNoSelection) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkNoSelection) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkNoSelection, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkNoSelection, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end + function get_selection(instance::GtkNoSelection) + get_selection(GtkSelectionModel(instance)) + end + function get_selection_in_range(instance::GtkNoSelection, _position::Integer, _n_items::Integer) + get_selection_in_range(GtkSelectionModel(instance), _position, _n_items) + end + function is_selected(instance::GtkNoSelection, _position::Integer) + is_selected(GtkSelectionModel(instance), _position) + end + function select_all(instance::GtkNoSelection) + select_all(GtkSelectionModel(instance)) + end + function select_item(instance::GtkNoSelection, _position::Integer, _unselect_rest::Bool) + select_item(GtkSelectionModel(instance), _position, _unselect_rest) + end + function select_range(instance::GtkNoSelection, _position::Integer, _n_items::Integer, _unselect_rest::Bool) + select_range(GtkSelectionModel(instance), _position, _n_items, _unselect_rest) + end + function selection_changed(instance::GtkNoSelection, _position::Integer, _n_items::Integer) + selection_changed(GtkSelectionModel(instance), _position, _n_items) + end + function set_selection(instance::GtkNoSelection, _selected::GtkBitset, _mask::GtkBitset) + set_selection(GtkSelectionModel(instance), _selected, _mask) + end + function unselect_all(instance::GtkNoSelection) + unselect_all(GtkSelectionModel(instance)) + end + function unselect_item(instance::GtkNoSelection, _position::Integer) + unselect_item(GtkSelectionModel(instance), _position) + end + function unselect_range(instance::GtkNoSelection, _position::Integer, _n_items::Integer) + unselect_range(GtkSelectionModel(instance), _position, _n_items) + end function Notebook_new() ret = ccall(("gtk_notebook_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkNotebookLeaf(ret, false) @@ -7927,6 +12594,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_notebook_set_tab_reorderable", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Cint), instance, _child, _reorderable) nothing end + function get_accessible_parent(instance::GtkNotebook) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkNotebook) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkNotebook) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkNotebook) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkNotebook) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkNotebook) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkNotebook, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkNotebook, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkNotebook, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkNotebook, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkNotebook, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkNotebook, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkNotebook, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkNotebook, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkNotebook, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkNotebook) + get_buildable_id(GtkBuildable(instance)) + end function get_child(instance::GtkNotebookPage) ret = ccall(("gtk_notebook_page_get_child", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = convert(GtkWidget, ret, false) @@ -8008,6 +12723,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_overlay_set_measure_overlay", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Cint), instance, _widget, _measure) nothing end + function get_accessible_parent(instance::GtkOverlay) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkOverlay) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkOverlay) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkOverlay) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkOverlay) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkOverlay) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkOverlay, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkOverlay, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkOverlay, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkOverlay, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkOverlay, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkOverlay, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkOverlay, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkOverlay, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkOverlay, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkOverlay) + get_buildable_id(GtkBuildable(instance)) + end function OverlayLayout_new() ret = ccall(("gtk_overlay_layout_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkOverlayLayoutLeaf(ret, true) @@ -8257,6 +13020,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_paned_set_wide_handle", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _wide) nothing end + function get_accessible_parent(instance::GtkPaned) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkPaned) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkPaned) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkPaned) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkPaned) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkPaned) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkPaned, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkPaned, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkPaned, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkPaned, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkPaned, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkPaned, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkPaned, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkPaned, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkPaned, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkPaned) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkPaned) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkPaned, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function PasswordEntry_new() ret = ccall(("gtk_password_entry_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkPasswordEntryLeaf(ret, false) @@ -8281,6 +13098,126 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_password_entry_set_show_peek_icon", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _show_peek_icon) nothing end + function get_accessible_parent(instance::GtkPasswordEntry) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkPasswordEntry) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkPasswordEntry) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkPasswordEntry) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkPasswordEntry) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkPasswordEntry) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkPasswordEntry, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkPasswordEntry, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkPasswordEntry, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkPasswordEntry, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkPasswordEntry, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkPasswordEntry, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkPasswordEntry, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkPasswordEntry, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkPasswordEntry, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkPasswordEntry) + get_buildable_id(GtkBuildable(instance)) + end + function delegate_get_accessible_platform_state(instance::GtkPasswordEntry, _state) + delegate_get_accessible_platform_state(GtkEditable(instance), _state) + end + function delete_selection(instance::GtkPasswordEntry) + delete_selection(GtkEditable(instance)) + end + function delete_text(instance::GtkPasswordEntry, _start_pos::Integer, _end_pos::Integer) + delete_text(GtkEditable(instance), _start_pos, _end_pos) + end + function finish_delegate(instance::GtkPasswordEntry) + finish_delegate(GtkEditable(instance)) + end + function get_alignment(instance::GtkPasswordEntry) + get_alignment(GtkEditable(instance)) + end + function get_chars(instance::GtkPasswordEntry, _start_pos::Integer, _end_pos::Integer) + get_chars(GtkEditable(instance), _start_pos, _end_pos) + end + function get_delegate(instance::GtkPasswordEntry) + get_delegate(GtkEditable(instance)) + end + function get_editable(instance::GtkPasswordEntry) + get_editable(GtkEditable(instance)) + end + function get_enable_undo(instance::GtkPasswordEntry) + get_enable_undo(GtkEditable(instance)) + end + function get_max_width_chars(instance::GtkPasswordEntry) + get_max_width_chars(GtkEditable(instance)) + end + function get_position(instance::GtkPasswordEntry) + get_position(GtkEditable(instance)) + end + function get_selection_bounds(instance::GtkPasswordEntry) + get_selection_bounds(GtkEditable(instance)) + end + function get_text(instance::GtkPasswordEntry) + get_text(GtkEditable(instance)) + end + function get_width_chars(instance::GtkPasswordEntry) + get_width_chars(GtkEditable(instance)) + end + function init_delegate(instance::GtkPasswordEntry) + init_delegate(GtkEditable(instance)) + end + function insert_text(instance::GtkPasswordEntry, _text::Union{AbstractString, Symbol}, _length::Integer, _position::Integer) + insert_text(GtkEditable(instance), _text, _length, _position) + end + function select_region(instance::GtkPasswordEntry, _start_pos::Integer, _end_pos::Integer) + select_region(GtkEditable(instance), _start_pos, _end_pos) + end + function set_alignment(instance::GtkPasswordEntry, _xalign::Real) + set_alignment(GtkEditable(instance), _xalign) + end + function set_editable(instance::GtkPasswordEntry, _is_editable::Bool) + set_editable(GtkEditable(instance), _is_editable) + end + function set_enable_undo(instance::GtkPasswordEntry, _enable_undo::Bool) + set_enable_undo(GtkEditable(instance), _enable_undo) + end + function set_max_width_chars(instance::GtkPasswordEntry, _n_chars::Integer) + set_max_width_chars(GtkEditable(instance), _n_chars) + end + function set_position(instance::GtkPasswordEntry, _position::Integer) + set_position(GtkEditable(instance), _position) + end + function set_text(instance::GtkPasswordEntry, _text::Union{AbstractString, Symbol}) + set_text(GtkEditable(instance), _text) + end + function set_width_chars(instance::GtkPasswordEntry, _n_chars::Integer) + set_width_chars(GtkEditable(instance), _n_chars) + end function PasswordEntryBuffer_new() ret = ccall(("gtk_password_entry_buffer_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkPasswordEntryBufferLeaf(ret, true) @@ -8393,6 +13330,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_picture_set_resource", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _resource_path_maybe) nothing end + function get_accessible_parent(instance::GtkPicture) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkPicture) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkPicture) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkPicture) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkPicture) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkPicture) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkPicture, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkPicture, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkPicture, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkPicture, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkPicture, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkPicture, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkPicture, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkPicture, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkPicture, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkPicture) + get_buildable_id(GtkBuildable(instance)) + end function Popover_new() ret = ccall(("gtk_popover_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkPopoverLeaf(ret, false) @@ -8481,18 +13466,81 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_popover_set_mnemonics_visible", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _mnemonics_visible) nothing end - function set_offset(instance::GtkPopover, _x_offset::Integer, _y_offset::Integer) - ret = ccall(("gtk_popover_set_offset", libgtk4), Nothing, (Ptr{GObject}, Int32, Int32), instance, _x_offset, _y_offset) - nothing + function set_offset(instance::GtkPopover, _x_offset::Integer, _y_offset::Integer) + ret = ccall(("gtk_popover_set_offset", libgtk4), Nothing, (Ptr{GObject}, Int32, Int32), instance, _x_offset, _y_offset) + nothing + end + function set_pointing_to(instance::GtkPopover, _rect::Maybe(Union{GdkRectangle, Ref{_GdkRectangle}})) + _rect_maybe = nothing_to_null(_rect) + ret = ccall(("gtk_popover_set_pointing_to", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GdkRectangle}), instance, _rect_maybe) + nothing + end + function set_position(instance::GtkPopover, _position) + ret = ccall(("gtk_popover_set_position", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _position) + nothing + end + function get_accessible_parent(instance::GtkPopover) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkPopover) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkPopover) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkPopover) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkPopover) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkPopover) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkPopover, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkPopover, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkPopover, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkPopover, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkPopover, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkPopover, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkPopover, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkPopover, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkPopover, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkPopover) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkPopover) + get_renderer(GtkNative(instance)) end - function set_pointing_to(instance::GtkPopover, _rect::Maybe(Union{GdkRectangle, Ref{_GdkRectangle}})) - _rect_maybe = nothing_to_null(_rect) - ret = ccall(("gtk_popover_set_pointing_to", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GdkRectangle}), instance, _rect_maybe) - nothing + function get_surface(instance::GtkPopover) + get_surface(GtkNative(instance)) end - function set_position(instance::GtkPopover, _position) - ret = ccall(("gtk_popover_set_position", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _position) - nothing + function get_surface_transform(instance::GtkPopover) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkPopover) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkPopover) + unrealize(GtkNative(instance)) end function PopoverMenu_new_from_model(_model::Maybe(GMenuModel)) _model_maybe = nothing_to_null(_model) @@ -8525,6 +13573,69 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_popover_menu_set_menu_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function get_accessible_parent(instance::GtkPopoverMenu) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkPopoverMenu) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkPopoverMenu) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkPopoverMenu) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkPopoverMenu) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkPopoverMenu) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkPopoverMenu, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkPopoverMenu, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkPopoverMenu, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkPopoverMenu, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkPopoverMenu, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkPopoverMenu, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkPopoverMenu, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkPopoverMenu, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkPopoverMenu, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkPopoverMenu) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkPopoverMenu) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkPopoverMenu) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkPopoverMenu) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkPopoverMenu) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkPopoverMenu) + unrealize(GtkNative(instance)) + end function PopoverMenuBar_new_from_model(_model::Maybe(GMenuModel)) _model_maybe = nothing_to_null(_model) ret = ccall(("gtk_popover_menu_bar_new_from_model", libgtk4), Ptr{GObject}, (Ptr{GObject},), _model_maybe) @@ -8551,6 +13662,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_popover_menu_bar_set_menu_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function get_accessible_parent(instance::GtkPopoverMenuBar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkPopoverMenuBar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkPopoverMenuBar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkPopoverMenuBar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkPopoverMenuBar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkPopoverMenuBar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkPopoverMenuBar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkPopoverMenuBar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkPopoverMenuBar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkPopoverMenuBar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkPopoverMenuBar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkPopoverMenuBar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkPopoverMenuBar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkPopoverMenuBar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkPopoverMenuBar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkPopoverMenuBar) + get_buildable_id(GtkBuildable(instance)) + end function create_pango_context(instance::GtkPrintContext) ret = ccall(("gtk_print_context_create_pango_context", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) ret2 = convert(PangoContext, ret, true) @@ -8747,6 +13906,15 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_print_operation_set_use_full_page", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _full_page) nothing end + function end_preview(instance::GtkPrintOperation) + end_preview(GtkPrintOperationPreview(instance)) + end + function is_selected(instance::GtkPrintOperation, _page_nr::Integer) + is_selected(GtkPrintOperationPreview(instance), _page_nr) + end + function render_page(instance::GtkPrintOperation, _page_nr::Integer) + render_page(GtkPrintOperationPreview(instance), _page_nr) + end function Printer_new(_name::Union{AbstractString, Symbol}, _backend::GtkPrintBackend, _virtual_::Bool) ret = ccall(("gtk_printer_new", libgtk4), Ptr{GObject}, (Cstring, Ptr{GtkPrintBackend}, Cint), _name, _backend, _virtual_) ret2 = GtkPrinterLeaf(ret, true) @@ -8937,6 +14105,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_progress_bar_set_text", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _text_maybe) nothing end + function get_accessible_parent(instance::GtkProgressBar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkProgressBar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkProgressBar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkProgressBar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkProgressBar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkProgressBar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkProgressBar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkProgressBar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkProgressBar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkProgressBar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkProgressBar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkProgressBar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkProgressBar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkProgressBar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkProgressBar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkProgressBar) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkProgressBar) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkProgressBar, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function PropertyExpression_new(_this_type::Integer, _expression::Maybe(GtkExpression), _property_name::Union{AbstractString, Symbol}) _expression_maybe = nothing_to_null(_expression) ret = ccall(("gtk_property_expression_new", libgtk4), Ptr{GtkExpression}, (UInt64, Ptr{GtkExpression}, Cstring), _this_type, _expression_maybe, _property_name) @@ -9059,6 +14281,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_range_set_value", libgtk4), Nothing, (Ptr{GObject}, Float64), instance, _value) nothing end + function get_accessible_parent(instance::GtkRange) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkRange) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkRange) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkRange) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkRange) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkRange) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkRange, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkRange, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkRange, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkRange, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkRange, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkRange, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkRange, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkRange, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkRange, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkRange) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkRange) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkRange, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function Revealer_new() ret = ccall(("gtk_revealer_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkRevealerLeaf(ret, false) @@ -9105,6 +14381,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_revealer_set_transition_type", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _transition) nothing end + function get_accessible_parent(instance::GtkRevealer) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkRevealer) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkRevealer) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkRevealer) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkRevealer) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkRevealer) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkRevealer, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkRevealer, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkRevealer, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkRevealer, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkRevealer, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkRevealer, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkRevealer, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkRevealer, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkRevealer, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkRevealer) + get_buildable_id(GtkBuildable(instance)) + end function Scale_new(_orientation, _adjustment::Maybe(GtkAdjustment)) _adjustment_maybe = nothing_to_null(_adjustment) ret = ccall(("gtk_scale_new", libgtk4), Ptr{GObject}, (UInt32, Ptr{GObject}), _orientation, _adjustment_maybe) @@ -9173,6 +14497,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_scale_set_value_pos", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _pos) nothing end + function get_accessible_parent(instance::GtkScale) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkScale) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkScale) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkScale) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkScale) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkScale) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkScale, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkScale, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkScale, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkScale, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkScale, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkScale, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkScale, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkScale, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkScale, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkScale) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkScale) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkScale, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function ScaleButton_new(_min::Real, _max::Real, _step::Real, _icons) _icons_maybe = nothing_to_null(_icons) ret = ccall(("gtk_scale_button_new", libgtk4), Ptr{GObject}, (Float64, Float64, Float64, Ptr{Cstring}), _min, _max, _step, _icons_maybe) @@ -9220,6 +14598,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_scale_button_set_value", libgtk4), Nothing, (Ptr{GObject}, Float64), instance, _value) nothing end + function get_accessible_parent(instance::GtkScaleButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkScaleButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkScaleButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkScaleButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkScaleButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkScaleButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkScaleButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkScaleButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkScaleButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkScaleButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkScaleButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkScaleButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkScaleButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkScaleButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkScaleButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkScaleButton) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkScaleButton) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkScaleButton, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function Scrollbar_new(_orientation, _adjustment::Maybe(GtkAdjustment)) _adjustment_maybe = nothing_to_null(_adjustment) ret = ccall(("gtk_scrollbar_new", libgtk4), Ptr{GObject}, (UInt32, Ptr{GObject}), _orientation, _adjustment_maybe) @@ -9236,6 +14668,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_scrollbar_set_adjustment", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _adjustment_maybe) nothing end + function get_accessible_parent(instance::GtkScrollbar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkScrollbar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkScrollbar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkScrollbar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkScrollbar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkScrollbar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkScrollbar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkScrollbar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkScrollbar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkScrollbar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkScrollbar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkScrollbar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkScrollbar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkScrollbar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkScrollbar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkScrollbar) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkScrollbar) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkScrollbar, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function ScrolledWindow_new() ret = ccall(("gtk_scrolled_window_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkScrolledWindowLeaf(ret, false) @@ -9385,6 +14871,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_scrolled_window_unset_placement", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_accessible_parent(instance::GtkScrolledWindow) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkScrolledWindow) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkScrolledWindow) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkScrolledWindow) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkScrolledWindow) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkScrolledWindow) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkScrolledWindow, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkScrolledWindow, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkScrolledWindow, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkScrolledWindow, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkScrolledWindow, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkScrolledWindow, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkScrolledWindow, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkScrolledWindow, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkScrolledWindow, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkScrolledWindow) + get_buildable_id(GtkBuildable(instance)) + end function SearchBar_new() ret = ccall(("gtk_search_bar_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkSearchBarLeaf(ret, false) @@ -9432,38 +14966,206 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_search_bar_set_show_close_button", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _visible) nothing end - function SearchEntry_new() - ret = ccall(("gtk_search_entry_new", libgtk4), Ptr{GObject}, ()) - ret2 = GtkSearchEntryLeaf(ret, false) - ret2 + function get_accessible_parent(instance::GtkSearchBar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkSearchBar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkSearchBar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkSearchBar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkSearchBar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkSearchBar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkSearchBar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkSearchBar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkSearchBar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkSearchBar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkSearchBar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkSearchBar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkSearchBar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkSearchBar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkSearchBar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkSearchBar) + get_buildable_id(GtkBuildable(instance)) + end + function SearchEntry_new() + ret = ccall(("gtk_search_entry_new", libgtk4), Ptr{GObject}, ()) + ret2 = GtkSearchEntryLeaf(ret, false) + 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) + ret2 + end + function get_placeholder_text(instance::GtkSearchEntry) + ret = ccall(("gtk_search_entry_get_placeholder_text", libgtk4), Cstring, (Ptr{GObject},), instance) + ret2 = string_or_nothing(ret, false) + ret2 + end + function get_search_delay(instance::GtkSearchEntry) + ret = ccall(("gtk_search_entry_get_search_delay", libgtk4), UInt32, (Ptr{GObject},), instance) + ret + 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) + nothing + end + function set_placeholder_text(instance::GtkSearchEntry, _text::Maybe(Union{AbstractString, Symbol})) + _text_maybe = nothing_to_null(_text) + ret = ccall(("gtk_search_entry_set_placeholder_text", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _text_maybe) + nothing + end + function set_search_delay(instance::GtkSearchEntry, _delay::Integer) + ret = ccall(("gtk_search_entry_set_search_delay", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _delay) + nothing + end + function get_accessible_parent(instance::GtkSearchEntry) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkSearchEntry) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkSearchEntry) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkSearchEntry) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkSearchEntry) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkSearchEntry) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkSearchEntry, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkSearchEntry, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkSearchEntry, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkSearchEntry, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkSearchEntry, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkSearchEntry, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkSearchEntry, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkSearchEntry, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkSearchEntry, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkSearchEntry) + get_buildable_id(GtkBuildable(instance)) + end + function delegate_get_accessible_platform_state(instance::GtkSearchEntry, _state) + delegate_get_accessible_platform_state(GtkEditable(instance), _state) + end + function delete_selection(instance::GtkSearchEntry) + delete_selection(GtkEditable(instance)) + end + function delete_text(instance::GtkSearchEntry, _start_pos::Integer, _end_pos::Integer) + delete_text(GtkEditable(instance), _start_pos, _end_pos) + end + function finish_delegate(instance::GtkSearchEntry) + finish_delegate(GtkEditable(instance)) + end + function get_alignment(instance::GtkSearchEntry) + get_alignment(GtkEditable(instance)) + end + function get_chars(instance::GtkSearchEntry, _start_pos::Integer, _end_pos::Integer) + get_chars(GtkEditable(instance), _start_pos, _end_pos) + end + function get_delegate(instance::GtkSearchEntry) + get_delegate(GtkEditable(instance)) + end + function get_editable(instance::GtkSearchEntry) + get_editable(GtkEditable(instance)) + end + function get_enable_undo(instance::GtkSearchEntry) + get_enable_undo(GtkEditable(instance)) + end + function get_max_width_chars(instance::GtkSearchEntry) + get_max_width_chars(GtkEditable(instance)) + end + function get_position(instance::GtkSearchEntry) + get_position(GtkEditable(instance)) + end + function get_selection_bounds(instance::GtkSearchEntry) + get_selection_bounds(GtkEditable(instance)) + end + function get_text(instance::GtkSearchEntry) + get_text(GtkEditable(instance)) + end + function get_width_chars(instance::GtkSearchEntry) + get_width_chars(GtkEditable(instance)) + end + function init_delegate(instance::GtkSearchEntry) + init_delegate(GtkEditable(instance)) + end + function insert_text(instance::GtkSearchEntry, _text::Union{AbstractString, Symbol}, _length::Integer, _position::Integer) + insert_text(GtkEditable(instance), _text, _length, _position) + end + function select_region(instance::GtkSearchEntry, _start_pos::Integer, _end_pos::Integer) + select_region(GtkEditable(instance), _start_pos, _end_pos) + end + function set_alignment(instance::GtkSearchEntry, _xalign::Real) + set_alignment(GtkEditable(instance), _xalign) 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) - ret2 + function set_editable(instance::GtkSearchEntry, _is_editable::Bool) + set_editable(GtkEditable(instance), _is_editable) end - function get_placeholder_text(instance::GtkSearchEntry) - ret = ccall(("gtk_search_entry_get_placeholder_text", libgtk4), Cstring, (Ptr{GObject},), instance) - ret2 = string_or_nothing(ret, false) - ret2 + function set_enable_undo(instance::GtkSearchEntry, _enable_undo::Bool) + set_enable_undo(GtkEditable(instance), _enable_undo) end - function get_search_delay(instance::GtkSearchEntry) - ret = ccall(("gtk_search_entry_get_search_delay", libgtk4), UInt32, (Ptr{GObject},), instance) - ret + function set_max_width_chars(instance::GtkSearchEntry, _n_chars::Integer) + set_max_width_chars(GtkEditable(instance), _n_chars) 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) - nothing + function set_position(instance::GtkSearchEntry, _position::Integer) + set_position(GtkEditable(instance), _position) end - function set_placeholder_text(instance::GtkSearchEntry, _text::Maybe(Union{AbstractString, Symbol})) - _text_maybe = nothing_to_null(_text) - ret = ccall(("gtk_search_entry_set_placeholder_text", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _text_maybe) - nothing + function set_text(instance::GtkSearchEntry, _text::Union{AbstractString, Symbol}) + set_text(GtkEditable(instance), _text) end - function set_search_delay(instance::GtkSearchEntry, _delay::Integer) - ret = ccall(("gtk_search_entry_set_search_delay", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _delay) - nothing + function set_width_chars(instance::GtkSearchEntry, _n_chars::Integer) + set_width_chars(GtkEditable(instance), _n_chars) end function SelectionFilterModel_new(_model::Maybe(GtkSelectionModel)) _model_maybe = nothing_to_null(_model) @@ -9481,11 +15183,77 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_selection_filter_model_set_model", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _model_maybe) nothing end + function get_item_type(instance::GtkSelectionFilterModel) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkSelectionFilterModel) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkSelectionFilterModel, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkSelectionFilterModel, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function Separator_new(_orientation) ret = ccall(("gtk_separator_new", libgtk4), Ptr{GObject}, (UInt32,), _orientation) ret2 = GtkSeparatorLeaf(ret, false) ret2 end + function get_accessible_parent(instance::GtkSeparator) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkSeparator) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkSeparator) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkSeparator) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkSeparator) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkSeparator) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkSeparator, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkSeparator, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkSeparator, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkSeparator, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkSeparator, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkSeparator, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkSeparator, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkSeparator, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkSeparator, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkSeparator) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkSeparator) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkSeparator, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function reset_property(instance::GtkSettings, _name::Union{AbstractString, Symbol}) ret = ccall(("gtk_settings_reset_property", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _name) nothing @@ -9604,6 +15372,21 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_shortcut_controller_set_scope", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _scope) nothing end + function get_item_type(instance::GtkShortcutController) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkShortcutController) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkShortcutController, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkShortcutController, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end + function get_buildable_id(instance::GtkShortcutController) + get_buildable_id(GtkBuildable(instance)) + end function ShortcutLabel_new(_accelerator::Union{AbstractString, Symbol}) ret = ccall(("gtk_shortcut_label_new", libgtk4), Ptr{GObject}, (Cstring,), _accelerator) ret2 = GtkShortcutLabelLeaf(ret, false) @@ -9627,6 +15410,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_shortcut_label_set_disabled_text", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _disabled_text) nothing end + function get_accessible_parent(instance::GtkShortcutLabel) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkShortcutLabel) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkShortcutLabel) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkShortcutLabel) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkShortcutLabel) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkShortcutLabel) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkShortcutLabel, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkShortcutLabel, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkShortcutLabel, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkShortcutLabel, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkShortcutLabel, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkShortcutLabel, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkShortcutLabel, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkShortcutLabel, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkShortcutLabel, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkShortcutLabel) + get_buildable_id(GtkBuildable(instance)) + end function ShortcutTrigger_parse_string(_string::Union{AbstractString, Symbol}) ret = ccall(("gtk_shortcut_trigger_parse_string", libgtk4), Ptr{GObject}, (Cstring,), _string) ret2 = convert_if_not_null(GtkShortcutTrigger, ret, true) @@ -9669,6 +15500,234 @@ $(Expr(:toplevel, quote ret2 = KeyMatch(ret) ret2 end + function get_accessible_parent(instance::GtkShortcutsGroup) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkShortcutsGroup) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkShortcutsGroup) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkShortcutsGroup) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkShortcutsGroup) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkShortcutsGroup) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkShortcutsGroup, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkShortcutsGroup, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkShortcutsGroup, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkShortcutsGroup, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkShortcutsGroup, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkShortcutsGroup, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkShortcutsGroup, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkShortcutsGroup, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkShortcutsGroup, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkShortcutsGroup) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkShortcutsGroup) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkShortcutsGroup, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end + function get_accessible_parent(instance::GtkShortcutsSection) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkShortcutsSection) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkShortcutsSection) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkShortcutsSection) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkShortcutsSection) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkShortcutsSection) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkShortcutsSection, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkShortcutsSection, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkShortcutsSection, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkShortcutsSection, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkShortcutsSection, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkShortcutsSection, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkShortcutsSection, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkShortcutsSection, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkShortcutsSection, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkShortcutsSection) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkShortcutsSection) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkShortcutsSection, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end + function get_accessible_parent(instance::GtkShortcutsShortcut) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkShortcutsShortcut) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkShortcutsShortcut) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkShortcutsShortcut) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkShortcutsShortcut) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkShortcutsShortcut) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkShortcutsShortcut, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkShortcutsShortcut, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkShortcutsShortcut, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkShortcutsShortcut, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkShortcutsShortcut, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkShortcutsShortcut, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkShortcutsShortcut, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkShortcutsShortcut, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkShortcutsShortcut, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkShortcutsShortcut) + get_buildable_id(GtkBuildable(instance)) + end + function get_accessible_parent(instance::GtkShortcutsWindow) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkShortcutsWindow) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkShortcutsWindow) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkShortcutsWindow) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkShortcutsWindow) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkShortcutsWindow) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkShortcutsWindow, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkShortcutsWindow, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkShortcutsWindow, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkShortcutsWindow, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkShortcutsWindow, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkShortcutsWindow, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkShortcutsWindow, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkShortcutsWindow, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkShortcutsWindow, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkShortcutsWindow) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkShortcutsWindow) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkShortcutsWindow) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkShortcutsWindow) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkShortcutsWindow) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkShortcutsWindow) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkShortcutsWindow) + get_display(GtkRoot(instance)) + end + function get_focus(instance::GtkShortcutsWindow) + get_focus(GtkRoot(instance)) + end + function set_focus(instance::GtkShortcutsWindow, _focus::Maybe(GtkWidget)) + set_focus(GtkRoot(instance), _focus) + end function SignalAction_new(_signal_name::Union{AbstractString, Symbol}) ret = ccall(("gtk_signal_action_new", libgtk4), Ptr{GObject}, (Cstring,), _signal_name) ret2 = GtkSignalActionLeaf(ret, true) @@ -9736,6 +15795,51 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_single_selection_set_selected", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _position) nothing end + function get_item_type(instance::GtkSingleSelection) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkSingleSelection) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkSingleSelection, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkSingleSelection, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end + function get_selection(instance::GtkSingleSelection) + get_selection(GtkSelectionModel(instance)) + end + function get_selection_in_range(instance::GtkSingleSelection, _position::Integer, _n_items::Integer) + get_selection_in_range(GtkSelectionModel(instance), _position, _n_items) + end + function is_selected(instance::GtkSingleSelection, _position::Integer) + is_selected(GtkSelectionModel(instance), _position) + end + function select_all(instance::GtkSingleSelection) + select_all(GtkSelectionModel(instance)) + end + function select_item(instance::GtkSingleSelection, _position::Integer, _unselect_rest::Bool) + select_item(GtkSelectionModel(instance), _position, _unselect_rest) + end + function select_range(instance::GtkSingleSelection, _position::Integer, _n_items::Integer, _unselect_rest::Bool) + select_range(GtkSelectionModel(instance), _position, _n_items, _unselect_rest) + end + function selection_changed(instance::GtkSingleSelection, _position::Integer, _n_items::Integer) + selection_changed(GtkSelectionModel(instance), _position, _n_items) + end + function set_selection(instance::GtkSingleSelection, _selected::GtkBitset, _mask::GtkBitset) + set_selection(GtkSelectionModel(instance), _selected, _mask) + end + function unselect_all(instance::GtkSingleSelection) + unselect_all(GtkSelectionModel(instance)) + end + function unselect_item(instance::GtkSingleSelection, _position::Integer) + unselect_item(GtkSelectionModel(instance), _position) + end + function unselect_range(instance::GtkSingleSelection, _position::Integer, _n_items::Integer) + unselect_range(GtkSelectionModel(instance), _position, _n_items) + end function SizeGroup_new(_mode) ret = ccall(("gtk_size_group_new", libgtk4), Ptr{GObject}, (UInt32,), _mode) ret2 = GtkSizeGroupLeaf(ret, true) @@ -9762,6 +15866,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_size_group_set_mode", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _mode) nothing end + function get_buildable_id(instance::GtkSizeGroup) + get_buildable_id(GtkBuildable(instance)) + end function SliceListModel_new(_model::Maybe(GListModel), _offset::Integer, _size::Integer) _model_maybe = begin if _model !== nothing @@ -9799,6 +15906,18 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_slice_list_model_set_size", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _size) nothing end + function get_item_type(instance::GtkSliceListModel) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkSliceListModel) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkSliceListModel, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkSliceListModel, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function Snapshot_new() ret = ccall(("gtk_snapshot_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkSnapshotLeaf(ret, true) @@ -10050,6 +16169,18 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_sort_list_model_set_sorter", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _sorter_maybe) nothing end + function get_item_type(instance::GtkSortListModel) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkSortListModel) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkSortListModel, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkSortListModel, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function changed(instance::GtkSorter, _change) ret = ccall(("gtk_sorter_changed", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _change) nothing @@ -10185,6 +16316,141 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_spin_button_update", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_accessible_parent(instance::GtkSpinButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkSpinButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkSpinButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkSpinButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkSpinButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkSpinButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkSpinButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkSpinButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkSpinButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkSpinButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkSpinButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkSpinButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkSpinButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkSpinButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkSpinButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkSpinButton) + get_buildable_id(GtkBuildable(instance)) + end + function editing_done(instance::GtkSpinButton) + editing_done(GtkCellEditable(instance)) + end + function remove_widget(instance::GtkSpinButton) + remove_widget(GtkCellEditable(instance)) + end + function start_editing(instance::GtkSpinButton, _event::Maybe(GdkEvent)) + start_editing(GtkCellEditable(instance), _event) + end + function delegate_get_accessible_platform_state(instance::GtkSpinButton, _state) + delegate_get_accessible_platform_state(GtkEditable(instance), _state) + end + function delete_selection(instance::GtkSpinButton) + delete_selection(GtkEditable(instance)) + end + function delete_text(instance::GtkSpinButton, _start_pos::Integer, _end_pos::Integer) + delete_text(GtkEditable(instance), _start_pos, _end_pos) + end + function finish_delegate(instance::GtkSpinButton) + finish_delegate(GtkEditable(instance)) + end + function get_alignment(instance::GtkSpinButton) + get_alignment(GtkEditable(instance)) + end + function get_chars(instance::GtkSpinButton, _start_pos::Integer, _end_pos::Integer) + get_chars(GtkEditable(instance), _start_pos, _end_pos) + end + function get_delegate(instance::GtkSpinButton) + get_delegate(GtkEditable(instance)) + end + function get_editable(instance::GtkSpinButton) + get_editable(GtkEditable(instance)) + end + function get_enable_undo(instance::GtkSpinButton) + get_enable_undo(GtkEditable(instance)) + end + function get_max_width_chars(instance::GtkSpinButton) + get_max_width_chars(GtkEditable(instance)) + end + function get_position(instance::GtkSpinButton) + get_position(GtkEditable(instance)) + end + function get_selection_bounds(instance::GtkSpinButton) + get_selection_bounds(GtkEditable(instance)) + end + function get_text(instance::GtkSpinButton) + get_text(GtkEditable(instance)) + end + function get_width_chars(instance::GtkSpinButton) + get_width_chars(GtkEditable(instance)) + end + function init_delegate(instance::GtkSpinButton) + init_delegate(GtkEditable(instance)) + end + function insert_text(instance::GtkSpinButton, _text::Union{AbstractString, Symbol}, _length::Integer, _position::Integer) + insert_text(GtkEditable(instance), _text, _length, _position) + end + function select_region(instance::GtkSpinButton, _start_pos::Integer, _end_pos::Integer) + select_region(GtkEditable(instance), _start_pos, _end_pos) + end + function set_alignment(instance::GtkSpinButton, _xalign::Real) + set_alignment(GtkEditable(instance), _xalign) + end + function set_editable(instance::GtkSpinButton, _is_editable::Bool) + set_editable(GtkEditable(instance), _is_editable) + end + function set_enable_undo(instance::GtkSpinButton, _enable_undo::Bool) + set_enable_undo(GtkEditable(instance), _enable_undo) + end + function set_max_width_chars(instance::GtkSpinButton, _n_chars::Integer) + set_max_width_chars(GtkEditable(instance), _n_chars) + end + function set_position(instance::GtkSpinButton, _position::Integer) + set_position(GtkEditable(instance), _position) + end + function set_text(instance::GtkSpinButton, _text::Union{AbstractString, Symbol}) + set_text(GtkEditable(instance), _text) + end + function set_width_chars(instance::GtkSpinButton, _n_chars::Integer) + set_width_chars(GtkEditable(instance), _n_chars) + end + function get_orientation(instance::GtkSpinButton) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkSpinButton, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function Spinner_new() ret = ccall(("gtk_spinner_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkSpinnerLeaf(ret, false) @@ -10207,6 +16473,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_spinner_stop", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_accessible_parent(instance::GtkSpinner) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkSpinner) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkSpinner) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkSpinner) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkSpinner) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkSpinner) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkSpinner, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkSpinner, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkSpinner, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkSpinner, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkSpinner, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkSpinner, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkSpinner, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkSpinner, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkSpinner, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkSpinner) + get_buildable_id(GtkBuildable(instance)) + end function Stack_new() ret = ccall(("gtk_stack_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkStackLeaf(ret, false) @@ -10306,21 +16620,69 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_stack_set_transition_type", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _transition) nothing end - function set_vhomogeneous(instance::GtkStack, _vhomogeneous::Bool) - ret = ccall(("gtk_stack_set_vhomogeneous", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _vhomogeneous) - nothing + function set_vhomogeneous(instance::GtkStack, _vhomogeneous::Bool) + ret = ccall(("gtk_stack_set_vhomogeneous", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _vhomogeneous) + nothing + end + function set_visible_child(instance::GtkStack, _child::GtkWidget) + ret = ccall(("gtk_stack_set_visible_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child) + nothing + end + function set_visible_child_full(instance::GtkStack, _name::Union{AbstractString, Symbol}, _transition) + ret = ccall(("gtk_stack_set_visible_child_full", libgtk4), Nothing, (Ptr{GObject}, Cstring, UInt32), instance, _name, _transition) + nothing + end + function set_visible_child_name(instance::GtkStack, _name::Union{AbstractString, Symbol}) + ret = ccall(("gtk_stack_set_visible_child_name", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _name) + nothing + end + function get_accessible_parent(instance::GtkStack) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkStack) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkStack) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkStack) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkStack) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkStack) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkStack, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkStack, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkStack, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkStack, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkStack, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) end - function set_visible_child(instance::GtkStack, _child::GtkWidget) - ret = ccall(("gtk_stack_set_visible_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child) - nothing + function update_next_accessible_sibling(instance::GtkStack, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) end - function set_visible_child_full(instance::GtkStack, _name::Union{AbstractString, Symbol}, _transition) - ret = ccall(("gtk_stack_set_visible_child_full", libgtk4), Nothing, (Ptr{GObject}, Cstring, UInt32), instance, _name, _transition) - nothing + function update_property(instance::GtkStack, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) end - function set_visible_child_name(instance::GtkStack, _name::Union{AbstractString, Symbol}) - ret = ccall(("gtk_stack_set_visible_child_name", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _name) - nothing + function update_relation(instance::GtkStack, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkStack, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkStack) + get_buildable_id(GtkBuildable(instance)) end function get_child(instance::GtkStackPage) ret = ccall(("gtk_stack_page_get_child", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) @@ -10381,6 +16743,51 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_stack_page_set_visible", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _visible) nothing end + function get_accessible_parent(instance::GtkStackPage) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkStackPage) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkStackPage) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkStackPage) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkStackPage) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkStackPage) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkStackPage, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkStackPage, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkStackPage, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkStackPage, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkStackPage, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkStackPage, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkStackPage, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkStackPage, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkStackPage, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end function StackSidebar_new() ret = ccall(("gtk_stack_sidebar_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkStackSidebarLeaf(ret, false) @@ -10395,6 +16802,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_stack_sidebar_set_stack", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _stack) nothing end + function get_accessible_parent(instance::GtkStackSidebar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkStackSidebar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkStackSidebar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkStackSidebar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkStackSidebar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkStackSidebar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkStackSidebar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkStackSidebar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkStackSidebar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkStackSidebar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkStackSidebar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkStackSidebar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkStackSidebar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkStackSidebar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkStackSidebar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkStackSidebar) + get_buildable_id(GtkBuildable(instance)) + end function StackSwitcher_new() ret = ccall(("gtk_stack_switcher_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkStackSwitcherLeaf(ret, false) @@ -10410,6 +16865,60 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_stack_switcher_set_stack", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _stack_maybe) nothing end + function get_accessible_parent(instance::GtkStackSwitcher) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkStackSwitcher) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkStackSwitcher) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkStackSwitcher) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkStackSwitcher) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkStackSwitcher) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkStackSwitcher, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkStackSwitcher, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkStackSwitcher, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkStackSwitcher, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkStackSwitcher, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkStackSwitcher, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkStackSwitcher, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkStackSwitcher, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkStackSwitcher, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkStackSwitcher) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkStackSwitcher) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkStackSwitcher, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function Statusbar_new() ret = ccall(("gtk_statusbar_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkStatusbarLeaf(ret, false) @@ -10435,6 +16944,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_statusbar_remove_all", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _context_id) nothing end + function get_accessible_parent(instance::GtkStatusbar) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkStatusbar) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkStatusbar) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkStatusbar) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkStatusbar) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkStatusbar) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkStatusbar, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkStatusbar, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkStatusbar, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkStatusbar, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkStatusbar, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkStatusbar, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkStatusbar, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkStatusbar, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkStatusbar, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkStatusbar) + get_buildable_id(GtkBuildable(instance)) + end function StringFilter_new(_expression::Maybe(GtkExpression)) _expression_maybe = nothing_to_null(_expression) ret = ccall(("gtk_string_filter_new", libgtk4), Ptr{GObject}, (Ptr{GtkExpression},), _expression_maybe) @@ -10507,6 +17064,21 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_string_list_take", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _string) nothing end + function get_item_type(instance::GtkStringList) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkStringList) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkStringList, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkStringList, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end + function get_buildable_id(instance::GtkStringList) + get_buildable_id(GtkBuildable(instance)) + end function StringObject_new(_string::Union{AbstractString, Symbol}) ret = ccall(("gtk_string_object_new", libgtk4), Ptr{GObject}, (Cstring,), _string) ret2 = GtkStringObjectLeaf(ret, true) @@ -10673,6 +17245,69 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_switch_set_state", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _state) nothing end + function get_accessible_parent(instance::GtkSwitch) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkSwitch) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkSwitch) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkSwitch) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkSwitch) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkSwitch) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkSwitch, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkSwitch, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkSwitch, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkSwitch, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkSwitch, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkSwitch, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkSwitch, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkSwitch, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkSwitch, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_action_name(instance::GtkSwitch) + get_action_name(GtkActionable(instance)) + end + function get_action_target_value(instance::GtkSwitch) + get_action_target_value(GtkActionable(instance)) + end + function set_action_name(instance::GtkSwitch, _action_name::Maybe(Union{AbstractString, Symbol})) + set_action_name(GtkActionable(instance), _action_name) + end + function set_action_target_value(instance::GtkSwitch, _target_value::Maybe(GVariant)) + set_action_target_value(GtkActionable(instance), _target_value) + end + function set_detailed_action_name(instance::GtkSwitch, _detailed_action_name::Union{AbstractString, Symbol}) + set_detailed_action_name(GtkActionable(instance), _detailed_action_name) + end + function get_buildable_id(instance::GtkSwitch) + get_buildable_id(GtkBuildable(instance)) + end function Text_new() ret = ccall(("gtk_text_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkTextLeaf(ret, false) @@ -10841,6 +17476,126 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_text_unset_invisible_char", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_accessible_parent(instance::GtkText) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkText) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkText) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkText) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkText) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkText) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkText, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkText, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkText, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkText, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkText, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkText, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkText, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkText, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkText, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkText) + get_buildable_id(GtkBuildable(instance)) + end + function delegate_get_accessible_platform_state(instance::GtkText, _state) + delegate_get_accessible_platform_state(GtkEditable(instance), _state) + end + function delete_selection(instance::GtkText) + delete_selection(GtkEditable(instance)) + end + function delete_text(instance::GtkText, _start_pos::Integer, _end_pos::Integer) + delete_text(GtkEditable(instance), _start_pos, _end_pos) + end + function finish_delegate(instance::GtkText) + finish_delegate(GtkEditable(instance)) + end + function get_alignment(instance::GtkText) + get_alignment(GtkEditable(instance)) + end + function get_chars(instance::GtkText, _start_pos::Integer, _end_pos::Integer) + get_chars(GtkEditable(instance), _start_pos, _end_pos) + end + function get_delegate(instance::GtkText) + get_delegate(GtkEditable(instance)) + end + function get_editable(instance::GtkText) + get_editable(GtkEditable(instance)) + end + function get_enable_undo(instance::GtkText) + get_enable_undo(GtkEditable(instance)) + end + function get_max_width_chars(instance::GtkText) + get_max_width_chars(GtkEditable(instance)) + end + function get_position(instance::GtkText) + get_position(GtkEditable(instance)) + end + function get_selection_bounds(instance::GtkText) + get_selection_bounds(GtkEditable(instance)) + end + function get_text(instance::GtkText) + get_text(GtkEditable(instance)) + end + function get_width_chars(instance::GtkText) + get_width_chars(GtkEditable(instance)) + end + function init_delegate(instance::GtkText) + init_delegate(GtkEditable(instance)) + end + function insert_text(instance::GtkText, _text::Union{AbstractString, Symbol}, _length::Integer, _position::Integer) + insert_text(GtkEditable(instance), _text, _length, _position) + end + function select_region(instance::GtkText, _start_pos::Integer, _end_pos::Integer) + select_region(GtkEditable(instance), _start_pos, _end_pos) + end + function set_alignment(instance::GtkText, _xalign::Real) + set_alignment(GtkEditable(instance), _xalign) + end + function set_editable(instance::GtkText, _is_editable::Bool) + set_editable(GtkEditable(instance), _is_editable) + end + function set_enable_undo(instance::GtkText, _enable_undo::Bool) + set_enable_undo(GtkEditable(instance), _enable_undo) + end + function set_max_width_chars(instance::GtkText, _n_chars::Integer) + set_max_width_chars(GtkEditable(instance), _n_chars) + end + function set_position(instance::GtkText, _position::Integer) + set_position(GtkEditable(instance), _position) + end + function set_text(instance::GtkText, _text::Union{AbstractString, Symbol}) + set_text(GtkEditable(instance), _text) + end + function set_width_chars(instance::GtkText, _n_chars::Integer) + set_width_chars(GtkEditable(instance), _n_chars) + end function TextBuffer_new(_table::Maybe(GtkTextTagTable)) _table_maybe = nothing_to_null(_table) ret = ccall(("gtk_text_buffer_new", libgtk4), Ptr{GObject}, (Ptr{GObject},), _table_maybe) @@ -11278,6 +18033,9 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_text_tag_table_remove", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _tag) nothing end + function get_buildable_id(instance::GtkTextTagTable) + get_buildable_id(GtkBuildable(instance)) + end function TextView_new() ret = ccall(("gtk_text_view_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkTextViewLeaf(ret, false) @@ -11628,6 +18386,81 @@ $(Expr(:toplevel, quote _buffer_y = m_buffer_y[] (_buffer_x, _buffer_y) end + function get_accessible_parent(instance::GtkTextView) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkTextView) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkTextView) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkTextView) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkTextView) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkTextView) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkTextView, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkTextView, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkTextView, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkTextView, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkTextView, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkTextView, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkTextView, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkTextView, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkTextView, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkTextView) + get_buildable_id(GtkBuildable(instance)) + end + function get_border(instance::GtkTextView) + get_border(GtkScrollable(instance)) + end + function get_hadjustment(instance::GtkTextView) + get_hadjustment(GtkScrollable(instance)) + end + function get_hscroll_policy(instance::GtkTextView) + get_hscroll_policy(GtkScrollable(instance)) + end + function get_vadjustment(instance::GtkTextView) + get_vadjustment(GtkScrollable(instance)) + end + function get_vscroll_policy(instance::GtkTextView) + get_vscroll_policy(GtkScrollable(instance)) + end + function set_hadjustment(instance::GtkTextView, _hadjustment::Maybe(GtkAdjustment)) + set_hadjustment(GtkScrollable(instance), _hadjustment) + end + function set_hscroll_policy(instance::GtkTextView, _policy) + set_hscroll_policy(GtkScrollable(instance), _policy) + end + function set_vadjustment(instance::GtkTextView, _vadjustment::Maybe(GtkAdjustment)) + set_vadjustment(GtkScrollable(instance), _vadjustment) + end + function set_vscroll_policy(instance::GtkTextView, _policy) + set_vscroll_policy(GtkScrollable(instance), _policy) + end function ToggleButton_new() ret = ccall(("gtk_toggle_button_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkToggleButtonLeaf(ret, false) @@ -11661,6 +18494,69 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_toggle_button_toggled", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_accessible_parent(instance::GtkToggleButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkToggleButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkToggleButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkToggleButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkToggleButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkToggleButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkToggleButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkToggleButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkToggleButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkToggleButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkToggleButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkToggleButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkToggleButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkToggleButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkToggleButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_action_name(instance::GtkToggleButton) + get_action_name(GtkActionable(instance)) + end + function get_action_target_value(instance::GtkToggleButton) + get_action_target_value(GtkActionable(instance)) + end + function set_action_name(instance::GtkToggleButton, _action_name::Maybe(Union{AbstractString, Symbol})) + set_action_name(GtkActionable(instance), _action_name) + end + function set_action_target_value(instance::GtkToggleButton, _target_value::Maybe(GVariant)) + set_action_target_value(GtkActionable(instance), _target_value) + end + function set_detailed_action_name(instance::GtkToggleButton, _detailed_action_name::Union{AbstractString, Symbol}) + set_detailed_action_name(GtkActionable(instance), _detailed_action_name) + end + function get_buildable_id(instance::GtkToggleButton) + get_buildable_id(GtkBuildable(instance)) + end function set_custom(instance::GtkTooltip, _custom_widget::Maybe(GtkWidget)) _custom_widget_maybe = nothing_to_null(_custom_widget) ret = ccall(("gtk_tooltip_set_custom", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _custom_widget_maybe) @@ -11752,6 +18648,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_tree_expander_set_list_row", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _list_row_maybe) nothing end + function get_accessible_parent(instance::GtkTreeExpander) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkTreeExpander) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkTreeExpander) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkTreeExpander) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkTreeExpander) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkTreeExpander) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkTreeExpander, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkTreeExpander, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkTreeExpander, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkTreeExpander, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkTreeExpander, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkTreeExpander, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkTreeExpander, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkTreeExpander, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkTreeExpander, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkTreeExpander) + get_buildable_id(GtkBuildable(instance)) + end function get_autoexpand(instance::GtkTreeListModel) ret = ccall(("gtk_tree_list_model_get_autoexpand", libgtk4), Cint, (Ptr{GObject},), instance) ret2 = convert(Bool, ret) @@ -11784,6 +18728,18 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_tree_list_model_set_autoexpand", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _autoexpand) nothing end + function get_item_type(instance::GtkTreeListModel) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::GtkTreeListModel) + get_n_items(GListModel(instance)) + end + function get_item(instance::GtkTreeListModel, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::GtkTreeListModel, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function get_child_row(instance::GtkTreeListRow, _position::Integer) ret = ccall(("gtk_tree_list_row_get_child_row", libgtk4), Ptr{GObject}, (Ptr{GObject}, UInt32), instance, _position) ret2 = convert_if_not_null(GtkTreeListRow, ret, true) @@ -11869,26 +18825,110 @@ $(Expr(:toplevel, quote _child_iter = m_child_iter[] _child_iter end - function convert_path_to_child_path(instance::GtkTreeModelFilter, _filter_path::GtkTreePath) - ret = ccall(("gtk_tree_model_filter_convert_path_to_child_path", libgtk4), Ptr{GtkTreePath}, (Ptr{GObject}, Ptr{GtkTreePath}), instance, _filter_path) - ret2 = convert_if_not_null(GtkTreePath, ret, true) - ret2 + function convert_path_to_child_path(instance::GtkTreeModelFilter, _filter_path::GtkTreePath) + ret = ccall(("gtk_tree_model_filter_convert_path_to_child_path", libgtk4), Ptr{GtkTreePath}, (Ptr{GObject}, Ptr{GtkTreePath}), instance, _filter_path) + ret2 = convert_if_not_null(GtkTreePath, ret, true) + ret2 + end + function get_model(instance::GtkTreeModelFilter) + ret = ccall(("gtk_tree_model_filter_get_model", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) + ret2 = begin + leaftype = GLib.find_leaf_type(ret) + convert(leaftype, ret, false) + end + ret2 + end + function refilter(instance::GtkTreeModelFilter) + ret = ccall(("gtk_tree_model_filter_refilter", libgtk4), Nothing, (Ptr{GObject},), instance) + nothing + end + function set_visible_column(instance::GtkTreeModelFilter, _column::Integer) + ret = ccall(("gtk_tree_model_filter_set_visible_column", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _column) + nothing + end + function drag_data_delete(instance::GtkTreeModelFilter, _path::GtkTreePath) + drag_data_delete(GtkTreeDragSource(instance), _path) + end + function drag_data_get(instance::GtkTreeModelFilter, _path::GtkTreePath) + drag_data_get(GtkTreeDragSource(instance), _path) + end + function row_draggable(instance::GtkTreeModelFilter, _path::GtkTreePath) + row_draggable(GtkTreeDragSource(instance), _path) + end + function filter_new(instance::GtkTreeModelFilter, _root::Maybe(GtkTreePath)) + filter_new(GtkTreeModel(instance), _root) + end + function foreach(instance::GtkTreeModelFilter, _func::Function) + foreach(GtkTreeModel(instance), _func) + end + function get_column_type(instance::GtkTreeModelFilter, _index_::Integer) + get_column_type(GtkTreeModel(instance), _index_) + end + function get_flags(instance::GtkTreeModelFilter) + get_flags(GtkTreeModel(instance)) + end + function get_iter(instance::GtkTreeModelFilter, _path::GtkTreePath) + get_iter(GtkTreeModel(instance), _path) + end + function get_iter_first(instance::GtkTreeModelFilter) + get_iter_first(GtkTreeModel(instance)) + end + function get_iter_from_string(instance::GtkTreeModelFilter, _path_string::Union{AbstractString, Symbol}) + get_iter_from_string(GtkTreeModel(instance), _path_string) + end + function get_n_columns(instance::GtkTreeModelFilter) + get_n_columns(GtkTreeModel(instance)) + end + function get_path(instance::GtkTreeModelFilter, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + get_path(GtkTreeModel(instance), _iter) + end + function get_string_from_iter(instance::GtkTreeModelFilter, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + get_string_from_iter(GtkTreeModel(instance), _iter) + end + function get_value(instance::GtkTreeModelFilter, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}, _column::Integer) + get_value(GtkTreeModel(instance), _iter, _column) + end + function iter_children(instance::GtkTreeModelFilter, _parent::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}})) + iter_children(GtkTreeModel(instance), _parent) + end + function iter_has_child(instance::GtkTreeModelFilter, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_has_child(GtkTreeModel(instance), _iter) + end + function iter_n_children(instance::GtkTreeModelFilter, _iter::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}})) + iter_n_children(GtkTreeModel(instance), _iter) + end + function iter_next(instance::GtkTreeModelFilter, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_next(GtkTreeModel(instance), _iter) + end + function iter_nth_child(instance::GtkTreeModelFilter, _parent::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}}), _n::Integer) + iter_nth_child(GtkTreeModel(instance), _parent, _n) + end + function iter_parent(instance::GtkTreeModelFilter, _child::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_parent(GtkTreeModel(instance), _child) + end + function iter_previous(instance::GtkTreeModelFilter, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_previous(GtkTreeModel(instance), _iter) + end + function ref_node(instance::GtkTreeModelFilter, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + ref_node(GtkTreeModel(instance), _iter) + end + function row_changed(instance::GtkTreeModelFilter, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_changed(GtkTreeModel(instance), _path, _iter) + end + function row_deleted(instance::GtkTreeModelFilter, _path::GtkTreePath) + row_deleted(GtkTreeModel(instance), _path) end - function get_model(instance::GtkTreeModelFilter) - ret = ccall(("gtk_tree_model_filter_get_model", libgtk4), Ptr{GObject}, (Ptr{GObject},), instance) - ret2 = begin - leaftype = GLib.find_leaf_type(ret) - convert(leaftype, ret, false) - end - ret2 + function row_has_child_toggled(instance::GtkTreeModelFilter, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_has_child_toggled(GtkTreeModel(instance), _path, _iter) end - function refilter(instance::GtkTreeModelFilter) - ret = ccall(("gtk_tree_model_filter_refilter", libgtk4), Nothing, (Ptr{GObject},), instance) - nothing + function row_inserted(instance::GtkTreeModelFilter, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_inserted(GtkTreeModel(instance), _path, _iter) end - function set_visible_column(instance::GtkTreeModelFilter, _column::Integer) - ret = ccall(("gtk_tree_model_filter_set_visible_column", libgtk4), Nothing, (Ptr{GObject}, Int32), instance, _column) - nothing + function rows_reordered(instance::GtkTreeModelFilter, _path::GtkTreePath, _iter::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}}), _new_order) + rows_reordered(GtkTreeModel(instance), _path, _iter, _new_order) + end + function unref_node(instance::GtkTreeModelFilter, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + unref_node(GtkTreeModel(instance), _iter) end function TreeModelSort_new_with_model(_child_model::GtkTreeModel) ret = ccall(("gtk_tree_model_sort_new_with_model", libgtk4), Ptr{GObject}, (Ptr{GObject},), _child_model) @@ -11939,6 +18979,108 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_tree_model_sort_reset_default_sort_func", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function drag_data_delete(instance::GtkTreeModelSort, _path::GtkTreePath) + drag_data_delete(GtkTreeDragSource(instance), _path) + end + function drag_data_get(instance::GtkTreeModelSort, _path::GtkTreePath) + drag_data_get(GtkTreeDragSource(instance), _path) + end + function row_draggable(instance::GtkTreeModelSort, _path::GtkTreePath) + row_draggable(GtkTreeDragSource(instance), _path) + end + function filter_new(instance::GtkTreeModelSort, _root::Maybe(GtkTreePath)) + filter_new(GtkTreeModel(instance), _root) + end + function foreach(instance::GtkTreeModelSort, _func::Function) + foreach(GtkTreeModel(instance), _func) + end + function get_column_type(instance::GtkTreeModelSort, _index_::Integer) + get_column_type(GtkTreeModel(instance), _index_) + end + function get_flags(instance::GtkTreeModelSort) + get_flags(GtkTreeModel(instance)) + end + function get_iter(instance::GtkTreeModelSort, _path::GtkTreePath) + get_iter(GtkTreeModel(instance), _path) + end + function get_iter_first(instance::GtkTreeModelSort) + get_iter_first(GtkTreeModel(instance)) + end + function get_iter_from_string(instance::GtkTreeModelSort, _path_string::Union{AbstractString, Symbol}) + get_iter_from_string(GtkTreeModel(instance), _path_string) + end + function get_n_columns(instance::GtkTreeModelSort) + get_n_columns(GtkTreeModel(instance)) + end + function get_path(instance::GtkTreeModelSort, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + get_path(GtkTreeModel(instance), _iter) + end + function get_string_from_iter(instance::GtkTreeModelSort, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + get_string_from_iter(GtkTreeModel(instance), _iter) + end + function get_value(instance::GtkTreeModelSort, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}, _column::Integer) + get_value(GtkTreeModel(instance), _iter, _column) + end + function iter_children(instance::GtkTreeModelSort, _parent::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}})) + iter_children(GtkTreeModel(instance), _parent) + end + function iter_has_child(instance::GtkTreeModelSort, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_has_child(GtkTreeModel(instance), _iter) + end + function iter_n_children(instance::GtkTreeModelSort, _iter::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}})) + iter_n_children(GtkTreeModel(instance), _iter) + end + function iter_next(instance::GtkTreeModelSort, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_next(GtkTreeModel(instance), _iter) + end + function iter_nth_child(instance::GtkTreeModelSort, _parent::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}}), _n::Integer) + iter_nth_child(GtkTreeModel(instance), _parent, _n) + end + function iter_parent(instance::GtkTreeModelSort, _child::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_parent(GtkTreeModel(instance), _child) + end + function iter_previous(instance::GtkTreeModelSort, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_previous(GtkTreeModel(instance), _iter) + end + function ref_node(instance::GtkTreeModelSort, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + ref_node(GtkTreeModel(instance), _iter) + end + function row_changed(instance::GtkTreeModelSort, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_changed(GtkTreeModel(instance), _path, _iter) + end + function row_deleted(instance::GtkTreeModelSort, _path::GtkTreePath) + row_deleted(GtkTreeModel(instance), _path) + end + function row_has_child_toggled(instance::GtkTreeModelSort, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_has_child_toggled(GtkTreeModel(instance), _path, _iter) + end + function row_inserted(instance::GtkTreeModelSort, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_inserted(GtkTreeModel(instance), _path, _iter) + end + function rows_reordered(instance::GtkTreeModelSort, _path::GtkTreePath, _iter::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}}), _new_order) + rows_reordered(GtkTreeModel(instance), _path, _iter, _new_order) + end + function unref_node(instance::GtkTreeModelSort, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + unref_node(GtkTreeModel(instance), _iter) + end + function get_sort_column_id(instance::GtkTreeModelSort) + get_sort_column_id(GtkTreeSortable(instance)) + end + function has_default_sort_func(instance::GtkTreeModelSort) + has_default_sort_func(GtkTreeSortable(instance)) + end + function set_default_sort_func(instance::GtkTreeModelSort, _sort_func::Function, _destroy::Maybe(Function)) + set_default_sort_func(GtkTreeSortable(instance), _sort_func, _destroy) + end + function set_sort_column_id(instance::GtkTreeModelSort, _sort_column_id::Integer, _order) + set_sort_column_id(GtkTreeSortable(instance), _sort_column_id, _order) + end + function set_sort_func(instance::GtkTreeModelSort, _sort_column_id::Integer, _sort_func::Function, _destroy::Maybe(Function)) + set_sort_func(GtkTreeSortable(instance), _sort_column_id, _sort_func, _destroy) + end + function sort_column_changed(instance::GtkTreeModelSort) + sort_column_changed(GtkTreeSortable(instance)) + end function count_selected_rows(instance::GtkTreeSelection) ret = ccall(("gtk_tree_selection_count_selected_rows", libgtk4), Int32, (Ptr{GObject},), instance) ret @@ -12081,6 +19223,7 @@ $(Expr(:toplevel, quote _columns_arr = convert(Vector{Int32}, _columns) _values_arr = convert(Vector{_GValue}, _values) _n_values = length(_columns) + _n_values = length(_values) ret = ccall(("gtk_tree_store_insert_with_valuesv", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GtkTreeIter}, Ptr{_GtkTreeIter}, Int32, Ptr{Int32}, Ptr{_GValue}, Int32), instance, m_iter, _parent_maybe, _position, _columns_arr, _values_arr, _n_values) _iter = m_iter[] _iter @@ -12135,6 +19278,7 @@ $(Expr(:toplevel, quote _columns_arr = convert(Vector{Int32}, _columns) _values_arr = convert(Vector{_GValue}, _values) _n_values = length(_columns) + _n_values = length(_values) ret = ccall(("gtk_tree_store_set_valuesv", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GtkTreeIter}, Ptr{Int32}, Ptr{_GValue}, Int32), instance, _iter, _columns_arr, _values_arr, _n_values) nothing end @@ -12142,6 +19286,117 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_tree_store_swap", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GtkTreeIter}, Ptr{_GtkTreeIter}), instance, _a, _b) nothing end + function get_buildable_id(instance::GtkTreeStore) + get_buildable_id(GtkBuildable(instance)) + end + function drag_data_received(instance::GtkTreeStore, _dest::GtkTreePath, _value::Union{GValue, Ref{_GValue}}) + drag_data_received(GtkTreeDragDest(instance), _dest, _value) + end + function row_drop_possible(instance::GtkTreeStore, _dest_path::GtkTreePath, _value::Union{GValue, Ref{_GValue}}) + row_drop_possible(GtkTreeDragDest(instance), _dest_path, _value) + end + function drag_data_delete(instance::GtkTreeStore, _path::GtkTreePath) + drag_data_delete(GtkTreeDragSource(instance), _path) + end + function drag_data_get(instance::GtkTreeStore, _path::GtkTreePath) + drag_data_get(GtkTreeDragSource(instance), _path) + end + function row_draggable(instance::GtkTreeStore, _path::GtkTreePath) + row_draggable(GtkTreeDragSource(instance), _path) + end + function filter_new(instance::GtkTreeStore, _root::Maybe(GtkTreePath)) + filter_new(GtkTreeModel(instance), _root) + end + function foreach(instance::GtkTreeStore, _func::Function) + foreach(GtkTreeModel(instance), _func) + end + function get_column_type(instance::GtkTreeStore, _index_::Integer) + get_column_type(GtkTreeModel(instance), _index_) + end + function get_flags(instance::GtkTreeStore) + get_flags(GtkTreeModel(instance)) + end + function get_iter(instance::GtkTreeStore, _path::GtkTreePath) + get_iter(GtkTreeModel(instance), _path) + end + function get_iter_first(instance::GtkTreeStore) + get_iter_first(GtkTreeModel(instance)) + end + function get_iter_from_string(instance::GtkTreeStore, _path_string::Union{AbstractString, Symbol}) + get_iter_from_string(GtkTreeModel(instance), _path_string) + end + function get_n_columns(instance::GtkTreeStore) + get_n_columns(GtkTreeModel(instance)) + end + function get_path(instance::GtkTreeStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + get_path(GtkTreeModel(instance), _iter) + end + function get_string_from_iter(instance::GtkTreeStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + get_string_from_iter(GtkTreeModel(instance), _iter) + end + function get_value(instance::GtkTreeStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}, _column::Integer) + get_value(GtkTreeModel(instance), _iter, _column) + end + function iter_children(instance::GtkTreeStore, _parent::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}})) + iter_children(GtkTreeModel(instance), _parent) + end + function iter_has_child(instance::GtkTreeStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_has_child(GtkTreeModel(instance), _iter) + end + function iter_n_children(instance::GtkTreeStore, _iter::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}})) + iter_n_children(GtkTreeModel(instance), _iter) + end + function iter_next(instance::GtkTreeStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_next(GtkTreeModel(instance), _iter) + end + function iter_nth_child(instance::GtkTreeStore, _parent::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}}), _n::Integer) + iter_nth_child(GtkTreeModel(instance), _parent, _n) + end + function iter_parent(instance::GtkTreeStore, _child::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_parent(GtkTreeModel(instance), _child) + end + function iter_previous(instance::GtkTreeStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + iter_previous(GtkTreeModel(instance), _iter) + end + function ref_node(instance::GtkTreeStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + ref_node(GtkTreeModel(instance), _iter) + end + function row_changed(instance::GtkTreeStore, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_changed(GtkTreeModel(instance), _path, _iter) + end + function row_deleted(instance::GtkTreeStore, _path::GtkTreePath) + row_deleted(GtkTreeModel(instance), _path) + end + function row_has_child_toggled(instance::GtkTreeStore, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_has_child_toggled(GtkTreeModel(instance), _path, _iter) + end + function row_inserted(instance::GtkTreeStore, _path::GtkTreePath, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + row_inserted(GtkTreeModel(instance), _path, _iter) + end + function rows_reordered(instance::GtkTreeStore, _path::GtkTreePath, _iter::Maybe(Union{GtkTreeIter, Ref{_GtkTreeIter}}), _new_order) + rows_reordered(GtkTreeModel(instance), _path, _iter, _new_order) + end + function unref_node(instance::GtkTreeStore, _iter::Union{GtkTreeIter, Ref{_GtkTreeIter}}) + unref_node(GtkTreeModel(instance), _iter) + end + function get_sort_column_id(instance::GtkTreeStore) + get_sort_column_id(GtkTreeSortable(instance)) + end + function has_default_sort_func(instance::GtkTreeStore) + has_default_sort_func(GtkTreeSortable(instance)) + end + function set_default_sort_func(instance::GtkTreeStore, _sort_func::Function, _destroy::Maybe(Function)) + set_default_sort_func(GtkTreeSortable(instance), _sort_func, _destroy) + end + function set_sort_column_id(instance::GtkTreeStore, _sort_column_id::Integer, _order) + set_sort_column_id(GtkTreeSortable(instance), _sort_column_id, _order) + end + function set_sort_func(instance::GtkTreeStore, _sort_column_id::Integer, _sort_func::Function, _destroy::Maybe(Function)) + set_sort_func(GtkTreeSortable(instance), _sort_column_id, _sort_func, _destroy) + end + function sort_column_changed(instance::GtkTreeStore) + sort_column_changed(GtkTreeSortable(instance)) + end function TreeView_new() ret = ccall(("gtk_tree_view_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkTreeViewLeaf(ret, false) @@ -12615,6 +19870,81 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_tree_view_unset_rows_drag_source", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_accessible_parent(instance::GtkTreeView) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkTreeView) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkTreeView) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkTreeView) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkTreeView) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkTreeView) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkTreeView, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkTreeView, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkTreeView, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkTreeView, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkTreeView, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkTreeView, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkTreeView, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkTreeView, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkTreeView, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkTreeView) + get_buildable_id(GtkBuildable(instance)) + end + function get_border(instance::GtkTreeView) + get_border(GtkScrollable(instance)) + end + function get_hadjustment(instance::GtkTreeView) + get_hadjustment(GtkScrollable(instance)) + end + function get_hscroll_policy(instance::GtkTreeView) + get_hscroll_policy(GtkScrollable(instance)) + end + function get_vadjustment(instance::GtkTreeView) + get_vadjustment(GtkScrollable(instance)) + end + function get_vscroll_policy(instance::GtkTreeView) + get_vscroll_policy(GtkScrollable(instance)) + end + function set_hadjustment(instance::GtkTreeView, _hadjustment::Maybe(GtkAdjustment)) + set_hadjustment(GtkScrollable(instance), _hadjustment) + end + function set_hscroll_policy(instance::GtkTreeView, _policy) + set_hscroll_policy(GtkScrollable(instance), _policy) + end + function set_vadjustment(instance::GtkTreeView, _vadjustment::Maybe(GtkAdjustment)) + set_vadjustment(GtkScrollable(instance), _vadjustment) + end + function set_vscroll_policy(instance::GtkTreeView, _policy) + set_vscroll_policy(GtkScrollable(instance), _policy) + end function TreeViewColumn_new() ret = ccall(("gtk_tree_view_column_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkTreeViewColumnLeaf(ret, false) @@ -12844,6 +20174,18 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_tree_view_column_set_widget", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _widget_maybe) nothing end + function get_buildable_id(instance::GtkTreeViewColumn) + get_buildable_id(GtkBuildable(instance)) + end + function get_area(instance::GtkTreeViewColumn) + get_area(GtkCellLayout(instance)) + end + function get_cells(instance::GtkTreeViewColumn) + get_cells(GtkCellLayout(instance)) + end + function reorder(instance::GtkTreeViewColumn, _cell::GtkCellRenderer, _position::Integer) + reorder(GtkCellLayout(instance), _cell, _position) + end function UriLauncher_new(_uri::Maybe(Union{AbstractString, Symbol})) _uri_maybe = nothing_to_null(_uri) ret = ccall(("gtk_uri_launcher_new", libgtk4), Ptr{GObject}, (Cstring,), _uri_maybe) @@ -12957,6 +20299,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_video_set_resource", libgtk4), Nothing, (Ptr{GObject}, Cstring), instance, _resource_path_maybe) nothing end + function get_accessible_parent(instance::GtkVideo) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkVideo) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkVideo) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkVideo) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkVideo) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkVideo) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkVideo, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkVideo, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkVideo, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkVideo, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkVideo, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkVideo, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkVideo, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkVideo, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkVideo, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkVideo) + get_buildable_id(GtkBuildable(instance)) + end function Viewport_new(_hadjustment::Maybe(GtkAdjustment), _vadjustment::Maybe(GtkAdjustment)) _hadjustment_maybe = nothing_to_null(_hadjustment) _vadjustment_maybe = nothing_to_null(_vadjustment) @@ -12983,11 +20373,140 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_viewport_set_scroll_to_focus", libgtk4), Nothing, (Ptr{GObject}, Cint), instance, _scroll_to_focus) nothing end + function get_accessible_parent(instance::GtkViewport) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkViewport) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkViewport) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkViewport) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkViewport) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkViewport) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkViewport, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkViewport, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkViewport, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkViewport, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkViewport, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkViewport, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkViewport, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkViewport, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkViewport, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkViewport) + get_buildable_id(GtkBuildable(instance)) + end + function get_border(instance::GtkViewport) + get_border(GtkScrollable(instance)) + end + function get_hadjustment(instance::GtkViewport) + get_hadjustment(GtkScrollable(instance)) + end + function get_hscroll_policy(instance::GtkViewport) + get_hscroll_policy(GtkScrollable(instance)) + end + function get_vadjustment(instance::GtkViewport) + get_vadjustment(GtkScrollable(instance)) + end + function get_vscroll_policy(instance::GtkViewport) + get_vscroll_policy(GtkScrollable(instance)) + end + function set_hadjustment(instance::GtkViewport, _hadjustment::Maybe(GtkAdjustment)) + set_hadjustment(GtkScrollable(instance), _hadjustment) + end + function set_hscroll_policy(instance::GtkViewport, _policy) + set_hscroll_policy(GtkScrollable(instance), _policy) + end + function set_vadjustment(instance::GtkViewport, _vadjustment::Maybe(GtkAdjustment)) + set_vadjustment(GtkScrollable(instance), _vadjustment) + end + function set_vscroll_policy(instance::GtkViewport, _policy) + set_vscroll_policy(GtkScrollable(instance), _policy) + end function VolumeButton_new() ret = ccall(("gtk_volume_button_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkVolumeButtonLeaf(ret, false) ret2 end + function get_accessible_parent(instance::GtkVolumeButton) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkVolumeButton) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkVolumeButton) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkVolumeButton) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkVolumeButton) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkVolumeButton) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkVolumeButton, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkVolumeButton, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkVolumeButton, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkVolumeButton, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkVolumeButton, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkVolumeButton, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkVolumeButton, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkVolumeButton, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkVolumeButton, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkVolumeButton) + get_buildable_id(GtkBuildable(instance)) + end + function get_orientation(instance::GtkVolumeButton) + get_orientation(GtkOrientable(instance)) + end + function set_orientation(instance::GtkVolumeButton, _orientation) + set_orientation(GtkOrientable(instance), _orientation) + end function get_default_direction() ret = ccall(("gtk_widget_get_default_direction", libgtk4), UInt32, ()) ret2 = TextDirection(ret) @@ -13771,6 +21290,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_widget_unset_state_flags", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _flags) nothing end + function get_accessible_parent(instance::GtkWidget) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkWidget) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkWidget) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkWidget) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkWidget) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkWidget) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkWidget, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkWidget, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkWidget, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkWidget, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkWidget, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkWidget, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkWidget, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkWidget, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkWidget, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkWidget) + get_buildable_id(GtkBuildable(instance)) + end function WidgetPaintable_new(_widget::Maybe(GtkWidget)) _widget_maybe = nothing_to_null(_widget) ret = ccall(("gtk_widget_paintable_new", libgtk4), Ptr{GObject}, (Ptr{GObject},), _widget_maybe) @@ -13787,6 +21354,33 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_widget_paintable_set_widget", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _widget_maybe) nothing end + function compute_concrete_size(instance::GtkWidgetPaintable, _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::GtkWidgetPaintable) + get_current_image(GdkPaintable(instance)) + end + function get_flags(instance::GtkWidgetPaintable) + get_flags(GdkPaintable(instance)) + end + function get_intrinsic_aspect_ratio(instance::GtkWidgetPaintable) + get_intrinsic_aspect_ratio(GdkPaintable(instance)) + end + function get_intrinsic_height(instance::GtkWidgetPaintable) + get_intrinsic_height(GdkPaintable(instance)) + end + function get_intrinsic_width(instance::GtkWidgetPaintable) + get_intrinsic_width(GdkPaintable(instance)) + end + function invalidate_contents(instance::GtkWidgetPaintable) + invalidate_contents(GdkPaintable(instance)) + end + function invalidate_size(instance::GtkWidgetPaintable) + invalidate_size(GdkPaintable(instance)) + end + function snapshot(instance::GtkWidgetPaintable, _snapshot::GdkSnapshot, _width::Real, _height::Real) + snapshot(GdkPaintable(instance), _snapshot, _width, _height) + end function Window_new() ret = ccall(("gtk_window_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkWindowLeaf(ret, false) @@ -14072,6 +21666,72 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_window_unminimize", libgtk4), Nothing, (Ptr{GObject},), instance) nothing end + function get_accessible_parent(instance::GtkWindow) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkWindow) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkWindow) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkWindow) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkWindow) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkWindow) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkWindow, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkWindow, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkWindow, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkWindow, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkWindow, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkWindow, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkWindow, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkWindow, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkWindow, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkWindow) + get_buildable_id(GtkBuildable(instance)) + end + function get_renderer(instance::GtkWindow) + get_renderer(GtkNative(instance)) + end + function get_surface(instance::GtkWindow) + get_surface(GtkNative(instance)) + end + function get_surface_transform(instance::GtkWindow) + get_surface_transform(GtkNative(instance)) + end + function realize(instance::GtkWindow) + realize(GtkNative(instance)) + end + function unrealize(instance::GtkWindow) + unrealize(GtkNative(instance)) + end + function get_display(instance::GtkWindow) + get_display(GtkRoot(instance)) + end function WindowControls_new(_side) ret = ccall(("gtk_window_controls_new", libgtk4), Ptr{GObject}, (UInt32,), _side) ret2 = GtkWindowControlsLeaf(ret, false) @@ -14101,6 +21761,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_window_controls_set_side", libgtk4), Nothing, (Ptr{GObject}, UInt32), instance, _side) nothing end + function get_accessible_parent(instance::GtkWindowControls) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkWindowControls) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkWindowControls) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkWindowControls) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkWindowControls) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkWindowControls) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkWindowControls, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkWindowControls, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkWindowControls, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkWindowControls, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkWindowControls, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkWindowControls, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkWindowControls, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkWindowControls, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkWindowControls, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkWindowControls) + get_buildable_id(GtkBuildable(instance)) + end function WindowGroup_new() ret = ccall(("gtk_window_group_new", libgtk4), Ptr{GObject}, ()) ret2 = GtkWindowGroupLeaf(ret, true) @@ -14134,6 +21842,54 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_window_handle_set_child", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _child_maybe) nothing end + function get_accessible_parent(instance::GtkWindowHandle) + get_accessible_parent(GtkAccessible(instance)) + end + function get_accessible_role(instance::GtkWindowHandle) + get_accessible_role(GtkAccessible(instance)) + end + function get_at_context(instance::GtkWindowHandle) + get_at_context(GtkAccessible(instance)) + end + function get_bounds(instance::GtkWindowHandle) + get_bounds(GtkAccessible(instance)) + end + function get_first_accessible_child(instance::GtkWindowHandle) + get_first_accessible_child(GtkAccessible(instance)) + end + function get_next_accessible_sibling(instance::GtkWindowHandle) + get_next_accessible_sibling(GtkAccessible(instance)) + end + function get_platform_state(instance::GtkWindowHandle, _state) + get_platform_state(GtkAccessible(instance), _state) + end + function reset_property(instance::GtkWindowHandle, _property) + reset_property(GtkAccessible(instance), _property) + end + function reset_relation(instance::GtkWindowHandle, _relation) + reset_relation(GtkAccessible(instance), _relation) + end + function reset_state(instance::GtkWindowHandle, _state) + reset_state(GtkAccessible(instance), _state) + end + function set_accessible_parent(instance::GtkWindowHandle, _parent::Maybe(GtkAccessible), _next_sibling::Maybe(GtkAccessible)) + set_accessible_parent(GtkAccessible(instance), _parent, _next_sibling) + end + function update_next_accessible_sibling(instance::GtkWindowHandle, _new_sibling::Maybe(GtkAccessible)) + update_next_accessible_sibling(GtkAccessible(instance), _new_sibling) + end + function update_property(instance::GtkWindowHandle, _properties, _values) + update_property(GtkAccessible(instance), _properties, _values) + end + function update_relation(instance::GtkWindowHandle, _relations, _values) + update_relation(GtkAccessible(instance), _relations, _values) + end + function update_state(instance::GtkWindowHandle, _states, _values) + update_state(GtkAccessible(instance), _states, _values) + end + function get_buildable_id(instance::GtkWindowHandle) + get_buildable_id(GtkBuildable(instance)) + 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) @@ -14204,6 +21960,7 @@ $(Expr(:toplevel, quote _properties_arr = convert(Vector{UInt32}, _properties) _values_arr = convert(Vector{_GValue}, _values) _n_properties = length(_properties) + _n_properties = length(_values) ret = ccall(("gtk_accessible_update_property_value", libgtk4), Nothing, (Ptr{GObject}, Int32, Ptr{UInt32}, Ptr{_GValue}), instance, _n_properties, _properties_arr, _values_arr) nothing end @@ -14211,6 +21968,7 @@ $(Expr(:toplevel, quote _relations_arr = convert(Vector{UInt32}, _relations) _values_arr = convert(Vector{_GValue}, _values) _n_relations = length(_relations) + _n_relations = length(_values) ret = ccall(("gtk_accessible_update_relation_value", libgtk4), Nothing, (Ptr{GObject}, Int32, Ptr{UInt32}, Ptr{_GValue}), instance, _n_relations, _relations_arr, _values_arr) nothing end @@ -14218,6 +21976,7 @@ $(Expr(:toplevel, quote _states_arr = convert(Vector{UInt32}, _states) _values_arr = convert(Vector{_GValue}, _values) _n_states = length(_states) + _n_states = length(_values) 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 diff --git a/src/gen/gtk4_structs b/src/gen/gtk4_structs index 0ef189c5..c1b2e39c 100644 --- a/src/gen/gtk4_structs +++ b/src/gen/gtk4_structs @@ -7290,8 +7290,8 @@ $(Expr(:toplevel, quote GLib.setproperties!(obj; kwargs...) obj end - function GtkCallbackAction(_callback::Maybe(Function), _data::Maybe(Nothing), _destroy::Function) - G_.CallbackAction_new(_callback, _data, _destroy) + function GtkCallbackAction(_callback::Maybe(Function), _destroy::Function) + G_.CallbackAction_new(_callback, _destroy) end function GtkCellAreaBox(; kwargs...) obj = G_.CellAreaBox_new() @@ -7453,14 +7453,14 @@ $(Expr(:toplevel, quote function GtkCssProvider() G_.CssProvider_new() end - function GtkCustomFilter(_match_func::Maybe(Function), _user_data::Maybe(Nothing), _user_destroy::Function) - G_.CustomFilter_new(_match_func, _user_data, _user_destroy) + function GtkCustomFilter(_match_func::Maybe(Function), _user_destroy::Function) + G_.CustomFilter_new(_match_func, _user_destroy) end function GtkCustomLayout(_request_mode::Maybe(Function), _measure::Function, _allocate::Function) G_.CustomLayout_new(_request_mode, _measure, _allocate) end - function GtkCustomSorter(_sort_func::Maybe(Function), _user_data::Maybe(Nothing), _user_destroy::Maybe(Function)) - G_.CustomSorter_new(_sort_func, _user_data, _user_destroy) + function GtkCustomSorter(_sort_func::Maybe(Function), _user_destroy::Maybe(Function)) + G_.CustomSorter_new(_sort_func, _user_destroy) end function GtkDialog(; kwargs...) obj = G_.Dialog_new() @@ -7832,8 +7832,8 @@ $(Expr(:toplevel, quote GLib.setproperties!(obj; kwargs...) obj end - function GtkMapListModel(_model::Maybe(GListModel), _map_func::Maybe(Function), _user_data::Maybe(Nothing), _user_destroy::Function; kwargs...) - obj = G_.MapListModel_new(_model, _map_func, _user_data, _user_destroy) + function GtkMapListModel(_model::Maybe(GListModel), _map_func::Maybe(Function), _user_destroy::Function; kwargs...) + obj = G_.MapListModel_new(_model, _map_func, _user_destroy) GLib.setproperties!(obj; kwargs...) obj end @@ -8258,8 +8258,8 @@ $(Expr(:toplevel, quote GLib.setproperties!(obj; kwargs...) obj end - function GtkTreeListModel(_root::GListModel, _passthrough::Bool, _autoexpand::Bool, _create_func::Function, _user_data::Maybe(Nothing), _user_destroy::Function; kwargs...) - obj = G_.TreeListModel_new(_root, _passthrough, _autoexpand, _create_func, _user_data, _user_destroy) + function GtkTreeListModel(_root::GListModel, _passthrough::Bool, _autoexpand::Bool, _create_func::Function, _user_destroy::Function; kwargs...) + obj = G_.TreeListModel_new(_root, _passthrough, _autoexpand, _create_func, _user_destroy) GLib.setproperties!(obj; kwargs...) obj end diff --git a/src/gen/pango_methods b/src/gen/pango_methods index e56021de..ffd872b8 100644 --- a/src/gen/pango_methods +++ b/src/gen/pango_methods @@ -821,6 +821,18 @@ $(Expr(:toplevel, quote _n_faces = m_n_faces[] _faces end + function get_item_type(instance::PangoFontFamily) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::PangoFontFamily) + get_n_items(GListModel(instance)) + end + function get_item(instance::PangoFontFamily, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::PangoFontFamily, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function changed(instance::PangoFontMap) ret = ccall(("pango_font_map_changed", libpango), Nothing, (Ptr{GObject},), instance) nothing @@ -862,6 +874,18 @@ $(Expr(:toplevel, quote ret2 = convert_if_not_null(PangoFontset, ret, true) ret2 end + function get_item_type(instance::PangoFontMap) + get_item_type(GListModel(instance)) + end + function get_n_items(instance::PangoFontMap) + get_n_items(GListModel(instance)) + end + function get_item(instance::PangoFontMap, _position::Integer) + get_item(GListModel(instance), _position) + end + function items_changed(instance::PangoFontMap, _position::Integer, _removed::Integer, _added::Integer) + items_changed(GListModel(instance), _position, _removed, _added) + end function foreach(instance::PangoFontset, _func::Function) begin _func_cfunc = @cfunction(PangoFontsetForeachFunc, Cint, (Ptr{GObject}, Ptr{GObject}, Ref{Function})) diff --git a/src/lists.jl b/src/lists.jl index 765719c9..22f38c72 100644 --- a/src/lists.jl +++ b/src/lists.jl @@ -76,11 +76,12 @@ get_child(te::GtkTreeExpander) = G_.get_child(te) get_item(trl::GtkTreeListRow) = G_.get_item(trl) get_children(trl::GtkTreeListRow) = G_.get_children(trl) -function GtkTreeListModel(root::GListModel, passthrough, autoexpand, create_func) +function GtkTreeListModel(root, passthrough, autoexpand, create_func) + rootlm = GListModel(root) create_cfunc = @cfunction(GtkTreeListModelCreateModelFunc, Ptr{GObject}, (Ptr{GObject},Ref{Function})) ref, deref = GLib.gc_ref_closure(create_func) - GLib.glib_ref(root) - ret = ccall(("gtk_tree_list_model_new", libgtk4), Ptr{GObject}, (Ptr{GObject}, Cint, Cint, Ptr{Nothing}, Ptr{Nothing}, Ptr{Nothing}), root, passthrough, autoexpand, create_cfunc, ref, deref) + GLib.glib_ref(rootlm) + ret = ccall(("gtk_tree_list_model_new", libgtk4), Ptr{GObject}, (Ptr{GObject}, Cint, Cint, Ptr{Nothing}, Ptr{Nothing}, Ptr{Nothing}), rootlm, passthrough, autoexpand, create_cfunc, ref, deref) convert(GtkTreeListModel, ret, true) end From 83d1b727909a21598b3691d70bf23544da286341 Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Tue, 14 Nov 2023 19:34:09 -0500 Subject: [PATCH 2/5] define GErrorException, throw it instead of a generic error it's nice to be able to distinguish GError throws, which tend to be recoverable, from things like MethodError --- src/GLib/GLib.jl | 2 +- src/GLib/gerror.jl | 17 ++++++++++++++--- test/keyfile.jl | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/GLib/GLib.jl b/src/GLib/GLib.jl index 7b2fc465..951e68e1 100644 --- a/src/GLib/GLib.jl +++ b/src/GLib/GLib.jl @@ -28,7 +28,7 @@ export add_action, add_stateful_action export get_gtk_property, set_gtk_property!, gtk_propertynames, bind_property, unbind_property export bytestring, nothing_to_null, setproperties!, string_or_nothing, convert_if_not_null -export length_zt, err_buf, check_err +export length_zt, err_buf, check_err, GErrorException export gtkdoc_const_url, gtkdoc_enum_url, gtkdoc_flags_url, gtkdoc_method_url, gtkdoc_func_url, gtkdoc_struc_url diff --git a/src/GLib/gerror.jl b/src/GLib/gerror.jl index f745e4cf..06da0f65 100644 --- a/src/GLib/gerror.jl +++ b/src/GLib/gerror.jl @@ -3,6 +3,9 @@ struct GError code::Cint message::Ptr{UInt8} end + +message(err::GError) = bytestring(err.message) + #@make_gvalue(GError, Ptr{GError}, :boxed, (:g_error, :libgobject)) convert(::Type{GError}, err::Ptr{GError}) = GError(err) g_type(::Type{GError}) = ccall((:g_error_get_type, libgobject), GType, ()) @@ -14,13 +17,21 @@ function err_buf() err[] = Ptr{GError}(C_NULL) err end + +struct GErrorException <: Exception + domain::UInt32 + code::Cint + message::String +end + +GErrorException(err::GError) = GErrorException(err.domain, err.code, bytestring(err.message)) + function check_err(err::Base.RefValue{Ptr{GError}}) if err[] != C_NULL gerror = GError(err[]) - emsg = message(gerror) + ee = GErrorException(gerror) ccall((:g_clear_error,libglib),Nothing,(Ptr{Ptr{GError}},),err) - error(emsg) + throw(ee) end end -message(err::GError) = bytestring(err.message) diff --git a/test/keyfile.jl b/test/keyfile.jl index fd5c773f..e9d9748f 100644 --- a/test/keyfile.jl +++ b/test/keyfile.jl @@ -28,7 +28,7 @@ for i=1:1 @test GLib.G_.get_double(kf,"group","blah2")==9.44 @test GLib.G_.get_double(kf,"group2","blah3")==9 - @test_throws ErrorException GLib.G_.get_double(kf,"group3","blah") + @test_throws GErrorException GLib.G_.get_double(kf,"group3","blah") # test set_double_list, set_integer_list, etc. with perfectly prepared inputs bool_list = convert(Vector{Int32},[true,false,false,true]) From 7affeeb0748d8948a538ed2225d14515e1d829de Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Wed, 22 Nov 2023 19:16:47 -0500 Subject: [PATCH 3/5] begin deprecating a few things --- src/Gtk4.jl | 1 + src/deprecated.jl | 4 ++++ src/input.jl | 5 ----- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 src/deprecated.jl diff --git a/src/Gtk4.jl b/src/Gtk4.jl index 994d1653..6dd8316a 100644 --- a/src/Gtk4.jl +++ b/src/Gtk4.jl @@ -107,6 +107,7 @@ include("gl_area.jl") include("lists.jl") include("text.jl") include("tree.jl") +include("deprecated.jl") include("basic_exports.jl") global const lib_version = VersionNumber( diff --git a/src/deprecated.jl b/src/deprecated.jl new file mode 100644 index 00000000..791367b3 --- /dev/null +++ b/src/deprecated.jl @@ -0,0 +1,4 @@ +GtkAdjustment(spinButton::GtkSpinButton) = G_.get_adjustment(spinButton) +GtkAdjustment(range::GtkRange) = G_.get_adjustment(range) +GtkAdjustment(scale::GtkScaleButton) = G_.get_adjustment(scale) + diff --git a/src/input.jl b/src/input.jl index 752e9965..9171b32a 100644 --- a/src/input.jl +++ b/src/input.jl @@ -38,12 +38,9 @@ end GtkScaleButton(min::Real, max::Real, step::Real; kwargs...) = GtkScaleButton(min, max, step, nothing; kwargs...) GtkScaleButton(scale::AbstractRange; kwargs...) = GtkScaleButton(minimum(scale), maximum(scale), step(scale); kwargs...) -GtkAdjustment(scale::GtkScaleButton) = G_.get_adjustment(scale) ## GtkAdjustment -# GtkScale is a subclass of GtkRange -GtkAdjustment(range::GtkRange) = G_.get_adjustment(range) """ configure!(adj::GtkAdjustment; value = nothing, lower = nothing, upper = nothing, step_increment = nothing, page_increment = nothing, page_size = nothing) @@ -79,8 +76,6 @@ end GtkSpinButton(scale::AbstractRange; kwargs...) = GtkSpinButton(minimum(scale), maximum(scale), step(scale); kwargs...) -GtkAdjustment(spinButton::GtkSpinButton) = G_.get_adjustment(spinButton) - """ configure!(sb::GtkSpinButton; adj = nothing, climb_rate = nothing, digits = nothing) From 1e5112442572c2bf8102737e809aeacb28937773 Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Thu, 23 Nov 2023 10:14:39 -0500 Subject: [PATCH 4/5] tweak examples --- README.md | 4 ++++ examples/README.md | 4 ++-- examples/canvas.jl | 2 +- examples/canvas_cairomakie.jl | 2 +- examples/columnview.jl | 2 +- examples/filteredlistview.jl | 2 +- examples/listbox.jl | 2 +- src/Gtk4.jl | 2 +- src/basic_exports.jl | 1 + 9 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ea50bd4c..7c3b1ae1 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,10 @@ For auto-generated code, Gtk4.jl relies on GObject introspection data generated Note that this package uses binaries for the GTK library and its dependencies that are built and packaged using [BinaryBuilder.jl](https://github.com/JuliaPackaging/BinaryBuilder.jl). On Linux it does **not** use the binaries that are packaged with your distribution. The build scripts for the binaries used by Gtk4.jl, including the library versions currently being used, can be found by perusing [Yggdrasil.jl](https://github.com/JuliaPackaging/Yggdrasil.jl). +### Known incompatibilities + +Gtk4.jl interferes with some other packages, including [PyPlot.jl](https://github.com/JuliaPy/PyPlot.jl) and [GLMakie.jl](https://github.com/MakieOrg/Makie.jl). To use Gtk4 based packages with Makie, you can use [Gtk4Makie.jl](https://github.com/JuliaGtk/Gtk4Makie.jl). + ## Enabling GTK4's EGL backend (Linux) On Wayland, a Cairo-based fallback backend will be used unless you tell `libglvnd_jll` where to find libEGL. This can be done by setting the environment variable __EGL_VENDOR_LIBRARY_DIRS. See [here](https://gitlab.freedesktop.org/glvnd/libglvnd/-/blob/master/src/EGL/icd_enumeration.md) for details. diff --git a/examples/README.md b/examples/README.md index 73ce3089..402c561f 100644 --- a/examples/README.md +++ b/examples/README.md @@ -6,8 +6,8 @@ - `dialogs.jl` demonstrates various types of dialogs. ## Drawing -- `canvas.jl` demonstrates use of `GtkCanvas`, which allows drawing with Cairo. Also shows how to change the cursor when it's over a certain widget. -- `canvas_cairomakie.jl` shows how to draw a CairoMakie plot into a `GtkCanvas`. +- `canvas.jl` demonstrates use of `GtkCanvas`, which allows drawing with [Cairo](https://github.com/JuliaGraphics/Cairo.jl). Also shows how to change the cursor when it's over a certain widget. +- `canvas_cairomakie.jl` shows how to draw a [CairoMakie](https://github.com/MakieOrg/Makie.jl) plot into a `GtkCanvas`. - `glarea.jl` shows how to use the `GtkGLArea` widget to draw using OpenGL. ## Lists diff --git a/examples/canvas.jl b/examples/canvas.jl index df7bcb10..de5861c1 100644 --- a/examples/canvas.jl +++ b/examples/canvas.jl @@ -26,7 +26,7 @@ end cursor(c, "crosshair") # add the canvas to a window -win = GtkWindow("Canvas") +win = GtkWindow("Canvas", 300, 300) win[] = c # add an event controller to handle mouse clicks diff --git a/examples/canvas_cairomakie.jl b/examples/canvas_cairomakie.jl index 18ee4e52..1f7a7e23 100644 --- a/examples/canvas_cairomakie.jl +++ b/examples/canvas_cairomakie.jl @@ -7,7 +7,7 @@ t_range = 0.0:0.1:10.0 x = rand(length(t_range)) arr() = sin.(t_range) .* Gtk4.value(s) .+ x -canvas = GtkCanvas(; vexpand=true, hexpand=true) +canvas = GtkCanvas(400, 200; vexpand=true, hexpand=true) b = push!(GtkBox(:v),canvas) w = GtkWindow(b,"CairoMakie example") s = GtkScale(:h,-5:5; draw_value = true) diff --git a/examples/columnview.jl b/examples/columnview.jl index 68c2fb1d..f2c14111 100644 --- a/examples/columnview.jl +++ b/examples/columnview.jl @@ -83,7 +83,7 @@ end list = GtkColumnView(GtkSelectionModel(GtkSingleSelection(GListModel(filteredModel))); vexpand=true) factory1 = GtkSignalListItemFactory(setup_cb, bind_cb) -col1 = GtkColumnViewColumn("name", factory1) +col1 = GtkColumnViewColumn("name", factory1; expand=true) push!(list, col1) factory2 = GtkSignalListItemFactory(setup_cb, bind2_cb) diff --git a/examples/filteredlistview.jl b/examples/filteredlistview.jl index a753b926..6acdcb5d 100644 --- a/examples/filteredlistview.jl +++ b/examples/filteredlistview.jl @@ -1,6 +1,6 @@ using Gtk4 -win = GtkWindow("Listview demo with filter") +win = GtkWindow("Listview demo with filter", 300, 800) box = GtkBox(:v) entry = GtkSearchEntry() sw = GtkScrolledWindow() diff --git a/examples/listbox.jl b/examples/listbox.jl index 683cb011..008d9f9f 100644 --- a/examples/listbox.jl +++ b/examples/listbox.jl @@ -1,6 +1,6 @@ using Gtk4 -win = GtkWindow("ListBox demo with filter") +win = GtkWindow("ListBox demo with filter", 300, 800) box = GtkBox(:v) entry = GtkSearchEntry() sw = GtkScrolledWindow() diff --git a/src/Gtk4.jl b/src/Gtk4.jl index 6dd8316a..eba173fb 100644 --- a/src/Gtk4.jl +++ b/src/Gtk4.jl @@ -66,7 +66,7 @@ end import .GLib: set_gtk_property!, get_gtk_property, run, signal_handler_is_connected, signalnames, - GListModel + GListModel, start_main_loop, stop_main_loop # define accessor methods in Gtk4 diff --git a/src/basic_exports.jl b/src/basic_exports.jl index d14e423d..9933e863 100644 --- a/src/basic_exports.jl +++ b/src/basic_exports.jl @@ -31,6 +31,7 @@ export signal_connect, signal_handler_disconnect, signal_handler_block, signal_handler_unblock, signal_handler_is_connected, signal_emit, g_timeout_add, g_idle_add export @guarded, @idle_add +export start_main_loop, stop_main_loop # Gtk-specific event handling export signal_emit, From 239db6ebc6939bc597df0e4fee9cd5f572c3e5a6 Mon Sep 17 00:00:00 2001 From: Jared Wahlstrand Date: Fri, 24 Nov 2023 19:36:42 -0500 Subject: [PATCH 5/5] add a few methods --- src/base.jl | 8 ++++++++ src/events.jl | 2 ++ src/windows.jl | 8 ++++++++ 3 files changed, 18 insertions(+) diff --git a/src/base.jl b/src/base.jl index 3141ad24..ae7788f8 100644 --- a/src/base.jl +++ b/src/base.jl @@ -112,6 +112,14 @@ Related GTK function: [`gtk_widget_grab_focus`()]($(gtkdoc_method_url("gtk4","Wi """ grab_focus(w::GtkWidget) = G_.grab_focus(w) +""" + isrealized(w::GtkWidget) + +Returns whether `w` is realized (that is, whether it has been associated with +a drawing surface). +""" +isrealized(w::GtkWidget) = G_.get_realized(w) + """ activate(w::GtkWidget) diff --git a/src/events.jl b/src/events.jl index c59e94e1..7dd82f09 100644 --- a/src/events.jl +++ b/src/events.jl @@ -46,6 +46,8 @@ function GtkShortcutController(widget::GtkWidget) g end +push!(sc::GtkShortcutController, s::GtkShortcut) = (G_.add_shortcut(sc,s);sc) + function GtkGestureClick(widget::GtkWidget,button=1) g = G_.GestureClick_new() button != 1 && G_.set_button(g, button) diff --git a/src/windows.jl b/src/windows.jl index d3822051..beaa14e5 100644 --- a/src/windows.jl +++ b/src/windows.jl @@ -39,6 +39,14 @@ Related GTK function: [`gtk_window_default_size`()]($(gtkdoc_method_url("gtk4"," """ default_size(win::GtkWindow, w, h) = G_.set_default_size(win, w, h) +""" + isactive(win::GtkWindow) + +Returns whether `win` is the currently active toplevel. This is the window that +receives keystrokes. +""" +isactive(win::GtkWindow) = G_.is_active(win) + """ destroy(win::GtkWindow)