diff --git a/gen/gen_gsk.jl b/gen/gen_gsk.jl index a9014366..455e5d91 100644 --- a/gen/gen_gsk.jl +++ b/gen/gen_gsk.jl @@ -9,8 +9,11 @@ GI.export_consts!(ns, path, "gsk4"; doc_xml = d, export_constants = false) # These are marked as "disguised" and what this means is not documentated AFAICT. disguised = Symbol[] -struct_skiplist=disguised +struct_skiplist=vcat(disguised, [:Path, :PathMeasure, :PathBuilder, :PathPoint, :Stroke]) -GI.export_struct_exprs!(ns,path, "gsk4", struct_skiplist, [:RoundedRect]; doc_xml = d, output_boxed_cache_init = false, output_boxed_types_def = false, output_object_cache_define = false, output_object_cache_init = false, output_callbacks = false) -GI.export_methods!(ns,path,"gsk4"; struct_skiplist = struct_skiplist) -GI.export_functions!(ns,path,"gsk4") +object_skiplist=[:FillNode, :StrokeNode, :SubsurfaceNode] + +GI.export_struct_exprs!(ns,path, "gsk4", struct_skiplist, [:RoundedRect]; doc_xml = d, output_boxed_cache_init = false, output_boxed_types_def = false, output_object_cache_define = false, output_object_cache_init = false, output_callbacks = false, object_skiplist = object_skiplist) + +GI.export_methods!(ns,path,"gsk4"; struct_skiplist = struct_skiplist, object_skiplist = object_skiplist, object_method_skiplist = [:deserialize]) +GI.export_functions!(ns,path,"gsk4"; skiplist = [:path_parse]) diff --git a/gen/gen_gtk4.jl b/gen/gen_gtk4.jl index b36107cb..52944736 100644 --- a/gen/gen_gtk4.jl +++ b/gen/gen_gtk4.jl @@ -17,7 +17,7 @@ obj_constructor_skiplist=[:new_from_resource,:new_with_mnemonic,:new_with_text,: GI.export_struct_exprs!(ns,path, "gtk4", struct_skiplist, [:BitsetIter,:BuildableParser]; doc_xml = d, object_skiplist = object_skiplist, constructor_skiplist = constructor_skiplist, output_boxed_cache_init = false, output_boxed_types_def = false, output_object_cache_define = false, output_object_cache_init = false, object_constructor_skiplist = obj_constructor_skiplist, doc_skiplist = [:Builder], exclude_deprecated = false) ## object methods -skiplist=[:create_closure,:activate_cell,:event,:start_editing,:filter_keypress,:append_node,:im_context_filter_keypress,:get_backlog,:get,:get_default,:get_for_display,:get_current_event_state,:get_axes] +skiplist=[:create_closure,:activate_cell,:event,:start_editing,:filter_keypress,:append_node,:im_context_filter_keypress,:get_backlog,:get,:get_default,:get_for_display,:get_current_event_state,:get_axes,:append_fill,:append_stroke,:push_fill,:push_stroke] object_skiplist=vcat(object_skiplist,[:CellRenderer,:MnemonicAction,:NeverTrigger,:NothingAction,:PrintJob,:PrintSettings,:RecentManager]) diff --git a/src/Gtk4.jl b/src/Gtk4.jl index 4552c8e5..4a54cdc3 100644 --- a/src/Gtk4.jl +++ b/src/Gtk4.jl @@ -29,7 +29,7 @@ using Preferences using Reexport @reexport using Graphics -import .Graphics: width, height, getgc, scale +import .Graphics: width, height, getgc, scale, center, clip import Cairo: destroy, text, status eval(include("gen/gdk4_consts")) @@ -54,6 +54,8 @@ using ..Gtk4 eval(include("gen/gdk4_methods")) eval(include("gen/gdk4_functions")) +eval(include("gen/gsk4_methods")) +eval(include("gen/gsk4_functions")) eval(include("gen/gtk4_methods")) eval(include("gen/gtk4_functions")) diff --git a/src/gen/gsk4_functions b/src/gen/gsk4_functions index 5a8159fe..c8e9fd10 100644 --- a/src/gen/gsk4_functions +++ b/src/gen/gsk4_functions @@ -1,10 +1,5 @@ quote $(Expr(:toplevel, quote - function path_parse(_string::Union{AbstractString, Symbol}) - ret = ccall(("gsk_path_parse", libgtk4), Ptr{GskPath}, (Cstring,), _string) - ret2 = convert_if_not_null(GskPath, ret, true) - ret2 - end function serialization_error_quark() ret = ccall(("gsk_serialization_error_quark", libgtk4), UInt32, ()) ret diff --git a/src/gen/gsk4_methods b/src/gen/gsk4_methods index ce0001e7..4c0fad83 100644 --- a/src/gen/gsk4_methods +++ b/src/gen/gsk4_methods @@ -1,299 +1,5 @@ quote $(Expr(:toplevel, quote - function foreach(instance::GskPath, _flags, _func::Function) - begin - _func_cfunc = @cfunction(GskPathForeachFunc, Cint, (UInt32, Ptr{_GraphenePoint}, UInt64, Float32, Ref{Function})) - begin - ref = Ref{Any}(_func) - _func_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) - end - end - ret = ccall(("gsk_path_foreach", libgtk4), Cint, (Ptr{GskPath}, UInt32, Ptr{Cvoid}, Ptr{Nothing}), instance, _flags, _func_cfunc, _func_closure) - ret2 = convert(Bool, ret) - ret2 - end - function get_bounds(instance::GskPath) - m_bounds = Ref{_GrapheneRect}() - ret = ccall(("gsk_path_get_bounds", libgtk4), Cint, (Ptr{GskPath}, Ptr{_GrapheneRect}), instance, m_bounds) - ret2 = convert(Bool, ret) - _bounds = m_bounds[] - (ret2, _bounds) - end - function get_closest_point(instance::GskPath, _point::GraphenePointLike, _threshold::Real) - m_result = Ref{GskPathPoint}() - m_distance = Ref{Float32}() - ret = ccall(("gsk_path_get_closest_point", libgtk4), Cint, (Ptr{GskPath}, Ptr{_GraphenePoint}, Float32, Ptr{GskPathPoint}, Ptr{Float32}), instance, _point, _threshold, m_result, m_distance) - ret2 = convert(Bool, ret) - _result = m_result[] - _distance = m_distance[] - (ret2, _result, _distance) - end - function get_end_point(instance::GskPath) - m_result = Ref{GskPathPoint}() - ret = ccall(("gsk_path_get_end_point", libgtk4), Cint, (Ptr{GskPath}, Ptr{GskPathPoint}), instance, m_result) - ret2 = convert(Bool, ret) - _result = m_result[] - (ret2, _result) - end - function get_start_point(instance::GskPath) - m_result = Ref{GskPathPoint}() - ret = ccall(("gsk_path_get_start_point", libgtk4), Cint, (Ptr{GskPath}, Ptr{GskPathPoint}), instance, m_result) - ret2 = convert(Bool, ret) - _result = m_result[] - (ret2, _result) - end - function get_stroke_bounds(instance::GskPath, _stroke::GskStroke) - m_bounds = Ref{_GrapheneRect}() - ret = ccall(("gsk_path_get_stroke_bounds", libgtk4), Cint, (Ptr{GskPath}, Ptr{GskStroke}, Ptr{_GrapheneRect}), instance, _stroke, m_bounds) - ret2 = convert(Bool, ret) - _bounds = m_bounds[] - (ret2, _bounds) - end - function in_fill(instance::GskPath, _point::GraphenePointLike, _fill_rule) - ret = ccall(("gsk_path_in_fill", libgtk4), Cint, (Ptr{GskPath}, Ptr{_GraphenePoint}, UInt32), instance, _point, _fill_rule) - ret2 = convert(Bool, ret) - ret2 - end - function is_closed(instance::GskPath) - ret = ccall(("gsk_path_is_closed", libgtk4), Cint, (Ptr{GskPath},), instance) - ret2 = convert(Bool, ret) - ret2 - end - function is_empty(instance::GskPath) - ret = ccall(("gsk_path_is_empty", libgtk4), Cint, (Ptr{GskPath},), instance) - ret2 = convert(Bool, ret) - ret2 - end - function print(instance::GskPath, _string::GStringLike) - ret = ccall(("gsk_path_print", libgtk4), Nothing, (Ptr{GskPath}, Ptr{_GString}), instance, _string) - nothing - end - function ref(instance::GskPath) - ret = ccall(("gsk_path_ref", libgtk4), Ptr{GskPath}, (Ptr{GskPath},), instance) - ret2 = convert(GskPath, ret, true) - ret2 - end - function to_cairo(instance::GskPath, _cr::cairoContext) - ret = ccall(("gsk_path_to_cairo", libgtk4), Nothing, (Ptr{GskPath}, Ptr{cairoContext}), instance, _cr) - nothing - end - function to_string(instance::GskPath) - ret = ccall(("gsk_path_to_string", libgtk4), Cstring, (Ptr{GskPath},), instance) - ret2 = string_or_nothing(ret, true) - ret2 - end - function unref(instance::GskPath) - ret = ccall(("gsk_path_unref", libgtk4), Nothing, (Ptr{GskPath},), instance) - nothing - end - function PathBuilder_new() - ret = ccall(("gsk_path_builder_new", libgtk4), Ptr{GskPathBuilder}, ()) - ret2 = convert(GskPathBuilder, ret, true) - ret2 - end - function add_cairo_path(instance::GskPathBuilder, _path::cairoPath) - ret = ccall(("gsk_path_builder_add_cairo_path", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{cairoPath}), instance, _path) - nothing - end - function add_circle(instance::GskPathBuilder, _center::GraphenePointLike, _radius::Real) - ret = ccall(("gsk_path_builder_add_circle", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{_GraphenePoint}, Float32), instance, _center, _radius) - nothing - end - function add_layout(instance::GskPathBuilder, _layout::PangoLayout) - ret = ccall(("gsk_path_builder_add_layout", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{GObject}), instance, _layout) - nothing - end - function add_path(instance::GskPathBuilder, _path::GskPath) - ret = ccall(("gsk_path_builder_add_path", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{GskPath}), instance, _path) - nothing - end - function add_rect(instance::GskPathBuilder, _rect::GrapheneRectLike) - ret = ccall(("gsk_path_builder_add_rect", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{_GrapheneRect}), instance, _rect) - nothing - end - function add_reverse_path(instance::GskPathBuilder, _path::GskPath) - ret = ccall(("gsk_path_builder_add_reverse_path", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{GskPath}), instance, _path) - nothing - end - function add_rounded_rect(instance::GskPathBuilder, _rect::GskRoundedRectLike) - ret = ccall(("gsk_path_builder_add_rounded_rect", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{_GskRoundedRect}), instance, _rect) - nothing - end - function add_segment(instance::GskPathBuilder, _path::GskPath, _start::GskPathPoint, _end::GskPathPoint) - ret = ccall(("gsk_path_builder_add_segment", libgtk4), Nothing, (Ptr{GskPathBuilder}, Ptr{GskPath}, Ptr{GskPathPoint}, Ptr{GskPathPoint}), instance, _path, _start, _end) - nothing - end - function arc_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real) - ret = ccall(("gsk_path_builder_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2) - nothing - end - function close(instance::GskPathBuilder) - ret = ccall(("gsk_path_builder_close", libgtk4), Nothing, (Ptr{GskPathBuilder},), instance) - nothing - end - function conic_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _weight::Real) - ret = ccall(("gsk_path_builder_conic_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _weight) - nothing - end - function cubic_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _x3::Real, _y3::Real) - ret = ccall(("gsk_path_builder_cubic_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _x3, _y3) - nothing - end - function get_current_point(instance::GskPathBuilder) - ret = ccall(("gsk_path_builder_get_current_point", libgtk4), Ptr{_GraphenePoint}, (Ptr{GskPathBuilder},), instance) - ret2 = convert(GraphenePointLike, ret, false) - ret2 - end - function html_arc_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _radius::Real) - ret = ccall(("gsk_path_builder_html_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _radius) - nothing - end - function line_to(instance::GskPathBuilder, _x::Real, _y::Real) - ret = ccall(("gsk_path_builder_line_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32), instance, _x, _y) - nothing - end - function move_to(instance::GskPathBuilder, _x::Real, _y::Real) - ret = ccall(("gsk_path_builder_move_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32), instance, _x, _y) - nothing - end - function quad_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real) - ret = ccall(("gsk_path_builder_quad_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2) - nothing - end - function ref(instance::GskPathBuilder) - ret = ccall(("gsk_path_builder_ref", libgtk4), Ptr{GskPathBuilder}, (Ptr{GskPathBuilder},), instance) - ret2 = convert(GskPathBuilder, ret, false) - ret2 - end - function rel_arc_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real) - ret = ccall(("gsk_path_builder_rel_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2) - nothing - end - function rel_conic_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _weight::Real) - ret = ccall(("gsk_path_builder_rel_conic_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _weight) - nothing - end - function rel_cubic_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _x3::Real, _y3::Real) - ret = ccall(("gsk_path_builder_rel_cubic_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _x3, _y3) - nothing - end - function rel_html_arc_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real, _radius::Real) - ret = ccall(("gsk_path_builder_rel_html_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2, _radius) - nothing - end - function rel_line_to(instance::GskPathBuilder, _x::Real, _y::Real) - ret = ccall(("gsk_path_builder_rel_line_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32), instance, _x, _y) - nothing - end - function rel_move_to(instance::GskPathBuilder, _x::Real, _y::Real) - ret = ccall(("gsk_path_builder_rel_move_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32), instance, _x, _y) - nothing - end - function rel_quad_to(instance::GskPathBuilder, _x1::Real, _y1::Real, _x2::Real, _y2::Real) - ret = ccall(("gsk_path_builder_rel_quad_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Float32), instance, _x1, _y1, _x2, _y2) - nothing - end - function rel_svg_arc_to(instance::GskPathBuilder, _rx::Real, _ry::Real, _x_axis_rotation::Real, _large_arc::Bool, _positive_sweep::Bool, _x::Real, _y::Real) - ret = ccall(("gsk_path_builder_rel_svg_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Cint, Cint, Float32, Float32), instance, _rx, _ry, _x_axis_rotation, _large_arc, _positive_sweep, _x, _y) - nothing - end - function svg_arc_to(instance::GskPathBuilder, _rx::Real, _ry::Real, _x_axis_rotation::Real, _large_arc::Bool, _positive_sweep::Bool, _x::Real, _y::Real) - ret = ccall(("gsk_path_builder_svg_arc_to", libgtk4), Nothing, (Ptr{GskPathBuilder}, Float32, Float32, Float32, Cint, Cint, Float32, Float32), instance, _rx, _ry, _x_axis_rotation, _large_arc, _positive_sweep, _x, _y) - nothing - end - function to_path(instance::GskPathBuilder) - ret = ccall(("gsk_path_builder_to_path", libgtk4), Ptr{GskPath}, (Ptr{GskPathBuilder},), instance) - ret2 = convert(GskPath, ret, true) - ret2 - end - function unref(instance::GskPathBuilder) - ret = ccall(("gsk_path_builder_unref", libgtk4), Nothing, (Ptr{GskPathBuilder},), instance) - nothing - end - function PathMeasure_new(_path::GskPath) - ret = ccall(("gsk_path_measure_new", libgtk4), Ptr{GskPathMeasure}, (Ptr{GskPath},), _path) - ret2 = convert(GskPathMeasure, ret, true) - ret2 - end - function PathMeasure_new_with_tolerance(_path::GskPath, _tolerance::Real) - ret = ccall(("gsk_path_measure_new_with_tolerance", libgtk4), Ptr{GskPathMeasure}, (Ptr{GskPath}, Float32), _path, _tolerance) - ret2 = convert(GskPathMeasure, ret, true) - ret2 - end - function get_length(instance::GskPathMeasure) - ret = ccall(("gsk_path_measure_get_length", libgtk4), Float32, (Ptr{GskPathMeasure},), instance) - ret - end - function get_path(instance::GskPathMeasure) - ret = ccall(("gsk_path_measure_get_path", libgtk4), Ptr{GskPath}, (Ptr{GskPathMeasure},), instance) - ret2 = convert(GskPath, ret, false) - ret2 - end - function get_point(instance::GskPathMeasure, _distance::Real) - m_result = Ref{GskPathPoint}() - ret = ccall(("gsk_path_measure_get_point", libgtk4), Cint, (Ptr{GskPathMeasure}, Float32, Ptr{GskPathPoint}), instance, _distance, m_result) - ret2 = convert(Bool, ret) - _result = m_result[] - (ret2, _result) - end - function get_tolerance(instance::GskPathMeasure) - ret = ccall(("gsk_path_measure_get_tolerance", libgtk4), Float32, (Ptr{GskPathMeasure},), instance) - ret - end - function ref(instance::GskPathMeasure) - ret = ccall(("gsk_path_measure_ref", libgtk4), Ptr{GskPathMeasure}, (Ptr{GskPathMeasure},), instance) - ret2 = convert(GskPathMeasure, ret, true) - ret2 - end - function unref(instance::GskPathMeasure) - ret = ccall(("gsk_path_measure_unref", libgtk4), Nothing, (Ptr{GskPathMeasure},), instance) - nothing - end - function compare(instance::GskPathPoint, _point2::GskPathPoint) - ret = ccall(("gsk_path_point_compare", libgtk4), Int32, (Ptr{GskPathPoint}, Ptr{GskPathPoint}), instance, _point2) - ret - end - function copy(instance::GskPathPoint) - ret = ccall(("gsk_path_point_copy", libgtk4), Ptr{GskPathPoint}, (Ptr{GskPathPoint},), instance) - ret2 = convert(GskPathPoint, ret, true) - ret2 - end - function equal(instance::GskPathPoint, _point2::GskPathPoint) - ret = ccall(("gsk_path_point_equal", libgtk4), Cint, (Ptr{GskPathPoint}, Ptr{GskPathPoint}), instance, _point2) - ret2 = convert(Bool, ret) - ret2 - end - function free(instance::GskPathPoint) - ret = ccall(("gsk_path_point_free", libgtk4), Nothing, (Ptr{GskPathPoint},), instance) - nothing - end - function get_curvature(instance::GskPathPoint, _path::GskPath, _direction) - m_center = Ref{_GraphenePoint}() - ret = ccall(("gsk_path_point_get_curvature", libgtk4), Float32, (Ptr{GskPathPoint}, Ptr{GskPath}, UInt32, Ptr{_GraphenePoint}), instance, _path, _direction, m_center) - _center = m_center[] - _center = convert_if_not_null(GraphenePointLike, _center, false) - (ret, _center) - end - function get_distance(instance::GskPathPoint, _measure::GskPathMeasure) - ret = ccall(("gsk_path_point_get_distance", libgtk4), Float32, (Ptr{GskPathPoint}, Ptr{GskPathMeasure}), instance, _measure) - ret - end - function get_position(instance::GskPathPoint, _path::GskPath) - m_position = Ref{_GraphenePoint}() - ret = ccall(("gsk_path_point_get_position", libgtk4), Nothing, (Ptr{GskPathPoint}, Ptr{GskPath}, Ptr{_GraphenePoint}), instance, _path, m_position) - _position = m_position[] - _position - end - function get_rotation(instance::GskPathPoint, _path::GskPath, _direction) - ret = ccall(("gsk_path_point_get_rotation", libgtk4), Float32, (Ptr{GskPathPoint}, Ptr{GskPath}, UInt32), instance, _path, _direction) - ret - end - function get_tangent(instance::GskPathPoint, _path::GskPath, _direction) - m_tangent = Ref{_GrapheneVec2}() - ret = ccall(("gsk_path_point_get_tangent", libgtk4), Nothing, (Ptr{GskPathPoint}, Ptr{GskPath}, UInt32, Ptr{_GrapheneVec2}), instance, _path, _direction, m_tangent) - _tangent = m_tangent[] - _tangent - end function contains_point(instance::GskRoundedRectLike, _point::GraphenePointLike) ret = ccall(("gsk_rounded_rect_contains_point", libgtk4), Cint, (Ptr{_GskRoundedRect}, Ptr{_GraphenePoint}), instance, _point) ret2 = convert(Bool, ret) @@ -392,79 +98,6 @@ $(Expr(:toplevel, quote ret = ccall(("gsk_shader_args_builder_unref", libgtk4), Nothing, (Ptr{GskShaderArgsBuilder},), instance) nothing end - function Stroke_new(_line_width::Real) - ret = ccall(("gsk_stroke_new", libgtk4), Ptr{GskStroke}, (Float32,), _line_width) - ret2 = convert(GskStroke, ret, true) - ret2 - end - function copy(instance::GskStroke) - ret = ccall(("gsk_stroke_copy", libgtk4), Ptr{GskStroke}, (Ptr{GskStroke},), instance) - ret2 = convert(GskStroke, ret, true) - ret2 - end - function free(instance::GskStroke) - ret = ccall(("gsk_stroke_free", libgtk4), Nothing, (Ptr{GskStroke},), instance) - nothing - end - function get_dash(instance::GskStroke) - m_n_dash = Ref{UInt64}() - ret = ccall(("gsk_stroke_get_dash", libgtk4), Ptr{Float32}, (Ptr{GskStroke}, Ptr{UInt64}), instance, m_n_dash) - ret2 = collect(unsafe_wrap(Vector{Float32}, ret, m_n_dash[])) - _n_dash = m_n_dash[] - ret2 - end - function get_dash_offset(instance::GskStroke) - ret = ccall(("gsk_stroke_get_dash_offset", libgtk4), Float32, (Ptr{GskStroke},), instance) - ret - end - function get_line_cap(instance::GskStroke) - ret = ccall(("gsk_stroke_get_line_cap", libgtk4), UInt32, (Ptr{GskStroke},), instance) - ret2 = LineCap(ret) - ret2 - end - function get_line_join(instance::GskStroke) - ret = ccall(("gsk_stroke_get_line_join", libgtk4), UInt32, (Ptr{GskStroke},), instance) - ret2 = LineJoin(ret) - ret2 - end - function get_line_width(instance::GskStroke) - ret = ccall(("gsk_stroke_get_line_width", libgtk4), Float32, (Ptr{GskStroke},), instance) - ret - end - function get_miter_limit(instance::GskStroke) - ret = ccall(("gsk_stroke_get_miter_limit", libgtk4), Float32, (Ptr{GskStroke},), instance) - ret - end - function set_dash(instance::GskStroke, _dash) - _dash_arr = convert(Vector{Float32}, _dash) - _n_dash = length(_dash) - ret = ccall(("gsk_stroke_set_dash", libgtk4), Nothing, (Ptr{GskStroke}, Ptr{Float32}, UInt64), instance, _dash_arr, _n_dash) - nothing - end - function set_dash_offset(instance::GskStroke, _offset::Real) - ret = ccall(("gsk_stroke_set_dash_offset", libgtk4), Nothing, (Ptr{GskStroke}, Float32), instance, _offset) - nothing - end - function set_line_cap(instance::GskStroke, _line_cap) - ret = ccall(("gsk_stroke_set_line_cap", libgtk4), Nothing, (Ptr{GskStroke}, UInt32), instance, _line_cap) - nothing - end - function set_line_join(instance::GskStroke, _line_join) - ret = ccall(("gsk_stroke_set_line_join", libgtk4), Nothing, (Ptr{GskStroke}, UInt32), instance, _line_join) - nothing - end - function set_line_width(instance::GskStroke, _line_width::Real) - ret = ccall(("gsk_stroke_set_line_width", libgtk4), Nothing, (Ptr{GskStroke}, Float32), instance, _line_width) - nothing - end - function set_miter_limit(instance::GskStroke, _limit::Real) - ret = ccall(("gsk_stroke_set_miter_limit", libgtk4), Nothing, (Ptr{GskStroke}, Float32), instance, _limit) - nothing - end - function to_cairo(instance::GskStroke, _cr::cairoContext) - ret = ccall(("gsk_stroke_to_cairo", libgtk4), Nothing, (Ptr{GskStroke}, Ptr{cairoContext}), instance, _cr) - nothing - end function Transform_new() ret = ccall(("gsk_transform_new", libgtk4), Ptr{GskTransform}, ()) ret2 = convert(GskTransform, ret, true) @@ -833,26 +466,6 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, false) ret2 end - function FillNode_new(_child::GskRenderNode, _path::GskPath, _fill_rule) - ret = ccall(("gsk_fill_node_new", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode}, Ptr{GskPath}, UInt32), _child, _path, _fill_rule) - ret2 = convert(GskRenderNode, ret) - ret2 - end - function get_child(instance::GskFillNode) - ret = ccall(("gsk_fill_node_get_child", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode},), instance) - ret2 = convert(GskRenderNode, ret) - ret2 - end - function get_fill_rule(instance::GskFillNode) - ret = ccall(("gsk_fill_node_get_fill_rule", libgtk4), UInt32, (Ptr{GskRenderNode},), instance) - ret2 = FillRule(ret) - ret2 - end - function get_path(instance::GskFillNode) - ret = ccall(("gsk_fill_node_get_path", libgtk4), Ptr{GskPath}, (Ptr{GskRenderNode},), instance) - ret2 = convert(GskPath, ret, false) - ret2 - end function GLRenderer_new() ret = ccall(("gsk_gl_renderer_new", libgtk4), Ptr{GObject}, ()) ret2 = GskGLRendererLeaf(ret, true) @@ -1138,21 +751,6 @@ $(Expr(:toplevel, quote ret = ccall(("gsk_radial_gradient_node_get_vradius", libgtk4), Float32, (Ptr{GskRenderNode},), instance) ret end - function deserialize(_bytes::GBytes, _error_func::Maybe(Function)) - if _error_func === nothing - _error_func_cfunc = C_NULL - _error_func_closure = C_NULL - else - _error_func_cfunc = @cfunction(GskParseErrorFunc, Nothing, (Ptr{_GskParseLocation}, Ptr{_GskParseLocation}, Ptr{GError}, Ref{Function})) - begin - ref = Ref{Any}(_error_func) - _error_func_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) - end - end - ret = ccall(("gsk_render_node_deserialize", libgtk4), Ptr{GskRenderNode}, (Ptr{GBytes}, Ptr{Cvoid}, Ptr{Nothing}), _bytes, _error_func_cfunc, _error_func_closure) - ret2 = convert(GskRenderNode, ret) - ret2 - end function draw(instance::GskRenderNode, _cr::cairoContext) ret = ccall(("gsk_render_node_draw", libgtk4), Nothing, (Ptr{GskRenderNode}, Ptr{cairoContext}), instance, _cr) nothing @@ -1300,31 +898,6 @@ $(Expr(:toplevel, quote ret2 = convert(GskShadowLike, ret) ret2 end - function StrokeNode_new(_child::GskRenderNode, _path::GskPath, _stroke::GskStroke) - ret = ccall(("gsk_stroke_node_new", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode}, Ptr{GskPath}, Ptr{GskStroke}), _child, _path, _stroke) - ret2 = convert(GskRenderNode, ret) - ret2 - end - function get_child(instance::GskStrokeNode) - ret = ccall(("gsk_stroke_node_get_child", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode},), instance) - ret2 = convert(GskRenderNode, ret) - ret2 - end - function get_path(instance::GskStrokeNode) - ret = ccall(("gsk_stroke_node_get_path", libgtk4), Ptr{GskPath}, (Ptr{GskRenderNode},), instance) - ret2 = convert(GskPath, ret, false) - ret2 - end - function get_stroke(instance::GskStrokeNode) - ret = ccall(("gsk_stroke_node_get_stroke", libgtk4), Ptr{GskStroke}, (Ptr{GskRenderNode},), instance) - ret2 = convert(GskStroke, ret, false) - ret2 - end - function get_child(instance::GskSubsurfaceNode) - ret = ccall(("gsk_subsurface_node_get_child", libgtk4), Ptr{GskRenderNode}, (Ptr{GskRenderNode},), instance) - ret2 = convert(GskRenderNode, ret) - ret2 - end function TextNode_new(_font::PangoFont, _glyphs::PangoGlyphStringLike, _color::GdkRGBALike, _offset::GraphenePointLike) ret = ccall(("gsk_text_node_new", libgtk4), Ptr{GskRenderNode}, (Ptr{GObject}, Ptr{_PangoGlyphString}, Ptr{_GdkRGBA}, Ptr{_GraphenePoint}), _font, _glyphs, _color, _offset) ret2 = convert(GskRenderNode, ret) diff --git a/src/gen/gsk4_structs b/src/gen/gsk4_structs index c48e7199..def413bf 100644 --- a/src/gen/gsk4_structs +++ b/src/gen/gsk4_structs @@ -39,90 +39,6 @@ $(Expr(:toplevel, quote const GskParseLocationLike = Union{Ref{_GskParseLocation}, GskParseLocation} end end - begin - mutable struct GskPath <: GBoxed - handle::Ptr{GskPath} - begin - (GLib.g_type(::Type{T}) where T <: GskPath) = begin - ccall(("gsk_path_get_type", libgtk4), GType, ()) - end - function GskPath(ref::Ptr{T}, own::Bool = false) where T <: GBoxed - x = new(ref) - if own - finalizer(x) do x - GLib.delboxed(x) - end - end - x - end - push!(gboxed_types, GskPath) - end - end - const GskPathLike = GskPath - end - begin - mutable struct GskPathBuilder <: GBoxed - handle::Ptr{GskPathBuilder} - begin - (GLib.g_type(::Type{T}) where T <: GskPathBuilder) = begin - ccall(("gsk_path_builder_get_type", libgtk4), GType, ()) - end - function GskPathBuilder(ref::Ptr{T}, own::Bool = false) where T <: GBoxed - x = new(ref) - if own - finalizer(x) do x - GLib.delboxed(x) - end - end - x - end - push!(gboxed_types, GskPathBuilder) - end - end - const GskPathBuilderLike = GskPathBuilder - end - begin - mutable struct GskPathMeasure <: GBoxed - handle::Ptr{GskPathMeasure} - begin - (GLib.g_type(::Type{T}) where T <: GskPathMeasure) = begin - ccall(("gsk_path_measure_get_type", libgtk4), GType, ()) - end - function GskPathMeasure(ref::Ptr{T}, own::Bool = false) where T <: GBoxed - x = new(ref) - if own - finalizer(x) do x - GLib.delboxed(x) - end - end - x - end - push!(gboxed_types, GskPathMeasure) - end - end - const GskPathMeasureLike = GskPathMeasure - end - begin - mutable struct GskPathPoint <: GBoxed - handle::Ptr{GskPathPoint} - begin - (GLib.g_type(::Type{T}) where T <: GskPathPoint) = begin - ccall(("gsk_path_point_get_type", libgtk4), GType, ()) - end - function GskPathPoint(ref::Ptr{T}, own::Bool = false) where T <: GBoxed - x = new(ref) - if own - finalizer(x) do x - GLib.delboxed(x) - end - end - x - end - push!(gboxed_types, GskPathPoint) - end - end - const GskPathPointLike = GskPathPoint - end begin mutable struct GskRoundedRect handle::Ptr{GskRoundedRect} @@ -171,27 +87,6 @@ $(Expr(:toplevel, quote const GskShadowLike = Union{Ref{_GskShadow}, GskShadow} end end - begin - mutable struct GskStroke <: GBoxed - handle::Ptr{GskStroke} - begin - (GLib.g_type(::Type{T}) where T <: GskStroke) = begin - ccall(("gsk_stroke_get_type", libgtk4), GType, ()) - end - function GskStroke(ref::Ptr{T}, own::Bool = false) where T <: GBoxed - x = new(ref) - if own - finalizer(x) do x - GLib.delboxed(x) - end - end - x - end - push!(gboxed_types, GskStroke) - end - end - const GskStrokeLike = GskStroke - end begin mutable struct GskTransform <: GBoxed handle::Ptr{GskTransform} @@ -215,14 +110,9 @@ $(Expr(:toplevel, quote end @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.ColorStop.html)." GskColorStop @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.ParseLocation.html)." GskParseLocation - @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.Path.html)." GskPath - @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.PathBuilder.html)." GskPathBuilder - @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.PathMeasure.html)." GskPathMeasure - @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.PathPoint.html)." GskPathPoint @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.RoundedRect.html)." GskRoundedRect @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.ShaderArgsBuilder.html)." GskShaderArgsBuilder @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.Shadow.html)." GskShadow - @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.Stroke.html)." GskStroke @doc "See the [GTK docs](https://docs.gtk.org/gsk4/struct.Transform.html)." GskTransform begin abstract type GskRenderNode <: GTypeInstance end @@ -392,14 +282,6 @@ $(Expr(:toplevel, quote handle::Ptr{GskRenderNode} end end - begin - abstract type GskFillNode <: GskRenderNode end - end - begin - mutable struct GskFillNodeLeaf <: GskFillNode - handle::Ptr{GskRenderNode} - end - end begin abstract type GskGLRenderer <: GskRenderer end mutable struct GskGLRendererLeaf <: GskGLRenderer @@ -562,22 +444,6 @@ $(Expr(:toplevel, quote handle::Ptr{GskRenderNode} end end - begin - abstract type GskStrokeNode <: GskRenderNode end - end - begin - mutable struct GskStrokeNodeLeaf <: GskStrokeNode - handle::Ptr{GskRenderNode} - end - end - begin - abstract type GskSubsurfaceNode <: GskRenderNode end - end - begin - mutable struct GskSubsurfaceNodeLeaf <: GskSubsurfaceNode - handle::Ptr{GskRenderNode} - end - end begin abstract type GskTextNode <: GskRenderNode end end @@ -671,9 +537,6 @@ $(Expr(:toplevel, quote function GskDebugNode(_child::GskRenderNode, _message::Union{AbstractString, Symbol}) G_.DebugNode_new(_child, _message) end - function GskFillNode(_child::GskRenderNode, _path::GskPath, _fill_rule) - G_.FillNode_new(_child, _path, _fill_rule) - end function GskGLRenderer() G_.GLRenderer_new() end @@ -731,9 +594,6 @@ $(Expr(:toplevel, quote function GskShadowNode(_child::GskRenderNode, _shadows) G_.ShadowNode_new(_child, _shadows) end - function GskStrokeNode(_child::GskRenderNode, _path::GskPath, _stroke::GskStroke) - G_.StrokeNode_new(_child, _path, _stroke) - end function GskTextNode(_font::PangoFont, _glyphs::PangoGlyphStringLike, _color::GdkRGBALike, _offset::GraphenePointLike) G_.TextNode_new(_font, _glyphs, _color, _offset) end @@ -749,21 +609,9 @@ $(Expr(:toplevel, quote function GskVulkanRenderer() G_.VulkanRenderer_new() end - function GskPathBuilder() - G_.PathBuilder_new() - end - function GskPathMeasure(_path::GskPath) - G_.PathMeasure_new(_path) - end - function GskPathMeasure(_path::GskPath, _tolerance::Real) - G_.PathMeasure_new_with_tolerance(_path, _tolerance) - end function GskShaderArgsBuilder(_shader::GskGLShader, _initial_values::Maybe(GBytes)) G_.ShaderArgsBuilder_new(_shader, _initial_values) end - function GskStroke(_line_width::Real) - G_.Stroke_new(_line_width) - end function GskTransform() G_.Transform_new() end @@ -779,7 +627,6 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.ContainerNode.html)." GskContainerNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.CrossFadeNode.html)." GskCrossFadeNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.DebugNode.html)." GskDebugNode - @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.FillNode.html)." GskFillNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.GLShader.html)." GskGLShader @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.GLShaderNode.html)." GskGLShaderNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.InsetShadowNode.html)." GskInsetShadowNode @@ -795,13 +642,11 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.RepeatingRadialGradientNode.html)." GskRepeatingRadialGradientNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.RoundedClipNode.html)." GskRoundedClipNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.ShadowNode.html)." GskShadowNode - @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.StrokeNode.html)." GskStrokeNode - @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.SubsurfaceNode.html)." GskSubsurfaceNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.TextNode.html)." GskTextNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.TextureNode.html)." GskTextureNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.TextureScaleNode.html)." GskTextureScaleNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.TransformNode.html)." GskTransformNode @doc "See the [GTK docs](https://docs.gtk.org/gsk4/class.VulkanRenderer.html)." GskVulkanRenderer - export GskColorStop, GskColorStopLike, _GskColorStop, GskParseLocation, GskParseLocationLike, _GskParseLocation, GskPath, GskPathBuilder, GskPathMeasure, GskPathPoint, GskRoundedRect, GskRoundedRectLike, _GskRoundedRect, GskShaderArgsBuilder, GskShadow, GskShadowLike, _GskShadow, GskStroke, GskTransform, GskBlendNode, GskBlendNodeLeaf, GskBlurNode, GskBlurNodeLeaf, GskBorderNode, GskBorderNodeLeaf, GskBroadwayRenderer, GskBroadwayRendererLeaf, GskCairoNode, GskCairoNodeLeaf, GskCairoRenderer, GskCairoRendererLeaf, GskClipNode, GskClipNodeLeaf, GskColorMatrixNode, GskColorMatrixNodeLeaf, GskColorNode, GskColorNodeLeaf, GskConicGradientNode, GskConicGradientNodeLeaf, GskContainerNode, GskContainerNodeLeaf, GskCrossFadeNode, GskCrossFadeNodeLeaf, GskDebugNode, GskDebugNodeLeaf, GskFillNode, GskFillNodeLeaf, GskGLRenderer, GskGLRendererLeaf, GskGLShader, GskGLShaderLeaf, GskGLShaderNode, GskGLShaderNodeLeaf, GskInsetShadowNode, GskInsetShadowNodeLeaf, GskLinearGradientNode, GskLinearGradientNodeLeaf, GskMaskNode, GskMaskNodeLeaf, GskNglRenderer, GskNglRendererLeaf, GskOpacityNode, GskOpacityNodeLeaf, GskOutsetShadowNode, GskOutsetShadowNodeLeaf, GskRadialGradientNode, GskRadialGradientNodeLeaf, GskRenderNode, GskRenderer, GskRepeatNode, GskRepeatNodeLeaf, GskRepeatingLinearGradientNode, GskRepeatingLinearGradientNodeLeaf, GskRepeatingRadialGradientNode, GskRepeatingRadialGradientNodeLeaf, GskRoundedClipNode, GskRoundedClipNodeLeaf, GskShadowNode, GskShadowNodeLeaf, GskStrokeNode, GskStrokeNodeLeaf, GskSubsurfaceNode, GskSubsurfaceNodeLeaf, GskTextNode, GskTextNodeLeaf, GskTextureNode, GskTextureNodeLeaf, GskTextureScaleNode, GskTextureScaleNodeLeaf, GskTransformNode, GskTransformNodeLeaf, GskVulkanRenderer, GskVulkanRendererLeaf + export GskColorStop, GskColorStopLike, _GskColorStop, GskParseLocation, GskParseLocationLike, _GskParseLocation, GskRoundedRect, GskRoundedRectLike, _GskRoundedRect, GskShaderArgsBuilder, GskShadow, GskShadowLike, _GskShadow, GskTransform, GskBlendNode, GskBlendNodeLeaf, GskBlurNode, GskBlurNodeLeaf, GskBorderNode, GskBorderNodeLeaf, GskBroadwayRenderer, GskBroadwayRendererLeaf, GskCairoNode, GskCairoNodeLeaf, GskCairoRenderer, GskCairoRendererLeaf, GskClipNode, GskClipNodeLeaf, GskColorMatrixNode, GskColorMatrixNodeLeaf, GskColorNode, GskColorNodeLeaf, GskConicGradientNode, GskConicGradientNodeLeaf, GskContainerNode, GskContainerNodeLeaf, GskCrossFadeNode, GskCrossFadeNodeLeaf, GskDebugNode, GskDebugNodeLeaf, GskGLRenderer, GskGLRendererLeaf, GskGLShader, GskGLShaderLeaf, GskGLShaderNode, GskGLShaderNodeLeaf, GskInsetShadowNode, GskInsetShadowNodeLeaf, GskLinearGradientNode, GskLinearGradientNodeLeaf, GskMaskNode, GskMaskNodeLeaf, GskNglRenderer, GskNglRendererLeaf, GskOpacityNode, GskOpacityNodeLeaf, GskOutsetShadowNode, GskOutsetShadowNodeLeaf, GskRadialGradientNode, GskRadialGradientNodeLeaf, GskRenderNode, GskRenderer, GskRepeatNode, GskRepeatNodeLeaf, GskRepeatingLinearGradientNode, GskRepeatingLinearGradientNodeLeaf, GskRepeatingRadialGradientNode, GskRepeatingRadialGradientNodeLeaf, GskRoundedClipNode, GskRoundedClipNodeLeaf, GskShadowNode, GskShadowNodeLeaf, GskTextNode, GskTextNodeLeaf, GskTextureNode, GskTextureNodeLeaf, GskTextureScaleNode, GskTextureScaleNodeLeaf, GskTransformNode, GskTransformNodeLeaf, GskVulkanRenderer, GskVulkanRendererLeaf end)) end diff --git a/src/gen/gtk4_consts b/src/gen/gtk4_consts index d900c15d..1f821592 100644 --- a/src/gen/gtk4_consts +++ b/src/gen/gtk4_consts @@ -37,10 +37,10 @@ $(Expr(:toplevel, quote const ACCESSIBLE_ATTRIBUTE_VARIANT_UNICASE = "unicase" const ACCESSIBLE_ATTRIBUTE_WEIGHT = "weight" const ACCESSIBLE_VALUE_UNDEFINED = -1 - const BINARY_AGE = 1404 + const BINARY_AGE = 1405 const IM_MODULE_EXTENSION_POINT_NAME = "gtk-im-module" const INPUT_ERROR = -1 - const INTERFACE_AGE = 4 + const INTERFACE_AGE = 5 const INVALID_LIST_POSITION = 0xffffffff const LEVEL_BAR_OFFSET_FULL = "full" const LEVEL_BAR_OFFSET_HIGH = "high" @@ -48,7 +48,7 @@ $(Expr(:toplevel, quote const MAJOR_VERSION = 4 const MAX_COMPOSE_LEN = 7 const MEDIA_FILE_EXTENSION_POINT_NAME = "gtk-media-file" - const MICRO_VERSION = 4 + const MICRO_VERSION = 5 const MINOR_VERSION = 14 const PAPER_NAME_A3 = "iso_a3" const PAPER_NAME_A4 = "iso_a4" diff --git a/src/gen/gtk4_methods b/src/gen/gtk4_methods index 13628094..d39bc73e 100644 --- a/src/gen/gtk4_methods +++ b/src/gen/gtk4_methods @@ -17390,10 +17390,6 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_snapshot_append_conic_gradient", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GrapheneRect}, Ptr{_GraphenePoint}, Float32, Ptr{_GskColorStop}, UInt64), instance, _bounds, _center, _rotation, _stops_arr, _n_stops) nothing end - function append_fill(instance::GtkSnapshot, _path::GskPath, _fill_rule, _color::GdkRGBALike) - ret = ccall(("gtk_snapshot_append_fill", libgtk4), Nothing, (Ptr{GObject}, Ptr{GskPath}, UInt32, Ptr{_GdkRGBA}), instance, _path, _fill_rule, _color) - nothing - end function append_inset_shadow(instance::GtkSnapshot, _outline::GskRoundedRectLike, _color::GdkRGBALike, _dx::Real, _dy::Real, _spread::Real, _blur_radius::Real) ret = ccall(("gtk_snapshot_append_inset_shadow", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GskRoundedRect}, Ptr{_GdkRGBA}, Float32, Float32, Float32, Float32), instance, _outline, _color, _dx, _dy, _spread, _blur_radius) nothing @@ -17434,10 +17430,6 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_snapshot_append_scaled_texture", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, UInt32, Ptr{_GrapheneRect}), instance, _texture, _filter, _bounds) nothing end - function append_stroke(instance::GtkSnapshot, _path::GskPath, _stroke::GskStroke, _color::GdkRGBALike) - ret = ccall(("gtk_snapshot_append_stroke", libgtk4), Nothing, (Ptr{GObject}, Ptr{GskPath}, Ptr{GskStroke}, Ptr{_GdkRGBA}), instance, _path, _stroke, _color) - nothing - end function append_texture(instance::GtkSnapshot, _texture::GdkTexture, _bounds::GrapheneRectLike) ret = ccall(("gtk_snapshot_append_texture", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Ptr{_GrapheneRect}), instance, _texture, _bounds) nothing @@ -17474,10 +17466,6 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_snapshot_push_cross_fade", libgtk4), Nothing, (Ptr{GObject}, Float64), instance, _progress) nothing end - function push_fill(instance::GtkSnapshot, _path::GskPath, _fill_rule) - ret = ccall(("gtk_snapshot_push_fill", libgtk4), Nothing, (Ptr{GObject}, Ptr{GskPath}, UInt32), instance, _path, _fill_rule) - nothing - end function push_gl_shader(instance::GtkSnapshot, _shader::GskGLShader, _bounds::GrapheneRectLike, _take_args::GBytes) ret = ccall(("gtk_snapshot_push_gl_shader", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Ptr{_GrapheneRect}, Ptr{GBytes}), instance, _shader, _bounds, _take_args) nothing @@ -17505,10 +17493,6 @@ $(Expr(:toplevel, quote ret = ccall(("gtk_snapshot_push_shadow", libgtk4), Nothing, (Ptr{GObject}, Ptr{_GskShadow}, UInt64), instance, _shadow_arr, _n_shadows) nothing end - function push_stroke(instance::GtkSnapshot, _path::GskPath, _stroke::GskStroke) - ret = ccall(("gtk_snapshot_push_stroke", libgtk4), Nothing, (Ptr{GObject}, Ptr{GskPath}, Ptr{GskStroke}), instance, _path, _stroke) - nothing - end function render_background(instance::GtkSnapshot, _context::GtkStyleContext, _x::Real, _y::Real, _width::Real, _height::Real) ret = ccall(("gtk_snapshot_render_background", libgtk4), Nothing, (Ptr{GObject}, Ptr{GObject}, Float64, Float64, Float64, Float64), instance, _context, _x, _y, _width, _height) nothing