Skip to content

Commit

Permalink
generate code for other libs
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand committed Jul 16, 2023
1 parent d7bd00b commit 02f4d66
Show file tree
Hide file tree
Showing 15 changed files with 1,477 additions and 1,124 deletions.
1 change: 1 addition & 0 deletions gen/gen_gdk4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ object_skiplist=Symbol[]
c = GI.all_objects!(exprs,exports,ns,skiplist=object_skiplist;print_summary=true,constructor_skiplist=[:new_from_resource])
GI.append_object_docs!(exprs, "gdk4", d, c, ns)
GI.all_interfaces!(exprs,exports,ns)
GI.all_callbacks!(exprs, exports, ns)

push!(exprs,exports)

Expand Down
1 change: 1 addition & 0 deletions gen/gen_gtk4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ object_skiplist=[:CClosureExpression,:ClosureExpression,:ConstantExpression,:Obj
GI.all_interfaces!(exprs,exports,ns)
c = GI.all_objects!(exprs,exports,ns,skiplist=object_skiplist,constructor_skiplist=[:new_from_resource,:new_with_mnemonic,:new_with_text,:new_with_entry,:new_with_model_and_entry,:new_for_resource,:new_from_icon_name],output_cache_define=false,output_cache_init=false)
GI.append_object_docs!(exprs, "gtk4", d, c, ns)
GI.all_callbacks!(exprs, exports, ns)

push!(exprs,exports)

Expand Down
1 change: 1 addition & 0 deletions gen/gen_pango.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ struct_skiplist,c = GI.all_struct_exprs!(exprs,exports,ns;excludelist=struct_ski

GI.all_objects!(exprs,exports,ns)
GI.all_interfaces!(exprs,exports,ns)
GI.all_callbacks!(exprs, exports, ns)

push!(exprs,exports)

Expand Down
30 changes: 20 additions & 10 deletions src/gen/gdk4_functions
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ $(Expr(:toplevel, quote
ret = ccall(("gdk_cairo_set_source_rgba", libgtk4), Nothing, (Ptr{cairoContext}, Ptr{_GdkRGBA}), _cr, _rgba)
nothing
end
function content_deserialize_async(_stream::GInputStream, _mime_type::Union{AbstractString, Symbol}, _type::Integer, _io_priority::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function), _user_data::Maybe(Nothing))
_cancellable = nothing_to_null(_cancellable)
_callback = nothing_to_null(_callback)
_user_data = nothing_to_null(_user_data)
ret = ccall(("gdk_content_deserialize_async", libgtk4), Nothing, (Ptr{GObject}, Cstring, UInt64, Int32, Ptr{GObject}, Ptr{Nothing}, Ptr{Nothing}), _stream, _mime_type, _type, _io_priority, _cancellable, _callback, _user_data)
function content_deserialize_async(_stream::GInputStream, _mime_type::Union{AbstractString, Symbol}, _type::Integer, _io_priority::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function))
_cancellable_maybe = nothing_to_null(_cancellable)
if _callback === nothing
_callback_cfunc = C_NULL
_callback_closure = C_NULL
else
_callback_cfunc = @cfunction(GAsyncReadyCallback, Nothing, (Ptr{GObject}, Ptr{GObject}, Ref{Function}))
_callback_closure = GLib.gc_ref(_callback)
end
ret = ccall(("gdk_content_deserialize_async", libgtk4), Nothing, (Ptr{GObject}, Cstring, UInt64, Int32, Ptr{GObject}, Ptr{Cvoid}, Ptr{Nothing}), _stream, _mime_type, _type, _io_priority, _cancellable_maybe, _callback_cfunc, _callback_closure)
nothing
end
function content_deserialize_finish(_result::GAsyncResult)
Expand All @@ -42,11 +47,16 @@ $(Expr(:toplevel, quote
ret2 = convert_if_not_null(GdkContentFormats, ret, true)
ret2
end
function content_serialize_async(_stream::GOutputStream, _mime_type::Union{AbstractString, Symbol}, _value::Union{GValue, Ref{_GValue}}, _io_priority::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function), _user_data::Maybe(Nothing))
_cancellable = nothing_to_null(_cancellable)
_callback = nothing_to_null(_callback)
_user_data = nothing_to_null(_user_data)
ret = ccall(("gdk_content_serialize_async", libgtk4), Nothing, (Ptr{GObject}, Cstring, Ptr{_GValue}, Int32, Ptr{GObject}, Ptr{Nothing}, Ptr{Nothing}), _stream, _mime_type, _value, _io_priority, _cancellable, _callback, _user_data)
function content_serialize_async(_stream::GOutputStream, _mime_type::Union{AbstractString, Symbol}, _value::Union{GValue, Ref{_GValue}}, _io_priority::Integer, _cancellable::Maybe(GCancellable), _callback::Maybe(Function))
_cancellable_maybe = nothing_to_null(_cancellable)
if _callback === nothing
_callback_cfunc = C_NULL
_callback_closure = C_NULL
else
_callback_cfunc = @cfunction(GAsyncReadyCallback, Nothing, (Ptr{GObject}, Ptr{GObject}, Ref{Function}))
_callback_closure = GLib.gc_ref(_callback)
end
ret = ccall(("gdk_content_serialize_async", libgtk4), Nothing, (Ptr{GObject}, Cstring, Ptr{_GValue}, Int32, Ptr{GObject}, Ptr{Cvoid}, Ptr{Nothing}), _stream, _mime_type, _value, _io_priority, _cancellable_maybe, _callback_cfunc, _callback_closure)
nothing
end
function content_serialize_finish(_result::GAsyncResult)
Expand Down
Loading

0 comments on commit 02f4d66

Please sign in to comment.