Gen: re-run gen script
- commit
- c67787de90f19ca2312a202e6b7fbdc9e0a6e7e5
- author
- Jeroen Wijenbergh · · 2024-12-18 13:19 UTC
- committer
- Jeroen Wijenbergh · · 2025-04-07 12:23 UTC
- parent
- 0299370
- signature
- unsigned
650 files · +8729 -4
M v4/adw/adw-about-window.go +10 -0
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | "github.com/jwijenbergh/puregotk/v4/gsk" | |
| 13 | 14 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 14 | 15 | ) | |
| @@ -205,6 +206,12 @@ type AboutWindow struct { | |||
| 205 | 206 | Window | |
| 206 | 207 | } | |
| 207 | 208 | ||
| 209 | + | var xAboutWindowGLibType func() types.GType | |
| 210 | + | ||
| 211 | + | func AboutWindowGLibType() types.GType { | |
| 212 | + | return xAboutWindowGLibType() | |
| 213 | + | } | |
| 214 | + | ||
| 208 | 215 | func AboutWindowNewFromInternalPtr(ptr uintptr) *AboutWindow { | |
| 209 | 216 | cls := &AboutWindow{} | |
| 210 | 217 | cls.Ptr = ptr | |
| @@ -1180,8 +1187,11 @@ func init() { | |||
| 1180 | 1187 | if err != nil { | |
| 1181 | 1188 | panic(err) | |
| 1182 | 1189 | } | |
| 1190 | + | ||
| 1183 | 1191 | core.PuregoSafeRegister(&xShowAboutWindow, lib, "adw_show_about_window") | |
| 1184 | 1192 | ||
| 1193 | + | core.PuregoSafeRegister(&xAboutWindowGLibType, lib, "adw_about_window_get_type") | |
| 1194 | + | ||
| 1185 | 1195 | core.PuregoSafeRegister(&xNewAboutWindow, lib, "adw_about_window_new") | |
| 1186 | 1196 | ||
| 1187 | 1197 | core.PuregoSafeRegister(&xAboutWindowAddAcknowledgementSection, lib, "adw_about_window_add_acknowledgement_section") | |
M v4/adw/adw-action-row.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -61,6 +62,12 @@ type ActionRow struct { | |||
| 61 | 62 | PreferencesRow | |
| 62 | 63 | } | |
| 63 | 64 | ||
| 65 | + | var xActionRowGLibType func() types.GType | |
| 66 | + | ||
| 67 | + | func ActionRowGLibType() types.GType { | |
| 68 | + | return xActionRowGLibType() | |
| 69 | + | } | |
| 70 | + | ||
| 64 | 71 | func ActionRowNewFromInternalPtr(ptr uintptr) *ActionRow { | |
| 65 | 72 | cls := &ActionRow{} | |
| 66 | 73 | cls.Ptr = ptr | |
| @@ -516,6 +523,8 @@ func init() { | |||
| 516 | 523 | panic(err) | |
| 517 | 524 | } | |
| 518 | 525 | ||
| 526 | + | core.PuregoSafeRegister(&xActionRowGLibType, lib, "adw_action_row_get_type") | |
| 527 | + | ||
| 519 | 528 | core.PuregoSafeRegister(&xNewActionRow, lib, "adw_action_row_new") | |
| 520 | 529 | ||
| 521 | 530 | core.PuregoSafeRegister(&xActionRowActivate, lib, "adw_action_row_activate") | |
M v4/adw/adw-animation-target.go +25 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Prototype for animation targets based on user callbacks. | |
| @@ -39,6 +40,12 @@ type AnimationTarget struct { | |||
| 39 | 40 | gobject.Object | |
| 40 | 41 | } | |
| 41 | 42 | ||
| 43 | + | var xAnimationTargetGLibType func() types.GType | |
| 44 | + | ||
| 45 | + | func AnimationTargetGLibType() types.GType { | |
| 46 | + | return xAnimationTargetGLibType() | |
| 47 | + | } | |
| 48 | + | ||
| 42 | 49 | func AnimationTargetNewFromInternalPtr(ptr uintptr) *AnimationTarget { | |
| 43 | 50 | cls := &AnimationTarget{} | |
| 44 | 51 | cls.Ptr = ptr | |
| @@ -59,6 +66,12 @@ type CallbackAnimationTarget struct { | |||
| 59 | 66 | AnimationTarget | |
| 60 | 67 | } | |
| 61 | 68 | ||
| 69 | + | var xCallbackAnimationTargetGLibType func() types.GType | |
| 70 | + | ||
| 71 | + | func CallbackAnimationTargetGLibType() types.GType { | |
| 72 | + | return xCallbackAnimationTargetGLibType() | |
| 73 | + | } | |
| 74 | + | ||
| 62 | 75 | func CallbackAnimationTargetNewFromInternalPtr(ptr uintptr) *CallbackAnimationTarget { | |
| 63 | 76 | cls := &CallbackAnimationTarget{} | |
| 64 | 77 | cls.Ptr = ptr | |
| @@ -96,6 +109,12 @@ type PropertyAnimationTarget struct { | |||
| 96 | 109 | AnimationTarget | |
| 97 | 110 | } | |
| 98 | 111 | ||
| 112 | + | var xPropertyAnimationTargetGLibType func() types.GType | |
| 113 | + | ||
| 114 | + | func PropertyAnimationTargetGLibType() types.GType { | |
| 115 | + | return xPropertyAnimationTargetGLibType() | |
| 116 | + | } | |
| 117 | + | ||
| 99 | 118 | func PropertyAnimationTargetNewFromInternalPtr(ptr uintptr) *PropertyAnimationTarget { | |
| 100 | 119 | cls := &PropertyAnimationTarget{} | |
| 101 | 120 | cls.Ptr = ptr | |
| @@ -188,8 +207,14 @@ func init() { | |||
| 188 | 207 | panic(err) | |
| 189 | 208 | } | |
| 190 | 209 | ||
| 210 | + | core.PuregoSafeRegister(&xAnimationTargetGLibType, lib, "adw_animation_target_get_type") | |
| 211 | + | ||
| 212 | + | core.PuregoSafeRegister(&xCallbackAnimationTargetGLibType, lib, "adw_callback_animation_target_get_type") | |
| 213 | + | ||
| 191 | 214 | core.PuregoSafeRegister(&xNewCallbackAnimationTarget, lib, "adw_callback_animation_target_new") | |
| 192 | 215 | ||
| 216 | + | core.PuregoSafeRegister(&xPropertyAnimationTargetGLibType, lib, "adw_property_animation_target_get_type") | |
| 217 | + | ||
| 193 | 218 | core.PuregoSafeRegister(&xNewPropertyAnimationTarget, lib, "adw_property_animation_target_new") | |
| 194 | 219 | core.PuregoSafeRegister(&xNewPropertyAnimationTargetForPspec, lib, "adw_property_animation_target_new_for_pspec") | |
| 195 | 220 | ||
M v4/adw/adw-animation-util.go +1 -0
| @@ -33,6 +33,7 @@ func init() { | |||
| 33 | 33 | if err != nil { | |
| 34 | 34 | panic(err) | |
| 35 | 35 | } | |
| 36 | + | ||
| 36 | 37 | core.PuregoSafeRegister(&xGetEnableAnimations, lib, "adw_get_enable_animations") | |
| 37 | 38 | core.PuregoSafeRegister(&xLerp, lib, "adw_lerp") | |
| 38 | 39 | ||
M v4/adw/adw-animation.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -32,6 +33,12 @@ const ( | |||
| 32 | 33 | // [method@Animation.reset] and [method@Animation.skip]. | |
| 33 | 34 | type AnimationState int | |
| 34 | 35 | ||
| 36 | + | var xAnimationStateGLibType func() types.GType | |
| 37 | + | ||
| 38 | + | func AnimationStateGLibType() types.GType { | |
| 39 | + | return xAnimationStateGLibType() | |
| 40 | + | } | |
| 41 | + | ||
| 35 | 42 | const ( | |
| 36 | 43 | ||
| 37 | 44 | // The animation hasn't started yet. | |
| @@ -97,6 +104,12 @@ type Animation struct { | |||
| 97 | 104 | gobject.Object | |
| 98 | 105 | } | |
| 99 | 106 | ||
| 107 | + | var xAnimationGLibType func() types.GType | |
| 108 | + | ||
| 109 | + | func AnimationGLibType() types.GType { | |
| 110 | + | return xAnimationGLibType() | |
| 111 | + | } | |
| 112 | + | ||
| 100 | 113 | func AnimationNewFromInternalPtr(ptr uintptr) *Animation { | |
| 101 | 114 | cls := &Animation{} | |
| 102 | 115 | cls.Ptr = ptr | |
| @@ -311,6 +324,10 @@ func init() { | |||
| 311 | 324 | panic(err) | |
| 312 | 325 | } | |
| 313 | 326 | ||
| 327 | + | core.PuregoSafeRegister(&xAnimationStateGLibType, lib, "adw_animation_state_get_type") | |
| 328 | + | ||
| 329 | + | core.PuregoSafeRegister(&xAnimationGLibType, lib, "adw_animation_get_type") | |
| 330 | + | ||
| 314 | 331 | core.PuregoSafeRegister(&xAnimationGetFollowEnableAnimationsSetting, lib, "adw_animation_get_follow_enable_animations_setting") | |
| 315 | 332 | core.PuregoSafeRegister(&xAnimationGetState, lib, "adw_animation_get_state") | |
| 316 | 333 | core.PuregoSafeRegister(&xAnimationGetTarget, lib, "adw_animation_get_target") | |
M v4/adw/adw-application-window.go +9 -0
| @@ -10,6 +10,7 @@ import ( | |||
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 13 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 13 | 14 | "github.com/jwijenbergh/puregotk/v4/gsk" | |
| 14 | 15 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 15 | 16 | ) | |
| @@ -44,6 +45,12 @@ type ApplicationWindow struct { | |||
| 44 | 45 | gtk.ApplicationWindow | |
| 45 | 46 | } | |
| 46 | 47 | ||
| 48 | + | var xApplicationWindowGLibType func() types.GType | |
| 49 | + | ||
| 50 | + | func ApplicationWindowGLibType() types.GType { | |
| 51 | + | return xApplicationWindowGLibType() | |
| 52 | + | } | |
| 53 | + | ||
| 47 | 54 | func ApplicationWindowNewFromInternalPtr(ptr uintptr) *ApplicationWindow { | |
| 48 | 55 | cls := &ApplicationWindow{} | |
| 49 | 56 | cls.Ptr = ptr | |
| @@ -679,6 +686,8 @@ func init() { | |||
| 679 | 686 | panic(err) | |
| 680 | 687 | } | |
| 681 | 688 | ||
| 689 | + | core.PuregoSafeRegister(&xApplicationWindowGLibType, lib, "adw_application_window_get_type") | |
| 690 | + | ||
| 682 | 691 | core.PuregoSafeRegister(&xNewApplicationWindow, lib, "adw_application_window_new") | |
| 683 | 692 | ||
| 684 | 693 | core.PuregoSafeRegister(&xApplicationWindowGetContent, lib, "adw_application_window_get_content") | |
M v4/adw/adw-application.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 13 | 14 | ) | |
| 14 | 15 | ||
| @@ -52,6 +53,12 @@ type Application struct { | |||
| 52 | 53 | gtk.Application | |
| 53 | 54 | } | |
| 54 | 55 | ||
| 56 | + | var xApplicationGLibType func() types.GType | |
| 57 | + | ||
| 58 | + | func ApplicationGLibType() types.GType { | |
| 59 | + | return xApplicationGLibType() | |
| 60 | + | } | |
| 61 | + | ||
| 55 | 62 | func ApplicationNewFromInternalPtr(ptr uintptr) *Application { | |
| 56 | 63 | cls := &Application{} | |
| 57 | 64 | cls.Ptr = ptr | |
| @@ -432,6 +439,8 @@ func init() { | |||
| 432 | 439 | panic(err) | |
| 433 | 440 | } | |
| 434 | 441 | ||
| 442 | + | core.PuregoSafeRegister(&xApplicationGLibType, lib, "adw_application_get_type") | |
| 443 | + | ||
| 435 | 444 | core.PuregoSafeRegister(&xNewApplication, lib, "adw_application_new") | |
| 436 | 445 | ||
| 437 | 446 | core.PuregoSafeRegister(&xApplicationGetStyleManager, lib, "adw_application_get_style_manager") | |
M v4/adw/adw-avatar.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -48,6 +49,12 @@ type Avatar struct { | |||
| 48 | 49 | gtk.Widget | |
| 49 | 50 | } | |
| 50 | 51 | ||
| 52 | + | var xAvatarGLibType func() types.GType | |
| 53 | + | ||
| 54 | + | func AvatarGLibType() types.GType { | |
| 55 | + | return xAvatarGLibType() | |
| 56 | + | } | |
| 57 | + | ||
| 51 | 58 | func AvatarNewFromInternalPtr(ptr uintptr) *Avatar { | |
| 52 | 59 | cls := &Avatar{} | |
| 53 | 60 | cls.Ptr = ptr | |
| @@ -353,6 +360,8 @@ func init() { | |||
| 353 | 360 | panic(err) | |
| 354 | 361 | } | |
| 355 | 362 | ||
| 363 | + | core.PuregoSafeRegister(&xAvatarGLibType, lib, "adw_avatar_get_type") | |
| 364 | + | ||
| 356 | 365 | core.PuregoSafeRegister(&xNewAvatar, lib, "adw_avatar_new") | |
| 357 | 366 | ||
| 358 | 367 | core.PuregoSafeRegister(&xAvatarDrawToTexture, lib, "adw_avatar_draw_to_texture") | |
M v4/adw/adw-banner.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -47,6 +48,12 @@ type Banner struct { | |||
| 47 | 48 | gtk.Widget | |
| 48 | 49 | } | |
| 49 | 50 | ||
| 51 | + | var xBannerGLibType func() types.GType | |
| 52 | + | ||
| 53 | + | func BannerGLibType() types.GType { | |
| 54 | + | return xBannerGLibType() | |
| 55 | + | } | |
| 56 | + | ||
| 50 | 57 | func BannerNewFromInternalPtr(ptr uintptr) *Banner { | |
| 51 | 58 | cls := &Banner{} | |
| 52 | 59 | cls.Ptr = ptr | |
| @@ -413,6 +420,8 @@ func init() { | |||
| 413 | 420 | panic(err) | |
| 414 | 421 | } | |
| 415 | 422 | ||
| 423 | + | core.PuregoSafeRegister(&xBannerGLibType, lib, "adw_banner_get_type") | |
| 424 | + | ||
| 416 | 425 | core.PuregoSafeRegister(&xNewBanner, lib, "adw_banner_new") | |
| 417 | 426 | ||
| 418 | 427 | core.PuregoSafeRegister(&xBannerGetButtonLabel, lib, "adw_banner_get_button_label") | |
M v4/adw/adw-bin.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -36,6 +37,12 @@ type Bin struct { | |||
| 36 | 37 | gtk.Widget | |
| 37 | 38 | } | |
| 38 | 39 | ||
| 40 | + | var xBinGLibType func() types.GType | |
| 41 | + | ||
| 42 | + | func BinGLibType() types.GType { | |
| 43 | + | return xBinGLibType() | |
| 44 | + | } | |
| 45 | + | ||
| 39 | 46 | func BinNewFromInternalPtr(ptr uintptr) *Bin { | |
| 40 | 47 | cls := &Bin{} | |
| 41 | 48 | cls.Ptr = ptr | |
| @@ -242,6 +249,8 @@ func init() { | |||
| 242 | 249 | panic(err) | |
| 243 | 250 | } | |
| 244 | 251 | ||
| 252 | + | core.PuregoSafeRegister(&xBinGLibType, lib, "adw_bin_get_type") | |
| 253 | + | ||
| 245 | 254 | core.PuregoSafeRegister(&xNewBin, lib, "adw_bin_new") | |
| 246 | 255 | ||
| 247 | 256 | core.PuregoSafeRegister(&xBinGetChild, lib, "adw_bin_get_child") | |
M v4/adw/adw-button-content.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -72,6 +73,12 @@ type ButtonContent struct { | |||
| 72 | 73 | gtk.Widget | |
| 73 | 74 | } | |
| 74 | 75 | ||
| 76 | + | var xButtonContentGLibType func() types.GType | |
| 77 | + | ||
| 78 | + | func ButtonContentGLibType() types.GType { | |
| 79 | + | return xButtonContentGLibType() | |
| 80 | + | } | |
| 81 | + | ||
| 75 | 82 | func ButtonContentNewFromInternalPtr(ptr uintptr) *ButtonContent { | |
| 76 | 83 | cls := &ButtonContent{} | |
| 77 | 84 | cls.Ptr = ptr | |
| @@ -312,6 +319,8 @@ func init() { | |||
| 312 | 319 | panic(err) | |
| 313 | 320 | } | |
| 314 | 321 | ||
| 322 | + | core.PuregoSafeRegister(&xButtonContentGLibType, lib, "adw_button_content_get_type") | |
| 323 | + | ||
| 315 | 324 | core.PuregoSafeRegister(&xNewButtonContent, lib, "adw_button_content_new") | |
| 316 | 325 | ||
| 317 | 326 | core.PuregoSafeRegister(&xButtonContentGetIconName, lib, "adw_button_content_get_icon_name") | |
M v4/adw/adw-carousel-indicator-dots.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -42,6 +43,12 @@ type CarouselIndicatorDots struct { | |||
| 42 | 43 | gtk.Widget | |
| 43 | 44 | } | |
| 44 | 45 | ||
| 46 | + | var xCarouselIndicatorDotsGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func CarouselIndicatorDotsGLibType() types.GType { | |
| 49 | + | return xCarouselIndicatorDotsGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 45 | 52 | func CarouselIndicatorDotsNewFromInternalPtr(ptr uintptr) *CarouselIndicatorDots { | |
| 46 | 53 | cls := &CarouselIndicatorDots{} | |
| 47 | 54 | cls.Ptr = ptr | |
| @@ -262,6 +269,8 @@ func init() { | |||
| 262 | 269 | panic(err) | |
| 263 | 270 | } | |
| 264 | 271 | ||
| 272 | + | core.PuregoSafeRegister(&xCarouselIndicatorDotsGLibType, lib, "adw_carousel_indicator_dots_get_type") | |
| 273 | + | ||
| 265 | 274 | core.PuregoSafeRegister(&xNewCarouselIndicatorDots, lib, "adw_carousel_indicator_dots_new") | |
| 266 | 275 | ||
| 267 | 276 | core.PuregoSafeRegister(&xCarouselIndicatorDotsGetCarousel, lib, "adw_carousel_indicator_dots_get_carousel") | |
M v4/adw/adw-carousel-indicator-lines.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -41,6 +42,12 @@ type CarouselIndicatorLines struct { | |||
| 41 | 42 | gtk.Widget | |
| 42 | 43 | } | |
| 43 | 44 | ||
| 45 | + | var xCarouselIndicatorLinesGLibType func() types.GType | |
| 46 | + | ||
| 47 | + | func CarouselIndicatorLinesGLibType() types.GType { | |
| 48 | + | return xCarouselIndicatorLinesGLibType() | |
| 49 | + | } | |
| 50 | + | ||
| 44 | 51 | func CarouselIndicatorLinesNewFromInternalPtr(ptr uintptr) *CarouselIndicatorLines { | |
| 45 | 52 | cls := &CarouselIndicatorLines{} | |
| 46 | 53 | cls.Ptr = ptr | |
| @@ -261,6 +268,8 @@ func init() { | |||
| 261 | 268 | panic(err) | |
| 262 | 269 | } | |
| 263 | 270 | ||
| 271 | + | core.PuregoSafeRegister(&xCarouselIndicatorLinesGLibType, lib, "adw_carousel_indicator_lines_get_type") | |
| 272 | + | ||
| 264 | 273 | core.PuregoSafeRegister(&xNewCarouselIndicatorLines, lib, "adw_carousel_indicator_lines_new") | |
| 265 | 274 | ||
| 266 | 275 | core.PuregoSafeRegister(&xCarouselIndicatorLinesGetCarousel, lib, "adw_carousel_indicator_lines_get_carousel") | |
M v4/adw/adw-carousel.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 13 | 14 | ) | |
| 14 | 15 | ||
| @@ -42,6 +43,12 @@ type Carousel struct { | |||
| 42 | 43 | gtk.Widget | |
| 43 | 44 | } | |
| 44 | 45 | ||
| 46 | + | var xCarouselGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func CarouselGLibType() types.GType { | |
| 49 | + | return xCarouselGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 45 | 52 | func CarouselNewFromInternalPtr(ptr uintptr) *Carousel { | |
| 46 | 53 | cls := &Carousel{} | |
| 47 | 54 | cls.Ptr = ptr | |
| @@ -551,6 +558,8 @@ func init() { | |||
| 551 | 558 | panic(err) | |
| 552 | 559 | } | |
| 553 | 560 | ||
| 561 | + | core.PuregoSafeRegister(&xCarouselGLibType, lib, "adw_carousel_get_type") | |
| 562 | + | ||
| 554 | 563 | core.PuregoSafeRegister(&xNewCarousel, lib, "adw_carousel_new") | |
| 555 | 564 | ||
| 556 | 565 | core.PuregoSafeRegister(&xCarouselAppend, lib, "adw_carousel_append") | |
M v4/adw/adw-clamp-layout.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| @@ -47,6 +48,12 @@ type ClampLayout struct { | |||
| 47 | 48 | gtk.LayoutManager | |
| 48 | 49 | } | |
| 49 | 50 | ||
| 51 | + | var xClampLayoutGLibType func() types.GType | |
| 52 | + | ||
| 53 | + | func ClampLayoutGLibType() types.GType { | |
| 54 | + | return xClampLayoutGLibType() | |
| 55 | + | } | |
| 56 | + | ||
| 50 | 57 | func ClampLayoutNewFromInternalPtr(ptr uintptr) *ClampLayout { | |
| 51 | 58 | cls := &ClampLayout{} | |
| 52 | 59 | cls.Ptr = ptr | |
| @@ -148,6 +155,8 @@ func init() { | |||
| 148 | 155 | panic(err) | |
| 149 | 156 | } | |
| 150 | 157 | ||
| 158 | + | core.PuregoSafeRegister(&xClampLayoutGLibType, lib, "adw_clamp_layout_get_type") | |
| 159 | + | ||
| 151 | 160 | core.PuregoSafeRegister(&xNewClampLayout, lib, "adw_clamp_layout_new") | |
| 152 | 161 | ||
| 153 | 162 | core.PuregoSafeRegister(&xClampLayoutGetMaximumSize, lib, "adw_clamp_layout_get_maximum_size") | |
M v4/adw/adw-clamp-scrollable.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -29,6 +30,12 @@ type ClampScrollable struct { | |||
| 29 | 30 | gtk.Widget | |
| 30 | 31 | } | |
| 31 | 32 | ||
| 33 | + | var xClampScrollableGLibType func() types.GType | |
| 34 | + | ||
| 35 | + | func ClampScrollableGLibType() types.GType { | |
| 36 | + | return xClampScrollableGLibType() | |
| 37 | + | } | |
| 38 | + | ||
| 32 | 39 | func ClampScrollableNewFromInternalPtr(ptr uintptr) *ClampScrollable { | |
| 33 | 40 | cls := &ClampScrollable{} | |
| 34 | 41 | cls.Ptr = ptr | |
| @@ -390,6 +397,8 @@ func init() { | |||
| 390 | 397 | panic(err) | |
| 391 | 398 | } | |
| 392 | 399 | ||
| 400 | + | core.PuregoSafeRegister(&xClampScrollableGLibType, lib, "adw_clamp_scrollable_get_type") | |
| 401 | + | ||
| 393 | 402 | core.PuregoSafeRegister(&xNewClampScrollable, lib, "adw_clamp_scrollable_new") | |
| 394 | 403 | ||
| 395 | 404 | core.PuregoSafeRegister(&xClampScrollableGetChild, lib, "adw_clamp_scrollable_get_child") | |
M v4/adw/adw-clamp.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -52,6 +53,12 @@ type Clamp struct { | |||
| 52 | 53 | gtk.Widget | |
| 53 | 54 | } | |
| 54 | 55 | ||
| 56 | + | var xClampGLibType func() types.GType | |
| 57 | + | ||
| 58 | + | func ClampGLibType() types.GType { | |
| 59 | + | return xClampGLibType() | |
| 60 | + | } | |
| 61 | + | ||
| 55 | 62 | func ClampNewFromInternalPtr(ptr uintptr) *Clamp { | |
| 56 | 63 | cls := &Clamp{} | |
| 57 | 64 | cls.Ptr = ptr | |
| @@ -323,6 +330,8 @@ func init() { | |||
| 323 | 330 | panic(err) | |
| 324 | 331 | } | |
| 325 | 332 | ||
| 333 | + | core.PuregoSafeRegister(&xClampGLibType, lib, "adw_clamp_get_type") | |
| 334 | + | ||
| 326 | 335 | core.PuregoSafeRegister(&xNewClamp, lib, "adw_clamp_new") | |
| 327 | 336 | ||
| 328 | 337 | core.PuregoSafeRegister(&xClampGetChild, lib, "adw_clamp_get_child") | |
M v4/adw/adw-combo-row.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 13 | 14 | ) | |
| 14 | 15 | ||
| @@ -77,6 +78,12 @@ type ComboRow struct { | |||
| 77 | 78 | ActionRow | |
| 78 | 79 | } | |
| 79 | 80 | ||
| 81 | + | var xComboRowGLibType func() types.GType | |
| 82 | + | ||
| 83 | + | func ComboRowGLibType() types.GType { | |
| 84 | + | return xComboRowGLibType() | |
| 85 | + | } | |
| 86 | + | ||
| 80 | 87 | func ComboRowNewFromInternalPtr(ptr uintptr) *ComboRow { | |
| 81 | 88 | cls := &ComboRow{} | |
| 82 | 89 | cls.Ptr = ptr | |
| @@ -516,6 +523,8 @@ func init() { | |||
| 516 | 523 | panic(err) | |
| 517 | 524 | } | |
| 518 | 525 | ||
| 526 | + | core.PuregoSafeRegister(&xComboRowGLibType, lib, "adw_combo_row_get_type") | |
| 527 | + | ||
| 519 | 528 | core.PuregoSafeRegister(&xNewComboRow, lib, "adw_combo_row_new") | |
| 520 | 529 | ||
| 521 | 530 | core.PuregoSafeRegister(&xComboRowGetExpression, lib, "adw_combo_row_get_expression") | |
M v4/adw/adw-easing.go +10 -0
| @@ -4,6 +4,7 @@ package adw | |||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 7 | 8 | ) | |
| 8 | 9 | ||
| 9 | 10 | // Describes the available easing functions for use with | |
| @@ -12,6 +13,12 @@ import ( | |||
| 12 | 13 | // New values may be added to this enumeration over time. | |
| 13 | 14 | type Easing int | |
| 14 | 15 | ||
| 16 | + | var xEasingGLibType func() types.GType | |
| 17 | + | ||
| 18 | + | func EasingGLibType() types.GType { | |
| 19 | + | return xEasingGLibType() | |
| 20 | + | } | |
| 21 | + | ||
| 15 | 22 | const ( | |
| 16 | 23 | ||
| 17 | 24 | // Linear tweening. | |
| @@ -109,6 +116,9 @@ func init() { | |||
| 109 | 116 | if err != nil { | |
| 110 | 117 | panic(err) | |
| 111 | 118 | } | |
| 119 | + | ||
| 120 | + | core.PuregoSafeRegister(&xEasingGLibType, lib, "adw_easing_get_type") | |
| 121 | + | ||
| 112 | 122 | core.PuregoSafeRegister(&xEasingEase, lib, "adw_easing_ease") | |
| 113 | 123 | ||
| 114 | 124 | } | |
M v4/adw/adw-entry-row.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | "github.com/jwijenbergh/puregotk/v4/pango" | |
| 13 | 14 | ) | |
| @@ -60,6 +61,12 @@ type EntryRow struct { | |||
| 60 | 61 | PreferencesRow | |
| 61 | 62 | } | |
| 62 | 63 | ||
| 64 | + | var xEntryRowGLibType func() types.GType | |
| 65 | + | ||
| 66 | + | func EntryRowGLibType() types.GType { | |
| 67 | + | return xEntryRowGLibType() | |
| 68 | + | } | |
| 69 | + | ||
| 63 | 70 | func EntryRowNewFromInternalPtr(ptr uintptr) *EntryRow { | |
| 64 | 71 | cls := &EntryRow{} | |
| 65 | 72 | cls.Ptr = ptr | |
| @@ -772,6 +779,8 @@ func init() { | |||
| 772 | 779 | panic(err) | |
| 773 | 780 | } | |
| 774 | 781 | ||
| 782 | + | core.PuregoSafeRegister(&xEntryRowGLibType, lib, "adw_entry_row_get_type") | |
| 783 | + | ||
| 775 | 784 | core.PuregoSafeRegister(&xNewEntryRow, lib, "adw_entry_row_new") | |
| 776 | 785 | ||
| 777 | 786 | core.PuregoSafeRegister(&xEntryRowAddPrefix, lib, "adw_entry_row_add_prefix") | |
M v4/adw/adw-enum-list-model.go +16 -0
| @@ -32,6 +32,12 @@ type EnumListItem struct { | |||
| 32 | 32 | gobject.Object | |
| 33 | 33 | } | |
| 34 | 34 | ||
| 35 | + | var xEnumListItemGLibType func() types.GType | |
| 36 | + | ||
| 37 | + | func EnumListItemGLibType() types.GType { | |
| 38 | + | return xEnumListItemGLibType() | |
| 39 | + | } | |
| 40 | + | ||
| 35 | 41 | func EnumListItemNewFromInternalPtr(ptr uintptr) *EnumListItem { | |
| 36 | 42 | cls := &EnumListItem{} | |
| 37 | 43 | cls.Ptr = ptr | |
| @@ -80,6 +86,12 @@ type EnumListModel struct { | |||
| 80 | 86 | gobject.Object | |
| 81 | 87 | } | |
| 82 | 88 | ||
| 89 | + | var xEnumListModelGLibType func() types.GType | |
| 90 | + | ||
| 91 | + | func EnumListModelGLibType() types.GType { | |
| 92 | + | return xEnumListModelGLibType() | |
| 93 | + | } | |
| 94 | + | ||
| 83 | 95 | func EnumListModelNewFromInternalPtr(ptr uintptr) *EnumListModel { | |
| 84 | 96 | cls := &EnumListModel{} | |
| 85 | 97 | cls.Ptr = ptr | |
| @@ -225,10 +237,14 @@ func init() { | |||
| 225 | 237 | panic(err) | |
| 226 | 238 | } | |
| 227 | 239 | ||
| 240 | + | core.PuregoSafeRegister(&xEnumListItemGLibType, lib, "adw_enum_list_item_get_type") | |
| 241 | + | ||
| 228 | 242 | core.PuregoSafeRegister(&xEnumListItemGetName, lib, "adw_enum_list_item_get_name") | |
| 229 | 243 | core.PuregoSafeRegister(&xEnumListItemGetNick, lib, "adw_enum_list_item_get_nick") | |
| 230 | 244 | core.PuregoSafeRegister(&xEnumListItemGetValue, lib, "adw_enum_list_item_get_value") | |
| 231 | 245 | ||
| 246 | + | core.PuregoSafeRegister(&xEnumListModelGLibType, lib, "adw_enum_list_model_get_type") | |
| 247 | + | ||
| 232 | 248 | core.PuregoSafeRegister(&xNewEnumListModel, lib, "adw_enum_list_model_new") | |
| 233 | 249 | ||
| 234 | 250 | core.PuregoSafeRegister(&xEnumListModelFindPosition, lib, "adw_enum_list_model_find_position") | |
M v4/adw/adw-expander-row.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -55,6 +56,12 @@ type ExpanderRow struct { | |||
| 55 | 56 | PreferencesRow | |
| 56 | 57 | } | |
| 57 | 58 | ||
| 59 | + | var xExpanderRowGLibType func() types.GType | |
| 60 | + | ||
| 61 | + | func ExpanderRowGLibType() types.GType { | |
| 62 | + | return xExpanderRowGLibType() | |
| 63 | + | } | |
| 64 | + | ||
| 58 | 65 | func ExpanderRowNewFromInternalPtr(ptr uintptr) *ExpanderRow { | |
| 59 | 66 | cls := &ExpanderRow{} | |
| 60 | 67 | cls.Ptr = ptr | |
| @@ -492,6 +499,8 @@ func init() { | |||
| 492 | 499 | panic(err) | |
| 493 | 500 | } | |
| 494 | 501 | ||
| 502 | + | core.PuregoSafeRegister(&xExpanderRowGLibType, lib, "adw_expander_row_get_type") | |
| 503 | + | ||
| 495 | 504 | core.PuregoSafeRegister(&xNewExpanderRow, lib, "adw_expander_row_new") | |
| 496 | 505 | ||
| 497 | 506 | core.PuregoSafeRegister(&xExpanderRowAddAction, lib, "adw_expander_row_add_action") | |
M v4/adw/adw-flap.go +25 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -22,6 +23,12 @@ func (x *FlapClass) GoPointer() uintptr { | |||
| 22 | 23 | // Describes the possible folding behavior of a [class@Flap] widget. | |
| 23 | 24 | type FlapFoldPolicy int | |
| 24 | 25 | ||
| 26 | + | var xFlapFoldPolicyGLibType func() types.GType | |
| 27 | + | ||
| 28 | + | func FlapFoldPolicyGLibType() types.GType { | |
| 29 | + | return xFlapFoldPolicyGLibType() | |
| 30 | + | } | |
| 31 | + | ||
| 25 | 32 | const ( | |
| 26 | 33 | ||
| 27 | 34 | // Disable folding, the flap cannot reach narrow | |
| @@ -43,6 +50,12 @@ const ( | |||
| 43 | 50 | // New values may be added to this enum over time. | |
| 44 | 51 | type FlapTransitionType int | |
| 45 | 52 | ||
| 53 | + | var xFlapTransitionTypeGLibType func() types.GType | |
| 54 | + | ||
| 55 | + | func FlapTransitionTypeGLibType() types.GType { | |
| 56 | + | return xFlapTransitionTypeGLibType() | |
| 57 | + | } | |
| 58 | + | ||
| 46 | 59 | const ( | |
| 47 | 60 | ||
| 48 | 61 | // The flap slides over the content, which is | |
| @@ -122,6 +135,12 @@ type Flap struct { | |||
| 122 | 135 | gtk.Widget | |
| 123 | 136 | } | |
| 124 | 137 | ||
| 138 | + | var xFlapGLibType func() types.GType | |
| 139 | + | ||
| 140 | + | func FlapGLibType() types.GType { | |
| 141 | + | return xFlapGLibType() | |
| 142 | + | } | |
| 143 | + | ||
| 125 | 144 | func FlapNewFromInternalPtr(ptr uintptr) *Flap { | |
| 126 | 145 | cls := &Flap{} | |
| 127 | 146 | cls.Ptr = ptr | |
| @@ -707,6 +726,12 @@ func init() { | |||
| 707 | 726 | panic(err) | |
| 708 | 727 | } | |
| 709 | 728 | ||
| 729 | + | core.PuregoSafeRegister(&xFlapFoldPolicyGLibType, lib, "adw_flap_fold_policy_get_type") | |
| 730 | + | ||
| 731 | + | core.PuregoSafeRegister(&xFlapTransitionTypeGLibType, lib, "adw_flap_transition_type_get_type") | |
| 732 | + | ||
| 733 | + | core.PuregoSafeRegister(&xFlapGLibType, lib, "adw_flap_get_type") | |
| 734 | + | ||
| 710 | 735 | core.PuregoSafeRegister(&xNewFlap, lib, "adw_flap_new") | |
| 711 | 736 | ||
| 712 | 737 | core.PuregoSafeRegister(&xFlapGetContent, lib, "adw_flap_get_content") | |
M v4/adw/adw-fold-threshold-policy.go +8 -0
| @@ -1,9 +1,17 @@ | |||
| 1 | 1 | // Package adw was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | + | import "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 5 | + | ||
| 4 | 6 | // Determines when [class@Flap] and [class@Leaflet] will fold. | |
| 5 | 7 | type FoldThresholdPolicy int | |
| 6 | 8 | ||
| 9 | + | var xFoldThresholdPolicyGLibType func() types.GType | |
| 10 | + | ||
| 11 | + | func FoldThresholdPolicyGLibType() types.GType { | |
| 12 | + | return xFoldThresholdPolicyGLibType() | |
| 13 | + | } | |
| 14 | + | ||
| 7 | 15 | const ( | |
| 8 | 16 | ||
| 9 | 17 | // Folding is based on the minimum size | |
M v4/adw/adw-header-bar.go +17 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -21,6 +22,12 @@ func (x *HeaderBarClass) GoPointer() uintptr { | |||
| 21 | 22 | // Describes title centering behavior of a [class@HeaderBar] widget. | |
| 22 | 23 | type CenteringPolicy int | |
| 23 | 24 | ||
| 25 | + | var xCenteringPolicyGLibType func() types.GType | |
| 26 | + | ||
| 27 | + | func CenteringPolicyGLibType() types.GType { | |
| 28 | + | return xCenteringPolicyGLibType() | |
| 29 | + | } | |
| 30 | + | ||
| 24 | 31 | const ( | |
| 25 | 32 | ||
| 26 | 33 | // Keep the title centered when possible | |
| @@ -125,6 +132,12 @@ type HeaderBar struct { | |||
| 125 | 132 | gtk.Widget | |
| 126 | 133 | } | |
| 127 | 134 | ||
| 135 | + | var xHeaderBarGLibType func() types.GType | |
| 136 | + | ||
| 137 | + | func HeaderBarGLibType() types.GType { | |
| 138 | + | return xHeaderBarGLibType() | |
| 139 | + | } | |
| 140 | + | ||
| 128 | 141 | func HeaderBarNewFromInternalPtr(ptr uintptr) *HeaderBar { | |
| 129 | 142 | cls := &HeaderBar{} | |
| 130 | 143 | cls.Ptr = ptr | |
| @@ -473,6 +486,10 @@ func init() { | |||
| 473 | 486 | panic(err) | |
| 474 | 487 | } | |
| 475 | 488 | ||
| 489 | + | core.PuregoSafeRegister(&xCenteringPolicyGLibType, lib, "adw_centering_policy_get_type") | |
| 490 | + | ||
| 491 | + | core.PuregoSafeRegister(&xHeaderBarGLibType, lib, "adw_header_bar_get_type") | |
| 492 | + | ||
| 476 | 493 | core.PuregoSafeRegister(&xNewHeaderBar, lib, "adw_header_bar_new") | |
| 477 | 494 | ||
| 478 | 495 | core.PuregoSafeRegister(&xHeaderBarGetCenteringPolicy, lib, "adw_header_bar_get_centering_policy") | |
M v4/adw/adw-leaflet.go +25 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -32,6 +33,12 @@ func (x *LeafletPageClass) GoPointer() uintptr { | |||
| 32 | 33 | // New values may be added to this enumeration over time. | |
| 33 | 34 | type LeafletTransitionType int | |
| 34 | 35 | ||
| 36 | + | var xLeafletTransitionTypeGLibType func() types.GType | |
| 37 | + | ||
| 38 | + | func LeafletTransitionTypeGLibType() types.GType { | |
| 39 | + | return xLeafletTransitionTypeGLibType() | |
| 40 | + | } | |
| 41 | + | ||
| 35 | 42 | const ( | |
| 36 | 43 | ||
| 37 | 44 | // Cover the old page or uncover the new page, sliding from or towards the end according to orientation, text direction and children order | |
| @@ -81,6 +88,12 @@ type Leaflet struct { | |||
| 81 | 88 | gtk.Widget | |
| 82 | 89 | } | |
| 83 | 90 | ||
| 91 | + | var xLeafletGLibType func() types.GType | |
| 92 | + | ||
| 93 | + | func LeafletGLibType() types.GType { | |
| 94 | + | return xLeafletGLibType() | |
| 95 | + | } | |
| 96 | + | ||
| 84 | 97 | func LeafletNewFromInternalPtr(ptr uintptr) *Leaflet { | |
| 85 | 98 | cls := &Leaflet{} | |
| 86 | 99 | cls.Ptr = ptr | |
| @@ -761,6 +774,12 @@ type LeafletPage struct { | |||
| 761 | 774 | gobject.Object | |
| 762 | 775 | } | |
| 763 | 776 | ||
| 777 | + | var xLeafletPageGLibType func() types.GType | |
| 778 | + | ||
| 779 | + | func LeafletPageGLibType() types.GType { | |
| 780 | + | return xLeafletPageGLibType() | |
| 781 | + | } | |
| 782 | + | ||
| 764 | 783 | func LeafletPageNewFromInternalPtr(ptr uintptr) *LeafletPage { | |
| 765 | 784 | cls := &LeafletPage{} | |
| 766 | 785 | cls.Ptr = ptr | |
| @@ -839,6 +858,10 @@ func init() { | |||
| 839 | 858 | panic(err) | |
| 840 | 859 | } | |
| 841 | 860 | ||
| 861 | + | core.PuregoSafeRegister(&xLeafletTransitionTypeGLibType, lib, "adw_leaflet_transition_type_get_type") | |
| 862 | + | ||
| 863 | + | core.PuregoSafeRegister(&xLeafletGLibType, lib, "adw_leaflet_get_type") | |
| 864 | + | ||
| 842 | 865 | core.PuregoSafeRegister(&xNewLeaflet, lib, "adw_leaflet_new") | |
| 843 | 866 | ||
| 844 | 867 | core.PuregoSafeRegister(&xLeafletAppend, lib, "adw_leaflet_append") | |
| @@ -874,6 +897,8 @@ func init() { | |||
| 874 | 897 | core.PuregoSafeRegister(&xLeafletSetVisibleChild, lib, "adw_leaflet_set_visible_child") | |
| 875 | 898 | core.PuregoSafeRegister(&xLeafletSetVisibleChildName, lib, "adw_leaflet_set_visible_child_name") | |
| 876 | 899 | ||
| 900 | + | core.PuregoSafeRegister(&xLeafletPageGLibType, lib, "adw_leaflet_page_get_type") | |
| 901 | + | ||
| 877 | 902 | core.PuregoSafeRegister(&xLeafletPageGetChild, lib, "adw_leaflet_page_get_child") | |
| 878 | 903 | core.PuregoSafeRegister(&xLeafletPageGetName, lib, "adw_leaflet_page_get_name") | |
| 879 | 904 | core.PuregoSafeRegister(&xLeafletPageGetNavigatable, lib, "adw_leaflet_page_get_navigatable") | |
M v4/adw/adw-main.go +1 -0
| @@ -40,6 +40,7 @@ func init() { | |||
| 40 | 40 | if err != nil { | |
| 41 | 41 | panic(err) | |
| 42 | 42 | } | |
| 43 | + | ||
| 43 | 44 | core.PuregoSafeRegister(&xInit, lib, "adw_init") | |
| 44 | 45 | core.PuregoSafeRegister(&xIsInitialized, lib, "adw_is_initialized") | |
| 45 | 46 | ||
M v4/adw/adw-message-dialog.go +17 -0
| @@ -10,6 +10,7 @@ import ( | |||
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 13 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 13 | 14 | "github.com/jwijenbergh/puregotk/v4/gsk" | |
| 14 | 15 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 15 | 16 | ) | |
| @@ -29,6 +30,12 @@ func (x *MessageDialogClass) GoPointer() uintptr { | |||
| 29 | 30 | // See [method@MessageDialog.set_response_appearance]. | |
| 30 | 31 | type ResponseAppearance int | |
| 31 | 32 | ||
| 33 | + | var xResponseAppearanceGLibType func() types.GType | |
| 34 | + | ||
| 35 | + | func ResponseAppearanceGLibType() types.GType { | |
| 36 | + | return xResponseAppearanceGLibType() | |
| 37 | + | } | |
| 38 | + | ||
| 32 | 39 | const ( | |
| 33 | 40 | ||
| 34 | 41 | // the default appearance. | |
| @@ -186,6 +193,12 @@ type MessageDialog struct { | |||
| 186 | 193 | gtk.Window | |
| 187 | 194 | } | |
| 188 | 195 | ||
| 196 | + | var xMessageDialogGLibType func() types.GType | |
| 197 | + | ||
| 198 | + | func MessageDialogGLibType() types.GType { | |
| 199 | + | return xMessageDialogGLibType() | |
| 200 | + | } | |
| 201 | + | ||
| 189 | 202 | func MessageDialogNewFromInternalPtr(ptr uintptr) *MessageDialog { | |
| 190 | 203 | cls := &MessageDialog{} | |
| 191 | 204 | cls.Ptr = ptr | |
| @@ -903,6 +916,10 @@ func init() { | |||
| 903 | 916 | panic(err) | |
| 904 | 917 | } | |
| 905 | 918 | ||
| 919 | + | core.PuregoSafeRegister(&xResponseAppearanceGLibType, lib, "adw_response_appearance_get_type") | |
| 920 | + | ||
| 921 | + | core.PuregoSafeRegister(&xMessageDialogGLibType, lib, "adw_message_dialog_get_type") | |
| 922 | + | ||
| 906 | 923 | core.PuregoSafeRegister(&xNewMessageDialog, lib, "adw_message_dialog_new") | |
| 907 | 924 | ||
| 908 | 925 | core.PuregoSafeRegister(&xMessageDialogAddResponse, lib, "adw_message_dialog_add_response") | |
M v4/adw/adw-navigation-direction.go +8 -0
| @@ -1,9 +1,17 @@ | |||
| 1 | 1 | // Package adw was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package adw | |
| 3 | 3 | ||
| 4 | + | import "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 5 | + | ||
| 4 | 6 | // Describes the direction of a swipe navigation gesture. | |
| 5 | 7 | type NavigationDirection int | |
| 6 | 8 | ||
| 9 | + | var xNavigationDirectionGLibType func() types.GType | |
| 10 | + | ||
| 11 | + | func NavigationDirectionGLibType() types.GType { | |
| 12 | + | return xNavigationDirectionGLibType() | |
| 13 | + | } | |
| 14 | + | ||
| 7 | 15 | const ( | |
| 8 | 16 | ||
| 9 | 17 | // Corresponds to start or top, depending on orientation and text direction | |
M v4/adw/adw-password-entry-row.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -44,6 +45,12 @@ type PasswordEntryRow struct { | |||
| 44 | 45 | EntryRow | |
| 45 | 46 | } | |
| 46 | 47 | ||
| 48 | + | var xPasswordEntryRowGLibType func() types.GType | |
| 49 | + | ||
| 50 | + | func PasswordEntryRowGLibType() types.GType { | |
| 51 | + | return xPasswordEntryRowGLibType() | |
| 52 | + | } | |
| 53 | + | ||
| 47 | 54 | func PasswordEntryRowNewFromInternalPtr(ptr uintptr) *PasswordEntryRow { | |
| 48 | 55 | cls := &PasswordEntryRow{} | |
| 49 | 56 | cls.Ptr = ptr | |
| @@ -549,6 +556,8 @@ func init() { | |||
| 549 | 556 | panic(err) | |
| 550 | 557 | } | |
| 551 | 558 | ||
| 559 | + | core.PuregoSafeRegister(&xPasswordEntryRowGLibType, lib, "adw_password_entry_row_get_type") | |
| 560 | + | ||
| 552 | 561 | core.PuregoSafeRegister(&xNewPasswordEntryRow, lib, "adw_password_entry_row_new") | |
| 553 | 562 | ||
| 554 | 563 | } | |
M v4/adw/adw-preferences-group.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -57,6 +58,12 @@ type PreferencesGroup struct { | |||
| 57 | 58 | gtk.Widget | |
| 58 | 59 | } | |
| 59 | 60 | ||
| 61 | + | var xPreferencesGroupGLibType func() types.GType | |
| 62 | + | ||
| 63 | + | func PreferencesGroupGLibType() types.GType { | |
| 64 | + | return xPreferencesGroupGLibType() | |
| 65 | + | } | |
| 66 | + | ||
| 60 | 67 | func PreferencesGroupNewFromInternalPtr(ptr uintptr) *PreferencesGroup { | |
| 61 | 68 | cls := &PreferencesGroup{} | |
| 62 | 69 | cls.Ptr = ptr | |
| @@ -321,6 +328,8 @@ func init() { | |||
| 321 | 328 | panic(err) | |
| 322 | 329 | } | |
| 323 | 330 | ||
| 331 | + | core.PuregoSafeRegister(&xPreferencesGroupGLibType, lib, "adw_preferences_group_get_type") | |
| 332 | + | ||
| 324 | 333 | core.PuregoSafeRegister(&xNewPreferencesGroup, lib, "adw_preferences_group_new") | |
| 325 | 334 | ||
| 326 | 335 | core.PuregoSafeRegister(&xPreferencesGroupAdd, lib, "adw_preferences_group_add") | |
M v4/adw/adw-preferences-page.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -43,6 +44,12 @@ type PreferencesPage struct { | |||
| 43 | 44 | gtk.Widget | |
| 44 | 45 | } | |
| 45 | 46 | ||
| 47 | + | var xPreferencesPageGLibType func() types.GType | |
| 48 | + | ||
| 49 | + | func PreferencesPageGLibType() types.GType { | |
| 50 | + | return xPreferencesPageGLibType() | |
| 51 | + | } | |
| 52 | + | ||
| 46 | 53 | func PreferencesPageNewFromInternalPtr(ptr uintptr) *PreferencesPage { | |
| 47 | 54 | cls := &PreferencesPage{} | |
| 48 | 55 | cls.Ptr = ptr | |
| @@ -322,6 +329,8 @@ func init() { | |||
| 322 | 329 | panic(err) | |
| 323 | 330 | } | |
| 324 | 331 | ||
| 332 | + | core.PuregoSafeRegister(&xPreferencesPageGLibType, lib, "adw_preferences_page_get_type") | |
| 333 | + | ||
| 325 | 334 | core.PuregoSafeRegister(&xNewPreferencesPage, lib, "adw_preferences_page_new") | |
| 326 | 335 | ||
| 327 | 336 | core.PuregoSafeRegister(&xPreferencesPageAdd, lib, "adw_preferences_page_add") | |
M v4/adw/adw-preferences-row.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -34,6 +35,12 @@ type PreferencesRow struct { | |||
| 34 | 35 | gtk.ListBoxRow | |
| 35 | 36 | } | |
| 36 | 37 | ||
| 38 | + | var xPreferencesRowGLibType func() types.GType | |
| 39 | + | ||
| 40 | + | func PreferencesRowGLibType() types.GType { | |
| 41 | + | return xPreferencesRowGLibType() | |
| 42 | + | } | |
| 43 | + | ||
| 37 | 44 | func PreferencesRowNewFromInternalPtr(ptr uintptr) *PreferencesRow { | |
| 38 | 45 | cls := &PreferencesRow{} | |
| 39 | 46 | cls.Ptr = ptr | |
| @@ -378,6 +385,8 @@ func init() { | |||
| 378 | 385 | panic(err) | |
| 379 | 386 | } | |
| 380 | 387 | ||
| 388 | + | core.PuregoSafeRegister(&xPreferencesRowGLibType, lib, "adw_preferences_row_get_type") | |
| 389 | + | ||
| 381 | 390 | core.PuregoSafeRegister(&xNewPreferencesRow, lib, "adw_preferences_row_new") | |
| 382 | 391 | ||
| 383 | 392 | core.PuregoSafeRegister(&xPreferencesRowGetTitle, lib, "adw_preferences_row_get_title") | |
M v4/adw/adw-preferences-window.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gsk" | |
| 12 | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 13 | 14 | ) | |
| @@ -42,6 +43,12 @@ type PreferencesWindow struct { | |||
| 42 | 43 | Window | |
| 43 | 44 | } | |
| 44 | 45 | ||
| 46 | + | var xPreferencesWindowGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func PreferencesWindowGLibType() types.GType { | |
| 49 | + | return xPreferencesWindowGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 45 | 52 | func PreferencesWindowNewFromInternalPtr(ptr uintptr) *PreferencesWindow { | |
| 46 | 53 | cls := &PreferencesWindow{} | |
| 47 | 54 | cls.Ptr = ptr | |
| @@ -474,6 +481,8 @@ func init() { | |||
| 474 | 481 | panic(err) | |
| 475 | 482 | } | |
| 476 | 483 | ||
| 484 | + | core.PuregoSafeRegister(&xPreferencesWindowGLibType, lib, "adw_preferences_window_get_type") | |
| 485 | + | ||
| 477 | 486 | core.PuregoSafeRegister(&xNewPreferencesWindow, lib, "adw_preferences_window_new") | |
| 478 | 487 | ||
| 479 | 488 | core.PuregoSafeRegister(&xPreferencesWindowAdd, lib, "adw_preferences_window_add") | |
M v4/adw/adw-split-button.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 13 | 14 | ) | |
| 14 | 15 | ||
| @@ -64,6 +65,12 @@ type SplitButton struct { | |||
| 64 | 65 | gtk.Widget | |
| 65 | 66 | } | |
| 66 | 67 | ||
| 68 | + | var xSplitButtonGLibType func() types.GType | |
| 69 | + | ||
| 70 | + | func SplitButtonGLibType() types.GType { | |
| 71 | + | return xSplitButtonGLibType() | |
| 72 | + | } | |
| 73 | + | ||
| 67 | 74 | func SplitButtonNewFromInternalPtr(ptr uintptr) *SplitButton { | |
| 68 | 75 | cls := &SplitButton{} | |
| 69 | 76 | cls.Ptr = ptr | |
| @@ -590,6 +597,8 @@ func init() { | |||
| 590 | 597 | panic(err) | |
| 591 | 598 | } | |
| 592 | 599 | ||
| 600 | + | core.PuregoSafeRegister(&xSplitButtonGLibType, lib, "adw_split_button_get_type") | |
| 601 | + | ||
| 593 | 602 | core.PuregoSafeRegister(&xNewSplitButton, lib, "adw_split_button_new") | |
| 594 | 603 | ||
| 595 | 604 | core.PuregoSafeRegister(&xSplitButtonGetChild, lib, "adw_split_button_get_child") | |
M v4/adw/adw-spring-animation.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -52,6 +53,12 @@ type SpringAnimation struct { | |||
| 52 | 53 | Animation | |
| 53 | 54 | } | |
| 54 | 55 | ||
| 56 | + | var xSpringAnimationGLibType func() types.GType | |
| 57 | + | ||
| 58 | + | func SpringAnimationGLibType() types.GType { | |
| 59 | + | return xSpringAnimationGLibType() | |
| 60 | + | } | |
| 61 | + | ||
| 55 | 62 | func SpringAnimationNewFromInternalPtr(ptr uintptr) *SpringAnimation { | |
| 56 | 63 | cls := &SpringAnimation{} | |
| 57 | 64 | cls.Ptr = ptr | |
| @@ -273,6 +280,8 @@ func init() { | |||
| 273 | 280 | panic(err) | |
| 274 | 281 | } | |
| 275 | 282 | ||
| 283 | + | core.PuregoSafeRegister(&xSpringAnimationGLibType, lib, "adw_spring_animation_get_type") | |
| 284 | + | ||
| 276 | 285 | core.PuregoSafeRegister(&xNewSpringAnimation, lib, "adw_spring_animation_new") | |
| 277 | 286 | ||
| 278 | 287 | core.PuregoSafeRegister(&xSpringAnimationCalculateValue, lib, "adw_spring_animation_calculate_value") | |
M v4/adw/adw-spring-params.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Physical parameters of a spring for [class@SpringAnimation]. | |
| @@ -41,6 +42,12 @@ import ( | |||
| 41 | 42 | type SpringParams struct { | |
| 42 | 43 | } | |
| 43 | 44 | ||
| 45 | + | var xSpringParamsGLibType func() types.GType | |
| 46 | + | ||
| 47 | + | func SpringParamsGLibType() types.GType { | |
| 48 | + | return xSpringParamsGLibType() | |
| 49 | + | } | |
| 50 | + | ||
| 44 | 51 | func (x *SpringParams) GoPointer() uintptr { | |
| 45 | 52 | return uintptr(unsafe.Pointer(x)) | |
| 46 | 53 | } | |
| @@ -142,6 +149,8 @@ func init() { | |||
| 142 | 149 | panic(err) | |
| 143 | 150 | } | |
| 144 | 151 | ||
| 152 | + | core.PuregoSafeRegister(&xSpringParamsGLibType, lib, "adw_spring_params_get_type") | |
| 153 | + | ||
| 145 | 154 | core.PuregoSafeRegister(&xNewSpringParams, lib, "adw_spring_params_new") | |
| 146 | 155 | core.PuregoSafeRegister(&xNewSpringParamsFull, lib, "adw_spring_params_new_full") | |
| 147 | 156 | ||
M v4/adw/adw-squeezer.go +25 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -29,6 +30,12 @@ func (x *SqueezerPageClass) GoPointer() uintptr { | |||
| 29 | 30 | // Describes the possible transitions in a [class@Squeezer] widget. | |
| 30 | 31 | type SqueezerTransitionType int | |
| 31 | 32 | ||
| 33 | + | var xSqueezerTransitionTypeGLibType func() types.GType | |
| 34 | + | ||
| 35 | + | func SqueezerTransitionTypeGLibType() types.GType { | |
| 36 | + | return xSqueezerTransitionTypeGLibType() | |
| 37 | + | } | |
| 38 | + | ||
| 32 | 39 | const ( | |
| 33 | 40 | ||
| 34 | 41 | // No transition | |
| @@ -67,6 +74,12 @@ type Squeezer struct { | |||
| 67 | 74 | gtk.Widget | |
| 68 | 75 | } | |
| 69 | 76 | ||
| 77 | + | var xSqueezerGLibType func() types.GType | |
| 78 | + | ||
| 79 | + | func SqueezerGLibType() types.GType { | |
| 80 | + | return xSqueezerGLibType() | |
| 81 | + | } | |
| 82 | + | ||
| 70 | 83 | func SqueezerNewFromInternalPtr(ptr uintptr) *Squeezer { | |
| 71 | 84 | cls := &Squeezer{} | |
| 72 | 85 | cls.Ptr = ptr | |
| @@ -530,6 +543,12 @@ type SqueezerPage struct { | |||
| 530 | 543 | gobject.Object | |
| 531 | 544 | } | |
| 532 | 545 | ||
| 546 | + | var xSqueezerPageGLibType func() types.GType | |
| 547 | + | ||
| 548 | + | func SqueezerPageGLibType() types.GType { | |
| 549 | + | return xSqueezerPageGLibType() | |
| 550 | + | } | |
| 551 | + | ||
| 533 | 552 | func SqueezerPageNewFromInternalPtr(ptr uintptr) *SqueezerPage { | |
| 534 | 553 | cls := &SqueezerPage{} | |
| 535 | 554 | cls.Ptr = ptr | |
| @@ -594,6 +613,10 @@ func init() { | |||
| 594 | 613 | panic(err) | |
| 595 | 614 | } | |
| 596 | 615 | ||
| 616 | + | core.PuregoSafeRegister(&xSqueezerTransitionTypeGLibType, lib, "adw_squeezer_transition_type_get_type") | |
| 617 | + | ||
| 618 | + | core.PuregoSafeRegister(&xSqueezerGLibType, lib, "adw_squeezer_get_type") | |
| 619 | + | ||
| 597 | 620 | core.PuregoSafeRegister(&xNewSqueezer, lib, "adw_squeezer_new") | |
| 598 | 621 | ||
| 599 | 622 | core.PuregoSafeRegister(&xSqueezerAdd, lib, "adw_squeezer_add") | |
| @@ -619,6 +642,8 @@ func init() { | |||
| 619 | 642 | core.PuregoSafeRegister(&xSqueezerSetXalign, lib, "adw_squeezer_set_xalign") | |
| 620 | 643 | core.PuregoSafeRegister(&xSqueezerSetYalign, lib, "adw_squeezer_set_yalign") | |
| 621 | 644 | ||
| 645 | + | core.PuregoSafeRegister(&xSqueezerPageGLibType, lib, "adw_squeezer_page_get_type") | |
| 646 | + | ||
| 622 | 647 | core.PuregoSafeRegister(&xSqueezerPageGetChild, lib, "adw_squeezer_page_get_child") | |
| 623 | 648 | core.PuregoSafeRegister(&xSqueezerPageGetEnabled, lib, "adw_squeezer_page_get_enabled") | |
| 624 | 649 | core.PuregoSafeRegister(&xSqueezerPageSetEnabled, lib, "adw_squeezer_page_set_enabled") | |
M v4/adw/adw-status-page.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -42,6 +43,12 @@ type StatusPage struct { | |||
| 42 | 43 | gtk.Widget | |
| 43 | 44 | } | |
| 44 | 45 | ||
| 46 | + | var xStatusPageGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func StatusPageGLibType() types.GType { | |
| 49 | + | return xStatusPageGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 45 | 52 | func StatusPageNewFromInternalPtr(ptr uintptr) *StatusPage { | |
| 46 | 53 | cls := &StatusPage{} | |
| 47 | 54 | cls.Ptr = ptr | |
| @@ -336,6 +343,8 @@ func init() { | |||
| 336 | 343 | panic(err) | |
| 337 | 344 | } | |
| 338 | 345 | ||
| 346 | + | core.PuregoSafeRegister(&xStatusPageGLibType, lib, "adw_status_page_get_type") | |
| 347 | + | ||
| 339 | 348 | core.PuregoSafeRegister(&xNewStatusPage, lib, "adw_status_page_new") | |
| 340 | 349 | ||
| 341 | 350 | core.PuregoSafeRegister(&xStatusPageGetChild, lib, "adw_status_page_get_child") | |
M v4/adw/adw-style-manager.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type StyleManagerClass struct { | |
| @@ -21,6 +22,12 @@ func (x *StyleManagerClass) GoPointer() uintptr { | |||
| 21 | 22 | // Application color schemes for [property@StyleManager:color-scheme]. | |
| 22 | 23 | type ColorScheme int | |
| 23 | 24 | ||
| 25 | + | var xColorSchemeGLibType func() types.GType | |
| 26 | + | ||
| 27 | + | func ColorSchemeGLibType() types.GType { | |
| 28 | + | return xColorSchemeGLibType() | |
| 29 | + | } | |
| 30 | + | ||
| 24 | 31 | const ( | |
| 25 | 32 | ||
| 26 | 33 | // Inherit the parent color-scheme. When set on the | |
| @@ -51,6 +58,12 @@ type StyleManager struct { | |||
| 51 | 58 | gobject.Object | |
| 52 | 59 | } | |
| 53 | 60 | ||
| 61 | + | var xStyleManagerGLibType func() types.GType | |
| 62 | + | ||
| 63 | + | func StyleManagerGLibType() types.GType { | |
| 64 | + | return xStyleManagerGLibType() | |
| 65 | + | } | |
| 66 | + | ||
| 54 | 67 | func StyleManagerNewFromInternalPtr(ptr uintptr) *StyleManager { | |
| 55 | 68 | cls := &StyleManager{} | |
| 56 | 69 | cls.Ptr = ptr | |
| @@ -219,6 +232,10 @@ func init() { | |||
| 219 | 232 | panic(err) | |
| 220 | 233 | } | |
| 221 | 234 | ||
| 235 | + | core.PuregoSafeRegister(&xColorSchemeGLibType, lib, "adw_color_scheme_get_type") | |
| 236 | + | ||
| 237 | + | core.PuregoSafeRegister(&xStyleManagerGLibType, lib, "adw_style_manager_get_type") | |
| 238 | + | ||
| 222 | 239 | core.PuregoSafeRegister(&xStyleManagerGetColorScheme, lib, "adw_style_manager_get_color_scheme") | |
| 223 | 240 | core.PuregoSafeRegister(&xStyleManagerGetDark, lib, "adw_style_manager_get_dark") | |
| 224 | 241 | core.PuregoSafeRegister(&xStyleManagerGetDisplay, lib, "adw_style_manager_get_display") | |
M v4/adw/adw-swipe-tracker.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -33,6 +34,12 @@ type SwipeTracker struct { | |||
| 33 | 34 | gobject.Object | |
| 34 | 35 | } | |
| 35 | 36 | ||
| 37 | + | var xSwipeTrackerGLibType func() types.GType | |
| 38 | + | ||
| 39 | + | func SwipeTrackerGLibType() types.GType { | |
| 40 | + | return xSwipeTrackerGLibType() | |
| 41 | + | } | |
| 42 | + | ||
| 36 | 43 | func SwipeTrackerNewFromInternalPtr(ptr uintptr) *SwipeTracker { | |
| 37 | 44 | cls := &SwipeTracker{} | |
| 38 | 45 | cls.Ptr = ptr | |
| @@ -282,6 +289,8 @@ func init() { | |||
| 282 | 289 | panic(err) | |
| 283 | 290 | } | |
| 284 | 291 | ||
| 292 | + | core.PuregoSafeRegister(&xSwipeTrackerGLibType, lib, "adw_swipe_tracker_get_type") | |
| 293 | + | ||
| 285 | 294 | core.PuregoSafeRegister(&xNewSwipeTracker, lib, "adw_swipe_tracker_new") | |
| 286 | 295 | ||
| 287 | 296 | core.PuregoSafeRegister(&xSwipeTrackerGetAllowLongSwipes, lib, "adw_swipe_tracker_get_allow_long_swipes") | |
M v4/adw/adw-swipeable.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // An interface for swipeable widgets. | |
| @@ -34,6 +35,13 @@ type Swipeable interface { | |||
| 34 | 35 | GetSnapPoints(NSnapPointsVar int) []float64 | |
| 35 | 36 | GetSwipeArea(NavigationDirectionVar NavigationDirection, IsDragVar bool, RectVar *gdk.Rectangle) | |
| 36 | 37 | } | |
| 38 | + | ||
| 39 | + | var xSwipeableGLibType func() types.GType | |
| 40 | + | ||
| 41 | + | func SwipeableGLibType() types.GType { | |
| 42 | + | return xSwipeableGLibType() | |
| 43 | + | } | |
| 44 | + | ||
| 37 | 45 | type SwipeableBase struct { | |
| 38 | 46 | Ptr uintptr | |
| 39 | 47 | } | |
| @@ -106,6 +114,8 @@ func init() { | |||
| 106 | 114 | panic(err) | |
| 107 | 115 | } | |
| 108 | 116 | ||
| 117 | + | core.PuregoSafeRegister(&xSwipeableGLibType, lib, "adw_swipeable_get_type") | |
| 118 | + | ||
| 109 | 119 | core.PuregoSafeRegister(&XAdwSwipeableGetCancelProgress, lib, "adw_swipeable_get_cancel_progress") | |
| 110 | 120 | core.PuregoSafeRegister(&XAdwSwipeableGetDistance, lib, "adw_swipeable_get_distance") | |
| 111 | 121 | core.PuregoSafeRegister(&XAdwSwipeableGetProgress, lib, "adw_swipeable_get_progress") | |
M v4/adw/adw-tab-bar.go +8 -0
| @@ -47,6 +47,12 @@ type TabBar struct { | |||
| 47 | 47 | gtk.Widget | |
| 48 | 48 | } | |
| 49 | 49 | ||
| 50 | + | var xTabBarGLibType func() types.GType | |
| 51 | + | ||
| 52 | + | func TabBarGLibType() types.GType { | |
| 53 | + | return xTabBarGLibType() | |
| 54 | + | } | |
| 55 | + | ||
| 50 | 56 | func TabBarNewFromInternalPtr(ptr uintptr) *TabBar { | |
| 51 | 57 | cls := &TabBar{} | |
| 52 | 58 | cls.Ptr = ptr | |
| @@ -484,6 +490,8 @@ func init() { | |||
| 484 | 490 | panic(err) | |
| 485 | 491 | } | |
| 486 | 492 | ||
| 493 | + | core.PuregoSafeRegister(&xTabBarGLibType, lib, "adw_tab_bar_get_type") | |
| 494 | + | ||
| 487 | 495 | core.PuregoSafeRegister(&xNewTabBar, lib, "adw_tab_bar_new") | |
| 488 | 496 | ||
| 489 | 497 | core.PuregoSafeRegister(&xTabBarGetAutohide, lib, "adw_tab_bar_get_autohide") | |
M v4/adw/adw-tab-button.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -55,6 +56,12 @@ type TabButton struct { | |||
| 55 | 56 | gtk.Widget | |
| 56 | 57 | } | |
| 57 | 58 | ||
| 59 | + | var xTabButtonGLibType func() types.GType | |
| 60 | + | ||
| 61 | + | func TabButtonGLibType() types.GType { | |
| 62 | + | return xTabButtonGLibType() | |
| 63 | + | } | |
| 64 | + | ||
| 58 | 65 | func TabButtonNewFromInternalPtr(ptr uintptr) *TabButton { | |
| 59 | 66 | cls := &TabButton{} | |
| 60 | 67 | cls.Ptr = ptr | |
| @@ -387,6 +394,8 @@ func init() { | |||
| 387 | 394 | panic(err) | |
| 388 | 395 | } | |
| 389 | 396 | ||
| 397 | + | core.PuregoSafeRegister(&xTabButtonGLibType, lib, "adw_tab_button_get_type") | |
| 398 | + | ||
| 390 | 399 | core.PuregoSafeRegister(&xNewTabButton, lib, "adw_tab_button_new") | |
| 391 | 400 | ||
| 392 | 401 | core.PuregoSafeRegister(&xTabButtonGetView, lib, "adw_tab_button_get_view") | |
M v4/adw/adw-tab-overview.go +8 -0
| @@ -84,6 +84,12 @@ type TabOverview struct { | |||
| 84 | 84 | gtk.Widget | |
| 85 | 85 | } | |
| 86 | 86 | ||
| 87 | + | var xTabOverviewGLibType func() types.GType | |
| 88 | + | ||
| 89 | + | func TabOverviewGLibType() types.GType { | |
| 90 | + | return xTabOverviewGLibType() | |
| 91 | + | } | |
| 92 | + | ||
| 87 | 93 | func TabOverviewNewFromInternalPtr(ptr uintptr) *TabOverview { | |
| 88 | 94 | cls := &TabOverview{} | |
| 89 | 95 | cls.Ptr = ptr | |
| @@ -603,6 +609,8 @@ func init() { | |||
| 603 | 609 | panic(err) | |
| 604 | 610 | } | |
| 605 | 611 | ||
| 612 | + | core.PuregoSafeRegister(&xTabOverviewGLibType, lib, "adw_tab_overview_get_type") | |
| 613 | + | ||
| 606 | 614 | core.PuregoSafeRegister(&xNewTabOverview, lib, "adw_tab_overview_new") | |
| 607 | 615 | ||
| 608 | 616 | core.PuregoSafeRegister(&xTabOverviewGetChild, lib, "adw_tab_overview_get_child") | |
M v4/adw/adw-tab-view.go +25 -0
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 13 | 14 | ) | |
| 14 | 15 | ||
| @@ -37,6 +38,12 @@ func (x *TabViewClass) GoPointer() uintptr { | |||
| 37 | 38 | // New values may be added to this enumeration over time. | |
| 38 | 39 | type TabViewShortcuts int | |
| 39 | 40 | ||
| 41 | + | var xTabViewShortcutsGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func TabViewShortcutsGLibType() types.GType { | |
| 44 | + | return xTabViewShortcutsGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | const ( | |
| 41 | 48 | ||
| 42 | 49 | // No shortcuts | |
| @@ -79,6 +86,12 @@ type TabPage struct { | |||
| 79 | 86 | gobject.Object | |
| 80 | 87 | } | |
| 81 | 88 | ||
| 89 | + | var xTabPageGLibType func() types.GType | |
| 90 | + | ||
| 91 | + | func TabPageGLibType() types.GType { | |
| 92 | + | return xTabPageGLibType() | |
| 93 | + | } | |
| 94 | + | ||
| 82 | 95 | func TabPageNewFromInternalPtr(ptr uintptr) *TabPage { | |
| 83 | 96 | cls := &TabPage{} | |
| 84 | 97 | cls.Ptr = ptr | |
| @@ -667,6 +680,12 @@ type TabView struct { | |||
| 667 | 680 | gtk.Widget | |
| 668 | 681 | } | |
| 669 | 682 | ||
| 683 | + | var xTabViewGLibType func() types.GType | |
| 684 | + | ||
| 685 | + | func TabViewGLibType() types.GType { | |
| 686 | + | return xTabViewGLibType() | |
| 687 | + | } | |
| 688 | + | ||
| 670 | 689 | func TabViewNewFromInternalPtr(ptr uintptr) *TabView { | |
| 671 | 690 | cls := &TabView{} | |
| 672 | 691 | cls.Ptr = ptr | |
| @@ -1614,6 +1633,10 @@ func init() { | |||
| 1614 | 1633 | panic(err) | |
| 1615 | 1634 | } | |
| 1616 | 1635 | ||
| 1636 | + | core.PuregoSafeRegister(&xTabViewShortcutsGLibType, lib, "adw_tab_view_shortcuts_get_type") | |
| 1637 | + | ||
| 1638 | + | core.PuregoSafeRegister(&xTabPageGLibType, lib, "adw_tab_page_get_type") | |
| 1639 | + | ||
| 1617 | 1640 | core.PuregoSafeRegister(&xTabPageGetChild, lib, "adw_tab_page_get_child") | |
| 1618 | 1641 | core.PuregoSafeRegister(&xTabPageGetIcon, lib, "adw_tab_page_get_icon") | |
| 1619 | 1642 | core.PuregoSafeRegister(&xTabPageGetIndicatorActivatable, lib, "adw_tab_page_get_indicator_activatable") | |
| @@ -1644,6 +1667,8 @@ func init() { | |||
| 1644 | 1667 | core.PuregoSafeRegister(&xTabPageSetTitle, lib, "adw_tab_page_set_title") | |
| 1645 | 1668 | core.PuregoSafeRegister(&xTabPageSetTooltip, lib, "adw_tab_page_set_tooltip") | |
| 1646 | 1669 | ||
| 1670 | + | core.PuregoSafeRegister(&xTabViewGLibType, lib, "adw_tab_view_get_type") | |
| 1671 | + | ||
| 1647 | 1672 | core.PuregoSafeRegister(&xNewTabView, lib, "adw_tab_view_new") | |
| 1648 | 1673 | ||
| 1649 | 1674 | core.PuregoSafeRegister(&xTabViewAddPage, lib, "adw_tab_view_add_page") | |
M v4/adw/adw-timed-animation.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -37,6 +38,12 @@ type TimedAnimation struct { | |||
| 37 | 38 | Animation | |
| 38 | 39 | } | |
| 39 | 40 | ||
| 41 | + | var xTimedAnimationGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func TimedAnimationGLibType() types.GType { | |
| 44 | + | return xTimedAnimationGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | func TimedAnimationNewFromInternalPtr(ptr uintptr) *TimedAnimation { | |
| 41 | 48 | cls := &TimedAnimation{} | |
| 42 | 49 | cls.Ptr = ptr | |
| @@ -219,6 +226,8 @@ func init() { | |||
| 219 | 226 | panic(err) | |
| 220 | 227 | } | |
| 221 | 228 | ||
| 229 | + | core.PuregoSafeRegister(&xTimedAnimationGLibType, lib, "adw_timed_animation_get_type") | |
| 230 | + | ||
| 222 | 231 | core.PuregoSafeRegister(&xNewTimedAnimation, lib, "adw_timed_animation_new") | |
| 223 | 232 | ||
| 224 | 233 | core.PuregoSafeRegister(&xTimedAnimationGetAlternate, lib, "adw_timed_animation_get_alternate") | |
M v4/adw/adw-toast-overlay.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -65,6 +66,12 @@ type ToastOverlay struct { | |||
| 65 | 66 | gtk.Widget | |
| 66 | 67 | } | |
| 67 | 68 | ||
| 69 | + | var xToastOverlayGLibType func() types.GType | |
| 70 | + | ||
| 71 | + | func ToastOverlayGLibType() types.GType { | |
| 72 | + | return xToastOverlayGLibType() | |
| 73 | + | } | |
| 74 | + | ||
| 68 | 75 | func ToastOverlayNewFromInternalPtr(ptr uintptr) *ToastOverlay { | |
| 69 | 76 | cls := &ToastOverlay{} | |
| 70 | 77 | cls.Ptr = ptr | |
| @@ -289,6 +296,8 @@ func init() { | |||
| 289 | 296 | panic(err) | |
| 290 | 297 | } | |
| 291 | 298 | ||
| 299 | + | core.PuregoSafeRegister(&xToastOverlayGLibType, lib, "adw_toast_overlay_get_type") | |
| 300 | + | ||
| 292 | 301 | core.PuregoSafeRegister(&xNewToastOverlay, lib, "adw_toast_overlay_new") | |
| 293 | 302 | ||
| 294 | 303 | core.PuregoSafeRegister(&xToastOverlayAddToast, lib, "adw_toast_overlay_add_toast") | |
M v4/adw/adw-toast.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -22,6 +23,12 @@ func (x *ToastClass) GoPointer() uintptr { | |||
| 22 | 23 | // [class@Toast] behavior when another toast is already displayed. | |
| 23 | 24 | type ToastPriority int | |
| 24 | 25 | ||
| 26 | + | var xToastPriorityGLibType func() types.GType | |
| 27 | + | ||
| 28 | + | func ToastPriorityGLibType() types.GType { | |
| 29 | + | return xToastPriorityGLibType() | |
| 30 | + | } | |
| 31 | + | ||
| 25 | 32 | const ( | |
| 26 | 33 | ||
| 27 | 34 | // the toast will be queued if another toast is | |
| @@ -167,6 +174,12 @@ type Toast struct { | |||
| 167 | 174 | gobject.Object | |
| 168 | 175 | } | |
| 169 | 176 | ||
| 177 | + | var xToastGLibType func() types.GType | |
| 178 | + | ||
| 179 | + | func ToastGLibType() types.GType { | |
| 180 | + | return xToastGLibType() | |
| 181 | + | } | |
| 182 | + | ||
| 170 | 183 | func ToastNewFromInternalPtr(ptr uintptr) *Toast { | |
| 171 | 184 | cls := &Toast{} | |
| 172 | 185 | cls.Ptr = ptr | |
| @@ -485,6 +498,10 @@ func init() { | |||
| 485 | 498 | panic(err) | |
| 486 | 499 | } | |
| 487 | 500 | ||
| 501 | + | core.PuregoSafeRegister(&xToastPriorityGLibType, lib, "adw_toast_priority_get_type") | |
| 502 | + | ||
| 503 | + | core.PuregoSafeRegister(&xToastGLibType, lib, "adw_toast_get_type") | |
| 504 | + | ||
| 488 | 505 | core.PuregoSafeRegister(&xNewToast, lib, "adw_toast_new") | |
| 489 | 506 | core.PuregoSafeRegister(&xNewToastFormat, lib, "adw_toast_new_format") | |
| 490 | 507 | ||
M v4/adw/adw-version.go +1 -0
| @@ -71,6 +71,7 @@ func init() { | |||
| 71 | 71 | if err != nil { | |
| 72 | 72 | panic(err) | |
| 73 | 73 | } | |
| 74 | + | ||
| 74 | 75 | core.PuregoSafeRegister(&xGetMajorVersion, lib, "adw_get_major_version") | |
| 75 | 76 | core.PuregoSafeRegister(&xGetMicroVersion, lib, "adw_get_micro_version") | |
| 76 | 77 | core.PuregoSafeRegister(&xGetMinorVersion, lib, "adw_get_minor_version") | |
M v4/adw/adw-view-stack.go +17 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -86,6 +87,12 @@ type ViewStack struct { | |||
| 86 | 87 | gtk.Widget | |
| 87 | 88 | } | |
| 88 | 89 | ||
| 90 | + | var xViewStackGLibType func() types.GType | |
| 91 | + | ||
| 92 | + | func ViewStackGLibType() types.GType { | |
| 93 | + | return xViewStackGLibType() | |
| 94 | + | } | |
| 95 | + | ||
| 89 | 96 | func ViewStackNewFromInternalPtr(ptr uintptr) *ViewStack { | |
| 90 | 97 | cls := &ViewStack{} | |
| 91 | 98 | cls.Ptr = ptr | |
| @@ -498,6 +505,12 @@ type ViewStackPage struct { | |||
| 498 | 505 | gobject.Object | |
| 499 | 506 | } | |
| 500 | 507 | ||
| 508 | + | var xViewStackPageGLibType func() types.GType | |
| 509 | + | ||
| 510 | + | func ViewStackPageGLibType() types.GType { | |
| 511 | + | return xViewStackPageGLibType() | |
| 512 | + | } | |
| 513 | + | ||
| 501 | 514 | func ViewStackPageNewFromInternalPtr(ptr uintptr) *ViewStackPage { | |
| 502 | 515 | cls := &ViewStackPage{} | |
| 503 | 516 | cls.Ptr = ptr | |
| @@ -807,6 +820,8 @@ func init() { | |||
| 807 | 820 | panic(err) | |
| 808 | 821 | } | |
| 809 | 822 | ||
| 823 | + | core.PuregoSafeRegister(&xViewStackGLibType, lib, "adw_view_stack_get_type") | |
| 824 | + | ||
| 810 | 825 | core.PuregoSafeRegister(&xNewViewStack, lib, "adw_view_stack_new") | |
| 811 | 826 | ||
| 812 | 827 | core.PuregoSafeRegister(&xViewStackAdd, lib, "adw_view_stack_add") | |
| @@ -826,6 +841,8 @@ func init() { | |||
| 826 | 841 | core.PuregoSafeRegister(&xViewStackSetVisibleChild, lib, "adw_view_stack_set_visible_child") | |
| 827 | 842 | core.PuregoSafeRegister(&xViewStackSetVisibleChildName, lib, "adw_view_stack_set_visible_child_name") | |
| 828 | 843 | ||
| 844 | + | core.PuregoSafeRegister(&xViewStackPageGLibType, lib, "adw_view_stack_page_get_type") | |
| 845 | + | ||
| 829 | 846 | core.PuregoSafeRegister(&xViewStackPageGetBadgeNumber, lib, "adw_view_stack_page_get_badge_number") | |
| 830 | 847 | core.PuregoSafeRegister(&xViewStackPageGetChild, lib, "adw_view_stack_page_get_child") | |
| 831 | 848 | core.PuregoSafeRegister(&xViewStackPageGetIconName, lib, "adw_view_stack_page_get_icon_name") | |
M v4/adw/adw-view-switcher-bar.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -80,6 +81,12 @@ type ViewSwitcherBar struct { | |||
| 80 | 81 | gtk.Widget | |
| 81 | 82 | } | |
| 82 | 83 | ||
| 84 | + | var xViewSwitcherBarGLibType func() types.GType | |
| 85 | + | ||
| 86 | + | func ViewSwitcherBarGLibType() types.GType { | |
| 87 | + | return xViewSwitcherBarGLibType() | |
| 88 | + | } | |
| 89 | + | ||
| 83 | 90 | func ViewSwitcherBarNewFromInternalPtr(ptr uintptr) *ViewSwitcherBar { | |
| 84 | 91 | cls := &ViewSwitcherBar{} | |
| 85 | 92 | cls.Ptr = ptr | |
| @@ -304,6 +311,8 @@ func init() { | |||
| 304 | 311 | panic(err) | |
| 305 | 312 | } | |
| 306 | 313 | ||
| 314 | + | core.PuregoSafeRegister(&xViewSwitcherBarGLibType, lib, "adw_view_switcher_bar_get_type") | |
| 315 | + | ||
| 307 | 316 | core.PuregoSafeRegister(&xNewViewSwitcherBar, lib, "adw_view_switcher_bar_new") | |
| 308 | 317 | ||
| 309 | 318 | core.PuregoSafeRegister(&xViewSwitcherBarGetReveal, lib, "adw_view_switcher_bar_get_reveal") | |
M v4/adw/adw-view-switcher-title.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -86,6 +87,12 @@ type ViewSwitcherTitle struct { | |||
| 86 | 87 | gtk.Widget | |
| 87 | 88 | } | |
| 88 | 89 | ||
| 90 | + | var xViewSwitcherTitleGLibType func() types.GType | |
| 91 | + | ||
| 92 | + | func ViewSwitcherTitleGLibType() types.GType { | |
| 93 | + | return xViewSwitcherTitleGLibType() | |
| 94 | + | } | |
| 95 | + | ||
| 89 | 96 | func ViewSwitcherTitleNewFromInternalPtr(ptr uintptr) *ViewSwitcherTitle { | |
| 90 | 97 | cls := &ViewSwitcherTitle{} | |
| 91 | 98 | cls.Ptr = ptr | |
| @@ -370,6 +377,8 @@ func init() { | |||
| 370 | 377 | panic(err) | |
| 371 | 378 | } | |
| 372 | 379 | ||
| 380 | + | core.PuregoSafeRegister(&xViewSwitcherTitleGLibType, lib, "adw_view_switcher_title_get_type") | |
| 381 | + | ||
| 373 | 382 | core.PuregoSafeRegister(&xNewViewSwitcherTitle, lib, "adw_view_switcher_title_new") | |
| 374 | 383 | ||
| 375 | 384 | core.PuregoSafeRegister(&xViewSwitcherTitleGetStack, lib, "adw_view_switcher_title_get_stack") | |
M v4/adw/adw-view-switcher.go +17 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -21,6 +22,12 @@ func (x *ViewSwitcherClass) GoPointer() uintptr { | |||
| 21 | 22 | // Describes the adaptive modes of [class@ViewSwitcher]. | |
| 22 | 23 | type ViewSwitcherPolicy int | |
| 23 | 24 | ||
| 25 | + | var xViewSwitcherPolicyGLibType func() types.GType | |
| 26 | + | ||
| 27 | + | func ViewSwitcherPolicyGLibType() types.GType { | |
| 28 | + | return xViewSwitcherPolicyGLibType() | |
| 29 | + | } | |
| 30 | + | ||
| 24 | 31 | const ( | |
| 25 | 32 | ||
| 26 | 33 | // Force the narrow mode | |
| @@ -62,6 +69,12 @@ type ViewSwitcher struct { | |||
| 62 | 69 | gtk.Widget | |
| 63 | 70 | } | |
| 64 | 71 | ||
| 72 | + | var xViewSwitcherGLibType func() types.GType | |
| 73 | + | ||
| 74 | + | func ViewSwitcherGLibType() types.GType { | |
| 75 | + | return xViewSwitcherGLibType() | |
| 76 | + | } | |
| 77 | + | ||
| 65 | 78 | func ViewSwitcherNewFromInternalPtr(ptr uintptr) *ViewSwitcher { | |
| 66 | 79 | cls := &ViewSwitcher{} | |
| 67 | 80 | cls.Ptr = ptr | |
| @@ -286,6 +299,10 @@ func init() { | |||
| 286 | 299 | panic(err) | |
| 287 | 300 | } | |
| 288 | 301 | ||
| 302 | + | core.PuregoSafeRegister(&xViewSwitcherPolicyGLibType, lib, "adw_view_switcher_policy_get_type") | |
| 303 | + | ||
| 304 | + | core.PuregoSafeRegister(&xViewSwitcherGLibType, lib, "adw_view_switcher_get_type") | |
| 305 | + | ||
| 289 | 306 | core.PuregoSafeRegister(&xNewViewSwitcher, lib, "adw_view_switcher_new") | |
| 290 | 307 | ||
| 291 | 308 | core.PuregoSafeRegister(&xViewSwitcherGetPolicy, lib, "adw_view_switcher_get_policy") | |
M v4/adw/adw-window-title.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| @@ -37,6 +38,12 @@ type WindowTitle struct { | |||
| 37 | 38 | gtk.Widget | |
| 38 | 39 | } | |
| 39 | 40 | ||
| 41 | + | var xWindowTitleGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func WindowTitleGLibType() types.GType { | |
| 44 | + | return xWindowTitleGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | func WindowTitleNewFromInternalPtr(ptr uintptr) *WindowTitle { | |
| 41 | 48 | cls := &WindowTitle{} | |
| 42 | 49 | cls.Ptr = ptr | |
| @@ -258,6 +265,8 @@ func init() { | |||
| 258 | 265 | panic(err) | |
| 259 | 266 | } | |
| 260 | 267 | ||
| 268 | + | core.PuregoSafeRegister(&xWindowTitleGLibType, lib, "adw_window_title_get_type") | |
| 269 | + | ||
| 261 | 270 | core.PuregoSafeRegister(&xNewWindowTitle, lib, "adw_window_title_new") | |
| 262 | 271 | ||
| 263 | 272 | core.PuregoSafeRegister(&xWindowTitleGetSubtitle, lib, "adw_window_title_get_subtitle") | |
M v4/adw/adw-window.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/gsk" | |
| 12 | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | |
| 13 | 14 | ) | |
| @@ -59,6 +60,12 @@ type Window struct { | |||
| 59 | 60 | gtk.Window | |
| 60 | 61 | } | |
| 61 | 62 | ||
| 63 | + | var xWindowGLibType func() types.GType | |
| 64 | + | ||
| 65 | + | func WindowGLibType() types.GType { | |
| 66 | + | return xWindowGLibType() | |
| 67 | + | } | |
| 68 | + | ||
| 62 | 69 | func WindowNewFromInternalPtr(ptr uintptr) *Window { | |
| 63 | 70 | cls := &Window{} | |
| 64 | 71 | cls.Ptr = ptr | |
| @@ -376,6 +383,8 @@ func init() { | |||
| 376 | 383 | panic(err) | |
| 377 | 384 | } | |
| 378 | 385 | ||
| 386 | + | core.PuregoSafeRegister(&xWindowGLibType, lib, "adw_window_get_type") | |
| 387 | + | ||
| 379 | 388 | core.PuregoSafeRegister(&xNewWindow, lib, "adw_window_new") | |
| 380 | 389 | ||
| 381 | 390 | core.PuregoSafeRegister(&xWindowGetContent, lib, "adw_window_get_content") | |
M v4/cairo/main.go +258 -0
| @@ -6,11 +6,18 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | type Context struct { | |
| 12 | 13 | } | |
| 13 | 14 | ||
| 15 | + | var xContextGLibType func() types.GType | |
| 16 | + | ||
| 17 | + | func ContextGLibType() types.GType { | |
| 18 | + | return xContextGLibType() | |
| 19 | + | } | |
| 20 | + | ||
| 14 | 21 | func (x *Context) GoPointer() uintptr { | |
| 15 | 22 | return uintptr(unsafe.Pointer(x)) | |
| 16 | 23 | } | |
| @@ -18,6 +25,12 @@ func (x *Context) GoPointer() uintptr { | |||
| 18 | 25 | type Device struct { | |
| 19 | 26 | } | |
| 20 | 27 | ||
| 28 | + | var xDeviceGLibType func() types.GType | |
| 29 | + | ||
| 30 | + | func DeviceGLibType() types.GType { | |
| 31 | + | return xDeviceGLibType() | |
| 32 | + | } | |
| 33 | + | ||
| 21 | 34 | func (x *Device) GoPointer() uintptr { | |
| 22 | 35 | return uintptr(unsafe.Pointer(x)) | |
| 23 | 36 | } | |
| @@ -25,6 +38,12 @@ func (x *Device) GoPointer() uintptr { | |||
| 25 | 38 | type Surface struct { | |
| 26 | 39 | } | |
| 27 | 40 | ||
| 41 | + | var xSurfaceGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func SurfaceGLibType() types.GType { | |
| 44 | + | return xSurfaceGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 28 | 47 | func (x *Surface) GoPointer() uintptr { | |
| 29 | 48 | return uintptr(unsafe.Pointer(x)) | |
| 30 | 49 | } | |
| @@ -39,6 +58,12 @@ func (x *Matrix) GoPointer() uintptr { | |||
| 39 | 58 | type Pattern struct { | |
| 40 | 59 | } | |
| 41 | 60 | ||
| 61 | + | var xPatternGLibType func() types.GType | |
| 62 | + | ||
| 63 | + | func PatternGLibType() types.GType { | |
| 64 | + | return xPatternGLibType() | |
| 65 | + | } | |
| 66 | + | ||
| 42 | 67 | func (x *Pattern) GoPointer() uintptr { | |
| 43 | 68 | return uintptr(unsafe.Pointer(x)) | |
| 44 | 69 | } | |
| @@ -46,6 +71,12 @@ func (x *Pattern) GoPointer() uintptr { | |||
| 46 | 71 | type Region struct { | |
| 47 | 72 | } | |
| 48 | 73 | ||
| 74 | + | var xRegionGLibType func() types.GType | |
| 75 | + | ||
| 76 | + | func RegionGLibType() types.GType { | |
| 77 | + | return xRegionGLibType() | |
| 78 | + | } | |
| 79 | + | ||
| 49 | 80 | func (x *Region) GoPointer() uintptr { | |
| 50 | 81 | return uintptr(unsafe.Pointer(x)) | |
| 51 | 82 | } | |
| @@ -53,6 +84,12 @@ func (x *Region) GoPointer() uintptr { | |||
| 53 | 84 | type FontOptions struct { | |
| 54 | 85 | } | |
| 55 | 86 | ||
| 87 | + | var xFontOptionsGLibType func() types.GType | |
| 88 | + | ||
| 89 | + | func FontOptionsGLibType() types.GType { | |
| 90 | + | return xFontOptionsGLibType() | |
| 91 | + | } | |
| 92 | + | ||
| 56 | 93 | func (x *FontOptions) GoPointer() uintptr { | |
| 57 | 94 | return uintptr(unsafe.Pointer(x)) | |
| 58 | 95 | } | |
| @@ -60,6 +97,12 @@ func (x *FontOptions) GoPointer() uintptr { | |||
| 60 | 97 | type FontFace struct { | |
| 61 | 98 | } | |
| 62 | 99 | ||
| 100 | + | var xFontFaceGLibType func() types.GType | |
| 101 | + | ||
| 102 | + | func FontFaceGLibType() types.GType { | |
| 103 | + | return xFontFaceGLibType() | |
| 104 | + | } | |
| 105 | + | ||
| 63 | 106 | func (x *FontFace) GoPointer() uintptr { | |
| 64 | 107 | return uintptr(unsafe.Pointer(x)) | |
| 65 | 108 | } | |
| @@ -67,6 +110,12 @@ func (x *FontFace) GoPointer() uintptr { | |||
| 67 | 110 | type ScaledFont struct { | |
| 68 | 111 | } | |
| 69 | 112 | ||
| 113 | + | var xScaledFontGLibType func() types.GType | |
| 114 | + | ||
| 115 | + | func ScaledFontGLibType() types.GType { | |
| 116 | + | return xScaledFontGLibType() | |
| 117 | + | } | |
| 118 | + | ||
| 70 | 119 | func (x *ScaledFont) GoPointer() uintptr { | |
| 71 | 120 | return uintptr(unsafe.Pointer(x)) | |
| 72 | 121 | } | |
| @@ -88,6 +137,12 @@ type Rectangle struct { | |||
| 88 | 137 | Height float64 | |
| 89 | 138 | } | |
| 90 | 139 | ||
| 140 | + | var xRectangleGLibType func() types.GType | |
| 141 | + | ||
| 142 | + | func RectangleGLibType() types.GType { | |
| 143 | + | return xRectangleGLibType() | |
| 144 | + | } | |
| 145 | + | ||
| 91 | 146 | func (x *Rectangle) GoPointer() uintptr { | |
| 92 | 147 | return uintptr(unsafe.Pointer(x)) | |
| 93 | 148 | } | |
| @@ -102,12 +157,24 @@ type RectangleInt struct { | |||
| 102 | 157 | Height int32 | |
| 103 | 158 | } | |
| 104 | 159 | ||
| 160 | + | var xRectangleIntGLibType func() types.GType | |
| 161 | + | ||
| 162 | + | func RectangleIntGLibType() types.GType { | |
| 163 | + | return xRectangleIntGLibType() | |
| 164 | + | } | |
| 165 | + | ||
| 105 | 166 | func (x *RectangleInt) GoPointer() uintptr { | |
| 106 | 167 | return uintptr(unsafe.Pointer(x)) | |
| 107 | 168 | } | |
| 108 | 169 | ||
| 109 | 170 | type Status int | |
| 110 | 171 | ||
| 172 | + | var xStatusGLibType func() types.GType | |
| 173 | + | ||
| 174 | + | func StatusGLibType() types.GType { | |
| 175 | + | return xStatusGLibType() | |
| 176 | + | } | |
| 177 | + | ||
| 111 | 178 | const ( | |
| 112 | 179 | StatusSuccessValue Status = 0 | |
| 113 | 180 | ||
| @@ -190,6 +257,12 @@ const ( | |||
| 190 | 257 | ||
| 191 | 258 | type Content int | |
| 192 | 259 | ||
| 260 | + | var xContentGLibType func() types.GType | |
| 261 | + | ||
| 262 | + | func ContentGLibType() types.GType { | |
| 263 | + | return xContentGLibType() | |
| 264 | + | } | |
| 265 | + | ||
| 193 | 266 | const ( | |
| 194 | 267 | ContentColorValue Content = 4096 | |
| 195 | 268 | ||
| @@ -200,6 +273,12 @@ const ( | |||
| 200 | 273 | ||
| 201 | 274 | type Operator int | |
| 202 | 275 | ||
| 276 | + | var xOperatorGLibType func() types.GType | |
| 277 | + | ||
| 278 | + | func OperatorGLibType() types.GType { | |
| 279 | + | return xOperatorGLibType() | |
| 280 | + | } | |
| 281 | + | ||
| 203 | 282 | const ( | |
| 204 | 283 | OperatorClearValue Operator = 0 | |
| 205 | 284 | ||
| @@ -262,6 +341,12 @@ const ( | |||
| 262 | 341 | ||
| 263 | 342 | type Antialias int | |
| 264 | 343 | ||
| 344 | + | var xAntialiasGLibType func() types.GType | |
| 345 | + | ||
| 346 | + | func AntialiasGLibType() types.GType { | |
| 347 | + | return xAntialiasGLibType() | |
| 348 | + | } | |
| 349 | + | ||
| 265 | 350 | const ( | |
| 266 | 351 | AntialiasDefaultValue Antialias = 0 | |
| 267 | 352 | ||
| @@ -280,6 +365,12 @@ const ( | |||
| 280 | 365 | ||
| 281 | 366 | type FillRule int | |
| 282 | 367 | ||
| 368 | + | var xFillRuleGLibType func() types.GType | |
| 369 | + | ||
| 370 | + | func FillRuleGLibType() types.GType { | |
| 371 | + | return xFillRuleGLibType() | |
| 372 | + | } | |
| 373 | + | ||
| 283 | 374 | const ( | |
| 284 | 375 | FillRuleWindingValue FillRule = 0 | |
| 285 | 376 | ||
| @@ -288,6 +379,12 @@ const ( | |||
| 288 | 379 | ||
| 289 | 380 | type LineCap int | |
| 290 | 381 | ||
| 382 | + | var xLineCapGLibType func() types.GType | |
| 383 | + | ||
| 384 | + | func LineCapGLibType() types.GType { | |
| 385 | + | return xLineCapGLibType() | |
| 386 | + | } | |
| 387 | + | ||
| 291 | 388 | const ( | |
| 292 | 389 | LineCapButtValue LineCap = 0 | |
| 293 | 390 | ||
| @@ -298,6 +395,12 @@ const ( | |||
| 298 | 395 | ||
| 299 | 396 | type LineJoin int | |
| 300 | 397 | ||
| 398 | + | var xLineJoinGLibType func() types.GType | |
| 399 | + | ||
| 400 | + | func LineJoinGLibType() types.GType { | |
| 401 | + | return xLineJoinGLibType() | |
| 402 | + | } | |
| 403 | + | ||
| 301 | 404 | const ( | |
| 302 | 405 | LineJoinMiterValue LineJoin = 0 | |
| 303 | 406 | ||
| @@ -308,12 +411,24 @@ const ( | |||
| 308 | 411 | ||
| 309 | 412 | type TextClusterFlags int | |
| 310 | 413 | ||
| 414 | + | var xTextClusterFlagsGLibType func() types.GType | |
| 415 | + | ||
| 416 | + | func TextClusterFlagsGLibType() types.GType { | |
| 417 | + | return xTextClusterFlagsGLibType() | |
| 418 | + | } | |
| 419 | + | ||
| 311 | 420 | const ( | |
| 312 | 421 | TextClusterFlagBackwardValue TextClusterFlags = 1 | |
| 313 | 422 | ) | |
| 314 | 423 | ||
| 315 | 424 | type FontSlant int | |
| 316 | 425 | ||
| 426 | + | var xFontSlantGLibType func() types.GType | |
| 427 | + | ||
| 428 | + | func FontSlantGLibType() types.GType { | |
| 429 | + | return xFontSlantGLibType() | |
| 430 | + | } | |
| 431 | + | ||
| 317 | 432 | const ( | |
| 318 | 433 | FontSlantNormalValue FontSlant = 0 | |
| 319 | 434 | ||
| @@ -324,6 +439,12 @@ const ( | |||
| 324 | 439 | ||
| 325 | 440 | type FontWeight int | |
| 326 | 441 | ||
| 442 | + | var xFontWeightGLibType func() types.GType | |
| 443 | + | ||
| 444 | + | func FontWeightGLibType() types.GType { | |
| 445 | + | return xFontWeightGLibType() | |
| 446 | + | } | |
| 447 | + | ||
| 327 | 448 | const ( | |
| 328 | 449 | FontWeightNormalValue FontWeight = 0 | |
| 329 | 450 | ||
| @@ -332,6 +453,12 @@ const ( | |||
| 332 | 453 | ||
| 333 | 454 | type SubpixelOrder int | |
| 334 | 455 | ||
| 456 | + | var xSubpixelOrderGLibType func() types.GType | |
| 457 | + | ||
| 458 | + | func SubpixelOrderGLibType() types.GType { | |
| 459 | + | return xSubpixelOrderGLibType() | |
| 460 | + | } | |
| 461 | + | ||
| 335 | 462 | const ( | |
| 336 | 463 | SubpixelOrderDefaultValue SubpixelOrder = 0 | |
| 337 | 464 | ||
| @@ -346,6 +473,12 @@ const ( | |||
| 346 | 473 | ||
| 347 | 474 | type HintStyle int | |
| 348 | 475 | ||
| 476 | + | var xHintStyleGLibType func() types.GType | |
| 477 | + | ||
| 478 | + | func HintStyleGLibType() types.GType { | |
| 479 | + | return xHintStyleGLibType() | |
| 480 | + | } | |
| 481 | + | ||
| 349 | 482 | const ( | |
| 350 | 483 | HintStyleDefaultValue HintStyle = 0 | |
| 351 | 484 | ||
| @@ -360,6 +493,12 @@ const ( | |||
| 360 | 493 | ||
| 361 | 494 | type HintMetrics int | |
| 362 | 495 | ||
| 496 | + | var xHintMetricsGLibType func() types.GType | |
| 497 | + | ||
| 498 | + | func HintMetricsGLibType() types.GType { | |
| 499 | + | return xHintMetricsGLibType() | |
| 500 | + | } | |
| 501 | + | ||
| 363 | 502 | const ( | |
| 364 | 503 | HintMetricsDefaultValue HintMetrics = 0 | |
| 365 | 504 | ||
| @@ -370,6 +509,12 @@ const ( | |||
| 370 | 509 | ||
| 371 | 510 | type FontType int | |
| 372 | 511 | ||
| 512 | + | var xFontTypeGLibType func() types.GType | |
| 513 | + | ||
| 514 | + | func FontTypeGLibType() types.GType { | |
| 515 | + | return xFontTypeGLibType() | |
| 516 | + | } | |
| 517 | + | ||
| 373 | 518 | const ( | |
| 374 | 519 | FontTypeToyValue FontType = 0 | |
| 375 | 520 | ||
| @@ -384,6 +529,12 @@ const ( | |||
| 384 | 529 | ||
| 385 | 530 | type PathDataType int | |
| 386 | 531 | ||
| 532 | + | var xPathDataTypeGLibType func() types.GType | |
| 533 | + | ||
| 534 | + | func PathDataTypeGLibType() types.GType { | |
| 535 | + | return xPathDataTypeGLibType() | |
| 536 | + | } | |
| 537 | + | ||
| 387 | 538 | const ( | |
| 388 | 539 | PathMoveToValue PathDataType = 0 | |
| 389 | 540 | ||
| @@ -396,6 +547,12 @@ const ( | |||
| 396 | 547 | ||
| 397 | 548 | type DeviceType int | |
| 398 | 549 | ||
| 550 | + | var xDeviceTypeGLibType func() types.GType | |
| 551 | + | ||
| 552 | + | func DeviceTypeGLibType() types.GType { | |
| 553 | + | return xDeviceTypeGLibType() | |
| 554 | + | } | |
| 555 | + | ||
| 399 | 556 | const ( | |
| 400 | 557 | DeviceTypeDrmValue DeviceType = 0 | |
| 401 | 558 | ||
| @@ -418,6 +575,12 @@ const ( | |||
| 418 | 575 | ||
| 419 | 576 | type SurfaceType int | |
| 420 | 577 | ||
| 578 | + | var xSurfaceTypeGLibType func() types.GType | |
| 579 | + | ||
| 580 | + | func SurfaceTypeGLibType() types.GType { | |
| 581 | + | return xSurfaceTypeGLibType() | |
| 582 | + | } | |
| 583 | + | ||
| 421 | 584 | const ( | |
| 422 | 585 | SurfaceTypeImageValue SurfaceType = 0 | |
| 423 | 586 | ||
| @@ -472,6 +635,12 @@ const ( | |||
| 472 | 635 | ||
| 473 | 636 | type Format int | |
| 474 | 637 | ||
| 638 | + | var xFormatGLibType func() types.GType | |
| 639 | + | ||
| 640 | + | func FormatGLibType() types.GType { | |
| 641 | + | return xFormatGLibType() | |
| 642 | + | } | |
| 643 | + | ||
| 475 | 644 | const ( | |
| 476 | 645 | FormatInvalidValue Format = -1 | |
| 477 | 646 | ||
| @@ -490,6 +659,12 @@ const ( | |||
| 490 | 659 | ||
| 491 | 660 | type PatternType int | |
| 492 | 661 | ||
| 662 | + | var xPatternTypeGLibType func() types.GType | |
| 663 | + | ||
| 664 | + | func PatternTypeGLibType() types.GType { | |
| 665 | + | return xPatternTypeGLibType() | |
| 666 | + | } | |
| 667 | + | ||
| 493 | 668 | const ( | |
| 494 | 669 | PatternTypeSolidValue PatternType = 0 | |
| 495 | 670 | ||
| @@ -506,6 +681,12 @@ const ( | |||
| 506 | 681 | ||
| 507 | 682 | type Extend int | |
| 508 | 683 | ||
| 684 | + | var xExtendGLibType func() types.GType | |
| 685 | + | ||
| 686 | + | func ExtendGLibType() types.GType { | |
| 687 | + | return xExtendGLibType() | |
| 688 | + | } | |
| 689 | + | ||
| 509 | 690 | const ( | |
| 510 | 691 | ExtendNoneValue Extend = 0 | |
| 511 | 692 | ||
| @@ -518,6 +699,12 @@ const ( | |||
| 518 | 699 | ||
| 519 | 700 | type Filter int | |
| 520 | 701 | ||
| 702 | + | var xFilterGLibType func() types.GType | |
| 703 | + | ||
| 704 | + | func FilterGLibType() types.GType { | |
| 705 | + | return xFilterGLibType() | |
| 706 | + | } | |
| 707 | + | ||
| 521 | 708 | const ( | |
| 522 | 709 | FilterFastValue Filter = 0 | |
| 523 | 710 | ||
| @@ -534,6 +721,12 @@ const ( | |||
| 534 | 721 | ||
| 535 | 722 | type RegionOverlap int | |
| 536 | 723 | ||
| 724 | + | var xRegionOverlapGLibType func() types.GType | |
| 725 | + | ||
| 726 | + | func RegionOverlapGLibType() types.GType { | |
| 727 | + | return xRegionOverlapGLibType() | |
| 728 | + | } | |
| 729 | + | ||
| 537 | 730 | const ( | |
| 538 | 731 | RegionOverlapInValue RegionOverlap = 0 | |
| 539 | 732 | ||
| @@ -555,6 +748,71 @@ func init() { | |||
| 555 | 748 | if err != nil { | |
| 556 | 749 | panic(err) | |
| 557 | 750 | } | |
| 751 | + | ||
| 752 | + | core.PuregoSafeRegister(&xStatusGLibType, lib, "cairo_gobject_status_get_type") | |
| 753 | + | ||
| 754 | + | core.PuregoSafeRegister(&xContentGLibType, lib, "cairo_gobject_content_get_type") | |
| 755 | + | ||
| 756 | + | core.PuregoSafeRegister(&xOperatorGLibType, lib, "cairo_gobject_operator_get_type") | |
| 757 | + | ||
| 758 | + | core.PuregoSafeRegister(&xAntialiasGLibType, lib, "cairo_gobject_antialias_get_type") | |
| 759 | + | ||
| 760 | + | core.PuregoSafeRegister(&xFillRuleGLibType, lib, "cairo_gobject_fill_rule_get_type") | |
| 761 | + | ||
| 762 | + | core.PuregoSafeRegister(&xLineCapGLibType, lib, "cairo_gobject_line_cap_get_type") | |
| 763 | + | ||
| 764 | + | core.PuregoSafeRegister(&xLineJoinGLibType, lib, "cairo_gobject_line_join_get_type") | |
| 765 | + | ||
| 766 | + | core.PuregoSafeRegister(&xTextClusterFlagsGLibType, lib, "cairo_gobject_text_cluster_flags_get_type") | |
| 767 | + | ||
| 768 | + | core.PuregoSafeRegister(&xFontSlantGLibType, lib, "cairo_gobject_font_slant_get_type") | |
| 769 | + | ||
| 770 | + | core.PuregoSafeRegister(&xFontWeightGLibType, lib, "cairo_gobject_font_weight_get_type") | |
| 771 | + | ||
| 772 | + | core.PuregoSafeRegister(&xSubpixelOrderGLibType, lib, "cairo_gobject_subpixel_order_get_type") | |
| 773 | + | ||
| 774 | + | core.PuregoSafeRegister(&xHintStyleGLibType, lib, "cairo_gobject_hint_style_get_type") | |
| 775 | + | ||
| 776 | + | core.PuregoSafeRegister(&xHintMetricsGLibType, lib, "cairo_gobject_hint_metrics_get_type") | |
| 777 | + | ||
| 778 | + | core.PuregoSafeRegister(&xFontTypeGLibType, lib, "cairo_gobject_font_type_get_type") | |
| 779 | + | ||
| 780 | + | core.PuregoSafeRegister(&xPathDataTypeGLibType, lib, "cairo_gobject_path_data_type_get_type") | |
| 781 | + | ||
| 782 | + | core.PuregoSafeRegister(&xDeviceTypeGLibType, lib, "cairo_gobject_device_type_get_type") | |
| 783 | + | ||
| 784 | + | core.PuregoSafeRegister(&xSurfaceTypeGLibType, lib, "cairo_gobject_surface_type_get_type") | |
| 785 | + | ||
| 786 | + | core.PuregoSafeRegister(&xFormatGLibType, lib, "cairo_gobject_format_get_type") | |
| 787 | + | ||
| 788 | + | core.PuregoSafeRegister(&xPatternTypeGLibType, lib, "cairo_gobject_pattern_type_get_type") | |
| 789 | + | ||
| 790 | + | core.PuregoSafeRegister(&xExtendGLibType, lib, "cairo_gobject_extend_get_type") | |
| 791 | + | ||
| 792 | + | core.PuregoSafeRegister(&xFilterGLibType, lib, "cairo_gobject_filter_get_type") | |
| 793 | + | ||
| 794 | + | core.PuregoSafeRegister(&xRegionOverlapGLibType, lib, "cairo_gobject_region_overlap_get_type") | |
| 795 | + | ||
| 558 | 796 | core.PuregoSafeRegister(&xImageSurfaceCreate, lib, "cairo_image_surface_create") | |
| 559 | 797 | ||
| 798 | + | core.PuregoSafeRegister(&xContextGLibType, lib, "cairo_gobject_context_get_type") | |
| 799 | + | ||
| 800 | + | core.PuregoSafeRegister(&xDeviceGLibType, lib, "cairo_gobject_device_get_type") | |
| 801 | + | ||
| 802 | + | core.PuregoSafeRegister(&xSurfaceGLibType, lib, "cairo_gobject_surface_get_type") | |
| 803 | + | ||
| 804 | + | core.PuregoSafeRegister(&xPatternGLibType, lib, "cairo_gobject_pattern_get_type") | |
| 805 | + | ||
| 806 | + | core.PuregoSafeRegister(&xRegionGLibType, lib, "cairo_gobject_region_get_type") | |
| 807 | + | ||
| 808 | + | core.PuregoSafeRegister(&xFontOptionsGLibType, lib, "cairo_gobject_font_options_get_type") | |
| 809 | + | ||
| 810 | + | core.PuregoSafeRegister(&xFontFaceGLibType, lib, "cairo_gobject_font_face_get_type") | |
| 811 | + | ||
| 812 | + | core.PuregoSafeRegister(&xScaledFontGLibType, lib, "cairo_gobject_scaled_font_get_type") | |
| 813 | + | ||
| 814 | + | core.PuregoSafeRegister(&xRectangleGLibType, lib, "cairo_gobject_rectangle_get_type") | |
| 815 | + | ||
| 816 | + | core.PuregoSafeRegister(&xRectangleIntGLibType, lib, "cairo_gobject_rectangle_int_get_type") | |
| 817 | + | ||
| 560 | 818 | } | |
M v4/gdk/gdkapplaunchcontext.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // `GdkAppLaunchContext` handles launching an application in a graphical context. | |
| @@ -32,6 +33,12 @@ type AppLaunchContext struct { | |||
| 32 | 33 | gio.AppLaunchContext | |
| 33 | 34 | } | |
| 34 | 35 | ||
| 36 | + | var xAppLaunchContextGLibType func() types.GType | |
| 37 | + | ||
| 38 | + | func AppLaunchContextGLibType() types.GType { | |
| 39 | + | return xAppLaunchContextGLibType() | |
| 40 | + | } | |
| 41 | + | ||
| 35 | 42 | func AppLaunchContextNewFromInternalPtr(ptr uintptr) *AppLaunchContext { | |
| 36 | 43 | cls := &AppLaunchContext{} | |
| 37 | 44 | cls.Ptr = ptr | |
| @@ -139,6 +146,8 @@ func init() { | |||
| 139 | 146 | panic(err) | |
| 140 | 147 | } | |
| 141 | 148 | ||
| 149 | + | core.PuregoSafeRegister(&xAppLaunchContextGLibType, lib, "gdk_app_launch_context_get_type") | |
| 150 | + | ||
| 142 | 151 | core.PuregoSafeRegister(&xAppLaunchContextGetDisplay, lib, "gdk_app_launch_context_get_display") | |
| 143 | 152 | core.PuregoSafeRegister(&xAppLaunchContextSetDesktop, lib, "gdk_app_launch_context_set_desktop") | |
| 144 | 153 | core.PuregoSafeRegister(&xAppLaunchContextSetIcon, lib, "gdk_app_launch_context_set_icon") | |
M v4/gdk/gdkcairo.go +1 -0
| @@ -91,6 +91,7 @@ func init() { | |||
| 91 | 91 | if err != nil { | |
| 92 | 92 | panic(err) | |
| 93 | 93 | } | |
| 94 | + | ||
| 94 | 95 | core.PuregoSafeRegister(&xCairoDrawFromGl, lib, "gdk_cairo_draw_from_gl") | |
| 95 | 96 | core.PuregoSafeRegister(&xCairoRectangle, lib, "gdk_cairo_rectangle") | |
| 96 | 97 | core.PuregoSafeRegister(&xCairoRegion, lib, "gdk_cairo_region") | |
M v4/gdk/gdkcairocontext.go +9 -0
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | |
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 9 | ) | |
| 9 | 10 | ||
| 10 | 11 | // `GdkCairoContext` is an object representing the platform-specific | |
| @@ -17,6 +18,12 @@ type CairoContext struct { | |||
| 17 | 18 | DrawContext | |
| 18 | 19 | } | |
| 19 | 20 | ||
| 21 | + | var xCairoContextGLibType func() types.GType | |
| 22 | + | ||
| 23 | + | func CairoContextGLibType() types.GType { | |
| 24 | + | return xCairoContextGLibType() | |
| 25 | + | } | |
| 26 | + | ||
| 20 | 27 | func CairoContextNewFromInternalPtr(ptr uintptr) *CairoContext { | |
| 21 | 28 | cls := &CairoContext{} | |
| 22 | 29 | cls.Ptr = ptr | |
| @@ -53,6 +60,8 @@ func init() { | |||
| 53 | 60 | panic(err) | |
| 54 | 61 | } | |
| 55 | 62 | ||
| 63 | + | core.PuregoSafeRegister(&xCairoContextGLibType, lib, "gdk_cairo_context_get_type") | |
| 64 | + | ||
| 56 | 65 | core.PuregoSafeRegister(&xCairoContextCairoCreate, lib, "gdk_cairo_context_cairo_create") | |
| 57 | 66 | ||
| 58 | 67 | } | |
M v4/gdk/gdkclipboard.go +8 -0
| @@ -33,6 +33,12 @@ type Clipboard struct { | |||
| 33 | 33 | gobject.Object | |
| 34 | 34 | } | |
| 35 | 35 | ||
| 36 | + | var xClipboardGLibType func() types.GType | |
| 37 | + | ||
| 38 | + | func ClipboardGLibType() types.GType { | |
| 39 | + | return xClipboardGLibType() | |
| 40 | + | } | |
| 41 | + | ||
| 36 | 42 | func ClipboardNewFromInternalPtr(ptr uintptr) *Clipboard { | |
| 37 | 43 | cls := &Clipboard{} | |
| 38 | 44 | cls.Ptr = ptr | |
| @@ -389,6 +395,8 @@ func init() { | |||
| 389 | 395 | panic(err) | |
| 390 | 396 | } | |
| 391 | 397 | ||
| 398 | + | core.PuregoSafeRegister(&xClipboardGLibType, lib, "gdk_clipboard_get_type") | |
| 399 | + | ||
| 392 | 400 | core.PuregoSafeRegister(&xClipboardGetContent, lib, "gdk_clipboard_get_content") | |
| 393 | 401 | core.PuregoSafeRegister(&xClipboardGetDisplay, lib, "gdk_clipboard_get_display") | |
| 394 | 402 | core.PuregoSafeRegister(&xClipboardGetFormats, lib, "gdk_clipboard_get_formats") | |
M v4/gdk/gdkcontentdeserializer.go +9 -0
| @@ -70,6 +70,12 @@ type ContentDeserializer struct { | |||
| 70 | 70 | gobject.Object | |
| 71 | 71 | } | |
| 72 | 72 | ||
| 73 | + | var xContentDeserializerGLibType func() types.GType | |
| 74 | + | ||
| 75 | + | func ContentDeserializerGLibType() types.GType { | |
| 76 | + | return xContentDeserializerGLibType() | |
| 77 | + | } | |
| 78 | + | ||
| 73 | 79 | func ContentDeserializerNewFromInternalPtr(ptr uintptr) *ContentDeserializer { | |
| 74 | 80 | cls := &ContentDeserializer{} | |
| 75 | 81 | cls.Ptr = ptr | |
| @@ -257,10 +263,13 @@ func init() { | |||
| 257 | 263 | if err != nil { | |
| 258 | 264 | panic(err) | |
| 259 | 265 | } | |
| 266 | + | ||
| 260 | 267 | core.PuregoSafeRegister(&xContentDeserializeAsync, lib, "gdk_content_deserialize_async") | |
| 261 | 268 | core.PuregoSafeRegister(&xContentDeserializeFinish, lib, "gdk_content_deserialize_finish") | |
| 262 | 269 | core.PuregoSafeRegister(&xContentRegisterDeserializer, lib, "gdk_content_register_deserializer") | |
| 263 | 270 | ||
| 271 | + | core.PuregoSafeRegister(&xContentDeserializerGLibType, lib, "gdk_content_deserializer_get_type") | |
| 272 | + | ||
| 264 | 273 | core.PuregoSafeRegister(&xContentDeserializerGetCancellable, lib, "gdk_content_deserializer_get_cancellable") | |
| 265 | 274 | core.PuregoSafeRegister(&xContentDeserializerGetGtype, lib, "gdk_content_deserializer_get_gtype") | |
| 266 | 275 | core.PuregoSafeRegister(&xContentDeserializerGetInputStream, lib, "gdk_content_deserializer_get_input_stream") | |
M v4/gdk/gdkcontentformats.go +17 -0
| @@ -15,6 +15,12 @@ import ( | |||
| 15 | 15 | type ContentFormatsBuilder struct { | |
| 16 | 16 | } | |
| 17 | 17 | ||
| 18 | + | var xContentFormatsBuilderGLibType func() types.GType | |
| 19 | + | ||
| 20 | + | func ContentFormatsBuilderGLibType() types.GType { | |
| 21 | + | return xContentFormatsBuilderGLibType() | |
| 22 | + | } | |
| 23 | + | ||
| 18 | 24 | func (x *ContentFormatsBuilder) GoPointer() uintptr { | |
| 19 | 25 | return uintptr(unsafe.Pointer(x)) | |
| 20 | 26 | } | |
| @@ -109,6 +115,12 @@ func (x *ContentFormatsBuilder) Unref() { | |||
| 109 | 115 | type FileList struct { | |
| 110 | 116 | } | |
| 111 | 117 | ||
| 118 | + | var xFileListGLibType func() types.GType | |
| 119 | + | ||
| 120 | + | func FileListGLibType() types.GType { | |
| 121 | + | return xFileListGLibType() | |
| 122 | + | } | |
| 123 | + | ||
| 112 | 124 | func (x *FileList) GoPointer() uintptr { | |
| 113 | 125 | return uintptr(unsafe.Pointer(x)) | |
| 114 | 126 | } | |
| @@ -180,9 +192,12 @@ func init() { | |||
| 180 | 192 | if err != nil { | |
| 181 | 193 | panic(err) | |
| 182 | 194 | } | |
| 195 | + | ||
| 183 | 196 | core.PuregoSafeRegister(&xContentFormatsParse, lib, "gdk_content_formats_parse") | |
| 184 | 197 | core.PuregoSafeRegister(&xInternMimeType, lib, "gdk_intern_mime_type") | |
| 185 | 198 | ||
| 199 | + | core.PuregoSafeRegister(&xContentFormatsBuilderGLibType, lib, "gdk_content_formats_builder_get_type") | |
| 200 | + | ||
| 186 | 201 | core.PuregoSafeRegister(&xNewContentFormatsBuilder, lib, "gdk_content_formats_builder_new") | |
| 187 | 202 | ||
| 188 | 203 | core.PuregoSafeRegister(&xContentFormatsBuilderAddFormats, lib, "gdk_content_formats_builder_add_formats") | |
| @@ -193,6 +208,8 @@ func init() { | |||
| 193 | 208 | core.PuregoSafeRegister(&xContentFormatsBuilderToFormats, lib, "gdk_content_formats_builder_to_formats") | |
| 194 | 209 | core.PuregoSafeRegister(&xContentFormatsBuilderUnref, lib, "gdk_content_formats_builder_unref") | |
| 195 | 210 | ||
| 211 | + | core.PuregoSafeRegister(&xFileListGLibType, lib, "gdk_file_list_get_type") | |
| 212 | + | ||
| 196 | 213 | core.PuregoSafeRegister(&xNewFileListFromArray, lib, "gdk_file_list_new_from_array") | |
| 197 | 214 | core.PuregoSafeRegister(&xNewFileListFromList, lib, "gdk_file_list_new_from_list") | |
| 198 | 215 | ||
M v4/gdk/gdkcontentprovider.go +8 -0
| @@ -36,6 +36,12 @@ type ContentProvider struct { | |||
| 36 | 36 | gobject.Object | |
| 37 | 37 | } | |
| 38 | 38 | ||
| 39 | + | var xContentProviderGLibType func() types.GType | |
| 40 | + | ||
| 41 | + | func ContentProviderGLibType() types.GType { | |
| 42 | + | return xContentProviderGLibType() | |
| 43 | + | } | |
| 44 | + | ||
| 39 | 45 | func ContentProviderNewFromInternalPtr(ptr uintptr) *ContentProvider { | |
| 40 | 46 | cls := &ContentProvider{} | |
| 41 | 47 | cls.Ptr = ptr | |
| @@ -249,6 +255,8 @@ func init() { | |||
| 249 | 255 | panic(err) | |
| 250 | 256 | } | |
| 251 | 257 | ||
| 258 | + | core.PuregoSafeRegister(&xContentProviderGLibType, lib, "gdk_content_provider_get_type") | |
| 259 | + | ||
| 252 | 260 | core.PuregoSafeRegister(&xNewContentProviderForBytes, lib, "gdk_content_provider_new_for_bytes") | |
| 253 | 261 | core.PuregoSafeRegister(&xNewContentProviderForValue, lib, "gdk_content_provider_new_for_value") | |
| 254 | 262 | core.PuregoSafeRegister(&xNewContentProviderTyped, lib, "gdk_content_provider_new_typed") | |
M v4/gdk/gdkcontentserializer.go +9 -0
| @@ -71,6 +71,12 @@ type ContentSerializer struct { | |||
| 71 | 71 | gobject.Object | |
| 72 | 72 | } | |
| 73 | 73 | ||
| 74 | + | var xContentSerializerGLibType func() types.GType | |
| 75 | + | ||
| 76 | + | func ContentSerializerGLibType() types.GType { | |
| 77 | + | return xContentSerializerGLibType() | |
| 78 | + | } | |
| 79 | + | ||
| 74 | 80 | func ContentSerializerNewFromInternalPtr(ptr uintptr) *ContentSerializer { | |
| 75 | 81 | cls := &ContentSerializer{} | |
| 76 | 82 | cls.Ptr = ptr | |
| @@ -258,10 +264,13 @@ func init() { | |||
| 258 | 264 | if err != nil { | |
| 259 | 265 | panic(err) | |
| 260 | 266 | } | |
| 267 | + | ||
| 261 | 268 | core.PuregoSafeRegister(&xContentRegisterSerializer, lib, "gdk_content_register_serializer") | |
| 262 | 269 | core.PuregoSafeRegister(&xContentSerializeAsync, lib, "gdk_content_serialize_async") | |
| 263 | 270 | core.PuregoSafeRegister(&xContentSerializeFinish, lib, "gdk_content_serialize_finish") | |
| 264 | 271 | ||
| 272 | + | core.PuregoSafeRegister(&xContentSerializerGLibType, lib, "gdk_content_serializer_get_type") | |
| 273 | + | ||
| 265 | 274 | core.PuregoSafeRegister(&xContentSerializerGetCancellable, lib, "gdk_content_serializer_get_cancellable") | |
| 266 | 275 | core.PuregoSafeRegister(&xContentSerializerGetGtype, lib, "gdk_content_serializer_get_gtype") | |
| 267 | 276 | core.PuregoSafeRegister(&xContentSerializerGetMimeType, lib, "gdk_content_serializer_get_mime_type") | |
M v4/gdk/gdkcursor.go +9 -0
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 9 | ) | |
| 9 | 10 | ||
| 10 | 11 | // `GdkCursor` is used to create and destroy cursors. | |
| @@ -44,6 +45,12 @@ type Cursor struct { | |||
| 44 | 45 | gobject.Object | |
| 45 | 46 | } | |
| 46 | 47 | ||
| 48 | + | var xCursorGLibType func() types.GType | |
| 49 | + | ||
| 50 | + | func CursorGLibType() types.GType { | |
| 51 | + | return xCursorGLibType() | |
| 52 | + | } | |
| 53 | + | ||
| 47 | 54 | func CursorNewFromInternalPtr(ptr uintptr) *Cursor { | |
| 48 | 55 | cls := &Cursor{} | |
| 49 | 56 | cls.Ptr = ptr | |
| @@ -195,6 +202,8 @@ func init() { | |||
| 195 | 202 | panic(err) | |
| 196 | 203 | } | |
| 197 | 204 | ||
| 205 | + | core.PuregoSafeRegister(&xCursorGLibType, lib, "gdk_cursor_get_type") | |
| 206 | + | ||
| 198 | 207 | core.PuregoSafeRegister(&xNewCursorFromName, lib, "gdk_cursor_new_from_name") | |
| 199 | 208 | core.PuregoSafeRegister(&xNewCursorFromTexture, lib, "gdk_cursor_new_from_texture") | |
| 200 | 209 | ||
M v4/gdk/gdkdevice.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | "github.com/jwijenbergh/puregotk/v4/pango" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| @@ -32,6 +33,12 @@ func (x *TimeCoord) GoPointer() uintptr { | |||
| 32 | 33 | // An enumeration describing the type of an input device in general terms. | |
| 33 | 34 | type InputSource int | |
| 34 | 35 | ||
| 36 | + | var xInputSourceGLibType func() types.GType | |
| 37 | + | ||
| 38 | + | func InputSourceGLibType() types.GType { | |
| 39 | + | return xInputSourceGLibType() | |
| 40 | + | } | |
| 41 | + | ||
| 35 | 42 | const ( | |
| 36 | 43 | ||
| 37 | 44 | // the device is a mouse. (This will be reported for the core | |
| @@ -63,6 +70,12 @@ type Device struct { | |||
| 63 | 70 | gobject.Object | |
| 64 | 71 | } | |
| 65 | 72 | ||
| 73 | + | var xDeviceGLibType func() types.GType | |
| 74 | + | ||
| 75 | + | func DeviceGLibType() types.GType { | |
| 76 | + | return xDeviceGLibType() | |
| 77 | + | } | |
| 78 | + | ||
| 66 | 79 | func DeviceNewFromInternalPtr(ptr uintptr) *Device { | |
| 67 | 80 | cls := &Device{} | |
| 68 | 81 | cls.Ptr = ptr | |
| @@ -373,6 +386,10 @@ func init() { | |||
| 373 | 386 | panic(err) | |
| 374 | 387 | } | |
| 375 | 388 | ||
| 389 | + | core.PuregoSafeRegister(&xInputSourceGLibType, lib, "gdk_input_source_get_type") | |
| 390 | + | ||
| 391 | + | core.PuregoSafeRegister(&xDeviceGLibType, lib, "gdk_device_get_type") | |
| 392 | + | ||
| 376 | 393 | core.PuregoSafeRegister(&xDeviceGetCapsLockState, lib, "gdk_device_get_caps_lock_state") | |
| 377 | 394 | core.PuregoSafeRegister(&xDeviceGetDeviceTool, lib, "gdk_device_get_device_tool") | |
| 378 | 395 | core.PuregoSafeRegister(&xDeviceGetDirection, lib, "gdk_device_get_direction") | |
M v4/gdk/gdkdevicepad.go +18 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | type DevicePadInterface struct { | |
| @@ -40,6 +41,13 @@ type DevicePad interface { | |||
| 40 | 41 | GetNFeatures(FeatureVar DevicePadFeature) int | |
| 41 | 42 | GetNGroups() int | |
| 42 | 43 | } | |
| 44 | + | ||
| 45 | + | var xDevicePadGLibType func() types.GType | |
| 46 | + | ||
| 47 | + | func DevicePadGLibType() types.GType { | |
| 48 | + | return xDevicePadGLibType() | |
| 49 | + | } | |
| 50 | + | ||
| 43 | 51 | type DevicePadBase struct { | |
| 44 | 52 | Ptr uintptr | |
| 45 | 53 | } | |
| @@ -94,6 +102,12 @@ var XGdkDevicePadGetNGroups func(uintptr) int | |||
| 94 | 102 | // A pad feature. | |
| 95 | 103 | type DevicePadFeature int | |
| 96 | 104 | ||
| 105 | + | var xDevicePadFeatureGLibType func() types.GType | |
| 106 | + | ||
| 107 | + | func DevicePadFeatureGLibType() types.GType { | |
| 108 | + | return xDevicePadFeatureGLibType() | |
| 109 | + | } | |
| 110 | + | ||
| 97 | 111 | const ( | |
| 98 | 112 | ||
| 99 | 113 | // a button | |
| @@ -110,6 +124,10 @@ func init() { | |||
| 110 | 124 | panic(err) | |
| 111 | 125 | } | |
| 112 | 126 | ||
| 127 | + | core.PuregoSafeRegister(&xDevicePadFeatureGLibType, lib, "gdk_device_pad_feature_get_type") | |
| 128 | + | ||
| 129 | + | core.PuregoSafeRegister(&xDevicePadGLibType, lib, "gdk_device_pad_get_type") | |
| 130 | + | ||
| 113 | 131 | core.PuregoSafeRegister(&XGdkDevicePadGetFeatureGroup, lib, "gdk_device_pad_get_feature_group") | |
| 114 | 132 | core.PuregoSafeRegister(&XGdkDevicePadGetGroupNModes, lib, "gdk_device_pad_get_group_n_modes") | |
| 115 | 133 | core.PuregoSafeRegister(&XGdkDevicePadGetNFeatures, lib, "gdk_device_pad_get_n_features") | |
M v4/gdk/gdkdevicetool.go +17 -0
| @@ -5,12 +5,19 @@ import ( | |||
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 9 | ) | |
| 9 | 10 | ||
| 10 | 11 | // Indicates the specific type of tool being used being a tablet. Such as an | |
| 11 | 12 | // airbrush, pencil, etc. | |
| 12 | 13 | type DeviceToolType int | |
| 13 | 14 | ||
| 15 | + | var xDeviceToolTypeGLibType func() types.GType | |
| 16 | + | ||
| 17 | + | func DeviceToolTypeGLibType() types.GType { | |
| 18 | + | return xDeviceToolTypeGLibType() | |
| 19 | + | } | |
| 20 | + | ||
| 14 | 21 | const ( | |
| 15 | 22 | ||
| 16 | 23 | // Tool is of an unknown type. | |
| @@ -36,6 +43,12 @@ type DeviceTool struct { | |||
| 36 | 43 | gobject.Object | |
| 37 | 44 | } | |
| 38 | 45 | ||
| 46 | + | var xDeviceToolGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func DeviceToolGLibType() types.GType { | |
| 49 | + | return xDeviceToolGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 39 | 52 | func DeviceToolNewFromInternalPtr(ptr uintptr) *DeviceTool { | |
| 40 | 53 | cls := &DeviceTool{} | |
| 41 | 54 | cls.Ptr = ptr | |
| @@ -105,6 +118,10 @@ func init() { | |||
| 105 | 118 | panic(err) | |
| 106 | 119 | } | |
| 107 | 120 | ||
| 121 | + | core.PuregoSafeRegister(&xDeviceToolTypeGLibType, lib, "gdk_device_tool_type_get_type") | |
| 122 | + | ||
| 123 | + | core.PuregoSafeRegister(&xDeviceToolGLibType, lib, "gdk_device_tool_get_type") | |
| 124 | + | ||
| 108 | 125 | core.PuregoSafeRegister(&xDeviceToolGetAxes, lib, "gdk_device_tool_get_axes") | |
| 109 | 126 | core.PuregoSafeRegister(&xDeviceToolGetHardwareId, lib, "gdk_device_tool_get_hardware_id") | |
| 110 | 127 | core.PuregoSafeRegister(&xDeviceToolGetSerial, lib, "gdk_device_tool_get_serial") | |
M v4/gdk/gdkdisplay.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| 14 | 15 | // `GdkDisplay` objects are the GDK representation of a workstation. | |
| @@ -29,6 +30,12 @@ type Display struct { | |||
| 29 | 30 | gobject.Object | |
| 30 | 31 | } | |
| 31 | 32 | ||
| 33 | + | var xDisplayGLibType func() types.GType | |
| 34 | + | ||
| 35 | + | func DisplayGLibType() types.GType { | |
| 36 | + | return xDisplayGLibType() | |
| 37 | + | } | |
| 38 | + | ||
| 32 | 39 | func DisplayNewFromInternalPtr(ptr uintptr) *Display { | |
| 33 | 40 | cls := &Display{} | |
| 34 | 41 | cls.Ptr = ptr | |
| @@ -621,6 +628,8 @@ func init() { | |||
| 621 | 628 | panic(err) | |
| 622 | 629 | } | |
| 623 | 630 | ||
| 631 | + | core.PuregoSafeRegister(&xDisplayGLibType, lib, "gdk_display_get_type") | |
| 632 | + | ||
| 624 | 633 | core.PuregoSafeRegister(&xDisplayBeep, lib, "gdk_display_beep") | |
| 625 | 634 | core.PuregoSafeRegister(&xDisplayClose, lib, "gdk_display_close") | |
| 626 | 635 | core.PuregoSafeRegister(&xDisplayCreateGlContext, lib, "gdk_display_create_gl_context") | |
M v4/gdk/gdkdisplaymanager.go +10 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | var xSetAllowedBackends func(string) | |
| @@ -103,6 +104,12 @@ type DisplayManager struct { | |||
| 103 | 104 | gobject.Object | |
| 104 | 105 | } | |
| 105 | 106 | ||
| 107 | + | var xDisplayManagerGLibType func() types.GType | |
| 108 | + | ||
| 109 | + | func DisplayManagerGLibType() types.GType { | |
| 110 | + | return xDisplayManagerGLibType() | |
| 111 | + | } | |
| 112 | + | ||
| 106 | 113 | func DisplayManagerNewFromInternalPtr(ptr uintptr) *DisplayManager { | |
| 107 | 114 | cls := &DisplayManager{} | |
| 108 | 115 | cls.Ptr = ptr | |
| @@ -219,8 +226,11 @@ func init() { | |||
| 219 | 226 | if err != nil { | |
| 220 | 227 | panic(err) | |
| 221 | 228 | } | |
| 229 | + | ||
| 222 | 230 | core.PuregoSafeRegister(&xSetAllowedBackends, lib, "gdk_set_allowed_backends") | |
| 223 | 231 | ||
| 232 | + | core.PuregoSafeRegister(&xDisplayManagerGLibType, lib, "gdk_display_manager_get_type") | |
| 233 | + | ||
| 224 | 234 | core.PuregoSafeRegister(&xDisplayManagerGetDefaultDisplay, lib, "gdk_display_manager_get_default_display") | |
| 225 | 235 | core.PuregoSafeRegister(&xDisplayManagerListDisplays, lib, "gdk_display_manager_list_displays") | |
| 226 | 236 | core.PuregoSafeRegister(&xDisplayManagerOpenDisplay, lib, "gdk_display_manager_open_display") | |
M v4/gdk/gdkdrag.go +18 -0
| @@ -8,11 +8,18 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Used in `GdkDrag` to the reason of a cancelled DND operation. | |
| 14 | 15 | type DragCancelReason int | |
| 15 | 16 | ||
| 17 | + | var xDragCancelReasonGLibType func() types.GType | |
| 18 | + | ||
| 19 | + | func DragCancelReasonGLibType() types.GType { | |
| 20 | + | return xDragCancelReasonGLibType() | |
| 21 | + | } | |
| 22 | + | ||
| 16 | 23 | const ( | |
| 17 | 24 | ||
| 18 | 25 | // There is no suitable drop target. | |
| @@ -50,6 +57,12 @@ type Drag struct { | |||
| 50 | 57 | gobject.Object | |
| 51 | 58 | } | |
| 52 | 59 | ||
| 60 | + | var xDragGLibType func() types.GType | |
| 61 | + | ||
| 62 | + | func DragGLibType() types.GType { | |
| 63 | + | return xDragGLibType() | |
| 64 | + | } | |
| 65 | + | ||
| 53 | 66 | func DragNewFromInternalPtr(ptr uintptr) *Drag { | |
| 54 | 67 | cls := &Drag{} | |
| 55 | 68 | cls.Ptr = ptr | |
| @@ -309,8 +322,13 @@ func init() { | |||
| 309 | 322 | if err != nil { | |
| 310 | 323 | panic(err) | |
| 311 | 324 | } | |
| 325 | + | ||
| 326 | + | core.PuregoSafeRegister(&xDragCancelReasonGLibType, lib, "gdk_drag_cancel_reason_get_type") | |
| 327 | + | ||
| 312 | 328 | core.PuregoSafeRegister(&xDragActionIsUnique, lib, "gdk_drag_action_is_unique") | |
| 313 | 329 | ||
| 330 | + | core.PuregoSafeRegister(&xDragGLibType, lib, "gdk_drag_get_type") | |
| 331 | + | ||
| 314 | 332 | core.PuregoSafeRegister(&xDragDropDone, lib, "gdk_drag_drop_done") | |
| 315 | 333 | core.PuregoSafeRegister(&xDragGetActions, lib, "gdk_drag_get_actions") | |
| 316 | 334 | core.PuregoSafeRegister(&xDragGetContent, lib, "gdk_drag_get_content") | |
M v4/gdk/gdkdragsurface.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The `GdkDragSurfaceInterface` implementation is private to GDK. | |
| @@ -22,6 +23,13 @@ type DragSurface interface { | |||
| 22 | 23 | SetGoPointer(uintptr) | |
| 23 | 24 | Present(WidthVar int, HeightVar int) bool | |
| 24 | 25 | } | |
| 26 | + | ||
| 27 | + | var xDragSurfaceGLibType func() types.GType | |
| 28 | + | ||
| 29 | + | func DragSurfaceGLibType() types.GType { | |
| 30 | + | return xDragSurfaceGLibType() | |
| 31 | + | } | |
| 32 | + | ||
| 25 | 33 | type DragSurfaceBase struct { | |
| 26 | 34 | Ptr uintptr | |
| 27 | 35 | } | |
| @@ -49,6 +57,8 @@ func init() { | |||
| 49 | 57 | panic(err) | |
| 50 | 58 | } | |
| 51 | 59 | ||
| 60 | + | core.PuregoSafeRegister(&xDragSurfaceGLibType, lib, "gdk_drag_surface_get_type") | |
| 61 | + | ||
| 52 | 62 | core.PuregoSafeRegister(&XGdkDragSurfacePresent, lib, "gdk_drag_surface_present") | |
| 53 | 63 | ||
| 54 | 64 | } | |
M v4/gdk/gdkdrawcontext.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Base class for objects implementing different rendering methods. | |
| @@ -21,6 +22,12 @@ type DrawContext struct { | |||
| 21 | 22 | gobject.Object | |
| 22 | 23 | } | |
| 23 | 24 | ||
| 25 | + | var xDrawContextGLibType func() types.GType | |
| 26 | + | ||
| 27 | + | func DrawContextGLibType() types.GType { | |
| 28 | + | return xDrawContextGLibType() | |
| 29 | + | } | |
| 30 | + | ||
| 24 | 31 | func DrawContextNewFromInternalPtr(ptr uintptr) *DrawContext { | |
| 25 | 32 | cls := &DrawContext{} | |
| 26 | 33 | cls.Ptr = ptr | |
| @@ -152,6 +159,8 @@ func init() { | |||
| 152 | 159 | panic(err) | |
| 153 | 160 | } | |
| 154 | 161 | ||
| 162 | + | core.PuregoSafeRegister(&xDrawContextGLibType, lib, "gdk_draw_context_get_type") | |
| 163 | + | ||
| 155 | 164 | core.PuregoSafeRegister(&xDrawContextBeginFrame, lib, "gdk_draw_context_begin_frame") | |
| 156 | 165 | core.PuregoSafeRegister(&xDrawContextEndFrame, lib, "gdk_draw_context_end_frame") | |
| 157 | 166 | core.PuregoSafeRegister(&xDrawContextGetDisplay, lib, "gdk_draw_context_get_display") | |
M v4/gdk/gdkdrop.go +8 -0
| @@ -28,6 +28,12 @@ type Drop struct { | |||
| 28 | 28 | gobject.Object | |
| 29 | 29 | } | |
| 30 | 30 | ||
| 31 | + | var xDropGLibType func() types.GType | |
| 32 | + | ||
| 33 | + | func DropGLibType() types.GType { | |
| 34 | + | return xDropGLibType() | |
| 35 | + | } | |
| 36 | + | ||
| 31 | 37 | func DropNewFromInternalPtr(ptr uintptr) *Drop { | |
| 32 | 38 | cls := &Drop{} | |
| 33 | 39 | cls.Ptr = ptr | |
| @@ -256,6 +262,8 @@ func init() { | |||
| 256 | 262 | panic(err) | |
| 257 | 263 | } | |
| 258 | 264 | ||
| 265 | + | core.PuregoSafeRegister(&xDropGLibType, lib, "gdk_drop_get_type") | |
| 266 | + | ||
| 259 | 267 | core.PuregoSafeRegister(&xDropFinish, lib, "gdk_drop_finish") | |
| 260 | 268 | core.PuregoSafeRegister(&xDropGetActions, lib, "gdk_drop_get_actions") | |
| 261 | 269 | core.PuregoSafeRegister(&xDropGetDevice, lib, "gdk_drop_get_device") | |
M v4/gdk/gdkenums.go +50 -0
| @@ -1,6 +1,8 @@ | |||
| 1 | 1 | // Package gdk was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package gdk | |
| 3 | 3 | ||
| 4 | + | import "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 5 | + | ||
| 4 | 6 | const ( | |
| 5 | 7 | // Defines all possible DND actions. | |
| 6 | 8 | // | |
| @@ -14,6 +16,12 @@ const ( | |||
| 14 | 16 | // Flags describing the current capabilities of a device/tool. | |
| 15 | 17 | type AxisFlags int | |
| 16 | 18 | ||
| 19 | + | var xAxisFlagsGLibType func() types.GType | |
| 20 | + | ||
| 21 | + | func AxisFlagsGLibType() types.GType { | |
| 22 | + | return xAxisFlagsGLibType() | |
| 23 | + | } | |
| 24 | + | ||
| 17 | 25 | const ( | |
| 18 | 26 | ||
| 19 | 27 | // X axis is present | |
| @@ -44,6 +52,12 @@ const ( | |||
| 44 | 52 | // destination can and should do with the dropped data. | |
| 45 | 53 | type DragAction int | |
| 46 | 54 | ||
| 55 | + | var xDragActionGLibType func() types.GType | |
| 56 | + | ||
| 57 | + | func DragActionGLibType() types.GType { | |
| 58 | + | return xDragActionGLibType() | |
| 59 | + | } | |
| 60 | + | ||
| 47 | 61 | const ( | |
| 48 | 62 | ||
| 49 | 63 | // Copy the data. | |
| @@ -70,6 +84,12 @@ const ( | |||
| 70 | 84 | // %GDK_MODIFIER_MASK to remove all private values. | |
| 71 | 85 | type ModifierType int | |
| 72 | 86 | ||
| 87 | + | var xModifierTypeGLibType func() types.GType | |
| 88 | + | ||
| 89 | + | func ModifierTypeGLibType() types.GType { | |
| 90 | + | return xModifierTypeGLibType() | |
| 91 | + | } | |
| 92 | + | ||
| 73 | 93 | const ( | |
| 74 | 94 | ||
| 75 | 95 | // the Shift key. | |
| @@ -108,6 +128,12 @@ const ( | |||
| 108 | 128 | // X and Y are present as axes depends on the GDK backend. | |
| 109 | 129 | type AxisUse int | |
| 110 | 130 | ||
| 131 | + | var xAxisUseGLibType func() types.GType | |
| 132 | + | ||
| 133 | + | func AxisUseGLibType() types.GType { | |
| 134 | + | return xAxisUseGLibType() | |
| 135 | + | } | |
| 136 | + | ||
| 111 | 137 | const ( | |
| 112 | 138 | ||
| 113 | 139 | // the axis is ignored. | |
| @@ -141,6 +167,12 @@ const ( | |||
| 141 | 167 | // Error enumeration for `GdkGLContext`. | |
| 142 | 168 | type GLError int | |
| 143 | 169 | ||
| 170 | + | var xGLErrorGLibType func() types.GType | |
| 171 | + | ||
| 172 | + | func GLErrorGLibType() types.GType { | |
| 173 | + | return xGLErrorGLibType() | |
| 174 | + | } | |
| 175 | + | ||
| 144 | 176 | const ( | |
| 145 | 177 | ||
| 146 | 178 | // OpenGL support is not available | |
| @@ -158,6 +190,12 @@ const ( | |||
| 158 | 190 | // Defines the reference point of a surface and is used in `GdkPopupLayout`. | |
| 159 | 191 | type Gravity int | |
| 160 | 192 | ||
| 193 | + | var xGravityGLibType func() types.GType | |
| 194 | + | ||
| 195 | + | func GravityGLibType() types.GType { | |
| 196 | + | return xGravityGLibType() | |
| 197 | + | } | |
| 198 | + | ||
| 161 | 199 | const ( | |
| 162 | 200 | ||
| 163 | 201 | // the reference point is at the top left corner. | |
| @@ -196,6 +234,12 @@ const ( | |||
| 196 | 234 | // for details). | |
| 197 | 235 | type MemoryFormat int | |
| 198 | 236 | ||
| 237 | + | var xMemoryFormatGLibType func() types.GType | |
| 238 | + | ||
| 239 | + | func MemoryFormatGLibType() types.GType { | |
| 240 | + | return xMemoryFormatGLibType() | |
| 241 | + | } | |
| 242 | + | ||
| 199 | 243 | const ( | |
| 200 | 244 | ||
| 201 | 245 | // 4 bytes; for blue, green, red, alpha. | |
| @@ -255,6 +299,12 @@ const ( | |||
| 255 | 299 | // Error enumeration for `GdkVulkanContext`. | |
| 256 | 300 | type VulkanError int | |
| 257 | 301 | ||
| 302 | + | var xVulkanErrorGLibType func() types.GType | |
| 303 | + | ||
| 304 | + | func VulkanErrorGLibType() types.GType { | |
| 305 | + | return xVulkanErrorGLibType() | |
| 306 | + | } | |
| 307 | + | ||
| 258 | 308 | const ( | |
| 259 | 309 | ||
| 260 | 310 | // Vulkan is not supported on this backend or has not been | |
M v4/gdk/gdkevents.go +178 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // `GdkEventSequence` is an opaque type representing a sequence | |
| @@ -14,6 +15,12 @@ import ( | |||
| 14 | 15 | type EventSequence struct { | |
| 15 | 16 | } | |
| 16 | 17 | ||
| 18 | + | var xEventSequenceGLibType func() types.GType | |
| 19 | + | ||
| 20 | + | func EventSequenceGLibType() types.GType { | |
| 21 | + | return xEventSequenceGLibType() | |
| 22 | + | } | |
| 23 | + | ||
| 17 | 24 | func (x *EventSequence) GoPointer() uintptr { | |
| 18 | 25 | return uintptr(unsafe.Pointer(x)) | |
| 19 | 26 | } | |
| @@ -41,6 +48,12 @@ const ( | |||
| 41 | 48 | // Specifies the crossing mode for enter and leave events. | |
| 42 | 49 | type CrossingMode int | |
| 43 | 50 | ||
| 51 | + | var xCrossingModeGLibType func() types.GType | |
| 52 | + | ||
| 53 | + | func CrossingModeGLibType() types.GType { | |
| 54 | + | return xCrossingModeGLibType() | |
| 55 | + | } | |
| 56 | + | ||
| 44 | 57 | const ( | |
| 45 | 58 | ||
| 46 | 59 | // crossing because of pointer motion. | |
| @@ -71,6 +84,12 @@ const ( | |||
| 71 | 84 | // Specifies the type of the event. | |
| 72 | 85 | type EventType int | |
| 73 | 86 | ||
| 87 | + | var xEventTypeGLibType func() types.GType | |
| 88 | + | ||
| 89 | + | func EventTypeGLibType() types.GType { | |
| 90 | + | return xEventTypeGLibType() | |
| 91 | + | } | |
| 92 | + | ||
| 74 | 93 | const ( | |
| 75 | 94 | ||
| 76 | 95 | // the window manager has requested that the toplevel surface be | |
| @@ -148,6 +167,12 @@ const ( | |||
| 148 | 167 | // `GdkKeyMatch` values are returned by [method@Gdk.KeyEvent.matches]. | |
| 149 | 168 | type KeyMatch int | |
| 150 | 169 | ||
| 170 | + | var xKeyMatchGLibType func() types.GType | |
| 171 | + | ||
| 172 | + | func KeyMatchGLibType() types.GType { | |
| 173 | + | return xKeyMatchGLibType() | |
| 174 | + | } | |
| 175 | + | ||
| 151 | 176 | const ( | |
| 152 | 177 | ||
| 153 | 178 | // The key event does not match | |
| @@ -165,6 +190,12 @@ const ( | |||
| 165 | 190 | // full details of crossing event generation. | |
| 166 | 191 | type NotifyType int | |
| 167 | 192 | ||
| 193 | + | var xNotifyTypeGLibType func() types.GType | |
| 194 | + | ||
| 195 | + | func NotifyTypeGLibType() types.GType { | |
| 196 | + | return xNotifyTypeGLibType() | |
| 197 | + | } | |
| 198 | + | ||
| 168 | 199 | const ( | |
| 169 | 200 | ||
| 170 | 201 | // the surface is entered from an ancestor or | |
| @@ -191,6 +222,12 @@ const ( | |||
| 191 | 222 | // Specifies the direction for scroll events. | |
| 192 | 223 | type ScrollDirection int | |
| 193 | 224 | ||
| 225 | + | var xScrollDirectionGLibType func() types.GType | |
| 226 | + | ||
| 227 | + | func ScrollDirectionGLibType() types.GType { | |
| 228 | + | return xScrollDirectionGLibType() | |
| 229 | + | } | |
| 230 | + | ||
| 194 | 231 | const ( | |
| 195 | 232 | ||
| 196 | 233 | // the surface is scrolled up. | |
| @@ -224,6 +261,12 @@ const ( | |||
| 224 | 261 | // scale factor and eventually a custom scale factor in your app). | |
| 225 | 262 | type ScrollUnit int | |
| 226 | 263 | ||
| 264 | + | var xScrollUnitGLibType func() types.GType | |
| 265 | + | ||
| 266 | + | func ScrollUnitGLibType() types.GType { | |
| 267 | + | return xScrollUnitGLibType() | |
| 268 | + | } | |
| 269 | + | ||
| 227 | 270 | const ( | |
| 228 | 271 | ||
| 229 | 272 | // The delta is in number of wheel clicks. | |
| @@ -253,6 +296,12 @@ const ( | |||
| 253 | 296 | // progress of the gesture. | |
| 254 | 297 | type TouchpadGesturePhase int | |
| 255 | 298 | ||
| 299 | + | var xTouchpadGesturePhaseGLibType func() types.GType | |
| 300 | + | ||
| 301 | + | func TouchpadGesturePhaseGLibType() types.GType { | |
| 302 | + | return xTouchpadGesturePhaseGLibType() | |
| 303 | + | } | |
| 304 | + | ||
| 256 | 305 | const ( | |
| 257 | 306 | ||
| 258 | 307 | // The gesture has begun. | |
| @@ -312,6 +361,12 @@ type ButtonEvent struct { | |||
| 312 | 361 | Event | |
| 313 | 362 | } | |
| 314 | 363 | ||
| 364 | + | var xButtonEventGLibType func() types.GType | |
| 365 | + | ||
| 366 | + | func ButtonEventGLibType() types.GType { | |
| 367 | + | return xButtonEventGLibType() | |
| 368 | + | } | |
| 369 | + | ||
| 315 | 370 | func ButtonEventNewFromInternalPtr(ptr uintptr) *ButtonEvent { | |
| 316 | 371 | cls := &ButtonEvent{} | |
| 317 | 372 | cls.Ptr = ptr | |
| @@ -340,6 +395,12 @@ type CrossingEvent struct { | |||
| 340 | 395 | Event | |
| 341 | 396 | } | |
| 342 | 397 | ||
| 398 | + | var xCrossingEventGLibType func() types.GType | |
| 399 | + | ||
| 400 | + | func CrossingEventGLibType() types.GType { | |
| 401 | + | return xCrossingEventGLibType() | |
| 402 | + | } | |
| 403 | + | ||
| 343 | 404 | func CrossingEventNewFromInternalPtr(ptr uintptr) *CrossingEvent { | |
| 344 | 405 | cls := &CrossingEvent{} | |
| 345 | 406 | cls.Ptr = ptr | |
| @@ -386,6 +447,12 @@ type DNDEvent struct { | |||
| 386 | 447 | Event | |
| 387 | 448 | } | |
| 388 | 449 | ||
| 450 | + | var xDNDEventGLibType func() types.GType | |
| 451 | + | ||
| 452 | + | func DNDEventGLibType() types.GType { | |
| 453 | + | return xDNDEventGLibType() | |
| 454 | + | } | |
| 455 | + | ||
| 389 | 456 | func DNDEventNewFromInternalPtr(ptr uintptr) *DNDEvent { | |
| 390 | 457 | cls := &DNDEvent{} | |
| 391 | 458 | cls.Ptr = ptr | |
| @@ -422,6 +489,12 @@ type DeleteEvent struct { | |||
| 422 | 489 | Event | |
| 423 | 490 | } | |
| 424 | 491 | ||
| 492 | + | var xDeleteEventGLibType func() types.GType | |
| 493 | + | ||
| 494 | + | func DeleteEventGLibType() types.GType { | |
| 495 | + | return xDeleteEventGLibType() | |
| 496 | + | } | |
| 497 | + | ||
| 425 | 498 | func DeleteEventNewFromInternalPtr(ptr uintptr) *DeleteEvent { | |
| 426 | 499 | cls := &DeleteEvent{} | |
| 427 | 500 | cls.Ptr = ptr | |
| @@ -446,6 +519,12 @@ type Event struct { | |||
| 446 | 519 | Ptr uintptr | |
| 447 | 520 | } | |
| 448 | 521 | ||
| 522 | + | var xEventGLibType func() types.GType | |
| 523 | + | ||
| 524 | + | func EventGLibType() types.GType { | |
| 525 | + | return xEventGLibType() | |
| 526 | + | } | |
| 527 | + | ||
| 449 | 528 | func EventNewFromInternalPtr(ptr uintptr) *Event { | |
| 450 | 529 | cls := &Event{} | |
| 451 | 530 | cls.Ptr = ptr | |
| @@ -745,6 +824,12 @@ type FocusEvent struct { | |||
| 745 | 824 | Event | |
| 746 | 825 | } | |
| 747 | 826 | ||
| 827 | + | var xFocusEventGLibType func() types.GType | |
| 828 | + | ||
| 829 | + | func FocusEventGLibType() types.GType { | |
| 830 | + | return xFocusEventGLibType() | |
| 831 | + | } | |
| 832 | + | ||
| 748 | 833 | func FocusEventNewFromInternalPtr(ptr uintptr) *FocusEvent { | |
| 749 | 834 | cls := &FocusEvent{} | |
| 750 | 835 | cls.Ptr = ptr | |
| @@ -774,6 +859,12 @@ type GrabBrokenEvent struct { | |||
| 774 | 859 | Event | |
| 775 | 860 | } | |
| 776 | 861 | ||
| 862 | + | var xGrabBrokenEventGLibType func() types.GType | |
| 863 | + | ||
| 864 | + | func GrabBrokenEventGLibType() types.GType { | |
| 865 | + | return xGrabBrokenEventGLibType() | |
| 866 | + | } | |
| 867 | + | ||
| 777 | 868 | func GrabBrokenEventNewFromInternalPtr(ptr uintptr) *GrabBrokenEvent { | |
| 778 | 869 | cls := &GrabBrokenEvent{} | |
| 779 | 870 | cls.Ptr = ptr | |
| @@ -819,6 +910,12 @@ type KeyEvent struct { | |||
| 819 | 910 | Event | |
| 820 | 911 | } | |
| 821 | 912 | ||
| 913 | + | var xKeyEventGLibType func() types.GType | |
| 914 | + | ||
| 915 | + | func KeyEventGLibType() types.GType { | |
| 916 | + | return xKeyEventGLibType() | |
| 917 | + | } | |
| 918 | + | ||
| 822 | 919 | func KeyEventNewFromInternalPtr(ptr uintptr) *KeyEvent { | |
| 823 | 920 | cls := &KeyEvent{} | |
| 824 | 921 | cls.Ptr = ptr | |
| @@ -920,6 +1017,12 @@ type MotionEvent struct { | |||
| 920 | 1017 | Event | |
| 921 | 1018 | } | |
| 922 | 1019 | ||
| 1020 | + | var xMotionEventGLibType func() types.GType | |
| 1021 | + | ||
| 1022 | + | func MotionEventGLibType() types.GType { | |
| 1023 | + | return xMotionEventGLibType() | |
| 1024 | + | } | |
| 1025 | + | ||
| 923 | 1026 | func MotionEventNewFromInternalPtr(ptr uintptr) *MotionEvent { | |
| 924 | 1027 | cls := &MotionEvent{} | |
| 925 | 1028 | cls.Ptr = ptr | |
| @@ -939,6 +1042,12 @@ type PadEvent struct { | |||
| 939 | 1042 | Event | |
| 940 | 1043 | } | |
| 941 | 1044 | ||
| 1045 | + | var xPadEventGLibType func() types.GType | |
| 1046 | + | ||
| 1047 | + | func PadEventGLibType() types.GType { | |
| 1048 | + | return xPadEventGLibType() | |
| 1049 | + | } | |
| 1050 | + | ||
| 942 | 1051 | func PadEventNewFromInternalPtr(ptr uintptr) *PadEvent { | |
| 943 | 1052 | cls := &PadEvent{} | |
| 944 | 1053 | cls.Ptr = ptr | |
| @@ -986,6 +1095,12 @@ type ProximityEvent struct { | |||
| 986 | 1095 | Event | |
| 987 | 1096 | } | |
| 988 | 1097 | ||
| 1098 | + | var xProximityEventGLibType func() types.GType | |
| 1099 | + | ||
| 1100 | + | func ProximityEventGLibType() types.GType { | |
| 1101 | + | return xProximityEventGLibType() | |
| 1102 | + | } | |
| 1103 | + | ||
| 989 | 1104 | func ProximityEventNewFromInternalPtr(ptr uintptr) *ProximityEvent { | |
| 990 | 1105 | cls := &ProximityEvent{} | |
| 991 | 1106 | cls.Ptr = ptr | |
| @@ -1005,6 +1120,12 @@ type ScrollEvent struct { | |||
| 1005 | 1120 | Event | |
| 1006 | 1121 | } | |
| 1007 | 1122 | ||
| 1123 | + | var xScrollEventGLibType func() types.GType | |
| 1124 | + | ||
| 1125 | + | func ScrollEventGLibType() types.GType { | |
| 1126 | + | return xScrollEventGLibType() | |
| 1127 | + | } | |
| 1128 | + | ||
| 1008 | 1129 | func ScrollEventNewFromInternalPtr(ptr uintptr) *ScrollEvent { | |
| 1009 | 1130 | cls := &ScrollEvent{} | |
| 1010 | 1131 | cls.Ptr = ptr | |
| @@ -1077,6 +1198,12 @@ type TouchEvent struct { | |||
| 1077 | 1198 | Event | |
| 1078 | 1199 | } | |
| 1079 | 1200 | ||
| 1201 | + | var xTouchEventGLibType func() types.GType | |
| 1202 | + | ||
| 1203 | + | func TouchEventGLibType() types.GType { | |
| 1204 | + | return xTouchEventGLibType() | |
| 1205 | + | } | |
| 1206 | + | ||
| 1080 | 1207 | func TouchEventNewFromInternalPtr(ptr uintptr) *TouchEvent { | |
| 1081 | 1208 | cls := &TouchEvent{} | |
| 1082 | 1209 | cls.Ptr = ptr | |
| @@ -1110,6 +1237,12 @@ type TouchpadEvent struct { | |||
| 1110 | 1237 | Event | |
| 1111 | 1238 | } | |
| 1112 | 1239 | ||
| 1240 | + | var xTouchpadEventGLibType func() types.GType | |
| 1241 | + | ||
| 1242 | + | func TouchpadEventGLibType() types.GType { | |
| 1243 | + | return xTouchpadEventGLibType() | |
| 1244 | + | } | |
| 1245 | + | ||
| 1113 | 1246 | func TouchpadEventNewFromInternalPtr(ptr uintptr) *TouchpadEvent { | |
| 1114 | 1247 | cls := &TouchpadEvent{} | |
| 1115 | 1248 | cls.Ptr = ptr | |
| @@ -1174,18 +1307,45 @@ func init() { | |||
| 1174 | 1307 | if err != nil { | |
| 1175 | 1308 | panic(err) | |
| 1176 | 1309 | } | |
| 1310 | + | ||
| 1311 | + | core.PuregoSafeRegister(&xCrossingModeGLibType, lib, "gdk_crossing_mode_get_type") | |
| 1312 | + | ||
| 1313 | + | core.PuregoSafeRegister(&xEventTypeGLibType, lib, "gdk_event_type_get_type") | |
| 1314 | + | ||
| 1315 | + | core.PuregoSafeRegister(&xKeyMatchGLibType, lib, "gdk_key_match_get_type") | |
| 1316 | + | ||
| 1317 | + | core.PuregoSafeRegister(&xNotifyTypeGLibType, lib, "gdk_notify_type_get_type") | |
| 1318 | + | ||
| 1319 | + | core.PuregoSafeRegister(&xScrollDirectionGLibType, lib, "gdk_scroll_direction_get_type") | |
| 1320 | + | ||
| 1321 | + | core.PuregoSafeRegister(&xScrollUnitGLibType, lib, "gdk_scroll_unit_get_type") | |
| 1322 | + | ||
| 1323 | + | core.PuregoSafeRegister(&xTouchpadGesturePhaseGLibType, lib, "gdk_touchpad_gesture_phase_get_type") | |
| 1324 | + | ||
| 1177 | 1325 | core.PuregoSafeRegister(&xEventsGetAngle, lib, "gdk_events_get_angle") | |
| 1178 | 1326 | core.PuregoSafeRegister(&xEventsGetCenter, lib, "gdk_events_get_center") | |
| 1179 | 1327 | core.PuregoSafeRegister(&xEventsGetDistance, lib, "gdk_events_get_distance") | |
| 1180 | 1328 | ||
| 1329 | + | core.PuregoSafeRegister(&xEventSequenceGLibType, lib, "gdk_event_sequence_get_type") | |
| 1330 | + | ||
| 1331 | + | core.PuregoSafeRegister(&xButtonEventGLibType, lib, "gdk_button_event_get_type") | |
| 1332 | + | ||
| 1181 | 1333 | core.PuregoSafeRegister(&xButtonEventGetButton, lib, "gdk_button_event_get_button") | |
| 1182 | 1334 | ||
| 1335 | + | core.PuregoSafeRegister(&xCrossingEventGLibType, lib, "gdk_crossing_event_get_type") | |
| 1336 | + | ||
| 1183 | 1337 | core.PuregoSafeRegister(&xCrossingEventGetDetail, lib, "gdk_crossing_event_get_detail") | |
| 1184 | 1338 | core.PuregoSafeRegister(&xCrossingEventGetFocus, lib, "gdk_crossing_event_get_focus") | |
| 1185 | 1339 | core.PuregoSafeRegister(&xCrossingEventGetMode, lib, "gdk_crossing_event_get_mode") | |
| 1186 | 1340 | ||
| 1341 | + | core.PuregoSafeRegister(&xDNDEventGLibType, lib, "gdk_dnd_event_get_type") | |
| 1342 | + | ||
| 1187 | 1343 | core.PuregoSafeRegister(&xDNDEventGetDrop, lib, "gdk_dnd_event_get_drop") | |
| 1188 | 1344 | ||
| 1345 | + | core.PuregoSafeRegister(&xDeleteEventGLibType, lib, "gdk_delete_event_get_type") | |
| 1346 | + | ||
| 1347 | + | core.PuregoSafeRegister(&xEventGLibType, lib, "gdk_event_get_type") | |
| 1348 | + | ||
| 1189 | 1349 | core.PuregoSafeRegister(&xEventGetAngle, lib, "gdk_events_get_angle") | |
| 1190 | 1350 | core.PuregoSafeRegister(&xEventGetCenter, lib, "gdk_events_get_center") | |
| 1191 | 1351 | core.PuregoSafeRegister(&xEventGetDistance, lib, "gdk_events_get_distance") | |
| @@ -1207,11 +1367,17 @@ func init() { | |||
| 1207 | 1367 | core.PuregoSafeRegister(&xEventTriggersContextMenu, lib, "gdk_event_triggers_context_menu") | |
| 1208 | 1368 | core.PuregoSafeRegister(&xEventUnref, lib, "gdk_event_unref") | |
| 1209 | 1369 | ||
| 1370 | + | core.PuregoSafeRegister(&xFocusEventGLibType, lib, "gdk_focus_event_get_type") | |
| 1371 | + | ||
| 1210 | 1372 | core.PuregoSafeRegister(&xFocusEventGetIn, lib, "gdk_focus_event_get_in") | |
| 1211 | 1373 | ||
| 1374 | + | core.PuregoSafeRegister(&xGrabBrokenEventGLibType, lib, "gdk_grab_broken_event_get_type") | |
| 1375 | + | ||
| 1212 | 1376 | core.PuregoSafeRegister(&xGrabBrokenEventGetGrabSurface, lib, "gdk_grab_broken_event_get_grab_surface") | |
| 1213 | 1377 | core.PuregoSafeRegister(&xGrabBrokenEventGetImplicit, lib, "gdk_grab_broken_event_get_implicit") | |
| 1214 | 1378 | ||
| 1379 | + | core.PuregoSafeRegister(&xKeyEventGLibType, lib, "gdk_key_event_get_type") | |
| 1380 | + | ||
| 1215 | 1381 | core.PuregoSafeRegister(&xKeyEventGetConsumedModifiers, lib, "gdk_key_event_get_consumed_modifiers") | |
| 1216 | 1382 | core.PuregoSafeRegister(&xKeyEventGetKeycode, lib, "gdk_key_event_get_keycode") | |
| 1217 | 1383 | core.PuregoSafeRegister(&xKeyEventGetKeyval, lib, "gdk_key_event_get_keyval") | |
| @@ -1221,17 +1387,29 @@ func init() { | |||
| 1221 | 1387 | core.PuregoSafeRegister(&xKeyEventIsModifier, lib, "gdk_key_event_is_modifier") | |
| 1222 | 1388 | core.PuregoSafeRegister(&xKeyEventMatches, lib, "gdk_key_event_matches") | |
| 1223 | 1389 | ||
| 1390 | + | core.PuregoSafeRegister(&xMotionEventGLibType, lib, "gdk_motion_event_get_type") | |
| 1391 | + | ||
| 1392 | + | core.PuregoSafeRegister(&xPadEventGLibType, lib, "gdk_pad_event_get_type") | |
| 1393 | + | ||
| 1224 | 1394 | core.PuregoSafeRegister(&xPadEventGetAxisValue, lib, "gdk_pad_event_get_axis_value") | |
| 1225 | 1395 | core.PuregoSafeRegister(&xPadEventGetButton, lib, "gdk_pad_event_get_button") | |
| 1226 | 1396 | core.PuregoSafeRegister(&xPadEventGetGroupMode, lib, "gdk_pad_event_get_group_mode") | |
| 1227 | 1397 | ||
| 1398 | + | core.PuregoSafeRegister(&xProximityEventGLibType, lib, "gdk_proximity_event_get_type") | |
| 1399 | + | ||
| 1400 | + | core.PuregoSafeRegister(&xScrollEventGLibType, lib, "gdk_scroll_event_get_type") | |
| 1401 | + | ||
| 1228 | 1402 | core.PuregoSafeRegister(&xScrollEventGetDeltas, lib, "gdk_scroll_event_get_deltas") | |
| 1229 | 1403 | core.PuregoSafeRegister(&xScrollEventGetDirection, lib, "gdk_scroll_event_get_direction") | |
| 1230 | 1404 | core.PuregoSafeRegister(&xScrollEventGetUnit, lib, "gdk_scroll_event_get_unit") | |
| 1231 | 1405 | core.PuregoSafeRegister(&xScrollEventIsStop, lib, "gdk_scroll_event_is_stop") | |
| 1232 | 1406 | ||
| 1407 | + | core.PuregoSafeRegister(&xTouchEventGLibType, lib, "gdk_touch_event_get_type") | |
| 1408 | + | ||
| 1233 | 1409 | core.PuregoSafeRegister(&xTouchEventGetEmulatingPointer, lib, "gdk_touch_event_get_emulating_pointer") | |
| 1234 | 1410 | ||
| 1411 | + | core.PuregoSafeRegister(&xTouchpadEventGLibType, lib, "gdk_touchpad_event_get_type") | |
| 1412 | + | ||
| 1235 | 1413 | core.PuregoSafeRegister(&xTouchpadEventGetDeltas, lib, "gdk_touchpad_event_get_deltas") | |
| 1236 | 1414 | core.PuregoSafeRegister(&xTouchpadEventGetGesturePhase, lib, "gdk_touchpad_event_get_gesture_phase") | |
| 1237 | 1415 | core.PuregoSafeRegister(&xTouchpadEventGetNFingers, lib, "gdk_touchpad_event_get_n_fingers") | |
M v4/gdk/gdkframeclock.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type FrameClockClass struct { | |
| @@ -29,6 +30,12 @@ func (x *FrameClockPrivate) GoPointer() uintptr { | |||
| 29 | 30 | // The elements of the enumeration correspond to the signals of `GdkFrameClock`. | |
| 30 | 31 | type FrameClockPhase int | |
| 31 | 32 | ||
| 33 | + | var xFrameClockPhaseGLibType func() types.GType | |
| 34 | + | ||
| 35 | + | func FrameClockPhaseGLibType() types.GType { | |
| 36 | + | return xFrameClockPhaseGLibType() | |
| 37 | + | } | |
| 38 | + | ||
| 32 | 39 | const ( | |
| 33 | 40 | ||
| 34 | 41 | // no phase | |
| @@ -86,6 +93,12 @@ type FrameClock struct { | |||
| 86 | 93 | gobject.Object | |
| 87 | 94 | } | |
| 88 | 95 | ||
| 96 | + | var xFrameClockGLibType func() types.GType | |
| 97 | + | ||
| 98 | + | func FrameClockGLibType() types.GType { | |
| 99 | + | return xFrameClockGLibType() | |
| 100 | + | } | |
| 101 | + | ||
| 89 | 102 | func FrameClockNewFromInternalPtr(ptr uintptr) *FrameClock { | |
| 90 | 103 | cls := &FrameClock{} | |
| 91 | 104 | cls.Ptr = ptr | |
| @@ -404,6 +417,10 @@ func init() { | |||
| 404 | 417 | panic(err) | |
| 405 | 418 | } | |
| 406 | 419 | ||
| 420 | + | core.PuregoSafeRegister(&xFrameClockPhaseGLibType, lib, "gdk_frame_clock_phase_get_type") | |
| 421 | + | ||
| 422 | + | core.PuregoSafeRegister(&xFrameClockGLibType, lib, "gdk_frame_clock_get_type") | |
| 423 | + | ||
| 407 | 424 | core.PuregoSafeRegister(&xFrameClockBeginUpdating, lib, "gdk_frame_clock_begin_updating") | |
| 408 | 425 | core.PuregoSafeRegister(&xFrameClockEndUpdating, lib, "gdk_frame_clock_end_updating") | |
| 409 | 426 | core.PuregoSafeRegister(&xFrameClockGetCurrentTimings, lib, "gdk_frame_clock_get_current_timings") | |
M v4/gdk/gdkframetimings.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // A `GdkFrameTimings` object holds timing information for a single frame | |
| @@ -19,6 +20,12 @@ import ( | |||
| 19 | 20 | type FrameTimings struct { | |
| 20 | 21 | } | |
| 21 | 22 | ||
| 23 | + | var xFrameTimingsGLibType func() types.GType | |
| 24 | + | ||
| 25 | + | func FrameTimingsGLibType() types.GType { | |
| 26 | + | return xFrameTimingsGLibType() | |
| 27 | + | } | |
| 28 | + | ||
| 22 | 29 | func (x *FrameTimings) GoPointer() uintptr { | |
| 23 | 30 | return uintptr(unsafe.Pointer(x)) | |
| 24 | 31 | } | |
| @@ -136,6 +143,8 @@ func init() { | |||
| 136 | 143 | panic(err) | |
| 137 | 144 | } | |
| 138 | 145 | ||
| 146 | + | core.PuregoSafeRegister(&xFrameTimingsGLibType, lib, "gdk_frame_timings_get_type") | |
| 147 | + | ||
| 139 | 148 | core.PuregoSafeRegister(&xFrameTimingsGetComplete, lib, "gdk_frame_timings_get_complete") | |
| 140 | 149 | core.PuregoSafeRegister(&xFrameTimingsGetFrameCounter, lib, "gdk_frame_timings_get_frame_counter") | |
| 141 | 150 | core.PuregoSafeRegister(&xFrameTimingsGetFrameTime, lib, "gdk_frame_timings_get_frame_time") | |
M v4/gdk/gdkglcontext.go +17 -0
| @@ -6,11 +6,18 @@ import ( | |||
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The list of the different APIs that GdkGLContext can potentially support. | |
| 12 | 13 | type GLAPI int | |
| 13 | 14 | ||
| 15 | + | var xGLAPIGLibType func() types.GType | |
| 16 | + | ||
| 17 | + | func GLAPIGLibType() types.GType { | |
| 18 | + | return xGLAPIGLibType() | |
| 19 | + | } | |
| 20 | + | ||
| 14 | 21 | const ( | |
| 15 | 22 | ||
| 16 | 23 | // The OpenGL API | |
| @@ -72,6 +79,12 @@ type GLContext struct { | |||
| 72 | 79 | DrawContext | |
| 73 | 80 | } | |
| 74 | 81 | ||
| 82 | + | var xGLContextGLibType func() types.GType | |
| 83 | + | ||
| 84 | + | func GLContextGLibType() types.GType { | |
| 85 | + | return xGLContextGLibType() | |
| 86 | + | } | |
| 87 | + | ||
| 75 | 88 | func GLContextNewFromInternalPtr(ptr uintptr) *GLContext { | |
| 76 | 89 | cls := &GLContext{} | |
| 77 | 90 | cls.Ptr = ptr | |
| @@ -408,6 +421,10 @@ func init() { | |||
| 408 | 421 | panic(err) | |
| 409 | 422 | } | |
| 410 | 423 | ||
| 424 | + | core.PuregoSafeRegister(&xGLAPIGLibType, lib, "gdk_gl_api_get_type") | |
| 425 | + | ||
| 426 | + | core.PuregoSafeRegister(&xGLContextGLibType, lib, "gdk_gl_context_get_type") | |
| 427 | + | ||
| 411 | 428 | core.PuregoSafeRegister(&xGLContextGetAllowedApis, lib, "gdk_gl_context_get_allowed_apis") | |
| 412 | 429 | core.PuregoSafeRegister(&xGLContextGetApi, lib, "gdk_gl_context_get_api") | |
| 413 | 430 | core.PuregoSafeRegister(&xGLContextGetDebugEnabled, lib, "gdk_gl_context_get_debug_enabled") | |
M v4/gdk/gdkgltexture.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type GLTextureClass struct { | |
| @@ -22,6 +23,12 @@ type GLTexture struct { | |||
| 22 | 23 | Texture | |
| 23 | 24 | } | |
| 24 | 25 | ||
| 26 | + | var xGLTextureGLibType func() types.GType | |
| 27 | + | ||
| 28 | + | func GLTextureGLibType() types.GType { | |
| 29 | + | return xGLTextureGLibType() | |
| 30 | + | } | |
| 31 | + | ||
| 25 | 32 | func GLTextureNewFromInternalPtr(ptr uintptr) *GLTexture { | |
| 26 | 33 | cls := &GLTexture{} | |
| 27 | 34 | cls.Ptr = ptr | |
| @@ -307,6 +314,8 @@ func init() { | |||
| 307 | 314 | panic(err) | |
| 308 | 315 | } | |
| 309 | 316 | ||
| 317 | + | core.PuregoSafeRegister(&xGLTextureGLibType, lib, "gdk_gl_texture_get_type") | |
| 318 | + | ||
| 310 | 319 | core.PuregoSafeRegister(&xNewGLTexture, lib, "gdk_gl_texture_new") | |
| 311 | 320 | ||
| 312 | 321 | core.PuregoSafeRegister(&xGLTextureRelease, lib, "gdk_gl_texture_release") | |
M v4/gdk/gdkkeys.go +1 -0
| @@ -107,6 +107,7 @@ func init() { | |||
| 107 | 107 | if err != nil { | |
| 108 | 108 | panic(err) | |
| 109 | 109 | } | |
| 110 | + | ||
| 110 | 111 | core.PuregoSafeRegister(&xKeyvalConvertCase, lib, "gdk_keyval_convert_case") | |
| 111 | 112 | core.PuregoSafeRegister(&xKeyvalFromName, lib, "gdk_keyval_from_name") | |
| 112 | 113 | core.PuregoSafeRegister(&xKeyvalIsLower, lib, "gdk_keyval_is_lower") | |
M v4/gdk/gdkmemorytexture.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type MemoryTextureClass struct { | |
| @@ -22,6 +23,12 @@ type MemoryTexture struct { | |||
| 22 | 23 | Texture | |
| 23 | 24 | } | |
| 24 | 25 | ||
| 26 | + | var xMemoryTextureGLibType func() types.GType | |
| 27 | + | ||
| 28 | + | func MemoryTextureGLibType() types.GType { | |
| 29 | + | return xMemoryTextureGLibType() | |
| 30 | + | } | |
| 31 | + | ||
| 25 | 32 | func MemoryTextureNewFromInternalPtr(ptr uintptr) *MemoryTexture { | |
| 26 | 33 | cls := &MemoryTexture{} | |
| 27 | 34 | cls.Ptr = ptr | |
| @@ -293,6 +300,8 @@ func init() { | |||
| 293 | 300 | panic(err) | |
| 294 | 301 | } | |
| 295 | 302 | ||
| 303 | + | core.PuregoSafeRegister(&xMemoryTextureGLibType, lib, "gdk_memory_texture_get_type") | |
| 304 | + | ||
| 296 | 305 | core.PuregoSafeRegister(&xNewMemoryTexture, lib, "gdk_memory_texture_new") | |
| 297 | 306 | ||
| 298 | 307 | } | |
M v4/gdk/gdkmonitor.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type MonitorClass struct { | |
| @@ -21,6 +22,12 @@ func (x *MonitorClass) GoPointer() uintptr { | |||
| 21 | 22 | // of physical pixels on an output device are laid out. | |
| 22 | 23 | type SubpixelLayout int | |
| 23 | 24 | ||
| 25 | + | var xSubpixelLayoutGLibType func() types.GType | |
| 26 | + | ||
| 27 | + | func SubpixelLayoutGLibType() types.GType { | |
| 28 | + | return xSubpixelLayoutGLibType() | |
| 29 | + | } | |
| 30 | + | ||
| 24 | 31 | const ( | |
| 25 | 32 | ||
| 26 | 33 | // The layout is not known | |
| @@ -48,6 +55,12 @@ type Monitor struct { | |||
| 48 | 55 | gobject.Object | |
| 49 | 56 | } | |
| 50 | 57 | ||
| 58 | + | var xMonitorGLibType func() types.GType | |
| 59 | + | ||
| 60 | + | func MonitorGLibType() types.GType { | |
| 61 | + | return xMonitorGLibType() | |
| 62 | + | } | |
| 63 | + | ||
| 51 | 64 | func MonitorNewFromInternalPtr(ptr uintptr) *Monitor { | |
| 52 | 65 | cls := &Monitor{} | |
| 53 | 66 | cls.Ptr = ptr | |
| @@ -221,6 +234,10 @@ func init() { | |||
| 221 | 234 | panic(err) | |
| 222 | 235 | } | |
| 223 | 236 | ||
| 237 | + | core.PuregoSafeRegister(&xSubpixelLayoutGLibType, lib, "gdk_subpixel_layout_get_type") | |
| 238 | + | ||
| 239 | + | core.PuregoSafeRegister(&xMonitorGLibType, lib, "gdk_monitor_get_type") | |
| 240 | + | ||
| 224 | 241 | core.PuregoSafeRegister(&xMonitorGetConnector, lib, "gdk_monitor_get_connector") | |
| 225 | 242 | core.PuregoSafeRegister(&xMonitorGetDisplay, lib, "gdk_monitor_get_display") | |
| 226 | 243 | core.PuregoSafeRegister(&xMonitorGetGeometry, lib, "gdk_monitor_get_geometry") | |
M v4/gdk/gdkpaintable.go +19 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The list of functions that can be implemented for the `GdkPaintable` | |
| @@ -83,6 +84,13 @@ type Paintable interface { | |||
| 83 | 84 | InvalidateSize() | |
| 84 | 85 | Snapshot(SnapshotVar *Snapshot, WidthVar float64, HeightVar float64) | |
| 85 | 86 | } | |
| 87 | + | ||
| 88 | + | var xPaintableGLibType func() types.GType | |
| 89 | + | ||
| 90 | + | func PaintableGLibType() types.GType { | |
| 91 | + | return xPaintableGLibType() | |
| 92 | + | } | |
| 93 | + | ||
| 86 | 94 | type PaintableBase struct { | |
| 87 | 95 | Ptr uintptr | |
| 88 | 96 | } | |
| @@ -254,6 +262,12 @@ var XGdkPaintableSnapshot func(uintptr, uintptr, float64, float64) | |||
| 254 | 262 | // Implementations use these for optimizations such as caching. | |
| 255 | 263 | type PaintableFlags int | |
| 256 | 264 | ||
| 265 | + | var xPaintableFlagsGLibType func() types.GType | |
| 266 | + | ||
| 267 | + | func PaintableFlagsGLibType() types.GType { | |
| 268 | + | return xPaintableFlagsGLibType() | |
| 269 | + | } | |
| 270 | + | ||
| 257 | 271 | const ( | |
| 258 | 272 | ||
| 259 | 273 | // The size is immutable. | |
| @@ -292,8 +306,13 @@ func init() { | |||
| 292 | 306 | if err != nil { | |
| 293 | 307 | panic(err) | |
| 294 | 308 | } | |
| 309 | + | ||
| 310 | + | core.PuregoSafeRegister(&xPaintableFlagsGLibType, lib, "gdk_paintable_flags_get_type") | |
| 311 | + | ||
| 295 | 312 | core.PuregoSafeRegister(&xPaintableNewEmpty, lib, "gdk_paintable_new_empty") | |
| 296 | 313 | ||
| 314 | + | core.PuregoSafeRegister(&xPaintableGLibType, lib, "gdk_paintable_get_type") | |
| 315 | + | ||
| 297 | 316 | core.PuregoSafeRegister(&XGdkPaintableComputeConcreteSize, lib, "gdk_paintable_compute_concrete_size") | |
| 298 | 317 | core.PuregoSafeRegister(&XGdkPaintableGetCurrentImage, lib, "gdk_paintable_get_current_image") | |
| 299 | 318 | core.PuregoSafeRegister(&XGdkPaintableGetFlags, lib, "gdk_paintable_get_flags") | |
M v4/gdk/gdkpango.go +1 -0
| @@ -54,6 +54,7 @@ func init() { | |||
| 54 | 54 | if err != nil { | |
| 55 | 55 | panic(err) | |
| 56 | 56 | } | |
| 57 | + | ||
| 57 | 58 | core.PuregoSafeRegister(&xPangoLayoutGetClipRegion, lib, "gdk_pango_layout_get_clip_region") | |
| 58 | 59 | core.PuregoSafeRegister(&xPangoLayoutLineGetClipRegion, lib, "gdk_pango_layout_line_get_clip_region") | |
| 59 | 60 | ||
M v4/gdk/gdkpixbuf.go +1 -0
| @@ -55,6 +55,7 @@ func init() { | |||
| 55 | 55 | if err != nil { | |
| 56 | 56 | panic(err) | |
| 57 | 57 | } | |
| 58 | + | ||
| 58 | 59 | core.PuregoSafeRegister(&xPixbufGetFromSurface, lib, "gdk_pixbuf_get_from_surface") | |
| 59 | 60 | core.PuregoSafeRegister(&xPixbufGetFromTexture, lib, "gdk_pixbuf_get_from_texture") | |
| 60 | 61 | ||
M v4/gdk/gdkpopup.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type PopupInterface struct { | |
| @@ -34,6 +35,13 @@ type Popup interface { | |||
| 34 | 35 | GetSurfaceAnchor() Gravity | |
| 35 | 36 | Present(WidthVar int, HeightVar int, LayoutVar *PopupLayout) bool | |
| 36 | 37 | } | |
| 38 | + | ||
| 39 | + | var xPopupGLibType func() types.GType | |
| 40 | + | ||
| 41 | + | func PopupGLibType() types.GType { | |
| 42 | + | return xPopupGLibType() | |
| 43 | + | } | |
| 44 | + | ||
| 37 | 45 | type PopupBase struct { | |
| 38 | 46 | Ptr uintptr | |
| 39 | 47 | } | |
| @@ -137,6 +145,8 @@ func init() { | |||
| 137 | 145 | panic(err) | |
| 138 | 146 | } | |
| 139 | 147 | ||
| 148 | + | core.PuregoSafeRegister(&xPopupGLibType, lib, "gdk_popup_get_type") | |
| 149 | + | ||
| 140 | 150 | core.PuregoSafeRegister(&XGdkPopupGetAutohide, lib, "gdk_popup_get_autohide") | |
| 141 | 151 | core.PuregoSafeRegister(&XGdkPopupGetParent, lib, "gdk_popup_get_parent") | |
| 142 | 152 | core.PuregoSafeRegister(&XGdkPopupGetPositionX, lib, "gdk_popup_get_position_x") | |
M v4/gdk/gdkpopuplayout.go +17 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The `GdkPopupLayout` struct contains information that is | |
| @@ -44,6 +45,12 @@ import ( | |||
| 44 | 45 | type PopupLayout struct { | |
| 45 | 46 | } | |
| 46 | 47 | ||
| 48 | + | var xPopupLayoutGLibType func() types.GType | |
| 49 | + | ||
| 50 | + | func PopupLayoutGLibType() types.GType { | |
| 51 | + | return xPopupLayoutGLibType() | |
| 52 | + | } | |
| 53 | + | ||
| 47 | 54 | func (x *PopupLayout) GoPointer() uintptr { | |
| 48 | 55 | return uintptr(unsafe.Pointer(x)) | |
| 49 | 56 | } | |
| @@ -239,6 +246,12 @@ func (x *PopupLayout) Unref() { | |||
| 239 | 246 | // sliding, which should take precedence over resizing. | |
| 240 | 247 | type AnchorHints int | |
| 241 | 248 | ||
| 249 | + | var xAnchorHintsGLibType func() types.GType | |
| 250 | + | ||
| 251 | + | func AnchorHintsGLibType() types.GType { | |
| 252 | + | return xAnchorHintsGLibType() | |
| 253 | + | } | |
| 254 | + | ||
| 242 | 255 | const ( | |
| 243 | 256 | ||
| 244 | 257 | // allow flipping anchors horizontally | |
| @@ -267,6 +280,10 @@ func init() { | |||
| 267 | 280 | panic(err) | |
| 268 | 281 | } | |
| 269 | 282 | ||
| 283 | + | core.PuregoSafeRegister(&xAnchorHintsGLibType, lib, "gdk_anchor_hints_get_type") | |
| 284 | + | ||
| 285 | + | core.PuregoSafeRegister(&xPopupLayoutGLibType, lib, "gdk_popup_layout_get_type") | |
| 286 | + | ||
| 270 | 287 | core.PuregoSafeRegister(&xNewPopupLayout, lib, "gdk_popup_layout_new") | |
| 271 | 288 | ||
| 272 | 289 | core.PuregoSafeRegister(&xPopupLayoutCopy, lib, "gdk_popup_layout_copy") | |
M v4/gdk/gdkrgba.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // A `GdkRGBA` is used to represent a color, in a way that is compatible | |
| @@ -27,6 +28,12 @@ type RGBA struct { | |||
| 27 | 28 | Alpha float32 | |
| 28 | 29 | } | |
| 29 | 30 | ||
| 31 | + | var xRGBAGLibType func() types.GType | |
| 32 | + | ||
| 33 | + | func RGBAGLibType() types.GType { | |
| 34 | + | return xRGBAGLibType() | |
| 35 | + | } | |
| 36 | + | ||
| 30 | 37 | func (x *RGBA) GoPointer() uintptr { | |
| 31 | 38 | return uintptr(unsafe.Pointer(x)) | |
| 32 | 39 | } | |
| @@ -146,6 +153,8 @@ func init() { | |||
| 146 | 153 | panic(err) | |
| 147 | 154 | } | |
| 148 | 155 | ||
| 156 | + | core.PuregoSafeRegister(&xRGBAGLibType, lib, "gdk_rgba_get_type") | |
| 157 | + | ||
| 149 | 158 | core.PuregoSafeRegister(&xRGBACopy, lib, "gdk_rgba_copy") | |
| 150 | 159 | core.PuregoSafeRegister(&xRGBAEqual, lib, "gdk_rgba_equal") | |
| 151 | 160 | core.PuregoSafeRegister(&xRGBAFree, lib, "gdk_rgba_free") | |
M v4/gdk/gdkseat.go +17 -0
| @@ -8,11 +8,18 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Flags describing the seat capabilities. | |
| 14 | 15 | type SeatCapabilities int | |
| 15 | 16 | ||
| 17 | + | var xSeatCapabilitiesGLibType func() types.GType | |
| 18 | + | ||
| 19 | + | func SeatCapabilitiesGLibType() types.GType { | |
| 20 | + | return xSeatCapabilitiesGLibType() | |
| 21 | + | } | |
| 22 | + | ||
| 16 | 23 | const ( | |
| 17 | 24 | ||
| 18 | 25 | // No input capabilities | |
| @@ -39,6 +46,12 @@ type Seat struct { | |||
| 39 | 46 | gobject.Object | |
| 40 | 47 | } | |
| 41 | 48 | ||
| 49 | + | var xSeatGLibType func() types.GType | |
| 50 | + | ||
| 51 | + | func SeatGLibType() types.GType { | |
| 52 | + | return xSeatGLibType() | |
| 53 | + | } | |
| 54 | + | ||
| 42 | 55 | func SeatNewFromInternalPtr(ptr uintptr) *Seat { | |
| 43 | 56 | cls := &Seat{} | |
| 44 | 57 | cls.Ptr = ptr | |
| @@ -223,6 +236,10 @@ func init() { | |||
| 223 | 236 | panic(err) | |
| 224 | 237 | } | |
| 225 | 238 | ||
| 239 | + | core.PuregoSafeRegister(&xSeatCapabilitiesGLibType, lib, "gdk_seat_capabilities_get_type") | |
| 240 | + | ||
| 241 | + | core.PuregoSafeRegister(&xSeatGLibType, lib, "gdk_seat_get_type") | |
| 242 | + | ||
| 226 | 243 | core.PuregoSafeRegister(&xSeatGetCapabilities, lib, "gdk_seat_get_capabilities") | |
| 227 | 244 | core.PuregoSafeRegister(&xSeatGetDevices, lib, "gdk_seat_get_devices") | |
| 228 | 245 | core.PuregoSafeRegister(&xSeatGetDisplay, lib, "gdk_seat_get_display") | |
M v4/gdk/gdksnapshot.go +7 -0
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "unsafe" | |
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 9 | ) | |
| 9 | 10 | ||
| 10 | 11 | type SnapshotClass struct { | |
| @@ -21,6 +22,12 @@ type Snapshot struct { | |||
| 21 | 22 | gobject.Object | |
| 22 | 23 | } | |
| 23 | 24 | ||
| 25 | + | var xSnapshotGLibType func() types.GType | |
| 26 | + | ||
| 27 | + | func SnapshotGLibType() types.GType { | |
| 28 | + | return xSnapshotGLibType() | |
| 29 | + | } | |
| 30 | + | ||
| 24 | 31 | func SnapshotNewFromInternalPtr(ptr uintptr) *Snapshot { | |
| 25 | 32 | cls := &Snapshot{} | |
| 26 | 33 | cls.Ptr = ptr | |
M v4/gdk/gdksurface.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/cairo" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| 14 | 15 | type SurfaceClass struct { | |
| @@ -31,6 +32,12 @@ type Surface struct { | |||
| 31 | 32 | gobject.Object | |
| 32 | 33 | } | |
| 33 | 34 | ||
| 35 | + | var xSurfaceGLibType func() types.GType | |
| 36 | + | ||
| 37 | + | func SurfaceGLibType() types.GType { | |
| 38 | + | return xSurfaceGLibType() | |
| 39 | + | } | |
| 40 | + | ||
| 34 | 41 | func SurfaceNewFromInternalPtr(ptr uintptr) *Surface { | |
| 35 | 42 | cls := &Surface{} | |
| 36 | 43 | cls.Ptr = ptr | |
| @@ -592,6 +599,8 @@ func init() { | |||
| 592 | 599 | panic(err) | |
| 593 | 600 | } | |
| 594 | 601 | ||
| 602 | + | core.PuregoSafeRegister(&xSurfaceGLibType, lib, "gdk_surface_get_type") | |
| 603 | + | ||
| 595 | 604 | core.PuregoSafeRegister(&xNewSurfacePopup, lib, "gdk_surface_new_popup") | |
| 596 | 605 | core.PuregoSafeRegister(&xNewSurfaceToplevel, lib, "gdk_surface_new_toplevel") | |
| 597 | 606 | ||
M v4/gdk/gdktexture.go +17 -0
| @@ -10,6 +10,7 @@ import ( | |||
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 12 | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 13 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 13 | 14 | ) | |
| 14 | 15 | ||
| 15 | 16 | type TextureClass struct { | |
| @@ -22,6 +23,12 @@ func (x *TextureClass) GoPointer() uintptr { | |||
| 22 | 23 | // Possible errors that can be returned by `GdkTexture` constructors. | |
| 23 | 24 | type TextureError int | |
| 24 | 25 | ||
| 26 | + | var xTextureErrorGLibType func() types.GType | |
| 27 | + | ||
| 28 | + | func TextureErrorGLibType() types.GType { | |
| 29 | + | return xTextureErrorGLibType() | |
| 30 | + | } | |
| 31 | + | ||
| 25 | 32 | const ( | |
| 26 | 33 | ||
| 27 | 34 | // Not enough memory to handle this image | |
| @@ -53,6 +60,12 @@ type Texture struct { | |||
| 53 | 60 | gobject.Object | |
| 54 | 61 | } | |
| 55 | 62 | ||
| 63 | + | var xTextureGLibType func() types.GType | |
| 64 | + | ||
| 65 | + | func TextureGLibType() types.GType { | |
| 66 | + | return xTextureGLibType() | |
| 67 | + | } | |
| 68 | + | ||
| 56 | 69 | func TextureNewFromInternalPtr(ptr uintptr) *Texture { | |
| 57 | 70 | cls := &Texture{} | |
| 58 | 71 | cls.Ptr = ptr | |
| @@ -560,6 +573,10 @@ func init() { | |||
| 560 | 573 | panic(err) | |
| 561 | 574 | } | |
| 562 | 575 | ||
| 576 | + | core.PuregoSafeRegister(&xTextureErrorGLibType, lib, "gdk_texture_error_get_type") | |
| 577 | + | ||
| 578 | + | core.PuregoSafeRegister(&xTextureGLibType, lib, "gdk_texture_get_type") | |
| 579 | + | ||
| 563 | 580 | core.PuregoSafeRegister(&xNewTextureForPixbuf, lib, "gdk_texture_new_for_pixbuf") | |
| 564 | 581 | core.PuregoSafeRegister(&xNewTextureFromBytes, lib, "gdk_texture_new_from_bytes") | |
| 565 | 582 | core.PuregoSafeRegister(&xNewTextureFromFile, lib, "gdk_texture_new_from_file") | |
M v4/gdk/gdktoplevel.go +34 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type ToplevelInterface struct { | |
| @@ -44,6 +45,13 @@ type Toplevel interface { | |||
| 44 | 45 | SupportsEdgeConstraints() bool | |
| 45 | 46 | TitlebarGesture(GestureVar TitlebarGesture) bool | |
| 46 | 47 | } | |
| 48 | + | ||
| 49 | + | var xToplevelGLibType func() types.GType | |
| 50 | + | ||
| 51 | + | func ToplevelGLibType() types.GType { | |
| 52 | + | return xToplevelGLibType() | |
| 53 | + | } | |
| 54 | + | ||
| 47 | 55 | type ToplevelBase struct { | |
| 48 | 56 | Ptr uintptr | |
| 49 | 57 | } | |
| @@ -306,6 +314,12 @@ var XGdkToplevelTitlebarGesture func(uintptr, TitlebarGesture) bool | |||
| 306 | 314 | // being set. | |
| 307 | 315 | type ToplevelState int | |
| 308 | 316 | ||
| 317 | + | var xToplevelStateGLibType func() types.GType | |
| 318 | + | ||
| 319 | + | func ToplevelStateGLibType() types.GType { | |
| 320 | + | return xToplevelStateGLibType() | |
| 321 | + | } | |
| 322 | + | ||
| 309 | 323 | const ( | |
| 310 | 324 | ||
| 311 | 325 | // the surface is minimized | |
| @@ -345,6 +359,12 @@ const ( | |||
| 345 | 359 | // Indicates which monitor a surface should span over when in fullscreen mode. | |
| 346 | 360 | type FullscreenMode int | |
| 347 | 361 | ||
| 362 | + | var xFullscreenModeGLibType func() types.GType | |
| 363 | + | ||
| 364 | + | func FullscreenModeGLibType() types.GType { | |
| 365 | + | return xFullscreenModeGLibType() | |
| 366 | + | } | |
| 367 | + | ||
| 348 | 368 | const ( | |
| 349 | 369 | ||
| 350 | 370 | // Fullscreen on current monitor only. | |
| @@ -356,6 +376,12 @@ const ( | |||
| 356 | 376 | // Determines a surface edge or corner. | |
| 357 | 377 | type SurfaceEdge int | |
| 358 | 378 | ||
| 379 | + | var xSurfaceEdgeGLibType func() types.GType | |
| 380 | + | ||
| 381 | + | func SurfaceEdgeGLibType() types.GType { | |
| 382 | + | return xSurfaceEdgeGLibType() | |
| 383 | + | } | |
| 384 | + | ||
| 359 | 385 | const ( | |
| 360 | 386 | ||
| 361 | 387 | // the top left corner. | |
| @@ -382,6 +408,14 @@ func init() { | |||
| 382 | 408 | panic(err) | |
| 383 | 409 | } | |
| 384 | 410 | ||
| 411 | + | core.PuregoSafeRegister(&xToplevelStateGLibType, lib, "gdk_toplevel_state_get_type") | |
| 412 | + | ||
| 413 | + | core.PuregoSafeRegister(&xFullscreenModeGLibType, lib, "gdk_fullscreen_mode_get_type") | |
| 414 | + | ||
| 415 | + | core.PuregoSafeRegister(&xSurfaceEdgeGLibType, lib, "gdk_surface_edge_get_type") | |
| 416 | + | ||
| 417 | + | core.PuregoSafeRegister(&xToplevelGLibType, lib, "gdk_toplevel_get_type") | |
| 418 | + | ||
| 385 | 419 | core.PuregoSafeRegister(&XGdkToplevelBeginMove, lib, "gdk_toplevel_begin_move") | |
| 386 | 420 | core.PuregoSafeRegister(&XGdkToplevelBeginResize, lib, "gdk_toplevel_begin_resize") | |
| 387 | 421 | core.PuregoSafeRegister(&XGdkToplevelFocus, lib, "gdk_toplevel_focus") | |
M v4/gdk/gdktoplevellayout.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The `GdkToplevelLayout` struct contains information that | |
| @@ -21,6 +22,12 @@ import ( | |||
| 21 | 22 | type ToplevelLayout struct { | |
| 22 | 23 | } | |
| 23 | 24 | ||
| 25 | + | var xToplevelLayoutGLibType func() types.GType | |
| 26 | + | ||
| 27 | + | func ToplevelLayoutGLibType() types.GType { | |
| 28 | + | return xToplevelLayoutGLibType() | |
| 29 | + | } | |
| 30 | + | ||
| 24 | 31 | func (x *ToplevelLayout) GoPointer() uintptr { | |
| 25 | 32 | return uintptr(unsafe.Pointer(x)) | |
| 26 | 33 | } | |
| @@ -162,6 +169,8 @@ func init() { | |||
| 162 | 169 | panic(err) | |
| 163 | 170 | } | |
| 164 | 171 | ||
| 172 | + | core.PuregoSafeRegister(&xToplevelLayoutGLibType, lib, "gdk_toplevel_layout_get_type") | |
| 173 | + | ||
| 165 | 174 | core.PuregoSafeRegister(&xNewToplevelLayout, lib, "gdk_toplevel_layout_new") | |
| 166 | 175 | ||
| 167 | 176 | core.PuregoSafeRegister(&xToplevelLayoutCopy, lib, "gdk_toplevel_layout_copy") | |
M v4/gdk/gdktoplevelsize.go +1 -0
| @@ -90,6 +90,7 @@ func init() { | |||
| 90 | 90 | if err != nil { | |
| 91 | 91 | panic(err) | |
| 92 | 92 | } | |
| 93 | + | ||
| 93 | 94 | core.PuregoSafeRegister(&xToplevelSizeGetType, lib, "gdk_toplevel_size_get_type") | |
| 94 | 95 | ||
| 95 | 96 | core.PuregoSafeRegister(&xToplevelSizeGetBounds, lib, "gdk_toplevel_size_get_bounds") | |
M v4/gdk/gdktypes.go +16 -0
| @@ -45,6 +45,12 @@ import ( | |||
| 45 | 45 | type ContentFormats struct { | |
| 46 | 46 | } | |
| 47 | 47 | ||
| 48 | + | var xContentFormatsGLibType func() types.GType | |
| 49 | + | ||
| 50 | + | func ContentFormatsGLibType() types.GType { | |
| 51 | + | return xContentFormatsGLibType() | |
| 52 | + | } | |
| 53 | + | ||
| 48 | 54 | func (x *ContentFormats) GoPointer() uintptr { | |
| 49 | 55 | return uintptr(unsafe.Pointer(x)) | |
| 50 | 56 | } | |
| @@ -280,6 +286,12 @@ type Rectangle struct { | |||
| 280 | 286 | Height int | |
| 281 | 287 | } | |
| 282 | 288 | ||
| 289 | + | var xRectangleGLibType func() types.GType | |
| 290 | + | ||
| 291 | + | func RectangleGLibType() types.GType { | |
| 292 | + | return xRectangleGLibType() | |
| 293 | + | } | |
| 294 | + | ||
| 283 | 295 | func (x *Rectangle) GoPointer() uintptr { | |
| 284 | 296 | return uintptr(unsafe.Pointer(x)) | |
| 285 | 297 | } | |
| @@ -344,6 +356,8 @@ func init() { | |||
| 344 | 356 | panic(err) | |
| 345 | 357 | } | |
| 346 | 358 | ||
| 359 | + | core.PuregoSafeRegister(&xContentFormatsGLibType, lib, "gdk_content_formats_get_type") | |
| 360 | + | ||
| 347 | 361 | core.PuregoSafeRegister(&xNewContentFormats, lib, "gdk_content_formats_new") | |
| 348 | 362 | core.PuregoSafeRegister(&xNewContentFormatsForGtype, lib, "gdk_content_formats_new_for_gtype") | |
| 349 | 363 | ||
| @@ -364,6 +378,8 @@ func init() { | |||
| 364 | 378 | core.PuregoSafeRegister(&xContentFormatsUnionSerializeMimeTypes, lib, "gdk_content_formats_union_serialize_mime_types") | |
| 365 | 379 | core.PuregoSafeRegister(&xContentFormatsUnref, lib, "gdk_content_formats_unref") | |
| 366 | 380 | ||
| 381 | + | core.PuregoSafeRegister(&xRectangleGLibType, lib, "gdk_rectangle_get_type") | |
| 382 | + | ||
| 367 | 383 | core.PuregoSafeRegister(&xRectangleContainsPoint, lib, "gdk_rectangle_contains_point") | |
| 368 | 384 | core.PuregoSafeRegister(&xRectangleEqual, lib, "gdk_rectangle_equal") | |
| 369 | 385 | core.PuregoSafeRegister(&xRectangleIntersect, lib, "gdk_rectangle_intersect") | |
M v4/gdk/gdkvulkancontext.go +7 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // `GdkVulkanContext` is an object representing the platform-specific | |
| @@ -23,6 +24,12 @@ type VulkanContext struct { | |||
| 23 | 24 | DrawContext | |
| 24 | 25 | } | |
| 25 | 26 | ||
| 27 | + | var xVulkanContextGLibType func() types.GType | |
| 28 | + | ||
| 29 | + | func VulkanContextGLibType() types.GType { | |
| 30 | + | return xVulkanContextGLibType() | |
| 31 | + | } | |
| 32 | + | ||
| 26 | 33 | func VulkanContextNewFromInternalPtr(ptr uintptr) *VulkanContext { | |
| 27 | 34 | cls := &VulkanContext{} | |
| 28 | 35 | cls.Ptr = ptr | |
M v4/gdk/main.go +10 -0
| @@ -5,10 +5,17 @@ import ( | |||
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 9 | ) | |
| 9 | 10 | ||
| 10 | 11 | type TitlebarGesture int | |
| 11 | 12 | ||
| 13 | + | var xTitlebarGestureGLibType func() types.GType | |
| 14 | + | ||
| 15 | + | func TitlebarGestureGLibType() types.GType { | |
| 16 | + | return xTitlebarGestureGLibType() | |
| 17 | + | } | |
| 18 | + | ||
| 12 | 19 | const ( | |
| 13 | 20 | TitlebarGestureDoubleClickValue TitlebarGesture = 1 | |
| 14 | 21 | ||
| @@ -46,6 +53,9 @@ func init() { | |||
| 46 | 53 | if err != nil { | |
| 47 | 54 | panic(err) | |
| 48 | 55 | } | |
| 56 | + | ||
| 57 | + | core.PuregoSafeRegister(&xTitlebarGestureGLibType, lib, "gdk_titlebar_gesture_get_type") | |
| 58 | + | ||
| 49 | 59 | core.PuregoSafeRegister(&xGlErrorQuark, lib, "gdk_gl_error_quark") | |
| 50 | 60 | core.PuregoSafeRegister(&xTextureErrorQuark, lib, "gdk_texture_error_quark") | |
| 51 | 61 | core.PuregoSafeRegister(&xVulkanErrorQuark, lib, "gdk_vulkan_error_quark") | |
M v4/gdkpixbuf/gdk-pixbuf-animation.go +17 -0
| @@ -9,6 +9,7 @@ import ( | |||
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 11 | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 12 | 13 | ) | |
| 13 | 14 | ||
| 14 | 15 | // Modules supporting animations must derive a type from | |
| @@ -50,6 +51,12 @@ type PixbufAnimation struct { | |||
| 50 | 51 | gobject.Object | |
| 51 | 52 | } | |
| 52 | 53 | ||
| 54 | + | var xPixbufAnimationGLibType func() types.GType | |
| 55 | + | ||
| 56 | + | func PixbufAnimationGLibType() types.GType { | |
| 57 | + | return xPixbufAnimationGLibType() | |
| 58 | + | } | |
| 59 | + | ||
| 53 | 60 | func PixbufAnimationNewFromInternalPtr(ptr uintptr) *PixbufAnimation { | |
| 54 | 61 | cls := &PixbufAnimation{} | |
| 55 | 62 | cls.Ptr = ptr | |
| @@ -325,6 +332,12 @@ type PixbufAnimationIter struct { | |||
| 325 | 332 | gobject.Object | |
| 326 | 333 | } | |
| 327 | 334 | ||
| 335 | + | var xPixbufAnimationIterGLibType func() types.GType | |
| 336 | + | ||
| 337 | + | func PixbufAnimationIterGLibType() types.GType { | |
| 338 | + | return xPixbufAnimationIterGLibType() | |
| 339 | + | } | |
| 340 | + | ||
| 328 | 341 | func PixbufAnimationIterNewFromInternalPtr(ptr uintptr) *PixbufAnimationIter { | |
| 329 | 342 | cls := &PixbufAnimationIter{} | |
| 330 | 343 | cls.Ptr = ptr | |
| @@ -436,6 +449,8 @@ func init() { | |||
| 436 | 449 | panic(err) | |
| 437 | 450 | } | |
| 438 | 451 | ||
| 452 | + | core.PuregoSafeRegister(&xPixbufAnimationGLibType, lib, "gdk_pixbuf_animation_get_type") | |
| 453 | + | ||
| 439 | 454 | core.PuregoSafeRegister(&xNewPixbufAnimationFromFile, lib, "gdk_pixbuf_animation_new_from_file") | |
| 440 | 455 | core.PuregoSafeRegister(&xNewPixbufAnimationFromResource, lib, "gdk_pixbuf_animation_new_from_resource") | |
| 441 | 456 | core.PuregoSafeRegister(&xNewPixbufAnimationFromStream, lib, "gdk_pixbuf_animation_new_from_stream") | |
| @@ -451,6 +466,8 @@ func init() { | |||
| 451 | 466 | ||
| 452 | 467 | core.PuregoSafeRegister(&xPixbufAnimationNewFromStreamAsync, lib, "gdk_pixbuf_animation_new_from_stream_async") | |
| 453 | 468 | ||
| 469 | + | core.PuregoSafeRegister(&xPixbufAnimationIterGLibType, lib, "gdk_pixbuf_animation_iter_get_type") | |
| 470 | + | ||
| 454 | 471 | core.PuregoSafeRegister(&xPixbufAnimationIterAdvance, lib, "gdk_pixbuf_animation_iter_advance") | |
| 455 | 472 | core.PuregoSafeRegister(&xPixbufAnimationIterGetDelayTime, lib, "gdk_pixbuf_animation_iter_get_delay_time") | |
| 456 | 473 | core.PuregoSafeRegister(&xPixbufAnimationIterGetPixbuf, lib, "gdk_pixbuf_animation_iter_get_pixbuf") | |
M v4/gdkpixbuf/gdk-pixbuf-core.go +22 -1
| @@ -1,7 +1,10 @@ | |||
| 1 | 1 | // Package gdkpixbuf was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package gdkpixbuf | |
| 3 | 3 | ||
| 4 | - | import "github.com/jwijenbergh/puregotk/v4/glib" | |
| 4 | + | import ( | |
| 5 | + | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 6 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 7 | + | ) | |
| 5 | 8 | ||
| 6 | 9 | // A function of this type is responsible for freeing the pixel array | |
| 7 | 10 | // of a pixbuf. | |
| @@ -28,6 +31,12 @@ type PixbufSaveFunc func([]byte, uint, **glib.Error, uintptr) bool | |||
| 28 | 31 | // Currently only RGB is supported. | |
| 29 | 32 | type Colorspace int | |
| 30 | 33 | ||
| 34 | + | var xColorspaceGLibType func() types.GType | |
| 35 | + | ||
| 36 | + | func ColorspaceGLibType() types.GType { | |
| 37 | + | return xColorspaceGLibType() | |
| 38 | + | } | |
| 39 | + | ||
| 31 | 40 | const ( | |
| 32 | 41 | ||
| 33 | 42 | // Indicates a red/green/blue additive color space. | |
| @@ -48,6 +57,12 @@ const ( | |||
| 48 | 57 | // For now both cases fall back to a bilevel clipping mask. | |
| 49 | 58 | type PixbufAlphaMode int | |
| 50 | 59 | ||
| 60 | + | var xPixbufAlphaModeGLibType func() types.GType | |
| 61 | + | ||
| 62 | + | func PixbufAlphaModeGLibType() types.GType { | |
| 63 | + | return xPixbufAlphaModeGLibType() | |
| 64 | + | } | |
| 65 | + | ||
| 51 | 66 | const ( | |
| 52 | 67 | ||
| 53 | 68 | // A bilevel clipping mask (black and white) | |
| @@ -66,6 +81,12 @@ const ( | |||
| 66 | 81 | // the `G_FILE_ERROR` domain. | |
| 67 | 82 | type PixbufError int | |
| 68 | 83 | ||
| 84 | + | var xPixbufErrorGLibType func() types.GType | |
| 85 | + | ||
| 86 | + | func PixbufErrorGLibType() types.GType { | |
| 87 | + | return xPixbufErrorGLibType() | |
| 88 | + | } | |
| 89 | + | ||
| 69 | 90 | const ( | |
| 70 | 91 | ||
| 71 | 92 | // An image file was broken somehow. | |
M v4/gdkpixbuf/gdk-pixbuf-io.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gmodule" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Sets up the image loading state. | |
| @@ -123,6 +124,12 @@ type PixbufFormat struct { | |||
| 123 | 124 | License uintptr | |
| 124 | 125 | } | |
| 125 | 126 | ||
| 127 | + | var xPixbufFormatGLibType func() types.GType | |
| 128 | + | ||
| 129 | + | func PixbufFormatGLibType() types.GType { | |
| 130 | + | return xPixbufFormatGLibType() | |
| 131 | + | } | |
| 132 | + | ||
| 126 | 133 | func (x *PixbufFormat) GoPointer() uintptr { | |
| 127 | 134 | return uintptr(unsafe.Pointer(x)) | |
| 128 | 135 | } | |
| @@ -397,6 +404,8 @@ func init() { | |||
| 397 | 404 | panic(err) | |
| 398 | 405 | } | |
| 399 | 406 | ||
| 407 | + | core.PuregoSafeRegister(&xPixbufFormatGLibType, lib, "gdk_pixbuf_format_get_type") | |
| 408 | + | ||
| 400 | 409 | core.PuregoSafeRegister(&xPixbufFormatCopy, lib, "gdk_pixbuf_format_copy") | |
| 401 | 410 | core.PuregoSafeRegister(&xPixbufFormatFree, lib, "gdk_pixbuf_format_free") | |
| 402 | 411 | core.PuregoSafeRegister(&xPixbufFormatGetDescription, lib, "gdk_pixbuf_format_get_description") | |
M v4/gdkpixbuf/gdk-pixbuf-loader.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type PixbufLoaderClass struct { | |
| @@ -67,6 +68,12 @@ type PixbufLoader struct { | |||
| 67 | 68 | gobject.Object | |
| 68 | 69 | } | |
| 69 | 70 | ||
| 71 | + | var xPixbufLoaderGLibType func() types.GType | |
| 72 | + | ||
| 73 | + | func PixbufLoaderGLibType() types.GType { | |
| 74 | + | return xPixbufLoaderGLibType() | |
| 75 | + | } | |
| 76 | + | ||
| 70 | 77 | func PixbufLoaderNewFromInternalPtr(ptr uintptr) *PixbufLoader { | |
| 71 | 78 | cls := &PixbufLoader{} | |
| 72 | 79 | cls.Ptr = ptr | |
| @@ -411,6 +418,8 @@ func init() { | |||
| 411 | 418 | panic(err) | |
| 412 | 419 | } | |
| 413 | 420 | ||
| 421 | + | core.PuregoSafeRegister(&xPixbufLoaderGLibType, lib, "gdk_pixbuf_loader_get_type") | |
| 422 | + | ||
| 414 | 423 | core.PuregoSafeRegister(&xNewPixbufLoader, lib, "gdk_pixbuf_loader_new") | |
| 415 | 424 | core.PuregoSafeRegister(&xNewPixbufLoaderWithMimeType, lib, "gdk_pixbuf_loader_new_with_mime_type") | |
| 416 | 425 | core.PuregoSafeRegister(&xNewPixbufLoaderWithType, lib, "gdk_pixbuf_loader_new_with_type") | |
M v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | type PixbufSimpleAnimClass struct { | |
| @@ -20,6 +21,12 @@ type PixbufSimpleAnim struct { | |||
| 20 | 21 | PixbufAnimation | |
| 21 | 22 | } | |
| 22 | 23 | ||
| 24 | + | var xPixbufSimpleAnimGLibType func() types.GType | |
| 25 | + | ||
| 26 | + | func PixbufSimpleAnimGLibType() types.GType { | |
| 27 | + | return xPixbufSimpleAnimGLibType() | |
| 28 | + | } | |
| 29 | + | ||
| 23 | 30 | func PixbufSimpleAnimNewFromInternalPtr(ptr uintptr) *PixbufSimpleAnim { | |
| 24 | 31 | cls := &PixbufSimpleAnim{} | |
| 25 | 32 | cls.Ptr = ptr | |
| @@ -85,6 +92,8 @@ func init() { | |||
| 85 | 92 | panic(err) | |
| 86 | 93 | } | |
| 87 | 94 | ||
| 95 | + | core.PuregoSafeRegister(&xPixbufSimpleAnimGLibType, lib, "gdk_pixbuf_simple_anim_get_type") | |
| 96 | + | ||
| 88 | 97 | core.PuregoSafeRegister(&xNewPixbufSimpleAnim, lib, "gdk_pixbuf_simple_anim_new") | |
| 89 | 98 | ||
| 90 | 99 | core.PuregoSafeRegister(&xPixbufSimpleAnimAddFrame, lib, "gdk_pixbuf_simple_anim_add_frame") | |
M v4/gdkpixbuf/gdk-pixbuf-transform.go +14 -0
| @@ -1,6 +1,8 @@ | |||
| 1 | 1 | // Package gdkpixbuf was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package gdkpixbuf | |
| 3 | 3 | ||
| 4 | + | import "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 5 | + | ||
| 4 | 6 | // Interpolation modes for scaling functions. | |
| 5 | 7 | // | |
| 6 | 8 | // The `GDK_INTERP_NEAREST` mode is the fastest scaling method, but has | |
| @@ -12,6 +14,12 @@ package gdkpixbuf | |||
| 12 | 14 | // interpolation is just as fast and results in higher quality. | |
| 13 | 15 | type InterpType int | |
| 14 | 16 | ||
| 17 | + | var xInterpTypeGLibType func() types.GType | |
| 18 | + | ||
| 19 | + | func InterpTypeGLibType() types.GType { | |
| 20 | + | return xInterpTypeGLibType() | |
| 21 | + | } | |
| 22 | + | ||
| 15 | 23 | const ( | |
| 16 | 24 | ||
| 17 | 25 | // Nearest neighbor sampling; this is the fastest | |
| @@ -46,6 +54,12 @@ const ( | |||
| 46 | 54 | // To make them easier to use, their numerical values are the actual degrees. | |
| 47 | 55 | type PixbufRotation int | |
| 48 | 56 | ||
| 57 | + | var xPixbufRotationGLibType func() types.GType | |
| 58 | + | ||
| 59 | + | func PixbufRotationGLibType() types.GType { | |
| 60 | + | return xPixbufRotationGLibType() | |
| 61 | + | } | |
| 62 | + | ||
| 49 | 63 | const ( | |
| 50 | 64 | ||
| 51 | 65 | // No rotation. | |
M v4/gdkpixbuf/gdk-pixbuf.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // A pixel buffer. | |
| @@ -151,6 +152,12 @@ type Pixbuf struct { | |||
| 151 | 152 | gobject.Object | |
| 152 | 153 | } | |
| 153 | 154 | ||
| 155 | + | var xPixbufGLibType func() types.GType | |
| 156 | + | ||
| 157 | + | func PixbufGLibType() types.GType { | |
| 158 | + | return xPixbufGLibType() | |
| 159 | + | } | |
| 160 | + | ||
| 154 | 161 | func PixbufNewFromInternalPtr(ptr uintptr) *Pixbuf { | |
| 155 | 162 | cls := &Pixbuf{} | |
| 156 | 163 | cls.Ptr = ptr | |
| @@ -1570,6 +1577,8 @@ func init() { | |||
| 1570 | 1577 | panic(err) | |
| 1571 | 1578 | } | |
| 1572 | 1579 | ||
| 1580 | + | core.PuregoSafeRegister(&xPixbufGLibType, lib, "gdk_pixbuf_get_type") | |
| 1581 | + | ||
| 1573 | 1582 | core.PuregoSafeRegister(&xNewPixbuf, lib, "gdk_pixbuf_new") | |
| 1574 | 1583 | core.PuregoSafeRegister(&xNewPixbufFromBytes, lib, "gdk_pixbuf_new_from_bytes") | |
| 1575 | 1584 | core.PuregoSafeRegister(&xNewPixbufFromData, lib, "gdk_pixbuf_new_from_data") | |
M v4/gdkpixbuf/main.go +18 -0
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | 9 | ) | |
| 9 | 10 | ||
| 10 | 11 | var xPixbufErrorQuark func() glib.Quark | |
| @@ -19,6 +20,12 @@ type PixbufNonAnim struct { | |||
| 19 | 20 | PixbufAnimation | |
| 20 | 21 | } | |
| 21 | 22 | ||
| 23 | + | var xPixbufNonAnimGLibType func() types.GType | |
| 24 | + | ||
| 25 | + | func PixbufNonAnimGLibType() types.GType { | |
| 26 | + | return xPixbufNonAnimGLibType() | |
| 27 | + | } | |
| 28 | + | ||
| 22 | 29 | func PixbufNonAnimNewFromInternalPtr(ptr uintptr) *PixbufNonAnim { | |
| 23 | 30 | cls := &PixbufNonAnim{} | |
| 24 | 31 | cls.Ptr = ptr | |
| @@ -52,6 +59,12 @@ type PixbufSimpleAnimIter struct { | |||
| 52 | 59 | PixbufAnimationIter | |
| 53 | 60 | } | |
| 54 | 61 | ||
| 62 | + | var xPixbufSimpleAnimIterGLibType func() types.GType | |
| 63 | + | ||
| 64 | + | func PixbufSimpleAnimIterGLibType() types.GType { | |
| 65 | + | return xPixbufSimpleAnimIterGLibType() | |
| 66 | + | } | |
| 67 | + | ||
| 55 | 68 | func PixbufSimpleAnimIterNewFromInternalPtr(ptr uintptr) *PixbufSimpleAnimIter { | |
| 56 | 69 | cls := &PixbufSimpleAnimIter{} | |
| 57 | 70 | cls.Ptr = ptr | |
| @@ -71,8 +84,13 @@ func init() { | |||
| 71 | 84 | if err != nil { | |
| 72 | 85 | panic(err) | |
| 73 | 86 | } | |
| 87 | + | ||
| 74 | 88 | core.PuregoSafeRegister(&xPixbufErrorQuark, lib, "gdk_pixbuf_error_quark") | |
| 75 | 89 | ||
| 90 | + | core.PuregoSafeRegister(&xPixbufNonAnimGLibType, lib, "gdk_pixbuf_non_anim_get_type") | |
| 91 | + | ||
| 76 | 92 | core.PuregoSafeRegister(&xNewPixbufNonAnim, lib, "gdk_pixbuf_non_anim_new") | |
| 77 | 93 | ||
| 94 | + | core.PuregoSafeRegister(&xPixbufSimpleAnimIterGLibType, lib, "gdk_pixbuf_simple_anim_iter_get_type") | |
| 95 | + | ||
| 78 | 96 | } | |
M v4/gio/gaction.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The virtual function table for #GAction. | |
| @@ -59,6 +60,13 @@ type Action interface { | |||
| 59 | 60 | GetStateHint() *glib.Variant | |
| 60 | 61 | GetStateType() *glib.VariantType | |
| 61 | 62 | } | |
| 63 | + | ||
| 64 | + | var xActionGLibType func() types.GType | |
| 65 | + | ||
| 66 | + | func ActionGLibType() types.GType { | |
| 67 | + | return xActionGLibType() | |
| 68 | + | } | |
| 69 | + | ||
| 62 | 70 | type ActionBase struct { | |
| 63 | 71 | Ptr uintptr | |
| 64 | 72 | } | |
| @@ -271,10 +279,13 @@ func init() { | |||
| 271 | 279 | if err != nil { | |
| 272 | 280 | panic(err) | |
| 273 | 281 | } | |
| 282 | + | ||
| 274 | 283 | core.PuregoSafeRegister(&xActionNameIsValid, lib, "g_action_name_is_valid") | |
| 275 | 284 | core.PuregoSafeRegister(&xActionParseDetailedName, lib, "g_action_parse_detailed_name") | |
| 276 | 285 | core.PuregoSafeRegister(&xActionPrintDetailedName, lib, "g_action_print_detailed_name") | |
| 277 | 286 | ||
| 287 | + | core.PuregoSafeRegister(&xActionGLibType, lib, "g_action_get_type") | |
| 288 | + | ||
| 278 | 289 | core.PuregoSafeRegister(&XGActionActivate, lib, "g_action_activate") | |
| 279 | 290 | core.PuregoSafeRegister(&XGActionChangeState, lib, "g_action_change_state") | |
| 280 | 291 | core.PuregoSafeRegister(&XGActionGetEnabled, lib, "g_action_get_enabled") | |
M v4/gio/gactiongroup.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The virtual function table for #GActionGroup. | |
| @@ -81,6 +82,13 @@ type ActionGroup interface { | |||
| 81 | 82 | ListActions() []string | |
| 82 | 83 | QueryAction(ActionNameVar string, EnabledVar bool, ParameterTypeVar **glib.VariantType, StateTypeVar **glib.VariantType, StateHintVar **glib.Variant, StateVar **glib.Variant) bool | |
| 83 | 84 | } | |
| 85 | + | ||
| 86 | + | var xActionGroupGLibType func() types.GType | |
| 87 | + | ||
| 88 | + | func ActionGroupGLibType() types.GType { | |
| 89 | + | return xActionGroupGLibType() | |
| 90 | + | } | |
| 91 | + | ||
| 84 | 92 | type ActionGroupBase struct { | |
| 85 | 93 | Ptr uintptr | |
| 86 | 94 | } | |
| @@ -345,6 +353,8 @@ func init() { | |||
| 345 | 353 | panic(err) | |
| 346 | 354 | } | |
| 347 | 355 | ||
| 356 | + | core.PuregoSafeRegister(&xActionGroupGLibType, lib, "g_action_group_get_type") | |
| 357 | + | ||
| 348 | 358 | core.PuregoSafeRegister(&XGActionGroupActionAdded, lib, "g_action_group_action_added") | |
| 349 | 359 | core.PuregoSafeRegister(&XGActionGroupActionEnabledChanged, lib, "g_action_group_action_enabled_changed") | |
| 350 | 360 | core.PuregoSafeRegister(&XGActionGroupActionRemoved, lib, "g_action_group_action_removed") | |
M v4/gio/gactionmap.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // This struct defines a single action. It is for use with | |
| @@ -59,6 +60,13 @@ type ActionMap interface { | |||
| 59 | 60 | LookupAction(ActionNameVar string) *ActionBase | |
| 60 | 61 | RemoveAction(ActionNameVar string) | |
| 61 | 62 | } | |
| 63 | + | ||
| 64 | + | var xActionMapGLibType func() types.GType | |
| 65 | + | ||
| 66 | + | func ActionMapGLibType() types.GType { | |
| 67 | + | return xActionMapGLibType() | |
| 68 | + | } | |
| 69 | + | ||
| 62 | 70 | type ActionMapBase struct { | |
| 63 | 71 | Ptr uintptr | |
| 64 | 72 | } | |
| @@ -169,6 +177,8 @@ func init() { | |||
| 169 | 177 | panic(err) | |
| 170 | 178 | } | |
| 171 | 179 | ||
| 180 | + | core.PuregoSafeRegister(&xActionMapGLibType, lib, "g_action_map_get_type") | |
| 181 | + | ||
| 172 | 182 | core.PuregoSafeRegister(&XGActionMapAddAction, lib, "g_action_map_add_action") | |
| 173 | 183 | core.PuregoSafeRegister(&XGActionMapAddActionEntries, lib, "g_action_map_add_action_entries") | |
| 174 | 184 | core.PuregoSafeRegister(&XGActionMapLookupAction, lib, "g_action_map_lookup_action") | |
M v4/gio/gappinfo.go +19 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Application Information interface, for operating system portability. | |
| @@ -113,6 +114,13 @@ type AppInfo interface { | |||
| 113 | 114 | SupportsFiles() bool | |
| 114 | 115 | SupportsUris() bool | |
| 115 | 116 | } | |
| 117 | + | ||
| 118 | + | var xAppInfoGLibType func() types.GType | |
| 119 | + | ||
| 120 | + | func AppInfoGLibType() types.GType { | |
| 121 | + | return xAppInfoGLibType() | |
| 122 | + | } | |
| 123 | + | ||
| 116 | 124 | type AppInfoBase struct { | |
| 117 | 125 | Ptr uintptr | |
| 118 | 126 | } | |
| @@ -636,6 +644,12 @@ type AppLaunchContext struct { | |||
| 636 | 644 | gobject.Object | |
| 637 | 645 | } | |
| 638 | 646 | ||
| 647 | + | var xAppLaunchContextGLibType func() types.GType | |
| 648 | + | ||
| 649 | + | func AppLaunchContextGLibType() types.GType { | |
| 650 | + | return xAppLaunchContextGLibType() | |
| 651 | + | } | |
| 652 | + | ||
| 639 | 653 | func AppLaunchContextNewFromInternalPtr(ptr uintptr) *AppLaunchContext { | |
| 640 | 654 | cls := &AppLaunchContext{} | |
| 641 | 655 | cls.Ptr = ptr | |
| @@ -821,6 +835,7 @@ func init() { | |||
| 821 | 835 | if err != nil { | |
| 822 | 836 | panic(err) | |
| 823 | 837 | } | |
| 838 | + | ||
| 824 | 839 | core.PuregoSafeRegister(&xAppInfoCreateFromCommandline, lib, "g_app_info_create_from_commandline") | |
| 825 | 840 | core.PuregoSafeRegister(&xAppInfoGetAll, lib, "g_app_info_get_all") | |
| 826 | 841 | core.PuregoSafeRegister(&xAppInfoGetAllForType, lib, "g_app_info_get_all_for_type") | |
| @@ -833,6 +848,8 @@ func init() { | |||
| 833 | 848 | core.PuregoSafeRegister(&xAppInfoLaunchDefaultForUriFinish, lib, "g_app_info_launch_default_for_uri_finish") | |
| 834 | 849 | core.PuregoSafeRegister(&xAppInfoResetTypeAssociations, lib, "g_app_info_reset_type_associations") | |
| 835 | 850 | ||
| 851 | + | core.PuregoSafeRegister(&xAppLaunchContextGLibType, lib, "g_app_launch_context_get_type") | |
| 852 | + | ||
| 836 | 853 | core.PuregoSafeRegister(&xNewAppLaunchContext, lib, "g_app_launch_context_new") | |
| 837 | 854 | ||
| 838 | 855 | core.PuregoSafeRegister(&xAppLaunchContextGetDisplay, lib, "g_app_launch_context_get_display") | |
| @@ -842,6 +859,8 @@ func init() { | |||
| 842 | 859 | core.PuregoSafeRegister(&xAppLaunchContextSetenv, lib, "g_app_launch_context_setenv") | |
| 843 | 860 | core.PuregoSafeRegister(&xAppLaunchContextUnsetenv, lib, "g_app_launch_context_unsetenv") | |
| 844 | 861 | ||
| 862 | + | core.PuregoSafeRegister(&xAppInfoGLibType, lib, "g_app_info_get_type") | |
| 863 | + | ||
| 845 | 864 | core.PuregoSafeRegister(&XGAppInfoAddSupportsType, lib, "g_app_info_add_supports_type") | |
| 846 | 865 | core.PuregoSafeRegister(&XGAppInfoCanDelete, lib, "g_app_info_can_delete") | |
| 847 | 866 | core.PuregoSafeRegister(&XGAppInfoCanRemoveSupportsType, lib, "g_app_info_can_remove_supports_type") | |
M v4/gio/gapplication.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Virtual function table for #GApplication. | |
| @@ -146,6 +147,12 @@ type Application struct { | |||
| 146 | 147 | gobject.Object | |
| 147 | 148 | } | |
| 148 | 149 | ||
| 150 | + | var xApplicationGLibType func() types.GType | |
| 151 | + | ||
| 152 | + | func ApplicationGLibType() types.GType { | |
| 153 | + | return xApplicationGLibType() | |
| 154 | + | } | |
| 155 | + | ||
| 149 | 156 | func ApplicationNewFromInternalPtr(ptr uintptr) *Application { | |
| 150 | 157 | cls := &Application{} | |
| 151 | 158 | cls.Ptr = ptr | |
| @@ -1495,6 +1502,8 @@ func init() { | |||
| 1495 | 1502 | panic(err) | |
| 1496 | 1503 | } | |
| 1497 | 1504 | ||
| 1505 | + | core.PuregoSafeRegister(&xApplicationGLibType, lib, "g_application_get_type") | |
| 1506 | + | ||
| 1498 | 1507 | core.PuregoSafeRegister(&xNewApplication, lib, "g_application_new") | |
| 1499 | 1508 | ||
| 1500 | 1509 | core.PuregoSafeRegister(&xApplicationActivate, lib, "g_application_activate") | |
M v4/gio/gapplicationcommandline.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // The #GApplicationCommandLineClass-struct | |
| @@ -204,6 +205,12 @@ type ApplicationCommandLine struct { | |||
| 204 | 205 | gobject.Object | |
| 205 | 206 | } | |
| 206 | 207 | ||
| 208 | + | var xApplicationCommandLineGLibType func() types.GType | |
| 209 | + | ||
| 210 | + | func ApplicationCommandLineGLibType() types.GType { | |
| 211 | + | return xApplicationCommandLineGLibType() | |
| 212 | + | } | |
| 213 | + | ||
| 207 | 214 | func ApplicationCommandLineNewFromInternalPtr(ptr uintptr) *ApplicationCommandLine { | |
| 208 | 215 | cls := &ApplicationCommandLine{} | |
| 209 | 216 | cls.Ptr = ptr | |
| @@ -456,6 +463,8 @@ func init() { | |||
| 456 | 463 | panic(err) | |
| 457 | 464 | } | |
| 458 | 465 | ||
| 466 | + | core.PuregoSafeRegister(&xApplicationCommandLineGLibType, lib, "g_application_command_line_get_type") | |
| 467 | + | ||
| 459 | 468 | core.PuregoSafeRegister(&xApplicationCommandLineCreateFileForArg, lib, "g_application_command_line_create_file_for_arg") | |
| 460 | 469 | core.PuregoSafeRegister(&xApplicationCommandLineGetArguments, lib, "g_application_command_line_get_arguments") | |
| 461 | 470 | core.PuregoSafeRegister(&xApplicationCommandLineGetCwd, lib, "g_application_command_line_get_cwd") | |
M v4/gio/gasyncinitable.go +10 -0
| @@ -136,6 +136,13 @@ type AsyncInitable interface { | |||
| 136 | 136 | InitFinish(ResVar AsyncResult) bool | |
| 137 | 137 | NewFinish(ResVar AsyncResult) *gobject.Object | |
| 138 | 138 | } | |
| 139 | + | ||
| 140 | + | var xAsyncInitableGLibType func() types.GType | |
| 141 | + | ||
| 142 | + | func AsyncInitableGLibType() types.GType { | |
| 143 | + | return xAsyncInitableGLibType() | |
| 144 | + | } | |
| 145 | + | ||
| 139 | 146 | type AsyncInitableBase struct { | |
| 140 | 147 | Ptr uintptr | |
| 141 | 148 | } | |
| @@ -246,8 +253,11 @@ func init() { | |||
| 246 | 253 | if err != nil { | |
| 247 | 254 | panic(err) | |
| 248 | 255 | } | |
| 256 | + | ||
| 249 | 257 | core.PuregoSafeRegister(&xAsyncInitableNewvAsync, lib, "g_async_initable_newv_async") | |
| 250 | 258 | ||
| 259 | + | core.PuregoSafeRegister(&xAsyncInitableGLibType, lib, "g_async_initable_get_type") | |
| 260 | + | ||
| 251 | 261 | core.PuregoSafeRegister(&XGAsyncInitableInitAsync, lib, "g_async_initable_init_async") | |
| 252 | 262 | core.PuregoSafeRegister(&XGAsyncInitableInitFinish, lib, "g_async_initable_init_finish") | |
| 253 | 263 | core.PuregoSafeRegister(&XGAsyncInitableNewFinish, lib, "g_async_initable_new_finish") | |
M v4/gio/gasyncresult.go +10 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Interface definition for #GAsyncResult. | |
| @@ -117,6 +118,13 @@ type AsyncResult interface { | |||
| 117 | 118 | IsTagged(SourceTagVar uintptr) bool | |
| 118 | 119 | LegacyPropagateError() bool | |
| 119 | 120 | } | |
| 121 | + | ||
| 122 | + | var xAsyncResultGLibType func() types.GType | |
| 123 | + | ||
| 124 | + | func AsyncResultGLibType() types.GType { | |
| 125 | + | return xAsyncResultGLibType() | |
| 126 | + | } | |
| 127 | + | ||
| 120 | 128 | type AsyncResultBase struct { | |
| 121 | 129 | Ptr uintptr | |
| 122 | 130 | } | |
| @@ -190,6 +198,8 @@ func init() { | |||
| 190 | 198 | panic(err) | |
| 191 | 199 | } | |
| 192 | 200 | ||
| 201 | + | core.PuregoSafeRegister(&xAsyncResultGLibType, lib, "g_async_result_get_type") | |
| 202 | + | ||
| 193 | 203 | core.PuregoSafeRegister(&XGAsyncResultGetSourceObject, lib, "g_async_result_get_source_object") | |
| 194 | 204 | core.PuregoSafeRegister(&XGAsyncResultGetUserData, lib, "g_async_result_get_user_data") | |
| 195 | 205 | core.PuregoSafeRegister(&XGAsyncResultIsTagged, lib, "g_async_result_is_tagged") | |
M v4/gio/gbufferedinputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type BufferedInputStreamClass struct { | |
| @@ -42,6 +43,12 @@ type BufferedInputStream struct { | |||
| 42 | 43 | FilterInputStream | |
| 43 | 44 | } | |
| 44 | 45 | ||
| 46 | + | var xBufferedInputStreamGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func BufferedInputStreamGLibType() types.GType { | |
| 49 | + | return xBufferedInputStreamGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 45 | 52 | func BufferedInputStreamNewFromInternalPtr(ptr uintptr) *BufferedInputStream { | |
| 46 | 53 | cls := &BufferedInputStream{} | |
| 47 | 54 | cls.Ptr = ptr | |
| @@ -304,6 +311,8 @@ func init() { | |||
| 304 | 311 | panic(err) | |
| 305 | 312 | } | |
| 306 | 313 | ||
| 314 | + | core.PuregoSafeRegister(&xBufferedInputStreamGLibType, lib, "g_buffered_input_stream_get_type") | |
| 315 | + | ||
| 307 | 316 | core.PuregoSafeRegister(&xNewBufferedInputStream, lib, "g_buffered_input_stream_new") | |
| 308 | 317 | core.PuregoSafeRegister(&xNewBufferedInputStreamSized, lib, "g_buffered_input_stream_new_sized") | |
| 309 | 318 | ||
M v4/gio/gbufferedoutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type BufferedOutputStreamClass struct { | |
| @@ -42,6 +43,12 @@ type BufferedOutputStream struct { | |||
| 42 | 43 | FilterOutputStream | |
| 43 | 44 | } | |
| 44 | 45 | ||
| 46 | + | var xBufferedOutputStreamGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func BufferedOutputStreamGLibType() types.GType { | |
| 49 | + | return xBufferedOutputStreamGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 45 | 52 | func BufferedOutputStreamNewFromInternalPtr(ptr uintptr) *BufferedOutputStream { | |
| 46 | 53 | cls := &BufferedOutputStream{} | |
| 47 | 54 | cls.Ptr = ptr | |
| @@ -200,6 +207,8 @@ func init() { | |||
| 200 | 207 | panic(err) | |
| 201 | 208 | } | |
| 202 | 209 | ||
| 210 | + | core.PuregoSafeRegister(&xBufferedOutputStreamGLibType, lib, "g_buffered_output_stream_get_type") | |
| 211 | + | ||
| 203 | 212 | core.PuregoSafeRegister(&xNewBufferedOutputStream, lib, "g_buffered_output_stream_new") | |
| 204 | 213 | core.PuregoSafeRegister(&xNewBufferedOutputStreamSized, lib, "g_buffered_output_stream_new_sized") | |
| 205 | 214 | ||
M v4/gio/gcancellable.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type CancellableClass struct { | |
| @@ -32,6 +33,12 @@ type Cancellable struct { | |||
| 32 | 33 | gobject.Object | |
| 33 | 34 | } | |
| 34 | 35 | ||
| 36 | + | var xCancellableGLibType func() types.GType | |
| 37 | + | ||
| 38 | + | func CancellableGLibType() types.GType { | |
| 39 | + | return xCancellableGLibType() | |
| 40 | + | } | |
| 41 | + | ||
| 35 | 42 | func CancellableNewFromInternalPtr(ptr uintptr) *Cancellable { | |
| 36 | 43 | cls := &Cancellable{} | |
| 37 | 44 | cls.Ptr = ptr | |
| @@ -386,6 +393,8 @@ func init() { | |||
| 386 | 393 | panic(err) | |
| 387 | 394 | } | |
| 388 | 395 | ||
| 396 | + | core.PuregoSafeRegister(&xCancellableGLibType, lib, "g_cancellable_get_type") | |
| 397 | + | ||
| 389 | 398 | core.PuregoSafeRegister(&xNewCancellable, lib, "g_cancellable_new") | |
| 390 | 399 | ||
| 391 | 400 | core.PuregoSafeRegister(&xCancellableCancel, lib, "g_cancellable_cancel") | |
M v4/gio/gcharsetconverter.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type CharsetConverterClass struct { | |
| @@ -24,6 +25,12 @@ type CharsetConverter struct { | |||
| 24 | 25 | gobject.Object | |
| 25 | 26 | } | |
| 26 | 27 | ||
| 28 | + | var xCharsetConverterGLibType func() types.GType | |
| 29 | + | ||
| 30 | + | func CharsetConverterGLibType() types.GType { | |
| 31 | + | return xCharsetConverterGLibType() | |
| 32 | + | } | |
| 33 | + | ||
| 27 | 34 | func CharsetConverterNewFromInternalPtr(ptr uintptr) *CharsetConverter { | |
| 28 | 35 | cls := &CharsetConverter{} | |
| 29 | 36 | cls.Ptr = ptr | |
| @@ -243,6 +250,8 @@ func init() { | |||
| 243 | 250 | panic(err) | |
| 244 | 251 | } | |
| 245 | 252 | ||
| 253 | + | core.PuregoSafeRegister(&xCharsetConverterGLibType, lib, "g_charset_converter_get_type") | |
| 254 | + | ||
| 246 | 255 | core.PuregoSafeRegister(&xNewCharsetConverter, lib, "g_charset_converter_new") | |
| 247 | 256 | ||
| 248 | 257 | core.PuregoSafeRegister(&xCharsetConverterGetNumFallbacks, lib, "g_charset_converter_get_num_fallbacks") | |
M v4/gio/gcontenttype.go +1 -0
| @@ -220,6 +220,7 @@ func init() { | |||
| 220 | 220 | if err != nil { | |
| 221 | 221 | panic(err) | |
| 222 | 222 | } | |
| 223 | + | ||
| 223 | 224 | core.PuregoSafeRegister(&xContentTypeCanBeExecutable, lib, "g_content_type_can_be_executable") | |
| 224 | 225 | core.PuregoSafeRegister(&xContentTypeEquals, lib, "g_content_type_equals") | |
| 225 | 226 | core.PuregoSafeRegister(&xContentTypeFromMimeType, lib, "g_content_type_from_mime_type") | |
M v4/gio/gconverter.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Provides an interface for converting data from one type | |
| @@ -33,6 +34,13 @@ type Converter interface { | |||
| 33 | 34 | Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar []byte, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) ConverterResult | |
| 34 | 35 | Reset() | |
| 35 | 36 | } | |
| 37 | + | ||
| 38 | + | var xConverterGLibType func() types.GType | |
| 39 | + | ||
| 40 | + | func ConverterGLibType() types.GType { | |
| 41 | + | return xConverterGLibType() | |
| 42 | + | } | |
| 43 | + | ||
| 36 | 44 | type ConverterBase struct { | |
| 37 | 45 | Ptr uintptr | |
| 38 | 46 | } | |
| @@ -156,6 +164,8 @@ func init() { | |||
| 156 | 164 | panic(err) | |
| 157 | 165 | } | |
| 158 | 166 | ||
| 167 | + | core.PuregoSafeRegister(&xConverterGLibType, lib, "g_converter_get_type") | |
| 168 | + | ||
| 159 | 169 | core.PuregoSafeRegister(&XGConverterConvert, lib, "g_converter_convert") | |
| 160 | 170 | core.PuregoSafeRegister(&XGConverterReset, lib, "g_converter_reset") | |
| 161 | 171 | ||
M v4/gio/gconverterinputstream.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type ConverterInputStreamClass struct { | |
| @@ -34,6 +35,12 @@ type ConverterInputStream struct { | |||
| 34 | 35 | FilterInputStream | |
| 35 | 36 | } | |
| 36 | 37 | ||
| 38 | + | var xConverterInputStreamGLibType func() types.GType | |
| 39 | + | ||
| 40 | + | func ConverterInputStreamGLibType() types.GType { | |
| 41 | + | return xConverterInputStreamGLibType() | |
| 42 | + | } | |
| 43 | + | ||
| 37 | 44 | func ConverterInputStreamNewFromInternalPtr(ptr uintptr) *ConverterInputStream { | |
| 38 | 45 | cls := &ConverterInputStream{} | |
| 39 | 46 | cls.Ptr = ptr | |
| @@ -150,6 +157,8 @@ func init() { | |||
| 150 | 157 | panic(err) | |
| 151 | 158 | } | |
| 152 | 159 | ||
| 160 | + | core.PuregoSafeRegister(&xConverterInputStreamGLibType, lib, "g_converter_input_stream_get_type") | |
| 161 | + | ||
| 153 | 162 | core.PuregoSafeRegister(&xNewConverterInputStream, lib, "g_converter_input_stream_new") | |
| 154 | 163 | ||
| 155 | 164 | core.PuregoSafeRegister(&xConverterInputStreamGetConverter, lib, "g_converter_input_stream_get_converter") | |
M v4/gio/gconverteroutputstream.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type ConverterOutputStreamClass struct { | |
| @@ -34,6 +35,12 @@ type ConverterOutputStream struct { | |||
| 34 | 35 | FilterOutputStream | |
| 35 | 36 | } | |
| 36 | 37 | ||
| 38 | + | var xConverterOutputStreamGLibType func() types.GType | |
| 39 | + | ||
| 40 | + | func ConverterOutputStreamGLibType() types.GType { | |
| 41 | + | return xConverterOutputStreamGLibType() | |
| 42 | + | } | |
| 43 | + | ||
| 37 | 44 | func ConverterOutputStreamNewFromInternalPtr(ptr uintptr) *ConverterOutputStream { | |
| 38 | 45 | cls := &ConverterOutputStream{} | |
| 39 | 46 | cls.Ptr = ptr | |
| @@ -181,6 +188,8 @@ func init() { | |||
| 181 | 188 | panic(err) | |
| 182 | 189 | } | |
| 183 | 190 | ||
| 191 | + | core.PuregoSafeRegister(&xConverterOutputStreamGLibType, lib, "g_converter_output_stream_get_type") | |
| 192 | + | ||
| 184 | 193 | core.PuregoSafeRegister(&xNewConverterOutputStream, lib, "g_converter_output_stream_new") | |
| 185 | 194 | ||
| 186 | 195 | core.PuregoSafeRegister(&xConverterOutputStreamGetConverter, lib, "g_converter_output_stream_get_converter") | |
M v4/gio/gcredentials.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GCredentials. | |
| @@ -59,6 +60,12 @@ type Credentials struct { | |||
| 59 | 60 | gobject.Object | |
| 60 | 61 | } | |
| 61 | 62 | ||
| 63 | + | var xCredentialsGLibType func() types.GType | |
| 64 | + | ||
| 65 | + | func CredentialsGLibType() types.GType { | |
| 66 | + | return xCredentialsGLibType() | |
| 67 | + | } | |
| 68 | + | ||
| 62 | 69 | func CredentialsNewFromInternalPtr(ptr uintptr) *Credentials { | |
| 63 | 70 | cls := &Credentials{} | |
| 64 | 71 | cls.Ptr = ptr | |
| @@ -210,6 +217,8 @@ func init() { | |||
| 210 | 217 | panic(err) | |
| 211 | 218 | } | |
| 212 | 219 | ||
| 220 | + | core.PuregoSafeRegister(&xCredentialsGLibType, lib, "g_credentials_get_type") | |
| 221 | + | ||
| 213 | 222 | core.PuregoSafeRegister(&xNewCredentials, lib, "g_credentials_new") | |
| 214 | 223 | ||
| 215 | 224 | core.PuregoSafeRegister(&xCredentialsGetNative, lib, "g_credentials_get_native") | |
M v4/gio/gdatagrambased.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Provides an interface for socket-like objects which have datagram semantics, | |
| @@ -78,6 +79,13 @@ type DatagramBased interface { | |||
| 78 | 79 | ReceiveMessages(MessagesVar []InputMessage, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) int | |
| 79 | 80 | SendMessages(MessagesVar []OutputMessage, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) int | |
| 80 | 81 | } | |
| 82 | + | ||
| 83 | + | var xDatagramBasedGLibType func() types.GType | |
| 84 | + | ||
| 85 | + | func DatagramBasedGLibType() types.GType { | |
| 86 | + | return xDatagramBasedGLibType() | |
| 87 | + | } | |
| 88 | + | ||
| 81 | 89 | type DatagramBasedBase struct { | |
| 82 | 90 | Ptr uintptr | |
| 83 | 91 | } | |
| @@ -294,6 +302,8 @@ func init() { | |||
| 294 | 302 | panic(err) | |
| 295 | 303 | } | |
| 296 | 304 | ||
| 305 | + | core.PuregoSafeRegister(&xDatagramBasedGLibType, lib, "g_datagram_based_get_type") | |
| 306 | + | ||
| 297 | 307 | core.PuregoSafeRegister(&XGDatagramBasedConditionCheck, lib, "g_datagram_based_condition_check") | |
| 298 | 308 | core.PuregoSafeRegister(&XGDatagramBasedConditionWait, lib, "g_datagram_based_condition_wait") | |
| 299 | 309 | core.PuregoSafeRegister(&XGDatagramBasedCreateSource, lib, "g_datagram_based_create_source") | |
M v4/gio/gdatainputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type DataInputStreamClass struct { | |
| @@ -30,6 +31,12 @@ type DataInputStream struct { | |||
| 30 | 31 | BufferedInputStream | |
| 31 | 32 | } | |
| 32 | 33 | ||
| 34 | + | var xDataInputStreamGLibType func() types.GType | |
| 35 | + | ||
| 36 | + | func DataInputStreamGLibType() types.GType { | |
| 37 | + | return xDataInputStreamGLibType() | |
| 38 | + | } | |
| 39 | + | ||
| 33 | 40 | func DataInputStreamNewFromInternalPtr(ptr uintptr) *DataInputStream { | |
| 34 | 41 | cls := &DataInputStream{} | |
| 35 | 42 | cls.Ptr = ptr | |
| @@ -520,6 +527,8 @@ func init() { | |||
| 520 | 527 | panic(err) | |
| 521 | 528 | } | |
| 522 | 529 | ||
| 530 | + | core.PuregoSafeRegister(&xDataInputStreamGLibType, lib, "g_data_input_stream_get_type") | |
| 531 | + | ||
| 523 | 532 | core.PuregoSafeRegister(&xNewDataInputStream, lib, "g_data_input_stream_new") | |
| 524 | 533 | ||
| 525 | 534 | core.PuregoSafeRegister(&xDataInputStreamGetByteOrder, lib, "g_data_input_stream_get_byte_order") | |
M v4/gio/gdataoutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type DataOutputStreamClass struct { | |
| @@ -30,6 +31,12 @@ type DataOutputStream struct { | |||
| 30 | 31 | FilterOutputStream | |
| 31 | 32 | } | |
| 32 | 33 | ||
| 34 | + | var xDataOutputStreamGLibType func() types.GType | |
| 35 | + | ||
| 36 | + | func DataOutputStreamGLibType() types.GType { | |
| 37 | + | return xDataOutputStreamGLibType() | |
| 38 | + | } | |
| 39 | + | ||
| 33 | 40 | func DataOutputStreamNewFromInternalPtr(ptr uintptr) *DataOutputStream { | |
| 34 | 41 | cls := &DataOutputStream{} | |
| 35 | 42 | cls.Ptr = ptr | |
| @@ -263,6 +270,8 @@ func init() { | |||
| 263 | 270 | panic(err) | |
| 264 | 271 | } | |
| 265 | 272 | ||
| 273 | + | core.PuregoSafeRegister(&xDataOutputStreamGLibType, lib, "g_data_output_stream_get_type") | |
| 274 | + | ||
| 266 | 275 | core.PuregoSafeRegister(&xNewDataOutputStream, lib, "g_data_output_stream_new") | |
| 267 | 276 | ||
| 268 | 277 | core.PuregoSafeRegister(&xDataOutputStreamGetByteOrder, lib, "g_data_output_stream_get_byte_order") | |
M v4/gio/gdbusaddress.go +1 -0
| @@ -150,6 +150,7 @@ func init() { | |||
| 150 | 150 | if err != nil { | |
| 151 | 151 | panic(err) | |
| 152 | 152 | } | |
| 153 | + | ||
| 153 | 154 | core.PuregoSafeRegister(&xDbusAddressEscapeValue, lib, "g_dbus_address_escape_value") | |
| 154 | 155 | core.PuregoSafeRegister(&xDbusAddressGetForBusSync, lib, "g_dbus_address_get_for_bus_sync") | |
| 155 | 156 | core.PuregoSafeRegister(&xDbusAddressGetStream, lib, "g_dbus_address_get_stream") | |
M v4/gio/gdbusconnection.go +1 -0
| @@ -290,6 +290,7 @@ func init() { | |||
| 290 | 290 | if err != nil { | |
| 291 | 291 | panic(err) | |
| 292 | 292 | } | |
| 293 | + | ||
| 293 | 294 | core.PuregoSafeRegister(&xBusGet, lib, "g_bus_get") | |
| 294 | 295 | core.PuregoSafeRegister(&xBusGetFinish, lib, "g_bus_get_finish") | |
| 295 | 296 | core.PuregoSafeRegister(&xBusGetSync, lib, "g_bus_get_sync") | |
M v4/gio/gdbuserror.go +1 -0
| @@ -150,6 +150,7 @@ func init() { | |||
| 150 | 150 | if err != nil { | |
| 151 | 151 | panic(err) | |
| 152 | 152 | } | |
| 153 | + | ||
| 153 | 154 | core.PuregoSafeRegister(&xDbusErrorEncodeGerror, lib, "g_dbus_error_encode_gerror") | |
| 154 | 155 | core.PuregoSafeRegister(&xDbusErrorGetRemoteError, lib, "g_dbus_error_get_remote_error") | |
| 155 | 156 | core.PuregoSafeRegister(&xDbusErrorIsRemoteError, lib, "g_dbus_error_is_remote_error") | |
M v4/gio/gdbusinterface.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Base type for D-Bus interfaces. | |
| @@ -29,6 +30,13 @@ type DBusInterface interface { | |||
| 29 | 30 | GetObject() *DBusObjectBase | |
| 30 | 31 | SetObject(ObjectVar DBusObject) | |
| 31 | 32 | } | |
| 33 | + | ||
| 34 | + | var xDBusInterfaceGLibType func() types.GType | |
| 35 | + | ||
| 36 | + | func DBusInterfaceGLibType() types.GType { | |
| 37 | + | return xDBusInterfaceGLibType() | |
| 38 | + | } | |
| 39 | + | ||
| 32 | 40 | type DBusInterfaceBase struct { | |
| 33 | 41 | Ptr uintptr | |
| 34 | 42 | } | |
| @@ -102,6 +110,8 @@ func init() { | |||
| 102 | 110 | panic(err) | |
| 103 | 111 | } | |
| 104 | 112 | ||
| 113 | + | core.PuregoSafeRegister(&xDBusInterfaceGLibType, lib, "g_dbus_interface_get_type") | |
| 114 | + | ||
| 105 | 115 | core.PuregoSafeRegister(&XGDbusInterfaceDupObject, lib, "g_dbus_interface_dup_object") | |
| 106 | 116 | core.PuregoSafeRegister(&XGDbusInterfaceGetInfo, lib, "g_dbus_interface_get_info") | |
| 107 | 117 | core.PuregoSafeRegister(&XGDbusInterfaceGetObject, lib, "g_dbus_interface_get_object") | |
M v4/gio/gdbusinterfaceskeleton.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GDBusInterfaceSkeleton. | |
| @@ -35,6 +36,12 @@ type DBusInterfaceSkeleton struct { | |||
| 35 | 36 | gobject.Object | |
| 36 | 37 | } | |
| 37 | 38 | ||
| 39 | + | var xDBusInterfaceSkeletonGLibType func() types.GType | |
| 40 | + | ||
| 41 | + | func DBusInterfaceSkeletonGLibType() types.GType { | |
| 42 | + | return xDBusInterfaceSkeletonGLibType() | |
| 43 | + | } | |
| 44 | + | ||
| 38 | 45 | func DBusInterfaceSkeletonNewFromInternalPtr(ptr uintptr) *DBusInterfaceSkeleton { | |
| 39 | 46 | cls := &DBusInterfaceSkeleton{} | |
| 40 | 47 | cls.Ptr = ptr | |
| @@ -302,6 +309,8 @@ func init() { | |||
| 302 | 309 | panic(err) | |
| 303 | 310 | } | |
| 304 | 311 | ||
| 312 | + | core.PuregoSafeRegister(&xDBusInterfaceSkeletonGLibType, lib, "g_dbus_interface_skeleton_get_type") | |
| 313 | + | ||
| 305 | 314 | core.PuregoSafeRegister(&xDBusInterfaceSkeletonExport, lib, "g_dbus_interface_skeleton_export") | |
| 306 | 315 | core.PuregoSafeRegister(&xDBusInterfaceSkeletonFlush, lib, "g_dbus_interface_skeleton_flush") | |
| 307 | 316 | core.PuregoSafeRegister(&xDBusInterfaceSkeletonGetConnection, lib, "g_dbus_interface_skeleton_get_connection") | |
M v4/gio/gdbusintrospection.go +58 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Information about an annotation. | |
| @@ -20,6 +21,12 @@ type DBusAnnotationInfo struct { | |||
| 20 | 21 | Annotations uintptr | |
| 21 | 22 | } | |
| 22 | 23 | ||
| 24 | + | var xDBusAnnotationInfoGLibType func() types.GType | |
| 25 | + | ||
| 26 | + | func DBusAnnotationInfoGLibType() types.GType { | |
| 27 | + | return xDBusAnnotationInfoGLibType() | |
| 28 | + | } | |
| 29 | + | ||
| 23 | 30 | func (x *DBusAnnotationInfo) GoPointer() uintptr { | |
| 24 | 31 | return uintptr(unsafe.Pointer(x)) | |
| 25 | 32 | } | |
| @@ -56,6 +63,12 @@ type DBusArgInfo struct { | |||
| 56 | 63 | Annotations uintptr | |
| 57 | 64 | } | |
| 58 | 65 | ||
| 66 | + | var xDBusArgInfoGLibType func() types.GType | |
| 67 | + | ||
| 68 | + | func DBusArgInfoGLibType() types.GType { | |
| 69 | + | return xDBusArgInfoGLibType() | |
| 70 | + | } | |
| 71 | + | ||
| 59 | 72 | func (x *DBusArgInfo) GoPointer() uintptr { | |
| 60 | 73 | return uintptr(unsafe.Pointer(x)) | |
| 61 | 74 | } | |
| @@ -96,6 +109,12 @@ type DBusInterfaceInfo struct { | |||
| 96 | 109 | Annotations uintptr | |
| 97 | 110 | } | |
| 98 | 111 | ||
| 112 | + | var xDBusInterfaceInfoGLibType func() types.GType | |
| 113 | + | ||
| 114 | + | func DBusInterfaceInfoGLibType() types.GType { | |
| 115 | + | return xDBusInterfaceInfoGLibType() | |
| 116 | + | } | |
| 117 | + | ||
| 99 | 118 | func (x *DBusInterfaceInfo) GoPointer() uintptr { | |
| 100 | 119 | return uintptr(unsafe.Pointer(x)) | |
| 101 | 120 | } | |
| @@ -213,6 +232,12 @@ type DBusMethodInfo struct { | |||
| 213 | 232 | Annotations uintptr | |
| 214 | 233 | } | |
| 215 | 234 | ||
| 235 | + | var xDBusMethodInfoGLibType func() types.GType | |
| 236 | + | ||
| 237 | + | func DBusMethodInfoGLibType() types.GType { | |
| 238 | + | return xDBusMethodInfoGLibType() | |
| 239 | + | } | |
| 240 | + | ||
| 216 | 241 | func (x *DBusMethodInfo) GoPointer() uintptr { | |
| 217 | 242 | return uintptr(unsafe.Pointer(x)) | |
| 218 | 243 | } | |
| @@ -251,6 +276,12 @@ type DBusNodeInfo struct { | |||
| 251 | 276 | Annotations uintptr | |
| 252 | 277 | } | |
| 253 | 278 | ||
| 279 | + | var xDBusNodeInfoGLibType func() types.GType | |
| 280 | + | ||
| 281 | + | func DBusNodeInfoGLibType() types.GType { | |
| 282 | + | return xDBusNodeInfoGLibType() | |
| 283 | + | } | |
| 284 | + | ||
| 254 | 285 | func (x *DBusNodeInfo) GoPointer() uintptr { | |
| 255 | 286 | return uintptr(unsafe.Pointer(x)) | |
| 256 | 287 | } | |
| @@ -333,6 +364,12 @@ type DBusPropertyInfo struct { | |||
| 333 | 364 | Annotations uintptr | |
| 334 | 365 | } | |
| 335 | 366 | ||
| 367 | + | var xDBusPropertyInfoGLibType func() types.GType | |
| 368 | + | ||
| 369 | + | func DBusPropertyInfoGLibType() types.GType { | |
| 370 | + | return xDBusPropertyInfoGLibType() | |
| 371 | + | } | |
| 372 | + | ||
| 336 | 373 | func (x *DBusPropertyInfo) GoPointer() uintptr { | |
| 337 | 374 | return uintptr(unsafe.Pointer(x)) | |
| 338 | 375 | } | |
| @@ -369,6 +406,12 @@ type DBusSignalInfo struct { | |||
| 369 | 406 | Annotations uintptr | |
| 370 | 407 | } | |
| 371 | 408 | ||
| 409 | + | var xDBusSignalInfoGLibType func() types.GType | |
| 410 | + | ||
| 411 | + | func DBusSignalInfoGLibType() types.GType { | |
| 412 | + | return xDBusSignalInfoGLibType() | |
| 413 | + | } | |
| 414 | + | ||
| 372 | 415 | func (x *DBusSignalInfo) GoPointer() uintptr { | |
| 373 | 416 | return uintptr(unsafe.Pointer(x)) | |
| 374 | 417 | } | |
| @@ -410,14 +453,21 @@ func init() { | |||
| 410 | 453 | if err != nil { | |
| 411 | 454 | panic(err) | |
| 412 | 455 | } | |
| 456 | + | ||
| 413 | 457 | core.PuregoSafeRegister(&xDbusAnnotationInfoLookup, lib, "g_dbus_annotation_info_lookup") | |
| 414 | 458 | ||
| 459 | + | core.PuregoSafeRegister(&xDBusAnnotationInfoGLibType, lib, "g_dbus_annotation_info_get_type") | |
| 460 | + | ||
| 415 | 461 | core.PuregoSafeRegister(&xDBusAnnotationInfoRef, lib, "g_dbus_annotation_info_ref") | |
| 416 | 462 | core.PuregoSafeRegister(&xDBusAnnotationInfoUnref, lib, "g_dbus_annotation_info_unref") | |
| 417 | 463 | ||
| 464 | + | core.PuregoSafeRegister(&xDBusArgInfoGLibType, lib, "g_dbus_arg_info_get_type") | |
| 465 | + | ||
| 418 | 466 | core.PuregoSafeRegister(&xDBusArgInfoRef, lib, "g_dbus_arg_info_ref") | |
| 419 | 467 | core.PuregoSafeRegister(&xDBusArgInfoUnref, lib, "g_dbus_arg_info_unref") | |
| 420 | 468 | ||
| 469 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoGLibType, lib, "g_dbus_interface_info_get_type") | |
| 470 | + | ||
| 421 | 471 | core.PuregoSafeRegister(&xDBusInterfaceInfoCacheBuild, lib, "g_dbus_interface_info_cache_build") | |
| 422 | 472 | core.PuregoSafeRegister(&xDBusInterfaceInfoCacheRelease, lib, "g_dbus_interface_info_cache_release") | |
| 423 | 473 | core.PuregoSafeRegister(&xDBusInterfaceInfoGenerateXml, lib, "g_dbus_interface_info_generate_xml") | |
| @@ -427,9 +477,13 @@ func init() { | |||
| 427 | 477 | core.PuregoSafeRegister(&xDBusInterfaceInfoRef, lib, "g_dbus_interface_info_ref") | |
| 428 | 478 | core.PuregoSafeRegister(&xDBusInterfaceInfoUnref, lib, "g_dbus_interface_info_unref") | |
| 429 | 479 | ||
| 480 | + | core.PuregoSafeRegister(&xDBusMethodInfoGLibType, lib, "g_dbus_method_info_get_type") | |
| 481 | + | ||
| 430 | 482 | core.PuregoSafeRegister(&xDBusMethodInfoRef, lib, "g_dbus_method_info_ref") | |
| 431 | 483 | core.PuregoSafeRegister(&xDBusMethodInfoUnref, lib, "g_dbus_method_info_unref") | |
| 432 | 484 | ||
| 485 | + | core.PuregoSafeRegister(&xDBusNodeInfoGLibType, lib, "g_dbus_node_info_get_type") | |
| 486 | + | ||
| 433 | 487 | core.PuregoSafeRegister(&xNewDBusNodeInfoForXml, lib, "g_dbus_node_info_new_for_xml") | |
| 434 | 488 | ||
| 435 | 489 | core.PuregoSafeRegister(&xDBusNodeInfoGenerateXml, lib, "g_dbus_node_info_generate_xml") | |
| @@ -437,9 +491,13 @@ func init() { | |||
| 437 | 491 | core.PuregoSafeRegister(&xDBusNodeInfoRef, lib, "g_dbus_node_info_ref") | |
| 438 | 492 | core.PuregoSafeRegister(&xDBusNodeInfoUnref, lib, "g_dbus_node_info_unref") | |
| 439 | 493 | ||
| 494 | + | core.PuregoSafeRegister(&xDBusPropertyInfoGLibType, lib, "g_dbus_property_info_get_type") | |
| 495 | + | ||
| 440 | 496 | core.PuregoSafeRegister(&xDBusPropertyInfoRef, lib, "g_dbus_property_info_ref") | |
| 441 | 497 | core.PuregoSafeRegister(&xDBusPropertyInfoUnref, lib, "g_dbus_property_info_unref") | |
| 442 | 498 | ||
| 499 | + | core.PuregoSafeRegister(&xDBusSignalInfoGLibType, lib, "g_dbus_signal_info_get_type") | |
| 500 | + | ||
| 443 | 501 | core.PuregoSafeRegister(&xDBusSignalInfoRef, lib, "g_dbus_signal_info_ref") | |
| 444 | 502 | core.PuregoSafeRegister(&xDBusSignalInfoUnref, lib, "g_dbus_signal_info_unref") | |
| 445 | 503 | ||
M v4/gio/gdbusnameowning.go +1 -0
| @@ -125,6 +125,7 @@ func init() { | |||
| 125 | 125 | if err != nil { | |
| 126 | 126 | panic(err) | |
| 127 | 127 | } | |
| 128 | + | ||
| 128 | 129 | core.PuregoSafeRegister(&xBusOwnName, lib, "g_bus_own_name") | |
| 129 | 130 | core.PuregoSafeRegister(&xBusOwnNameOnConnection, lib, "g_bus_own_name_on_connection") | |
| 130 | 131 | core.PuregoSafeRegister(&xBusOwnNameOnConnectionWithClosures, lib, "g_bus_own_name_on_connection_with_closures") | |
M v4/gio/gdbusnamewatching.go +1 -0
| @@ -106,6 +106,7 @@ func init() { | |||
| 106 | 106 | if err != nil { | |
| 107 | 107 | panic(err) | |
| 108 | 108 | } | |
| 109 | + | ||
| 109 | 110 | core.PuregoSafeRegister(&xBusUnwatchName, lib, "g_bus_unwatch_name") | |
| 110 | 111 | core.PuregoSafeRegister(&xBusWatchName, lib, "g_bus_watch_name") | |
| 111 | 112 | core.PuregoSafeRegister(&xBusWatchNameOnConnection, lib, "g_bus_watch_name_on_connection") | |
M v4/gio/gdbusobject.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Base object type for D-Bus objects. | |
| @@ -29,6 +30,13 @@ type DBusObject interface { | |||
| 29 | 30 | GetInterfaces() *glib.List | |
| 30 | 31 | GetObjectPath() string | |
| 31 | 32 | } | |
| 33 | + | ||
| 34 | + | var xDBusObjectGLibType func() types.GType | |
| 35 | + | ||
| 36 | + | func DBusObjectGLibType() types.GType { | |
| 37 | + | return xDBusObjectGLibType() | |
| 38 | + | } | |
| 39 | + | ||
| 32 | 40 | type DBusObjectBase struct { | |
| 33 | 41 | Ptr uintptr | |
| 34 | 42 | } | |
| @@ -80,6 +88,8 @@ func init() { | |||
| 80 | 88 | panic(err) | |
| 81 | 89 | } | |
| 82 | 90 | ||
| 91 | + | core.PuregoSafeRegister(&xDBusObjectGLibType, lib, "g_dbus_object_get_type") | |
| 92 | + | ||
| 83 | 93 | core.PuregoSafeRegister(&XGDbusObjectGetInterface, lib, "g_dbus_object_get_interface") | |
| 84 | 94 | core.PuregoSafeRegister(&XGDbusObjectGetInterfaces, lib, "g_dbus_object_get_interfaces") | |
| 85 | 95 | core.PuregoSafeRegister(&XGDbusObjectGetObjectPath, lib, "g_dbus_object_get_object_path") | |
M v4/gio/gdbusobjectmanager.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Base type for D-Bus object managers. | |
| @@ -33,6 +34,13 @@ type DBusObjectManager interface { | |||
| 33 | 34 | GetObjectPath() string | |
| 34 | 35 | GetObjects() *glib.List | |
| 35 | 36 | } | |
| 37 | + | ||
| 38 | + | var xDBusObjectManagerGLibType func() types.GType | |
| 39 | + | ||
| 40 | + | func DBusObjectManagerGLibType() types.GType { | |
| 41 | + | return xDBusObjectManagerGLibType() | |
| 42 | + | } | |
| 43 | + | ||
| 36 | 44 | type DBusObjectManagerBase struct { | |
| 37 | 45 | Ptr uintptr | |
| 38 | 46 | } | |
| @@ -99,6 +107,8 @@ func init() { | |||
| 99 | 107 | panic(err) | |
| 100 | 108 | } | |
| 101 | 109 | ||
| 110 | + | core.PuregoSafeRegister(&xDBusObjectManagerGLibType, lib, "g_dbus_object_manager_get_type") | |
| 111 | + | ||
| 102 | 112 | core.PuregoSafeRegister(&XGDbusObjectManagerGetInterface, lib, "g_dbus_object_manager_get_interface") | |
| 103 | 113 | core.PuregoSafeRegister(&XGDbusObjectManagerGetObject, lib, "g_dbus_object_manager_get_object") | |
| 104 | 114 | core.PuregoSafeRegister(&XGDbusObjectManagerGetObjectPath, lib, "g_dbus_object_manager_get_object_path") | |
M v4/gio/gdbusobjectmanagerclient.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GDBusObjectManagerClient. | |
| @@ -107,6 +108,12 @@ type DBusObjectManagerClient struct { | |||
| 107 | 108 | gobject.Object | |
| 108 | 109 | } | |
| 109 | 110 | ||
| 111 | + | var xDBusObjectManagerClientGLibType func() types.GType | |
| 112 | + | ||
| 113 | + | func DBusObjectManagerClientGLibType() types.GType { | |
| 114 | + | return xDBusObjectManagerClientGLibType() | |
| 115 | + | } | |
| 116 | + | ||
| 110 | 117 | func DBusObjectManagerClientNewFromInternalPtr(ptr uintptr) *DBusObjectManagerClient { | |
| 111 | 118 | cls := &DBusObjectManagerClient{} | |
| 112 | 119 | cls.Ptr = ptr | |
| @@ -525,6 +532,8 @@ func init() { | |||
| 525 | 532 | panic(err) | |
| 526 | 533 | } | |
| 527 | 534 | ||
| 535 | + | core.PuregoSafeRegister(&xDBusObjectManagerClientGLibType, lib, "g_dbus_object_manager_client_get_type") | |
| 536 | + | ||
| 528 | 537 | core.PuregoSafeRegister(&xNewDBusObjectManagerClientFinish, lib, "g_dbus_object_manager_client_new_finish") | |
| 529 | 538 | core.PuregoSafeRegister(&xNewDBusObjectManagerClientForBusFinish, lib, "g_dbus_object_manager_client_new_for_bus_finish") | |
| 530 | 539 | core.PuregoSafeRegister(&xNewDBusObjectManagerClientForBusSync, lib, "g_dbus_object_manager_client_new_for_bus_sync") | |
M v4/gio/gdbusobjectmanagerserver.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GDBusObjectManagerServer. | |
| @@ -54,6 +55,12 @@ type DBusObjectManagerServer struct { | |||
| 54 | 55 | gobject.Object | |
| 55 | 56 | } | |
| 56 | 57 | ||
| 58 | + | var xDBusObjectManagerServerGLibType func() types.GType | |
| 59 | + | ||
| 60 | + | func DBusObjectManagerServerGLibType() types.GType { | |
| 61 | + | return xDBusObjectManagerServerGLibType() | |
| 62 | + | } | |
| 63 | + | ||
| 57 | 64 | func DBusObjectManagerServerNewFromInternalPtr(ptr uintptr) *DBusObjectManagerServer { | |
| 58 | 65 | cls := &DBusObjectManagerServer{} | |
| 59 | 66 | cls.Ptr = ptr | |
| @@ -217,6 +224,8 @@ func init() { | |||
| 217 | 224 | panic(err) | |
| 218 | 225 | } | |
| 219 | 226 | ||
| 227 | + | core.PuregoSafeRegister(&xDBusObjectManagerServerGLibType, lib, "g_dbus_object_manager_server_get_type") | |
| 228 | + | ||
| 220 | 229 | core.PuregoSafeRegister(&xNewDBusObjectManagerServer, lib, "g_dbus_object_manager_server_new") | |
| 221 | 230 | ||
| 222 | 231 | core.PuregoSafeRegister(&xDBusObjectManagerServerExport, lib, "g_dbus_object_manager_server_export") | |
M v4/gio/gdbusobjectproxy.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GDBusObjectProxy. | |
| @@ -36,6 +37,12 @@ type DBusObjectProxy struct { | |||
| 36 | 37 | gobject.Object | |
| 37 | 38 | } | |
| 38 | 39 | ||
| 40 | + | var xDBusObjectProxyGLibType func() types.GType | |
| 41 | + | ||
| 42 | + | func DBusObjectProxyGLibType() types.GType { | |
| 43 | + | return xDBusObjectProxyGLibType() | |
| 44 | + | } | |
| 45 | + | ||
| 39 | 46 | func DBusObjectProxyNewFromInternalPtr(ptr uintptr) *DBusObjectProxy { | |
| 40 | 47 | cls := &DBusObjectProxy{} | |
| 41 | 48 | cls.Ptr = ptr | |
| @@ -119,6 +126,8 @@ func init() { | |||
| 119 | 126 | panic(err) | |
| 120 | 127 | } | |
| 121 | 128 | ||
| 129 | + | core.PuregoSafeRegister(&xDBusObjectProxyGLibType, lib, "g_dbus_object_proxy_get_type") | |
| 130 | + | ||
| 122 | 131 | core.PuregoSafeRegister(&xNewDBusObjectProxy, lib, "g_dbus_object_proxy_new") | |
| 123 | 132 | ||
| 124 | 133 | core.PuregoSafeRegister(&xDBusObjectProxyGetConnection, lib, "g_dbus_object_proxy_get_connection") | |
M v4/gio/gdbusobjectskeleton.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GDBusObjectSkeleton. | |
| @@ -37,6 +38,12 @@ type DBusObjectSkeleton struct { | |||
| 37 | 38 | gobject.Object | |
| 38 | 39 | } | |
| 39 | 40 | ||
| 41 | + | var xDBusObjectSkeletonGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func DBusObjectSkeletonGLibType() types.GType { | |
| 44 | + | return xDBusObjectSkeletonGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | func DBusObjectSkeletonNewFromInternalPtr(ptr uintptr) *DBusObjectSkeleton { | |
| 41 | 48 | cls := &DBusObjectSkeleton{} | |
| 42 | 49 | cls.Ptr = ptr | |
| @@ -185,6 +192,8 @@ func init() { | |||
| 185 | 192 | panic(err) | |
| 186 | 193 | } | |
| 187 | 194 | ||
| 195 | + | core.PuregoSafeRegister(&xDBusObjectSkeletonGLibType, lib, "g_dbus_object_skeleton_get_type") | |
| 196 | + | ||
| 188 | 197 | core.PuregoSafeRegister(&xNewDBusObjectSkeleton, lib, "g_dbus_object_skeleton_new") | |
| 189 | 198 | ||
| 190 | 199 | core.PuregoSafeRegister(&xDBusObjectSkeletonAddInterface, lib, "g_dbus_object_skeleton_add_interface") | |
M v4/gio/gdbusproxy.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GDBusProxy. | |
| @@ -76,6 +77,12 @@ type DBusProxy struct { | |||
| 76 | 77 | gobject.Object | |
| 77 | 78 | } | |
| 78 | 79 | ||
| 80 | + | var xDBusProxyGLibType func() types.GType | |
| 81 | + | ||
| 82 | + | func DBusProxyGLibType() types.GType { | |
| 83 | + | return xDBusProxyGLibType() | |
| 84 | + | } | |
| 85 | + | ||
| 79 | 86 | func DBusProxyNewFromInternalPtr(ptr uintptr) *DBusProxy { | |
| 80 | 87 | cls := &DBusProxy{} | |
| 81 | 88 | cls.Ptr = ptr | |
| @@ -817,6 +824,8 @@ func init() { | |||
| 817 | 824 | panic(err) | |
| 818 | 825 | } | |
| 819 | 826 | ||
| 827 | + | core.PuregoSafeRegister(&xDBusProxyGLibType, lib, "g_dbus_proxy_get_type") | |
| 828 | + | ||
| 820 | 829 | core.PuregoSafeRegister(&xNewDBusProxyFinish, lib, "g_dbus_proxy_new_finish") | |
| 821 | 830 | core.PuregoSafeRegister(&xNewDBusProxyForBusFinish, lib, "g_dbus_proxy_new_for_bus_finish") | |
| 822 | 831 | core.PuregoSafeRegister(&xNewDBusProxyForBusSync, lib, "g_dbus_proxy_new_for_bus_sync") | |
M v4/gio/gdbusutils.go +1 -0
| @@ -197,6 +197,7 @@ func init() { | |||
| 197 | 197 | if err != nil { | |
| 198 | 198 | panic(err) | |
| 199 | 199 | } | |
| 200 | + | ||
| 200 | 201 | core.PuregoSafeRegister(&xDbusEscapeObjectPath, lib, "g_dbus_escape_object_path") | |
| 201 | 202 | core.PuregoSafeRegister(&xDbusEscapeObjectPathBytestring, lib, "g_dbus_escape_object_path_bytestring") | |
| 202 | 203 | core.PuregoSafeRegister(&xDbusGenerateGuid, lib, "g_dbus_generate_guid") | |
M v4/gio/gdebugcontroller.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The virtual function table for #GDebugController. | |
| @@ -38,6 +39,13 @@ type DebugController interface { | |||
| 38 | 39 | GetDebugEnabled() bool | |
| 39 | 40 | SetDebugEnabled(DebugEnabledVar bool) | |
| 40 | 41 | } | |
| 42 | + | ||
| 43 | + | var xDebugControllerGLibType func() types.GType | |
| 44 | + | ||
| 45 | + | func DebugControllerGLibType() types.GType { | |
| 46 | + | return xDebugControllerGLibType() | |
| 47 | + | } | |
| 48 | + | ||
| 41 | 49 | type DebugControllerBase struct { | |
| 42 | 50 | Ptr uintptr | |
| 43 | 51 | } | |
| @@ -79,6 +87,8 @@ func init() { | |||
| 79 | 87 | panic(err) | |
| 80 | 88 | } | |
| 81 | 89 | ||
| 90 | + | core.PuregoSafeRegister(&xDebugControllerGLibType, lib, "g_debug_controller_get_type") | |
| 91 | + | ||
| 82 | 92 | core.PuregoSafeRegister(&XGDebugControllerGetDebugEnabled, lib, "g_debug_controller_get_debug_enabled") | |
| 83 | 93 | core.PuregoSafeRegister(&XGDebugControllerSetDebugEnabled, lib, "g_debug_controller_set_debug_enabled") | |
| 84 | 94 | ||
M v4/gio/gdebugcontrollerdbus.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // The virtual function table for #GDebugControllerDBus. | |
| @@ -137,6 +138,12 @@ type DebugControllerDBus struct { | |||
| 137 | 138 | gobject.Object | |
| 138 | 139 | } | |
| 139 | 140 | ||
| 141 | + | var xDebugControllerDBusGLibType func() types.GType | |
| 142 | + | ||
| 143 | + | func DebugControllerDBusGLibType() types.GType { | |
| 144 | + | return xDebugControllerDBusGLibType() | |
| 145 | + | } | |
| 146 | + | ||
| 140 | 147 | func DebugControllerDBusNewFromInternalPtr(ptr uintptr) *DebugControllerDBus { | |
| 141 | 148 | cls := &DebugControllerDBus{} | |
| 142 | 149 | cls.Ptr = ptr | |
| @@ -307,6 +314,8 @@ func init() { | |||
| 307 | 314 | panic(err) | |
| 308 | 315 | } | |
| 309 | 316 | ||
| 317 | + | core.PuregoSafeRegister(&xDebugControllerDBusGLibType, lib, "g_debug_controller_dbus_get_type") | |
| 318 | + | ||
| 310 | 319 | core.PuregoSafeRegister(&xNewDebugControllerDBus, lib, "g_debug_controller_dbus_new") | |
| 311 | 320 | ||
| 312 | 321 | core.PuregoSafeRegister(&xDebugControllerDBusStop, lib, "g_debug_controller_dbus_stop") | |
M v4/gio/gdesktopappinfo.go +18 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // During invocation, g_desktop_app_info_launch_uris_as_manager() may | |
| @@ -40,6 +41,13 @@ type DesktopAppInfoLookup interface { | |||
| 40 | 41 | SetGoPointer(uintptr) | |
| 41 | 42 | GetDefaultForUriScheme(UriSchemeVar string) *AppInfoBase | |
| 42 | 43 | } | |
| 44 | + | ||
| 45 | + | var xDesktopAppInfoLookupGLibType func() types.GType | |
| 46 | + | ||
| 47 | + | func DesktopAppInfoLookupGLibType() types.GType { | |
| 48 | + | return xDesktopAppInfoLookupGLibType() | |
| 49 | + | } | |
| 50 | + | ||
| 43 | 51 | type DesktopAppInfoLookupBase struct { | |
| 44 | 52 | Ptr uintptr | |
| 45 | 53 | } | |
| @@ -91,6 +99,12 @@ type DesktopAppInfo struct { | |||
| 91 | 99 | gobject.Object | |
| 92 | 100 | } | |
| 93 | 101 | ||
| 102 | + | var xDesktopAppInfoGLibType func() types.GType | |
| 103 | + | ||
| 104 | + | func DesktopAppInfoGLibType() types.GType { | |
| 105 | + | return xDesktopAppInfoGLibType() | |
| 106 | + | } | |
| 107 | + | ||
| 94 | 108 | func DesktopAppInfoNewFromInternalPtr(ptr uintptr) *DesktopAppInfo { | |
| 95 | 109 | cls := &DesktopAppInfo{} | |
| 96 | 110 | cls.Ptr = ptr | |
| @@ -756,6 +770,8 @@ func init() { | |||
| 756 | 770 | panic(err) | |
| 757 | 771 | } | |
| 758 | 772 | ||
| 773 | + | core.PuregoSafeRegister(&xDesktopAppInfoGLibType, lib, "g_desktop_app_info_get_type") | |
| 774 | + | ||
| 759 | 775 | core.PuregoSafeRegister(&xNewDesktopAppInfo, lib, "g_desktop_app_info_new") | |
| 760 | 776 | core.PuregoSafeRegister(&xNewDesktopAppInfoFromFilename, lib, "g_desktop_app_info_new_from_filename") | |
| 761 | 777 | core.PuregoSafeRegister(&xNewDesktopAppInfoFromKeyfile, lib, "g_desktop_app_info_new_from_keyfile") | |
| @@ -783,6 +799,8 @@ func init() { | |||
| 783 | 799 | core.PuregoSafeRegister(&xDesktopAppInfoSearch, lib, "g_desktop_app_info_search") | |
| 784 | 800 | core.PuregoSafeRegister(&xDesktopAppInfoSetDesktopEnv, lib, "g_desktop_app_info_set_desktop_env") | |
| 785 | 801 | ||
| 802 | + | core.PuregoSafeRegister(&xDesktopAppInfoLookupGLibType, lib, "g_desktop_app_info_lookup_get_type") | |
| 803 | + | ||
| 786 | 804 | core.PuregoSafeRegister(&XGDesktopAppInfoLookupGetDefaultForUriScheme, lib, "g_desktop_app_info_lookup_get_default_for_uri_scheme") | |
| 787 | 805 | ||
| 788 | 806 | } | |
M v4/gio/gdrive.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Interface for creating #GDrive implementations. | |
| @@ -76,6 +77,13 @@ type Drive interface { | |||
| 76 | 77 | Stop(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | |
| 77 | 78 | StopFinish(ResultVar AsyncResult) bool | |
| 78 | 79 | } | |
| 80 | + | ||
| 81 | + | var xDriveGLibType func() types.GType | |
| 82 | + | ||
| 83 | + | func DriveGLibType() types.GType { | |
| 84 | + | return xDriveGLibType() | |
| 85 | + | } | |
| 86 | + | ||
| 79 | 87 | type DriveBase struct { | |
| 80 | 88 | Ptr uintptr | |
| 81 | 89 | } | |
| @@ -392,6 +400,8 @@ func init() { | |||
| 392 | 400 | panic(err) | |
| 393 | 401 | } | |
| 394 | 402 | ||
| 403 | + | core.PuregoSafeRegister(&xDriveGLibType, lib, "g_drive_get_type") | |
| 404 | + | ||
| 395 | 405 | core.PuregoSafeRegister(&XGDriveCanEject, lib, "g_drive_can_eject") | |
| 396 | 406 | core.PuregoSafeRegister(&XGDriveCanPollForMedia, lib, "g_drive_can_poll_for_media") | |
| 397 | 407 | core.PuregoSafeRegister(&XGDriveCanStart, lib, "g_drive_can_start") | |
M v4/gio/gdtlsclientconnection.go +11 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // vtable for a #GDtlsClientConnection implementation. | |
| @@ -30,6 +31,13 @@ type DtlsClientConnection interface { | |||
| 30 | 31 | SetServerIdentity(IdentityVar SocketConnectable) | |
| 31 | 32 | SetValidationFlags(FlagsVar TlsCertificateFlags) | |
| 32 | 33 | } | |
| 34 | + | ||
| 35 | + | var xDtlsClientConnectionGLibType func() types.GType | |
| 36 | + | ||
| 37 | + | func DtlsClientConnectionGLibType() types.GType { | |
| 38 | + | return xDtlsClientConnectionGLibType() | |
| 39 | + | } | |
| 40 | + | ||
| 33 | 41 | type DtlsClientConnectionBase struct { | |
| 34 | 42 | Ptr uintptr | |
| 35 | 43 | } | |
| @@ -129,8 +137,11 @@ func init() { | |||
| 129 | 137 | if err != nil { | |
| 130 | 138 | panic(err) | |
| 131 | 139 | } | |
| 140 | + | ||
| 132 | 141 | core.PuregoSafeRegister(&xDtlsClientConnectionNew, lib, "g_dtls_client_connection_new") | |
| 133 | 142 | ||
| 143 | + | core.PuregoSafeRegister(&xDtlsClientConnectionGLibType, lib, "g_dtls_client_connection_get_type") | |
| 144 | + | ||
| 134 | 145 | core.PuregoSafeRegister(&XGDtlsClientConnectionGetAcceptedCas, lib, "g_dtls_client_connection_get_accepted_cas") | |
| 135 | 146 | core.PuregoSafeRegister(&XGDtlsClientConnectionGetServerIdentity, lib, "g_dtls_client_connection_get_server_identity") | |
| 136 | 147 | core.PuregoSafeRegister(&XGDtlsClientConnectionGetValidationFlags, lib, "g_dtls_client_connection_get_validation_flags") | |
M v4/gio/gdtlsconnection.go +10 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Virtual method table for a #GDtlsConnection implementation. | |
| @@ -69,6 +70,13 @@ type DtlsConnection interface { | |||
| 69 | 70 | ShutdownAsync(ShutdownReadVar bool, ShutdownWriteVar bool, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | |
| 70 | 71 | ShutdownFinish(ResultVar AsyncResult) bool | |
| 71 | 72 | } | |
| 73 | + | ||
| 74 | + | var xDtlsConnectionGLibType func() types.GType | |
| 75 | + | ||
| 76 | + | func DtlsConnectionGLibType() types.GType { | |
| 77 | + | return xDtlsConnectionGLibType() | |
| 78 | + | } | |
| 79 | + | ||
| 72 | 80 | type DtlsConnectionBase struct { | |
| 73 | 81 | Ptr uintptr | |
| 74 | 82 | } | |
| @@ -543,6 +551,8 @@ func init() { | |||
| 543 | 551 | panic(err) | |
| 544 | 552 | } | |
| 545 | 553 | ||
| 554 | + | core.PuregoSafeRegister(&xDtlsConnectionGLibType, lib, "g_dtls_connection_get_type") | |
| 555 | + | ||
| 546 | 556 | core.PuregoSafeRegister(&XGDtlsConnectionClose, lib, "g_dtls_connection_close") | |
| 547 | 557 | core.PuregoSafeRegister(&XGDtlsConnectionCloseAsync, lib, "g_dtls_connection_close_async") | |
| 548 | 558 | core.PuregoSafeRegister(&XGDtlsConnectionCloseFinish, lib, "g_dtls_connection_close_finish") | |
M v4/gio/gdtlsserverconnection.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // vtable for a #GDtlsServerConnection implementation. | |
| @@ -24,6 +25,13 @@ type DtlsServerConnection interface { | |||
| 24 | 25 | GoPointer() uintptr | |
| 25 | 26 | SetGoPointer(uintptr) | |
| 26 | 27 | } | |
| 28 | + | ||
| 29 | + | var xDtlsServerConnectionGLibType func() types.GType | |
| 30 | + | ||
| 31 | + | func DtlsServerConnectionGLibType() types.GType { | |
| 32 | + | return xDtlsServerConnectionGLibType() | |
| 33 | + | } | |
| 34 | + | ||
| 27 | 35 | type DtlsServerConnectionBase struct { | |
| 28 | 36 | Ptr uintptr | |
| 29 | 37 | } | |
| @@ -62,6 +70,9 @@ func init() { | |||
| 62 | 70 | if err != nil { | |
| 63 | 71 | panic(err) | |
| 64 | 72 | } | |
| 73 | + | ||
| 65 | 74 | core.PuregoSafeRegister(&xDtlsServerConnectionNew, lib, "g_dtls_server_connection_new") | |
| 66 | 75 | ||
| 76 | + | core.PuregoSafeRegister(&xDtlsServerConnectionGLibType, lib, "g_dtls_server_connection_get_type") | |
| 77 | + | ||
| 67 | 78 | } | |
M v4/gio/gemblem.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type EmblemClass struct { | |
| @@ -27,6 +28,12 @@ type Emblem struct { | |||
| 27 | 28 | gobject.Object | |
| 28 | 29 | } | |
| 29 | 30 | ||
| 31 | + | var xEmblemGLibType func() types.GType | |
| 32 | + | ||
| 33 | + | func EmblemGLibType() types.GType { | |
| 34 | + | return xEmblemGLibType() | |
| 35 | + | } | |
| 36 | + | ||
| 30 | 37 | func EmblemNewFromInternalPtr(ptr uintptr) *Emblem { | |
| 31 | 38 | cls := &Emblem{} | |
| 32 | 39 | cls.Ptr = ptr | |
| @@ -145,6 +152,8 @@ func init() { | |||
| 145 | 152 | panic(err) | |
| 146 | 153 | } | |
| 147 | 154 | ||
| 155 | + | core.PuregoSafeRegister(&xEmblemGLibType, lib, "g_emblem_get_type") | |
| 156 | + | ||
| 148 | 157 | core.PuregoSafeRegister(&xNewEmblem, lib, "g_emblem_new") | |
| 149 | 158 | core.PuregoSafeRegister(&xNewEmblemWithOrigin, lib, "g_emblem_new_with_origin") | |
| 150 | 159 | ||
M v4/gio/gemblemedicon.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type EmblemedIconClass struct { | |
| @@ -35,6 +36,12 @@ type EmblemedIcon struct { | |||
| 35 | 36 | gobject.Object | |
| 36 | 37 | } | |
| 37 | 38 | ||
| 39 | + | var xEmblemedIconGLibType func() types.GType | |
| 40 | + | ||
| 41 | + | func EmblemedIconGLibType() types.GType { | |
| 42 | + | return xEmblemedIconGLibType() | |
| 43 | + | } | |
| 44 | + | ||
| 38 | 45 | func EmblemedIconNewFromInternalPtr(ptr uintptr) *EmblemedIcon { | |
| 39 | 46 | cls := &EmblemedIcon{} | |
| 40 | 47 | cls.Ptr = ptr | |
| @@ -155,6 +162,8 @@ func init() { | |||
| 155 | 162 | panic(err) | |
| 156 | 163 | } | |
| 157 | 164 | ||
| 165 | + | core.PuregoSafeRegister(&xEmblemedIconGLibType, lib, "g_emblemed_icon_get_type") | |
| 166 | + | ||
| 158 | 167 | core.PuregoSafeRegister(&xNewEmblemedIcon, lib, "g_emblemed_icon_new") | |
| 159 | 168 | ||
| 160 | 169 | core.PuregoSafeRegister(&xEmblemedIconAddEmblem, lib, "g_emblemed_icon_add_emblem") | |
M v4/gio/gfile.go +11 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // An interface for writing VFS file handles. | |
| @@ -233,6 +234,13 @@ type File interface { | |||
| 233 | 234 | UnmountMountableWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | |
| 234 | 235 | UnmountMountableWithOperationFinish(ResultVar AsyncResult) bool | |
| 235 | 236 | } | |
| 237 | + | ||
| 238 | + | var xFileGLibType func() types.GType | |
| 239 | + | ||
| 240 | + | func FileGLibType() types.GType { | |
| 241 | + | return xFileGLibType() | |
| 242 | + | } | |
| 243 | + | ||
| 236 | 244 | type FileBase struct { | |
| 237 | 245 | Ptr uintptr | |
| 238 | 246 | } | |
| @@ -2996,6 +3004,7 @@ func init() { | |||
| 2996 | 3004 | if err != nil { | |
| 2997 | 3005 | panic(err) | |
| 2998 | 3006 | } | |
| 3007 | + | ||
| 2999 | 3008 | core.PuregoSafeRegister(&xFileNewForCommandlineArg, lib, "g_file_new_for_commandline_arg") | |
| 3000 | 3009 | core.PuregoSafeRegister(&xFileNewForCommandlineArgAndCwd, lib, "g_file_new_for_commandline_arg_and_cwd") | |
| 3001 | 3010 | core.PuregoSafeRegister(&xFileNewForPath, lib, "g_file_new_for_path") | |
| @@ -3003,6 +3012,8 @@ func init() { | |||
| 3003 | 3012 | core.PuregoSafeRegister(&xFileNewTmp, lib, "g_file_new_tmp") | |
| 3004 | 3013 | core.PuregoSafeRegister(&xFileParseName, lib, "g_file_parse_name") | |
| 3005 | 3014 | ||
| 3015 | + | core.PuregoSafeRegister(&xFileGLibType, lib, "g_file_get_type") | |
| 3016 | + | ||
| 3006 | 3017 | core.PuregoSafeRegister(&XGFileAppendTo, lib, "g_file_append_to") | |
| 3007 | 3018 | core.PuregoSafeRegister(&XGFileAppendToAsync, lib, "g_file_append_to_async") | |
| 3008 | 3019 | core.PuregoSafeRegister(&XGFileAppendToFinish, lib, "g_file_append_to_finish") | |
M v4/gio/gfileattribute.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Information about a specific attribute. | |
| @@ -29,6 +30,12 @@ type FileAttributeInfoList struct { | |||
| 29 | 30 | NInfos int | |
| 30 | 31 | } | |
| 31 | 32 | ||
| 33 | + | var xFileAttributeInfoListGLibType func() types.GType | |
| 34 | + | ||
| 35 | + | func FileAttributeInfoListGLibType() types.GType { | |
| 36 | + | return xFileAttributeInfoListGLibType() | |
| 37 | + | } | |
| 38 | + | ||
| 32 | 39 | func (x *FileAttributeInfoList) GoPointer() uintptr { | |
| 33 | 40 | return uintptr(unsafe.Pointer(x)) | |
| 34 | 41 | } | |
| @@ -95,6 +102,8 @@ func init() { | |||
| 95 | 102 | panic(err) | |
| 96 | 103 | } | |
| 97 | 104 | ||
| 105 | + | core.PuregoSafeRegister(&xFileAttributeInfoListGLibType, lib, "g_file_attribute_info_list_get_type") | |
| 106 | + | ||
| 98 | 107 | core.PuregoSafeRegister(&xNewFileAttributeInfoList, lib, "g_file_attribute_info_list_new") | |
| 99 | 108 | ||
| 100 | 109 | core.PuregoSafeRegister(&xFileAttributeInfoListAdd, lib, "g_file_attribute_info_list_add") | |
M v4/gio/gfiledescriptorbased.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // An interface for file descriptor based io objects. | |
| @@ -28,6 +29,13 @@ type FileDescriptorBased interface { | |||
| 28 | 29 | SetGoPointer(uintptr) | |
| 29 | 30 | GetFd() int | |
| 30 | 31 | } | |
| 32 | + | ||
| 33 | + | var xFileDescriptorBasedGLibType func() types.GType | |
| 34 | + | ||
| 35 | + | func FileDescriptorBasedGLibType() types.GType { | |
| 36 | + | return xFileDescriptorBasedGLibType() | |
| 37 | + | } | |
| 38 | + | ||
| 31 | 39 | type FileDescriptorBasedBase struct { | |
| 32 | 40 | Ptr uintptr | |
| 33 | 41 | } | |
| @@ -55,6 +63,8 @@ func init() { | |||
| 55 | 63 | panic(err) | |
| 56 | 64 | } | |
| 57 | 65 | ||
| 66 | + | core.PuregoSafeRegister(&xFileDescriptorBasedGLibType, lib, "g_file_descriptor_based_get_type") | |
| 67 | + | ||
| 58 | 68 | core.PuregoSafeRegister(&XGFileDescriptorBasedGetFd, lib, "g_file_descriptor_based_get_fd") | |
| 59 | 69 | ||
| 60 | 70 | } | |
M v4/gio/gfileenumerator.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type FileEnumeratorClass struct { | |
| @@ -55,6 +56,12 @@ type FileEnumerator struct { | |||
| 55 | 56 | gobject.Object | |
| 56 | 57 | } | |
| 57 | 58 | ||
| 59 | + | var xFileEnumeratorGLibType func() types.GType | |
| 60 | + | ||
| 61 | + | func FileEnumeratorGLibType() types.GType { | |
| 62 | + | return xFileEnumeratorGLibType() | |
| 63 | + | } | |
| 64 | + | ||
| 58 | 65 | func FileEnumeratorNewFromInternalPtr(ptr uintptr) *FileEnumerator { | |
| 59 | 66 | cls := &FileEnumerator{} | |
| 60 | 67 | cls.Ptr = ptr | |
| @@ -331,6 +338,8 @@ func init() { | |||
| 331 | 338 | panic(err) | |
| 332 | 339 | } | |
| 333 | 340 | ||
| 341 | + | core.PuregoSafeRegister(&xFileEnumeratorGLibType, lib, "g_file_enumerator_get_type") | |
| 342 | + | ||
| 334 | 343 | core.PuregoSafeRegister(&xFileEnumeratorClose, lib, "g_file_enumerator_close") | |
| 335 | 344 | core.PuregoSafeRegister(&xFileEnumeratorCloseAsync, lib, "g_file_enumerator_close_async") | |
| 336 | 345 | core.PuregoSafeRegister(&xFileEnumeratorCloseFinish, lib, "g_file_enumerator_close_finish") | |
M v4/gio/gfileicon.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type FileIconClass struct { | |
| @@ -23,6 +24,12 @@ type FileIcon struct { | |||
| 23 | 24 | gobject.Object | |
| 24 | 25 | } | |
| 25 | 26 | ||
| 27 | + | var xFileIconGLibType func() types.GType | |
| 28 | + | ||
| 29 | + | func FileIconGLibType() types.GType { | |
| 30 | + | return xFileIconGLibType() | |
| 31 | + | } | |
| 32 | + | ||
| 26 | 33 | func FileIconNewFromInternalPtr(ptr uintptr) *FileIcon { | |
| 27 | 34 | cls := &FileIcon{} | |
| 28 | 35 | cls.Ptr = ptr | |
| @@ -164,6 +171,8 @@ func init() { | |||
| 164 | 171 | panic(err) | |
| 165 | 172 | } | |
| 166 | 173 | ||
| 174 | + | core.PuregoSafeRegister(&xFileIconGLibType, lib, "g_file_icon_get_type") | |
| 175 | + | ||
| 167 | 176 | core.PuregoSafeRegister(&xNewFileIcon, lib, "g_file_icon_new") | |
| 168 | 177 | ||
| 169 | 178 | core.PuregoSafeRegister(&xFileIconGetFile, lib, "g_file_icon_get_file") | |
M v4/gio/gfileinfo.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type FileInfoClass struct { | |
| @@ -598,6 +599,12 @@ type FileInfo struct { | |||
| 598 | 599 | gobject.Object | |
| 599 | 600 | } | |
| 600 | 601 | ||
| 602 | + | var xFileInfoGLibType func() types.GType | |
| 603 | + | ||
| 604 | + | func FileInfoGLibType() types.GType { | |
| 605 | + | return xFileInfoGLibType() | |
| 606 | + | } | |
| 607 | + | ||
| 601 | 608 | func FileInfoNewFromInternalPtr(ptr uintptr) *FileInfo { | |
| 602 | 609 | cls := &FileInfo{} | |
| 603 | 610 | cls.Ptr = ptr | |
| @@ -1355,6 +1362,8 @@ func init() { | |||
| 1355 | 1362 | panic(err) | |
| 1356 | 1363 | } | |
| 1357 | 1364 | ||
| 1365 | + | core.PuregoSafeRegister(&xFileInfoGLibType, lib, "g_file_info_get_type") | |
| 1366 | + | ||
| 1358 | 1367 | core.PuregoSafeRegister(&xNewFileInfo, lib, "g_file_info_new") | |
| 1359 | 1368 | ||
| 1360 | 1369 | core.PuregoSafeRegister(&xFileInfoClearStatus, lib, "g_file_info_clear_status") | |
M v4/gio/gfileinputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type FileInputStreamClass struct { | |
| @@ -37,6 +38,12 @@ type FileInputStream struct { | |||
| 37 | 38 | InputStream | |
| 38 | 39 | } | |
| 39 | 40 | ||
| 41 | + | var xFileInputStreamGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func FileInputStreamGLibType() types.GType { | |
| 44 | + | return xFileInputStreamGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | func FileInputStreamNewFromInternalPtr(ptr uintptr) *FileInputStream { | |
| 41 | 48 | cls := &FileInputStream{} | |
| 42 | 49 | cls.Ptr = ptr | |
| @@ -189,6 +196,8 @@ func init() { | |||
| 189 | 196 | panic(err) | |
| 190 | 197 | } | |
| 191 | 198 | ||
| 199 | + | core.PuregoSafeRegister(&xFileInputStreamGLibType, lib, "g_file_input_stream_get_type") | |
| 200 | + | ||
| 192 | 201 | core.PuregoSafeRegister(&xFileInputStreamQueryInfo, lib, "g_file_input_stream_query_info") | |
| 193 | 202 | core.PuregoSafeRegister(&xFileInputStreamQueryInfoAsync, lib, "g_file_input_stream_query_info_async") | |
| 194 | 203 | core.PuregoSafeRegister(&xFileInputStreamQueryInfoFinish, lib, "g_file_input_stream_query_info_finish") | |
M v4/gio/gfileiostream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type FileIOStreamClass struct { | |
| @@ -48,6 +49,12 @@ type FileIOStream struct { | |||
| 48 | 49 | IOStream | |
| 49 | 50 | } | |
| 50 | 51 | ||
| 52 | + | var xFileIOStreamGLibType func() types.GType | |
| 53 | + | ||
| 54 | + | func FileIOStreamGLibType() types.GType { | |
| 55 | + | return xFileIOStreamGLibType() | |
| 56 | + | } | |
| 57 | + | ||
| 51 | 58 | func FileIOStreamNewFromInternalPtr(ptr uintptr) *FileIOStream { | |
| 52 | 59 | cls := &FileIOStream{} | |
| 53 | 60 | cls.Ptr = ptr | |
| @@ -219,6 +226,8 @@ func init() { | |||
| 219 | 226 | panic(err) | |
| 220 | 227 | } | |
| 221 | 228 | ||
| 229 | + | core.PuregoSafeRegister(&xFileIOStreamGLibType, lib, "g_file_io_stream_get_type") | |
| 230 | + | ||
| 222 | 231 | core.PuregoSafeRegister(&xFileIOStreamGetEtag, lib, "g_file_io_stream_get_etag") | |
| 223 | 232 | core.PuregoSafeRegister(&xFileIOStreamQueryInfo, lib, "g_file_io_stream_query_info") | |
| 224 | 233 | core.PuregoSafeRegister(&xFileIOStreamQueryInfoAsync, lib, "g_file_io_stream_query_info_async") | |
M v4/gio/gfilemonitor.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type FileMonitorClass struct { | |
| @@ -43,6 +44,12 @@ type FileMonitor struct { | |||
| 43 | 44 | gobject.Object | |
| 44 | 45 | } | |
| 45 | 46 | ||
| 47 | + | var xFileMonitorGLibType func() types.GType | |
| 48 | + | ||
| 49 | + | func FileMonitorGLibType() types.GType { | |
| 50 | + | return xFileMonitorGLibType() | |
| 51 | + | } | |
| 52 | + | ||
| 46 | 53 | func FileMonitorNewFromInternalPtr(ptr uintptr) *FileMonitor { | |
| 47 | 54 | cls := &FileMonitor{} | |
| 48 | 55 | cls.Ptr = ptr | |
| @@ -153,6 +160,8 @@ func init() { | |||
| 153 | 160 | panic(err) | |
| 154 | 161 | } | |
| 155 | 162 | ||
| 163 | + | core.PuregoSafeRegister(&xFileMonitorGLibType, lib, "g_file_monitor_get_type") | |
| 164 | + | ||
| 156 | 165 | core.PuregoSafeRegister(&xFileMonitorCancel, lib, "g_file_monitor_cancel") | |
| 157 | 166 | core.PuregoSafeRegister(&xFileMonitorEmitEvent, lib, "g_file_monitor_emit_event") | |
| 158 | 167 | core.PuregoSafeRegister(&xFileMonitorIsCancelled, lib, "g_file_monitor_is_cancelled") | |
M v4/gio/gfilenamecompleter.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type FilenameCompleterClass struct { | |
| @@ -25,6 +26,12 @@ type FilenameCompleter struct { | |||
| 25 | 26 | gobject.Object | |
| 26 | 27 | } | |
| 27 | 28 | ||
| 29 | + | var xFilenameCompleterGLibType func() types.GType | |
| 30 | + | ||
| 31 | + | func FilenameCompleterGLibType() types.GType { | |
| 32 | + | return xFilenameCompleterGLibType() | |
| 33 | + | } | |
| 34 | + | ||
| 28 | 35 | func FilenameCompleterNewFromInternalPtr(ptr uintptr) *FilenameCompleter { | |
| 29 | 36 | cls := &FilenameCompleter{} | |
| 30 | 37 | cls.Ptr = ptr | |
| @@ -109,6 +116,8 @@ func init() { | |||
| 109 | 116 | panic(err) | |
| 110 | 117 | } | |
| 111 | 118 | ||
| 119 | + | core.PuregoSafeRegister(&xFilenameCompleterGLibType, lib, "g_filename_completer_get_type") | |
| 120 | + | ||
| 112 | 121 | core.PuregoSafeRegister(&xNewFilenameCompleter, lib, "g_filename_completer_new") | |
| 113 | 122 | ||
| 114 | 123 | core.PuregoSafeRegister(&xFilenameCompleterGetCompletionSuffix, lib, "g_filename_completer_get_completion_suffix") | |
M v4/gio/gfileoutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type FileOutputStreamClass struct { | |
| @@ -42,6 +43,12 @@ type FileOutputStream struct { | |||
| 42 | 43 | OutputStream | |
| 43 | 44 | } | |
| 44 | 45 | ||
| 46 | + | var xFileOutputStreamGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func FileOutputStreamGLibType() types.GType { | |
| 49 | + | return xFileOutputStreamGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 45 | 52 | func FileOutputStreamNewFromInternalPtr(ptr uintptr) *FileOutputStream { | |
| 46 | 53 | cls := &FileOutputStream{} | |
| 47 | 54 | cls.Ptr = ptr | |
| @@ -213,6 +220,8 @@ func init() { | |||
| 213 | 220 | panic(err) | |
| 214 | 221 | } | |
| 215 | 222 | ||
| 223 | + | core.PuregoSafeRegister(&xFileOutputStreamGLibType, lib, "g_file_output_stream_get_type") | |
| 224 | + | ||
| 216 | 225 | core.PuregoSafeRegister(&xFileOutputStreamGetEtag, lib, "g_file_output_stream_get_etag") | |
| 217 | 226 | core.PuregoSafeRegister(&xFileOutputStreamQueryInfo, lib, "g_file_output_stream_query_info") | |
| 218 | 227 | core.PuregoSafeRegister(&xFileOutputStreamQueryInfoAsync, lib, "g_file_output_stream_query_info_async") | |
M v4/gio/gfilterinputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type FilterInputStreamClass struct { | |
| @@ -25,6 +26,12 @@ type FilterInputStream struct { | |||
| 25 | 26 | InputStream | |
| 26 | 27 | } | |
| 27 | 28 | ||
| 29 | + | var xFilterInputStreamGLibType func() types.GType | |
| 30 | + | ||
| 31 | + | func FilterInputStreamGLibType() types.GType { | |
| 32 | + | return xFilterInputStreamGLibType() | |
| 33 | + | } | |
| 34 | + | ||
| 28 | 35 | func FilterInputStreamNewFromInternalPtr(ptr uintptr) *FilterInputStream { | |
| 29 | 36 | cls := &FilterInputStream{} | |
| 30 | 37 | cls.Ptr = ptr | |
| @@ -81,6 +88,8 @@ func init() { | |||
| 81 | 88 | panic(err) | |
| 82 | 89 | } | |
| 83 | 90 | ||
| 91 | + | core.PuregoSafeRegister(&xFilterInputStreamGLibType, lib, "g_filter_input_stream_get_type") | |
| 92 | + | ||
| 84 | 93 | core.PuregoSafeRegister(&xFilterInputStreamGetBaseStream, lib, "g_filter_input_stream_get_base_stream") | |
| 85 | 94 | core.PuregoSafeRegister(&xFilterInputStreamGetCloseBaseStream, lib, "g_filter_input_stream_get_close_base_stream") | |
| 86 | 95 | core.PuregoSafeRegister(&xFilterInputStreamSetCloseBaseStream, lib, "g_filter_input_stream_set_close_base_stream") | |
M v4/gio/gfilteroutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type FilterOutputStreamClass struct { | |
| @@ -25,6 +26,12 @@ type FilterOutputStream struct { | |||
| 25 | 26 | OutputStream | |
| 26 | 27 | } | |
| 27 | 28 | ||
| 29 | + | var xFilterOutputStreamGLibType func() types.GType | |
| 30 | + | ||
| 31 | + | func FilterOutputStreamGLibType() types.GType { | |
| 32 | + | return xFilterOutputStreamGLibType() | |
| 33 | + | } | |
| 34 | + | ||
| 28 | 35 | func FilterOutputStreamNewFromInternalPtr(ptr uintptr) *FilterOutputStream { | |
| 29 | 36 | cls := &FilterOutputStream{} | |
| 30 | 37 | cls.Ptr = ptr | |
| @@ -81,6 +88,8 @@ func init() { | |||
| 81 | 88 | panic(err) | |
| 82 | 89 | } | |
| 83 | 90 | ||
| 91 | + | core.PuregoSafeRegister(&xFilterOutputStreamGLibType, lib, "g_filter_output_stream_get_type") | |
| 92 | + | ||
| 84 | 93 | core.PuregoSafeRegister(&xFilterOutputStreamGetBaseStream, lib, "g_filter_output_stream_get_base_stream") | |
| 85 | 94 | core.PuregoSafeRegister(&xFilterOutputStreamGetCloseBaseStream, lib, "g_filter_output_stream_get_close_base_stream") | |
| 86 | 95 | core.PuregoSafeRegister(&xFilterOutputStreamSetCloseBaseStream, lib, "g_filter_output_stream_set_close_base_stream") | |
M v4/gio/gicon.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // GIconIface is used to implement GIcon types for various | |
| @@ -55,6 +56,13 @@ type Icon interface { | |||
| 55 | 56 | Serialize() *glib.Variant | |
| 56 | 57 | ToString() string | |
| 57 | 58 | } | |
| 59 | + | ||
| 60 | + | var xIconGLibType func() types.GType | |
| 61 | + | ||
| 62 | + | func IconGLibType() types.GType { | |
| 63 | + | return xIconGLibType() | |
| 64 | + | } | |
| 65 | + | ||
| 58 | 66 | type IconBase struct { | |
| 59 | 67 | Ptr uintptr | |
| 60 | 68 | } | |
| @@ -167,10 +175,13 @@ func init() { | |||
| 167 | 175 | if err != nil { | |
| 168 | 176 | panic(err) | |
| 169 | 177 | } | |
| 178 | + | ||
| 170 | 179 | core.PuregoSafeRegister(&xIconDeserialize, lib, "g_icon_deserialize") | |
| 171 | 180 | core.PuregoSafeRegister(&xIconHash, lib, "g_icon_hash") | |
| 172 | 181 | core.PuregoSafeRegister(&xIconNewForString, lib, "g_icon_new_for_string") | |
| 173 | 182 | ||
| 183 | + | core.PuregoSafeRegister(&xIconGLibType, lib, "g_icon_get_type") | |
| 184 | + | ||
| 174 | 185 | core.PuregoSafeRegister(&XGIconEqual, lib, "g_icon_equal") | |
| 175 | 186 | core.PuregoSafeRegister(&XGIconSerialize, lib, "g_icon_serialize") | |
| 176 | 187 | core.PuregoSafeRegister(&XGIconToString, lib, "g_icon_to_string") | |
M v4/gio/ginetaddress.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type InetAddressClass struct { | |
| @@ -38,6 +39,12 @@ type InetAddress struct { | |||
| 38 | 39 | gobject.Object | |
| 39 | 40 | } | |
| 40 | 41 | ||
| 42 | + | var xInetAddressGLibType func() types.GType | |
| 43 | + | ||
| 44 | + | func InetAddressGLibType() types.GType { | |
| 45 | + | return xInetAddressGLibType() | |
| 46 | + | } | |
| 47 | + | ||
| 41 | 48 | func InetAddressNewFromInternalPtr(ptr uintptr) *InetAddress { | |
| 42 | 49 | cls := &InetAddress{} | |
| 43 | 50 | cls.Ptr = ptr | |
| @@ -266,6 +273,8 @@ func init() { | |||
| 266 | 273 | panic(err) | |
| 267 | 274 | } | |
| 268 | 275 | ||
| 276 | + | core.PuregoSafeRegister(&xInetAddressGLibType, lib, "g_inet_address_get_type") | |
| 277 | + | ||
| 269 | 278 | core.PuregoSafeRegister(&xNewInetAddressAny, lib, "g_inet_address_new_any") | |
| 270 | 279 | core.PuregoSafeRegister(&xNewInetAddressFromBytes, lib, "g_inet_address_new_from_bytes") | |
| 271 | 280 | core.PuregoSafeRegister(&xNewInetAddressFromString, lib, "g_inet_address_new_from_string") | |
M v4/gio/ginetaddressmask.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type InetAddressMaskClass struct { | |
| @@ -33,6 +34,12 @@ type InetAddressMask struct { | |||
| 33 | 34 | gobject.Object | |
| 34 | 35 | } | |
| 35 | 36 | ||
| 37 | + | var xInetAddressMaskGLibType func() types.GType | |
| 38 | + | ||
| 39 | + | func InetAddressMaskGLibType() types.GType { | |
| 40 | + | return xInetAddressMaskGLibType() | |
| 41 | + | } | |
| 42 | + | ||
| 36 | 43 | func InetAddressMaskNewFromInternalPtr(ptr uintptr) *InetAddressMask { | |
| 37 | 44 | cls := &InetAddressMask{} | |
| 38 | 45 | cls.Ptr = ptr | |
| @@ -210,6 +217,8 @@ func init() { | |||
| 210 | 217 | panic(err) | |
| 211 | 218 | } | |
| 212 | 219 | ||
| 220 | + | core.PuregoSafeRegister(&xInetAddressMaskGLibType, lib, "g_inet_address_mask_get_type") | |
| 221 | + | ||
| 213 | 222 | core.PuregoSafeRegister(&xNewInetAddressMask, lib, "g_inet_address_mask_new") | |
| 214 | 223 | core.PuregoSafeRegister(&xNewInetAddressMaskFromString, lib, "g_inet_address_mask_new_from_string") | |
| 215 | 224 | ||
M v4/gio/ginetsocketaddress.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type InetSocketAddressClass struct { | |
| @@ -30,6 +31,12 @@ type InetSocketAddress struct { | |||
| 30 | 31 | SocketAddress | |
| 31 | 32 | } | |
| 32 | 33 | ||
| 34 | + | var xInetSocketAddressGLibType func() types.GType | |
| 35 | + | ||
| 36 | + | func InetSocketAddressGLibType() types.GType { | |
| 37 | + | return xInetSocketAddressGLibType() | |
| 38 | + | } | |
| 39 | + | ||
| 33 | 40 | func InetSocketAddressNewFromInternalPtr(ptr uintptr) *InetSocketAddress { | |
| 34 | 41 | cls := &InetSocketAddress{} | |
| 35 | 42 | cls.Ptr = ptr | |
| @@ -178,6 +185,8 @@ func init() { | |||
| 178 | 185 | panic(err) | |
| 179 | 186 | } | |
| 180 | 187 | ||
| 188 | + | core.PuregoSafeRegister(&xInetSocketAddressGLibType, lib, "g_inet_socket_address_get_type") | |
| 189 | + | ||
| 181 | 190 | core.PuregoSafeRegister(&xNewInetSocketAddress, lib, "g_inet_socket_address_new") | |
| 182 | 191 | core.PuregoSafeRegister(&xNewInetSocketAddressFromString, lib, "g_inet_socket_address_new_from_string") | |
| 183 | 192 | ||
M v4/gio/ginitable.go +10 -0
| @@ -50,6 +50,13 @@ type Initable interface { | |||
| 50 | 50 | SetGoPointer(uintptr) | |
| 51 | 51 | Init(CancellableVar *Cancellable) bool | |
| 52 | 52 | } | |
| 53 | + | ||
| 54 | + | var xInitableGLibType func() types.GType | |
| 55 | + | ||
| 56 | + | func InitableGLibType() types.GType { | |
| 57 | + | return xInitableGLibType() | |
| 58 | + | } | |
| 59 | + | ||
| 53 | 60 | type InitableBase struct { | |
| 54 | 61 | Ptr uintptr | |
| 55 | 62 | } | |
| @@ -141,8 +148,11 @@ func init() { | |||
| 141 | 148 | if err != nil { | |
| 142 | 149 | panic(err) | |
| 143 | 150 | } | |
| 151 | + | ||
| 144 | 152 | core.PuregoSafeRegister(&xInitableNewv, lib, "g_initable_newv") | |
| 145 | 153 | ||
| 154 | + | core.PuregoSafeRegister(&xInitableGLibType, lib, "g_initable_get_type") | |
| 155 | + | ||
| 146 | 156 | core.PuregoSafeRegister(&XGInitableInit, lib, "g_initable_init") | |
| 147 | 157 | ||
| 148 | 158 | } | |
M v4/gio/ginputstream.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type InputStreamClass struct { | |
| @@ -40,6 +41,12 @@ type InputStream struct { | |||
| 40 | 41 | gobject.Object | |
| 41 | 42 | } | |
| 42 | 43 | ||
| 44 | + | var xInputStreamGLibType func() types.GType | |
| 45 | + | ||
| 46 | + | func InputStreamGLibType() types.GType { | |
| 47 | + | return xInputStreamGLibType() | |
| 48 | + | } | |
| 49 | + | ||
| 43 | 50 | func InputStreamNewFromInternalPtr(ptr uintptr) *InputStream { | |
| 44 | 51 | cls := &InputStream{} | |
| 45 | 52 | cls.Ptr = ptr | |
| @@ -472,6 +479,8 @@ func init() { | |||
| 472 | 479 | panic(err) | |
| 473 | 480 | } | |
| 474 | 481 | ||
| 482 | + | core.PuregoSafeRegister(&xInputStreamGLibType, lib, "g_input_stream_get_type") | |
| 483 | + | ||
| 475 | 484 | core.PuregoSafeRegister(&xInputStreamClearPending, lib, "g_input_stream_clear_pending") | |
| 476 | 485 | core.PuregoSafeRegister(&xInputStreamClose, lib, "g_input_stream_close") | |
| 477 | 486 | core.PuregoSafeRegister(&xInputStreamCloseAsync, lib, "g_input_stream_close_async") | |
M v4/gio/gio-2.0.go +154 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | var xIoErrorQuark func() glib.Quark | |
| @@ -76,6 +77,12 @@ type AppInfoMonitor struct { | |||
| 76 | 77 | gobject.Object | |
| 77 | 78 | } | |
| 78 | 79 | ||
| 80 | + | var xAppInfoMonitorGLibType func() types.GType | |
| 81 | + | ||
| 82 | + | func AppInfoMonitorGLibType() types.GType { | |
| 83 | + | return xAppInfoMonitorGLibType() | |
| 84 | + | } | |
| 85 | + | ||
| 79 | 86 | func AppInfoMonitorNewFromInternalPtr(ptr uintptr) *AppInfoMonitor { | |
| 80 | 87 | cls := &AppInfoMonitor{} | |
| 81 | 88 | cls.Ptr = ptr | |
| @@ -141,6 +148,12 @@ type BytesIcon struct { | |||
| 141 | 148 | gobject.Object | |
| 142 | 149 | } | |
| 143 | 150 | ||
| 151 | + | var xBytesIconGLibType func() types.GType | |
| 152 | + | ||
| 153 | + | func BytesIconGLibType() types.GType { | |
| 154 | + | return xBytesIconGLibType() | |
| 155 | + | } | |
| 156 | + | ||
| 144 | 157 | func BytesIconNewFromInternalPtr(ptr uintptr) *BytesIcon { | |
| 145 | 158 | cls := &BytesIcon{} | |
| 146 | 159 | cls.Ptr = ptr | |
| @@ -278,6 +291,12 @@ type DBusActionGroup struct { | |||
| 278 | 291 | gobject.Object | |
| 279 | 292 | } | |
| 280 | 293 | ||
| 294 | + | var xDBusActionGroupGLibType func() types.GType | |
| 295 | + | ||
| 296 | + | func DBusActionGroupGLibType() types.GType { | |
| 297 | + | return xDBusActionGroupGLibType() | |
| 298 | + | } | |
| 299 | + | ||
| 281 | 300 | func DBusActionGroupNewFromInternalPtr(ptr uintptr) *DBusActionGroup { | |
| 282 | 301 | cls := &DBusActionGroup{} | |
| 283 | 302 | cls.Ptr = ptr | |
| @@ -653,6 +672,12 @@ type DBusAuthObserver struct { | |||
| 653 | 672 | gobject.Object | |
| 654 | 673 | } | |
| 655 | 674 | ||
| 675 | + | var xDBusAuthObserverGLibType func() types.GType | |
| 676 | + | ||
| 677 | + | func DBusAuthObserverGLibType() types.GType { | |
| 678 | + | return xDBusAuthObserverGLibType() | |
| 679 | + | } | |
| 680 | + | ||
| 656 | 681 | func DBusAuthObserverNewFromInternalPtr(ptr uintptr) *DBusAuthObserver { | |
| 657 | 682 | cls := &DBusAuthObserver{} | |
| 658 | 683 | cls.Ptr = ptr | |
| @@ -795,6 +820,12 @@ type DBusConnection struct { | |||
| 795 | 820 | gobject.Object | |
| 796 | 821 | } | |
| 797 | 822 | ||
| 823 | + | var xDBusConnectionGLibType func() types.GType | |
| 824 | + | ||
| 825 | + | func DBusConnectionGLibType() types.GType { | |
| 826 | + | return xDBusConnectionGLibType() | |
| 827 | + | } | |
| 828 | + | ||
| 798 | 829 | func DBusConnectionNewFromInternalPtr(ptr uintptr) *DBusConnection { | |
| 799 | 830 | cls := &DBusConnection{} | |
| 800 | 831 | cls.Ptr = ptr | |
| @@ -2114,6 +2145,12 @@ type DBusMenuModel struct { | |||
| 2114 | 2145 | MenuModel | |
| 2115 | 2146 | } | |
| 2116 | 2147 | ||
| 2148 | + | var xDBusMenuModelGLibType func() types.GType | |
| 2149 | + | ||
| 2150 | + | func DBusMenuModelGLibType() types.GType { | |
| 2151 | + | return xDBusMenuModelGLibType() | |
| 2152 | + | } | |
| 2153 | + | ||
| 2117 | 2154 | func DBusMenuModelNewFromInternalPtr(ptr uintptr) *DBusMenuModel { | |
| 2118 | 2155 | cls := &DBusMenuModel{} | |
| 2119 | 2156 | cls.Ptr = ptr | |
| @@ -2157,6 +2194,12 @@ type DBusMessage struct { | |||
| 2157 | 2194 | gobject.Object | |
| 2158 | 2195 | } | |
| 2159 | 2196 | ||
| 2197 | + | var xDBusMessageGLibType func() types.GType | |
| 2198 | + | ||
| 2199 | + | func DBusMessageGLibType() types.GType { | |
| 2200 | + | return xDBusMessageGLibType() | |
| 2201 | + | } | |
| 2202 | + | ||
| 2160 | 2203 | func DBusMessageNewFromInternalPtr(ptr uintptr) *DBusMessage { | |
| 2161 | 2204 | cls := &DBusMessage{} | |
| 2162 | 2205 | cls.Ptr = ptr | |
| @@ -2807,6 +2850,12 @@ type DBusMethodInvocation struct { | |||
| 2807 | 2850 | gobject.Object | |
| 2808 | 2851 | } | |
| 2809 | 2852 | ||
| 2853 | + | var xDBusMethodInvocationGLibType func() types.GType | |
| 2854 | + | ||
| 2855 | + | func DBusMethodInvocationGLibType() types.GType { | |
| 2856 | + | return xDBusMethodInvocationGLibType() | |
| 2857 | + | } | |
| 2858 | + | ||
| 2810 | 2859 | func DBusMethodInvocationNewFromInternalPtr(ptr uintptr) *DBusMethodInvocation { | |
| 2811 | 2860 | cls := &DBusMethodInvocation{} | |
| 2812 | 2861 | cls.Ptr = ptr | |
| @@ -3131,6 +3180,12 @@ type DBusServer struct { | |||
| 3131 | 3180 | gobject.Object | |
| 3132 | 3181 | } | |
| 3133 | 3182 | ||
| 3183 | + | var xDBusServerGLibType func() types.GType | |
| 3184 | + | ||
| 3185 | + | func DBusServerGLibType() types.GType { | |
| 3186 | + | return xDBusServerGLibType() | |
| 3187 | + | } | |
| 3188 | + | ||
| 3134 | 3189 | func DBusServerNewFromInternalPtr(ptr uintptr) *DBusServer { | |
| 3135 | 3190 | cls := &DBusServer{} | |
| 3136 | 3191 | cls.Ptr = ptr | |
| @@ -3344,6 +3399,12 @@ type Menu struct { | |||
| 3344 | 3399 | MenuModel | |
| 3345 | 3400 | } | |
| 3346 | 3401 | ||
| 3402 | + | var xMenuGLibType func() types.GType | |
| 3403 | + | ||
| 3404 | + | func MenuGLibType() types.GType { | |
| 3405 | + | return xMenuGLibType() | |
| 3406 | + | } | |
| 3407 | + | ||
| 3347 | 3408 | func MenuNewFromInternalPtr(ptr uintptr) *Menu { | |
| 3348 | 3409 | cls := &Menu{} | |
| 3349 | 3410 | cls.Ptr = ptr | |
| @@ -3571,6 +3632,12 @@ type MenuItem struct { | |||
| 3571 | 3632 | gobject.Object | |
| 3572 | 3633 | } | |
| 3573 | 3634 | ||
| 3635 | + | var xMenuItemGLibType func() types.GType | |
| 3636 | + | ||
| 3637 | + | func MenuItemGLibType() types.GType { | |
| 3638 | + | return xMenuItemGLibType() | |
| 3639 | + | } | |
| 3640 | + | ||
| 3574 | 3641 | func MenuItemNewFromInternalPtr(ptr uintptr) *MenuItem { | |
| 3575 | 3642 | cls := &MenuItem{} | |
| 3576 | 3643 | cls.Ptr = ptr | |
| @@ -4044,6 +4111,12 @@ type Notification struct { | |||
| 4044 | 4111 | gobject.Object | |
| 4045 | 4112 | } | |
| 4046 | 4113 | ||
| 4114 | + | var xNotificationGLibType func() types.GType | |
| 4115 | + | ||
| 4116 | + | func NotificationGLibType() types.GType { | |
| 4117 | + | return xNotificationGLibType() | |
| 4118 | + | } | |
| 4119 | + | ||
| 4047 | 4120 | func NotificationNewFromInternalPtr(ptr uintptr) *Notification { | |
| 4048 | 4121 | cls := &Notification{} | |
| 4049 | 4122 | cls.Ptr = ptr | |
| @@ -4293,6 +4366,12 @@ type PropertyAction struct { | |||
| 4293 | 4366 | gobject.Object | |
| 4294 | 4367 | } | |
| 4295 | 4368 | ||
| 4369 | + | var xPropertyActionGLibType func() types.GType | |
| 4370 | + | ||
| 4371 | + | func PropertyActionGLibType() types.GType { | |
| 4372 | + | return xPropertyActionGLibType() | |
| 4373 | + | } | |
| 4374 | + | ||
| 4296 | 4375 | func PropertyActionNewFromInternalPtr(ptr uintptr) *PropertyAction { | |
| 4297 | 4376 | cls := &PropertyAction{} | |
| 4298 | 4377 | cls.Ptr = ptr | |
| @@ -4455,6 +4534,12 @@ type SimpleAction struct { | |||
| 4455 | 4534 | gobject.Object | |
| 4456 | 4535 | } | |
| 4457 | 4536 | ||
| 4537 | + | var xSimpleActionGLibType func() types.GType | |
| 4538 | + | ||
| 4539 | + | func SimpleActionGLibType() types.GType { | |
| 4540 | + | return xSimpleActionGLibType() | |
| 4541 | + | } | |
| 4542 | + | ||
| 4458 | 4543 | func SimpleActionNewFromInternalPtr(ptr uintptr) *SimpleAction { | |
| 4459 | 4544 | cls := &SimpleAction{} | |
| 4460 | 4545 | cls.Ptr = ptr | |
| @@ -4769,6 +4854,12 @@ type SimpleIOStream struct { | |||
| 4769 | 4854 | IOStream | |
| 4770 | 4855 | } | |
| 4771 | 4856 | ||
| 4857 | + | var xSimpleIOStreamGLibType func() types.GType | |
| 4858 | + | ||
| 4859 | + | func SimpleIOStreamGLibType() types.GType { | |
| 4860 | + | return xSimpleIOStreamGLibType() | |
| 4861 | + | } | |
| 4862 | + | ||
| 4772 | 4863 | func SimpleIOStreamNewFromInternalPtr(ptr uintptr) *SimpleIOStream { | |
| 4773 | 4864 | cls := &SimpleIOStream{} | |
| 4774 | 4865 | cls.Ptr = ptr | |
| @@ -4809,6 +4900,12 @@ type SimplePermission struct { | |||
| 4809 | 4900 | Permission | |
| 4810 | 4901 | } | |
| 4811 | 4902 | ||
| 4903 | + | var xSimplePermissionGLibType func() types.GType | |
| 4904 | + | ||
| 4905 | + | func SimplePermissionGLibType() types.GType { | |
| 4906 | + | return xSimplePermissionGLibType() | |
| 4907 | + | } | |
| 4908 | + | ||
| 4812 | 4909 | func SimplePermissionNewFromInternalPtr(ptr uintptr) *SimplePermission { | |
| 4813 | 4910 | cls := &SimplePermission{} | |
| 4814 | 4911 | cls.Ptr = ptr | |
| @@ -4901,6 +4998,12 @@ type Subprocess struct { | |||
| 4901 | 4998 | gobject.Object | |
| 4902 | 4999 | } | |
| 4903 | 5000 | ||
| 5001 | + | var xSubprocessGLibType func() types.GType | |
| 5002 | + | ||
| 5003 | + | func SubprocessGLibType() types.GType { | |
| 5004 | + | return xSubprocessGLibType() | |
| 5005 | + | } | |
| 5006 | + | ||
| 4904 | 5007 | func SubprocessNewFromInternalPtr(ptr uintptr) *Subprocess { | |
| 4905 | 5008 | cls := &Subprocess{} | |
| 4906 | 5009 | cls.Ptr = ptr | |
| @@ -5428,6 +5531,12 @@ type SubprocessLauncher struct { | |||
| 5428 | 5531 | gobject.Object | |
| 5429 | 5532 | } | |
| 5430 | 5533 | ||
| 5534 | + | var xSubprocessLauncherGLibType func() types.GType | |
| 5535 | + | ||
| 5536 | + | func SubprocessLauncherGLibType() types.GType { | |
| 5537 | + | return xSubprocessLauncherGLibType() | |
| 5538 | + | } | |
| 5539 | + | ||
| 5431 | 5540 | func SubprocessLauncherNewFromInternalPtr(ptr uintptr) *SubprocessLauncher { | |
| 5432 | 5541 | cls := &SubprocessLauncher{} | |
| 5433 | 5542 | cls.Ptr = ptr | |
| @@ -5876,6 +5985,12 @@ type TestDBus struct { | |||
| 5876 | 5985 | gobject.Object | |
| 5877 | 5986 | } | |
| 5878 | 5987 | ||
| 5988 | + | var xTestDBusGLibType func() types.GType | |
| 5989 | + | ||
| 5990 | + | func TestDBusGLibType() types.GType { | |
| 5991 | + | return xTestDBusGLibType() | |
| 5992 | + | } | |
| 5993 | + | ||
| 5879 | 5994 | func TestDBusNewFromInternalPtr(ptr uintptr) *TestDBus { | |
| 5880 | 5995 | cls := &TestDBus{} | |
| 5881 | 5996 | cls.Ptr = ptr | |
| @@ -5998,25 +6113,36 @@ func init() { | |||
| 5998 | 6113 | if err != nil { | |
| 5999 | 6114 | panic(err) | |
| 6000 | 6115 | } | |
| 6116 | + | ||
| 6001 | 6117 | core.PuregoSafeRegister(&xIoErrorQuark, lib, "g_io_error_quark") | |
| 6002 | 6118 | core.PuregoSafeRegister(&xResolverErrorQuark, lib, "g_resolver_error_quark") | |
| 6003 | 6119 | core.PuregoSafeRegister(&xResourceErrorQuark, lib, "g_resource_error_quark") | |
| 6004 | 6120 | core.PuregoSafeRegister(&xTlsChannelBindingErrorQuark, lib, "g_tls_channel_binding_error_quark") | |
| 6005 | 6121 | core.PuregoSafeRegister(&xTlsErrorQuark, lib, "g_tls_error_quark") | |
| 6006 | 6122 | ||
| 6123 | + | core.PuregoSafeRegister(&xAppInfoMonitorGLibType, lib, "g_app_info_monitor_get_type") | |
| 6124 | + | ||
| 6007 | 6125 | core.PuregoSafeRegister(&xAppInfoMonitorGet, lib, "g_app_info_monitor_get") | |
| 6008 | 6126 | ||
| 6127 | + | core.PuregoSafeRegister(&xBytesIconGLibType, lib, "g_bytes_icon_get_type") | |
| 6128 | + | ||
| 6009 | 6129 | core.PuregoSafeRegister(&xNewBytesIcon, lib, "g_bytes_icon_new") | |
| 6010 | 6130 | ||
| 6011 | 6131 | core.PuregoSafeRegister(&xBytesIconGetBytes, lib, "g_bytes_icon_get_bytes") | |
| 6012 | 6132 | ||
| 6133 | + | core.PuregoSafeRegister(&xDBusActionGroupGLibType, lib, "g_dbus_action_group_get_type") | |
| 6134 | + | ||
| 6013 | 6135 | core.PuregoSafeRegister(&xDBusActionGroupGet, lib, "g_dbus_action_group_get") | |
| 6014 | 6136 | ||
| 6137 | + | core.PuregoSafeRegister(&xDBusAuthObserverGLibType, lib, "g_dbus_auth_observer_get_type") | |
| 6138 | + | ||
| 6015 | 6139 | core.PuregoSafeRegister(&xNewDBusAuthObserver, lib, "g_dbus_auth_observer_new") | |
| 6016 | 6140 | ||
| 6017 | 6141 | core.PuregoSafeRegister(&xDBusAuthObserverAllowMechanism, lib, "g_dbus_auth_observer_allow_mechanism") | |
| 6018 | 6142 | core.PuregoSafeRegister(&xDBusAuthObserverAuthorizeAuthenticatedPeer, lib, "g_dbus_auth_observer_authorize_authenticated_peer") | |
| 6019 | 6143 | ||
| 6144 | + | core.PuregoSafeRegister(&xDBusConnectionGLibType, lib, "g_dbus_connection_get_type") | |
| 6145 | + | ||
| 6020 | 6146 | core.PuregoSafeRegister(&xNewDBusConnectionFinish, lib, "g_dbus_connection_new_finish") | |
| 6021 | 6147 | core.PuregoSafeRegister(&xNewDBusConnectionForAddressFinish, lib, "g_dbus_connection_new_for_address_finish") | |
| 6022 | 6148 | core.PuregoSafeRegister(&xNewDBusConnectionForAddressSync, lib, "g_dbus_connection_new_for_address_sync") | |
| @@ -6067,8 +6193,12 @@ func init() { | |||
| 6067 | 6193 | core.PuregoSafeRegister(&xDBusConnectionNew, lib, "g_dbus_connection_new") | |
| 6068 | 6194 | core.PuregoSafeRegister(&xDBusConnectionNewForAddress, lib, "g_dbus_connection_new_for_address") | |
| 6069 | 6195 | ||
| 6196 | + | core.PuregoSafeRegister(&xDBusMenuModelGLibType, lib, "g_dbus_menu_model_get_type") | |
| 6197 | + | ||
| 6070 | 6198 | core.PuregoSafeRegister(&xDBusMenuModelGet, lib, "g_dbus_menu_model_get") | |
| 6071 | 6199 | ||
| 6200 | + | core.PuregoSafeRegister(&xDBusMessageGLibType, lib, "g_dbus_message_get_type") | |
| 6201 | + | ||
| 6072 | 6202 | core.PuregoSafeRegister(&xNewDBusMessage, lib, "g_dbus_message_new") | |
| 6073 | 6203 | core.PuregoSafeRegister(&xNewDBusMessageFromBlob, lib, "g_dbus_message_new_from_blob") | |
| 6074 | 6204 | core.PuregoSafeRegister(&xNewDBusMessageMethodCall, lib, "g_dbus_message_new_method_call") | |
| @@ -6121,6 +6251,8 @@ func init() { | |||
| 6121 | 6251 | ||
| 6122 | 6252 | core.PuregoSafeRegister(&xDBusMessageBytesNeeded, lib, "g_dbus_message_bytes_needed") | |
| 6123 | 6253 | ||
| 6254 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGLibType, lib, "g_dbus_method_invocation_get_type") | |
| 6255 | + | ||
| 6124 | 6256 | core.PuregoSafeRegister(&xDBusMethodInvocationGetConnection, lib, "g_dbus_method_invocation_get_connection") | |
| 6125 | 6257 | core.PuregoSafeRegister(&xDBusMethodInvocationGetInterfaceName, lib, "g_dbus_method_invocation_get_interface_name") | |
| 6126 | 6258 | core.PuregoSafeRegister(&xDBusMethodInvocationGetMessage, lib, "g_dbus_method_invocation_get_message") | |
| @@ -6140,6 +6272,8 @@ func init() { | |||
| 6140 | 6272 | core.PuregoSafeRegister(&xDBusMethodInvocationReturnValueWithUnixFdList, lib, "g_dbus_method_invocation_return_value_with_unix_fd_list") | |
| 6141 | 6273 | core.PuregoSafeRegister(&xDBusMethodInvocationTakeError, lib, "g_dbus_method_invocation_take_error") | |
| 6142 | 6274 | ||
| 6275 | + | core.PuregoSafeRegister(&xDBusServerGLibType, lib, "g_dbus_server_get_type") | |
| 6276 | + | ||
| 6143 | 6277 | core.PuregoSafeRegister(&xNewDBusServerSync, lib, "g_dbus_server_new_sync") | |
| 6144 | 6278 | ||
| 6145 | 6279 | core.PuregoSafeRegister(&xDBusServerGetClientAddress, lib, "g_dbus_server_get_client_address") | |
| @@ -6149,6 +6283,8 @@ func init() { | |||
| 6149 | 6283 | core.PuregoSafeRegister(&xDBusServerStart, lib, "g_dbus_server_start") | |
| 6150 | 6284 | core.PuregoSafeRegister(&xDBusServerStop, lib, "g_dbus_server_stop") | |
| 6151 | 6285 | ||
| 6286 | + | core.PuregoSafeRegister(&xMenuGLibType, lib, "g_menu_get_type") | |
| 6287 | + | ||
| 6152 | 6288 | core.PuregoSafeRegister(&xNewMenu, lib, "g_menu_new") | |
| 6153 | 6289 | ||
| 6154 | 6290 | core.PuregoSafeRegister(&xMenuAppend, lib, "g_menu_append") | |
| @@ -6167,6 +6303,8 @@ func init() { | |||
| 6167 | 6303 | core.PuregoSafeRegister(&xMenuRemove, lib, "g_menu_remove") | |
| 6168 | 6304 | core.PuregoSafeRegister(&xMenuRemoveAll, lib, "g_menu_remove_all") | |
| 6169 | 6305 | ||
| 6306 | + | core.PuregoSafeRegister(&xMenuItemGLibType, lib, "g_menu_item_get_type") | |
| 6307 | + | ||
| 6170 | 6308 | core.PuregoSafeRegister(&xNewMenuItem, lib, "g_menu_item_new") | |
| 6171 | 6309 | core.PuregoSafeRegister(&xNewMenuItemFromModel, lib, "g_menu_item_new_from_model") | |
| 6172 | 6310 | core.PuregoSafeRegister(&xNewMenuItemSection, lib, "g_menu_item_new_section") | |
| @@ -6186,6 +6324,8 @@ func init() { | |||
| 6186 | 6324 | core.PuregoSafeRegister(&xMenuItemSetSection, lib, "g_menu_item_set_section") | |
| 6187 | 6325 | core.PuregoSafeRegister(&xMenuItemSetSubmenu, lib, "g_menu_item_set_submenu") | |
| 6188 | 6326 | ||
| 6327 | + | core.PuregoSafeRegister(&xNotificationGLibType, lib, "g_notification_get_type") | |
| 6328 | + | ||
| 6189 | 6329 | core.PuregoSafeRegister(&xNewNotification, lib, "g_notification_new") | |
| 6190 | 6330 | ||
| 6191 | 6331 | core.PuregoSafeRegister(&xNotificationAddButton, lib, "g_notification_add_button") | |
| @@ -6201,8 +6341,12 @@ func init() { | |||
| 6201 | 6341 | core.PuregoSafeRegister(&xNotificationSetTitle, lib, "g_notification_set_title") | |
| 6202 | 6342 | core.PuregoSafeRegister(&xNotificationSetUrgent, lib, "g_notification_set_urgent") | |
| 6203 | 6343 | ||
| 6344 | + | core.PuregoSafeRegister(&xPropertyActionGLibType, lib, "g_property_action_get_type") | |
| 6345 | + | ||
| 6204 | 6346 | core.PuregoSafeRegister(&xNewPropertyAction, lib, "g_property_action_new") | |
| 6205 | 6347 | ||
| 6348 | + | core.PuregoSafeRegister(&xSimpleActionGLibType, lib, "g_simple_action_get_type") | |
| 6349 | + | ||
| 6206 | 6350 | core.PuregoSafeRegister(&xNewSimpleAction, lib, "g_simple_action_new") | |
| 6207 | 6351 | core.PuregoSafeRegister(&xNewSimpleActionStateful, lib, "g_simple_action_new_stateful") | |
| 6208 | 6352 | ||
| @@ -6210,10 +6354,16 @@ func init() { | |||
| 6210 | 6354 | core.PuregoSafeRegister(&xSimpleActionSetState, lib, "g_simple_action_set_state") | |
| 6211 | 6355 | core.PuregoSafeRegister(&xSimpleActionSetStateHint, lib, "g_simple_action_set_state_hint") | |
| 6212 | 6356 | ||
| 6357 | + | core.PuregoSafeRegister(&xSimpleIOStreamGLibType, lib, "g_simple_io_stream_get_type") | |
| 6358 | + | ||
| 6213 | 6359 | core.PuregoSafeRegister(&xNewSimpleIOStream, lib, "g_simple_io_stream_new") | |
| 6214 | 6360 | ||
| 6361 | + | core.PuregoSafeRegister(&xSimplePermissionGLibType, lib, "g_simple_permission_get_type") | |
| 6362 | + | ||
| 6215 | 6363 | core.PuregoSafeRegister(&xNewSimplePermission, lib, "g_simple_permission_new") | |
| 6216 | 6364 | ||
| 6365 | + | core.PuregoSafeRegister(&xSubprocessGLibType, lib, "g_subprocess_get_type") | |
| 6366 | + | ||
| 6217 | 6367 | core.PuregoSafeRegister(&xNewSubprocess, lib, "g_subprocess_new") | |
| 6218 | 6368 | core.PuregoSafeRegister(&xNewSubprocessv, lib, "g_subprocess_newv") | |
| 6219 | 6369 | ||
| @@ -6242,6 +6392,8 @@ func init() { | |||
| 6242 | 6392 | core.PuregoSafeRegister(&xSubprocessWaitCheckFinish, lib, "g_subprocess_wait_check_finish") | |
| 6243 | 6393 | core.PuregoSafeRegister(&xSubprocessWaitFinish, lib, "g_subprocess_wait_finish") | |
| 6244 | 6394 | ||
| 6395 | + | core.PuregoSafeRegister(&xSubprocessLauncherGLibType, lib, "g_subprocess_launcher_get_type") | |
| 6396 | + | ||
| 6245 | 6397 | core.PuregoSafeRegister(&xNewSubprocessLauncher, lib, "g_subprocess_launcher_new") | |
| 6246 | 6398 | ||
| 6247 | 6399 | core.PuregoSafeRegister(&xSubprocessLauncherClose, lib, "g_subprocess_launcher_close") | |
| @@ -6262,6 +6414,8 @@ func init() { | |||
| 6262 | 6414 | core.PuregoSafeRegister(&xSubprocessLauncherTakeStdoutFd, lib, "g_subprocess_launcher_take_stdout_fd") | |
| 6263 | 6415 | core.PuregoSafeRegister(&xSubprocessLauncherUnsetenv, lib, "g_subprocess_launcher_unsetenv") | |
| 6264 | 6416 | ||
| 6417 | + | core.PuregoSafeRegister(&xTestDBusGLibType, lib, "g_test_dbus_get_type") | |
| 6418 | + | ||
| 6265 | 6419 | core.PuregoSafeRegister(&xNewTestDBus, lib, "g_test_dbus_new") | |
| 6266 | 6420 | ||
| 6267 | 6421 | core.PuregoSafeRegister(&xTestDBusAddServiceDir, lib, "g_test_dbus_add_service_dir") | |
M v4/gio/gioenums.go +482 -0
| @@ -1,9 +1,17 @@ | |||
| 1 | 1 | // Package gio was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | + | import "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 5 | + | ||
| 4 | 6 | // Flags used when creating a #GAppInfo. | |
| 5 | 7 | type AppInfoCreateFlags int | |
| 6 | 8 | ||
| 9 | + | var xAppInfoCreateFlagsGLibType func() types.GType | |
| 10 | + | ||
| 11 | + | func AppInfoCreateFlagsGLibType() types.GType { | |
| 12 | + | return xAppInfoCreateFlagsGLibType() | |
| 13 | + | } | |
| 14 | + | ||
| 7 | 15 | const ( | |
| 8 | 16 | ||
| 9 | 17 | // No flags. | |
| @@ -19,6 +27,12 @@ const ( | |||
| 19 | 27 | // Flags used to define the behaviour of a #GApplication. | |
| 20 | 28 | type ApplicationFlags int | |
| 21 | 29 | ||
| 30 | + | var xApplicationFlagsGLibType func() types.GType | |
| 31 | + | ||
| 32 | + | func ApplicationFlagsGLibType() types.GType { | |
| 33 | + | return xApplicationFlagsGLibType() | |
| 34 | + | } | |
| 35 | + | ||
| 22 | 36 | const ( | |
| 23 | 37 | ||
| 24 | 38 | // Default | |
| @@ -75,6 +89,12 @@ const ( | |||
| 75 | 89 | // situation. | |
| 76 | 90 | type AskPasswordFlags int | |
| 77 | 91 | ||
| 92 | + | var xAskPasswordFlagsGLibType func() types.GType | |
| 93 | + | ||
| 94 | + | func AskPasswordFlagsGLibType() types.GType { | |
| 95 | + | return xAskPasswordFlagsGLibType() | |
| 96 | + | } | |
| 97 | + | ||
| 78 | 98 | const ( | |
| 79 | 99 | ||
| 80 | 100 | // operation requires a password. | |
| @@ -94,6 +114,12 @@ const ( | |||
| 94 | 114 | // Flags used in g_bus_own_name(). | |
| 95 | 115 | type BusNameOwnerFlags int | |
| 96 | 116 | ||
| 117 | + | var xBusNameOwnerFlagsGLibType func() types.GType | |
| 118 | + | ||
| 119 | + | func BusNameOwnerFlagsGLibType() types.GType { | |
| 120 | + | return xBusNameOwnerFlagsGLibType() | |
| 121 | + | } | |
| 122 | + | ||
| 97 | 123 | const ( | |
| 98 | 124 | ||
| 99 | 125 | // No flags set. | |
| @@ -111,6 +137,12 @@ const ( | |||
| 111 | 137 | // Flags used in g_bus_watch_name(). | |
| 112 | 138 | type BusNameWatcherFlags int | |
| 113 | 139 | ||
| 140 | + | var xBusNameWatcherFlagsGLibType func() types.GType | |
| 141 | + | ||
| 142 | + | func BusNameWatcherFlagsGLibType() types.GType { | |
| 143 | + | return xBusNameWatcherFlagsGLibType() | |
| 144 | + | } | |
| 145 | + | ||
| 114 | 146 | const ( | |
| 115 | 147 | ||
| 116 | 148 | // No flags set. | |
| @@ -124,6 +156,12 @@ const ( | |||
| 124 | 156 | // Flags used when calling a g_converter_convert(). | |
| 125 | 157 | type ConverterFlags int | |
| 126 | 158 | ||
| 159 | + | var xConverterFlagsGLibType func() types.GType | |
| 160 | + | ||
| 161 | + | func ConverterFlagsGLibType() types.GType { | |
| 162 | + | return xConverterFlagsGLibType() | |
| 163 | + | } | |
| 164 | + | ||
| 127 | 165 | const ( | |
| 128 | 166 | ||
| 129 | 167 | // No flags. | |
| @@ -137,6 +175,12 @@ const ( | |||
| 137 | 175 | // Flags used in g_dbus_connection_call() and similar APIs. | |
| 138 | 176 | type DBusCallFlags int | |
| 139 | 177 | ||
| 178 | + | var xDBusCallFlagsGLibType func() types.GType | |
| 179 | + | ||
| 180 | + | func DBusCallFlagsGLibType() types.GType { | |
| 181 | + | return xDBusCallFlagsGLibType() | |
| 182 | + | } | |
| 183 | + | ||
| 140 | 184 | const ( | |
| 141 | 185 | ||
| 142 | 186 | // No flags set. | |
| @@ -153,6 +197,12 @@ const ( | |||
| 153 | 197 | // Capabilities negotiated with the remote peer. | |
| 154 | 198 | type DBusCapabilityFlags int | |
| 155 | 199 | ||
| 200 | + | var xDBusCapabilityFlagsGLibType func() types.GType | |
| 201 | + | ||
| 202 | + | func DBusCapabilityFlagsGLibType() types.GType { | |
| 203 | + | return xDBusCapabilityFlagsGLibType() | |
| 204 | + | } | |
| 205 | + | ||
| 156 | 206 | const ( | |
| 157 | 207 | ||
| 158 | 208 | // No flags set. | |
| @@ -165,6 +215,12 @@ const ( | |||
| 165 | 215 | // Flags used when creating a new #GDBusConnection. | |
| 166 | 216 | type DBusConnectionFlags int | |
| 167 | 217 | ||
| 218 | + | var xDBusConnectionFlagsGLibType func() types.GType | |
| 219 | + | ||
| 220 | + | func DBusConnectionFlagsGLibType() types.GType { | |
| 221 | + | return xDBusConnectionFlagsGLibType() | |
| 222 | + | } | |
| 223 | + | ||
| 168 | 224 | const ( | |
| 169 | 225 | ||
| 170 | 226 | // No flags set. | |
| @@ -191,6 +247,12 @@ const ( | |||
| 191 | 247 | // Flags describing the behavior of a #GDBusInterfaceSkeleton instance. | |
| 192 | 248 | type DBusInterfaceSkeletonFlags int | |
| 193 | 249 | ||
| 250 | + | var xDBusInterfaceSkeletonFlagsGLibType func() types.GType | |
| 251 | + | ||
| 252 | + | func DBusInterfaceSkeletonFlagsGLibType() types.GType { | |
| 253 | + | return xDBusInterfaceSkeletonFlagsGLibType() | |
| 254 | + | } | |
| 255 | + | ||
| 194 | 256 | const ( | |
| 195 | 257 | ||
| 196 | 258 | // No flags set. | |
| @@ -205,6 +267,12 @@ const ( | |||
| 205 | 267 | // Message flags used in #GDBusMessage. | |
| 206 | 268 | type DBusMessageFlags int | |
| 207 | 269 | ||
| 270 | + | var xDBusMessageFlagsGLibType func() types.GType | |
| 271 | + | ||
| 272 | + | func DBusMessageFlagsGLibType() types.GType { | |
| 273 | + | return xDBusMessageFlagsGLibType() | |
| 274 | + | } | |
| 275 | + | ||
| 208 | 276 | const ( | |
| 209 | 277 | ||
| 210 | 278 | // No flags set. | |
| @@ -223,6 +291,12 @@ const ( | |||
| 223 | 291 | // Flags used when constructing a #GDBusObjectManagerClient. | |
| 224 | 292 | type DBusObjectManagerClientFlags int | |
| 225 | 293 | ||
| 294 | + | var xDBusObjectManagerClientFlagsGLibType func() types.GType | |
| 295 | + | ||
| 296 | + | func DBusObjectManagerClientFlagsGLibType() types.GType { | |
| 297 | + | return xDBusObjectManagerClientFlagsGLibType() | |
| 298 | + | } | |
| 299 | + | ||
| 226 | 300 | const ( | |
| 227 | 301 | ||
| 228 | 302 | // No flags set. | |
| @@ -237,6 +311,12 @@ const ( | |||
| 237 | 311 | // Flags describing the access control of a D-Bus property. | |
| 238 | 312 | type DBusPropertyInfoFlags int | |
| 239 | 313 | ||
| 314 | + | var xDBusPropertyInfoFlagsGLibType func() types.GType | |
| 315 | + | ||
| 316 | + | func DBusPropertyInfoFlagsGLibType() types.GType { | |
| 317 | + | return xDBusPropertyInfoFlagsGLibType() | |
| 318 | + | } | |
| 319 | + | ||
| 240 | 320 | const ( | |
| 241 | 321 | ||
| 242 | 322 | // No flags set. | |
| @@ -250,6 +330,12 @@ const ( | |||
| 250 | 330 | // Flags used when constructing an instance of a #GDBusProxy derived class. | |
| 251 | 331 | type DBusProxyFlags int | |
| 252 | 332 | ||
| 333 | + | var xDBusProxyFlagsGLibType func() types.GType | |
| 334 | + | ||
| 335 | + | func DBusProxyFlagsGLibType() types.GType { | |
| 336 | + | return xDBusProxyFlagsGLibType() | |
| 337 | + | } | |
| 338 | + | ||
| 253 | 339 | const ( | |
| 254 | 340 | ||
| 255 | 341 | // No flags set. | |
| @@ -278,6 +364,12 @@ const ( | |||
| 278 | 364 | // Flags used when sending #GDBusMessages on a #GDBusConnection. | |
| 279 | 365 | type DBusSendMessageFlags int | |
| 280 | 366 | ||
| 367 | + | var xDBusSendMessageFlagsGLibType func() types.GType | |
| 368 | + | ||
| 369 | + | func DBusSendMessageFlagsGLibType() types.GType { | |
| 370 | + | return xDBusSendMessageFlagsGLibType() | |
| 371 | + | } | |
| 372 | + | ||
| 281 | 373 | const ( | |
| 282 | 374 | ||
| 283 | 375 | // No flags set. | |
| @@ -291,6 +383,12 @@ const ( | |||
| 291 | 383 | // Flags used when creating a #GDBusServer. | |
| 292 | 384 | type DBusServerFlags int | |
| 293 | 385 | ||
| 386 | + | var xDBusServerFlagsGLibType func() types.GType | |
| 387 | + | ||
| 388 | + | func DBusServerFlagsGLibType() types.GType { | |
| 389 | + | return xDBusServerFlagsGLibType() | |
| 390 | + | } | |
| 391 | + | ||
| 294 | 392 | const ( | |
| 295 | 393 | ||
| 296 | 394 | // No flags set. | |
| @@ -310,6 +408,12 @@ const ( | |||
| 310 | 408 | // Flags used when subscribing to signals via g_dbus_connection_signal_subscribe(). | |
| 311 | 409 | type DBusSignalFlags int | |
| 312 | 410 | ||
| 411 | + | var xDBusSignalFlagsGLibType func() types.GType | |
| 412 | + | ||
| 413 | + | func DBusSignalFlagsGLibType() types.GType { | |
| 414 | + | return xDBusSignalFlagsGLibType() | |
| 415 | + | } | |
| 416 | + | ||
| 313 | 417 | const ( | |
| 314 | 418 | ||
| 315 | 419 | // No flags set. | |
| @@ -330,6 +434,12 @@ const ( | |||
| 330 | 434 | // Flags passed to g_dbus_connection_register_subtree(). | |
| 331 | 435 | type DBusSubtreeFlags int | |
| 332 | 436 | ||
| 437 | + | var xDBusSubtreeFlagsGLibType func() types.GType | |
| 438 | + | ||
| 439 | + | func DBusSubtreeFlagsGLibType() types.GType { | |
| 440 | + | return xDBusSubtreeFlagsGLibType() | |
| 441 | + | } | |
| 442 | + | ||
| 333 | 443 | const ( | |
| 334 | 444 | ||
| 335 | 445 | // No flags set. | |
| @@ -343,6 +453,12 @@ const ( | |||
| 343 | 453 | // Flags used when starting a drive. | |
| 344 | 454 | type DriveStartFlags int | |
| 345 | 455 | ||
| 456 | + | var xDriveStartFlagsGLibType func() types.GType | |
| 457 | + | ||
| 458 | + | func DriveStartFlagsGLibType() types.GType { | |
| 459 | + | return xDriveStartFlagsGLibType() | |
| 460 | + | } | |
| 461 | + | ||
| 346 | 462 | const ( | |
| 347 | 463 | ||
| 348 | 464 | // No flags set. | |
| @@ -352,6 +468,12 @@ const ( | |||
| 352 | 468 | // Flags specifying the behaviour of an attribute. | |
| 353 | 469 | type FileAttributeInfoFlags int | |
| 354 | 470 | ||
| 471 | + | var xFileAttributeInfoFlagsGLibType func() types.GType | |
| 472 | + | ||
| 473 | + | func FileAttributeInfoFlagsGLibType() types.GType { | |
| 474 | + | return xFileAttributeInfoFlagsGLibType() | |
| 475 | + | } | |
| 476 | + | ||
| 355 | 477 | const ( | |
| 356 | 478 | ||
| 357 | 479 | // no flags set. | |
| @@ -365,6 +487,12 @@ const ( | |||
| 365 | 487 | // Flags used when copying or moving files. | |
| 366 | 488 | type FileCopyFlags int | |
| 367 | 489 | ||
| 490 | + | var xFileCopyFlagsGLibType func() types.GType | |
| 491 | + | ||
| 492 | + | func FileCopyFlagsGLibType() types.GType { | |
| 493 | + | return xFileCopyFlagsGLibType() | |
| 494 | + | } | |
| 495 | + | ||
| 368 | 496 | const ( | |
| 369 | 497 | ||
| 370 | 498 | // No flags set. | |
| @@ -386,6 +514,12 @@ const ( | |||
| 386 | 514 | // Flags used when an operation may create a file. | |
| 387 | 515 | type FileCreateFlags int | |
| 388 | 516 | ||
| 517 | + | var xFileCreateFlagsGLibType func() types.GType | |
| 518 | + | ||
| 519 | + | func FileCreateFlagsGLibType() types.GType { | |
| 520 | + | return xFileCreateFlagsGLibType() | |
| 521 | + | } | |
| 522 | + | ||
| 389 | 523 | const ( | |
| 390 | 524 | ||
| 391 | 525 | // No flags set. | |
| @@ -409,6 +543,12 @@ const ( | |||
| 409 | 543 | // Flags that can be used with g_file_measure_disk_usage(). | |
| 410 | 544 | type FileMeasureFlags int | |
| 411 | 545 | ||
| 546 | + | var xFileMeasureFlagsGLibType func() types.GType | |
| 547 | + | ||
| 548 | + | func FileMeasureFlagsGLibType() types.GType { | |
| 549 | + | return xFileMeasureFlagsGLibType() | |
| 550 | + | } | |
| 551 | + | ||
| 412 | 552 | const ( | |
| 413 | 553 | ||
| 414 | 554 | // No flags set. | |
| @@ -430,6 +570,12 @@ const ( | |||
| 430 | 570 | // Flags used to set what a #GFileMonitor will watch for. | |
| 431 | 571 | type FileMonitorFlags int | |
| 432 | 572 | ||
| 573 | + | var xFileMonitorFlagsGLibType func() types.GType | |
| 574 | + | ||
| 575 | + | func FileMonitorFlagsGLibType() types.GType { | |
| 576 | + | return xFileMonitorFlagsGLibType() | |
| 577 | + | } | |
| 578 | + | ||
| 433 | 579 | const ( | |
| 434 | 580 | ||
| 435 | 581 | // No flags set. | |
| @@ -456,6 +602,12 @@ const ( | |||
| 456 | 602 | // Flags used when querying a #GFileInfo. | |
| 457 | 603 | type FileQueryInfoFlags int | |
| 458 | 604 | ||
| 605 | + | var xFileQueryInfoFlagsGLibType func() types.GType | |
| 606 | + | ||
| 607 | + | func FileQueryInfoFlagsGLibType() types.GType { | |
| 608 | + | return xFileQueryInfoFlagsGLibType() | |
| 609 | + | } | |
| 610 | + | ||
| 459 | 611 | const ( | |
| 460 | 612 | ||
| 461 | 613 | // No flags set. | |
| @@ -467,6 +619,12 @@ const ( | |||
| 467 | 619 | // GIOStreamSpliceFlags determine how streams should be spliced. | |
| 468 | 620 | type IOStreamSpliceFlags int | |
| 469 | 621 | ||
| 622 | + | var xIOStreamSpliceFlagsGLibType func() types.GType | |
| 623 | + | ||
| 624 | + | func IOStreamSpliceFlagsGLibType() types.GType { | |
| 625 | + | return xIOStreamSpliceFlagsGLibType() | |
| 626 | + | } | |
| 627 | + | ||
| 470 | 628 | const ( | |
| 471 | 629 | ||
| 472 | 630 | // Do not close either stream. | |
| @@ -485,6 +643,12 @@ const ( | |||
| 485 | 643 | // Flags used when mounting a mount. | |
| 486 | 644 | type MountMountFlags int | |
| 487 | 645 | ||
| 646 | + | var xMountMountFlagsGLibType func() types.GType | |
| 647 | + | ||
| 648 | + | func MountMountFlagsGLibType() types.GType { | |
| 649 | + | return xMountMountFlagsGLibType() | |
| 650 | + | } | |
| 651 | + | ||
| 488 | 652 | const ( | |
| 489 | 653 | ||
| 490 | 654 | // No flags set. | |
| @@ -494,6 +658,12 @@ const ( | |||
| 494 | 658 | // Flags used when an unmounting a mount. | |
| 495 | 659 | type MountUnmountFlags int | |
| 496 | 660 | ||
| 661 | + | var xMountUnmountFlagsGLibType func() types.GType | |
| 662 | + | ||
| 663 | + | func MountUnmountFlagsGLibType() types.GType { | |
| 664 | + | return xMountUnmountFlagsGLibType() | |
| 665 | + | } | |
| 666 | + | ||
| 497 | 667 | const ( | |
| 498 | 668 | ||
| 499 | 669 | // No flags set. | |
| @@ -506,6 +676,12 @@ const ( | |||
| 506 | 676 | // GOutputStreamSpliceFlags determine how streams should be spliced. | |
| 507 | 677 | type OutputStreamSpliceFlags int | |
| 508 | 678 | ||
| 679 | + | var xOutputStreamSpliceFlagsGLibType func() types.GType | |
| 680 | + | ||
| 681 | + | func OutputStreamSpliceFlagsGLibType() types.GType { | |
| 682 | + | return xOutputStreamSpliceFlagsGLibType() | |
| 683 | + | } | |
| 684 | + | ||
| 509 | 685 | const ( | |
| 510 | 686 | ||
| 511 | 687 | // Do not close either stream. | |
| @@ -522,6 +698,12 @@ const ( | |||
| 522 | 698 | // bundle. | |
| 523 | 699 | type ResourceFlags int | |
| 524 | 700 | ||
| 701 | + | var xResourceFlagsGLibType func() types.GType | |
| 702 | + | ||
| 703 | + | func ResourceFlagsGLibType() types.GType { | |
| 704 | + | return xResourceFlagsGLibType() | |
| 705 | + | } | |
| 706 | + | ||
| 525 | 707 | const ( | |
| 526 | 708 | ||
| 527 | 709 | // No flags set. | |
| @@ -533,6 +715,12 @@ const ( | |||
| 533 | 715 | // GResourceLookupFlags determine how resource path lookups are handled. | |
| 534 | 716 | type ResourceLookupFlags int | |
| 535 | 717 | ||
| 718 | + | var xResourceLookupFlagsGLibType func() types.GType | |
| 719 | + | ||
| 720 | + | func ResourceLookupFlagsGLibType() types.GType { | |
| 721 | + | return xResourceLookupFlagsGLibType() | |
| 722 | + | } | |
| 723 | + | ||
| 536 | 724 | const ( | |
| 537 | 725 | ||
| 538 | 726 | // No flags set. | |
| @@ -546,6 +734,12 @@ const ( | |||
| 546 | 734 | // the right system header and pass in the flag. | |
| 547 | 735 | type SocketMsgFlags int | |
| 548 | 736 | ||
| 737 | + | var xSocketMsgFlagsGLibType func() types.GType | |
| 738 | + | ||
| 739 | + | func SocketMsgFlagsGLibType() types.GType { | |
| 740 | + | return xSocketMsgFlagsGLibType() | |
| 741 | + | } | |
| 742 | + | ||
| 549 | 743 | const ( | |
| 550 | 744 | ||
| 551 | 745 | // No flags. | |
| @@ -571,6 +765,12 @@ const ( | |||
| 571 | 765 | // %G_SUBPROCESS_FLAGS_STDOUT_SILENCE. | |
| 572 | 766 | type SubprocessFlags int | |
| 573 | 767 | ||
| 768 | + | var xSubprocessFlagsGLibType func() types.GType | |
| 769 | + | ||
| 770 | + | func SubprocessFlagsGLibType() types.GType { | |
| 771 | + | return xSubprocessFlagsGLibType() | |
| 772 | + | } | |
| 773 | + | ||
| 574 | 774 | const ( | |
| 575 | 775 | ||
| 576 | 776 | // No flags. | |
| @@ -614,6 +814,12 @@ const ( | |||
| 614 | 814 | // Flags to define future #GTestDBus behaviour. | |
| 615 | 815 | type TestDBusFlags int | |
| 616 | 816 | ||
| 817 | + | var xTestDBusFlagsGLibType func() types.GType | |
| 818 | + | ||
| 819 | + | func TestDBusFlagsGLibType() types.GType { | |
| 820 | + | return xTestDBusFlagsGLibType() | |
| 821 | + | } | |
| 822 | + | ||
| 617 | 823 | const ( | |
| 618 | 824 | ||
| 619 | 825 | // No flags. | |
| @@ -633,6 +839,12 @@ const ( | |||
| 633 | 839 | // other problems exist with the certificate. | |
| 634 | 840 | type TlsCertificateFlags int | |
| 635 | 841 | ||
| 842 | + | var xTlsCertificateFlagsGLibType func() types.GType | |
| 843 | + | ||
| 844 | + | func TlsCertificateFlagsGLibType() types.GType { | |
| 845 | + | return xTlsCertificateFlagsGLibType() | |
| 846 | + | } | |
| 847 | + | ||
| 636 | 848 | const ( | |
| 637 | 849 | ||
| 638 | 850 | // The signing certificate authority is | |
| @@ -663,6 +875,12 @@ const ( | |||
| 663 | 875 | // Flags for g_tls_database_verify_chain(). | |
| 664 | 876 | type TlsDatabaseVerifyFlags int | |
| 665 | 877 | ||
| 878 | + | var xTlsDatabaseVerifyFlagsGLibType func() types.GType | |
| 879 | + | ||
| 880 | + | func TlsDatabaseVerifyFlagsGLibType() types.GType { | |
| 881 | + | return xTlsDatabaseVerifyFlagsGLibType() | |
| 882 | + | } | |
| 883 | + | ||
| 666 | 884 | const ( | |
| 667 | 885 | ||
| 668 | 886 | // No verification flags | |
| @@ -672,6 +890,12 @@ const ( | |||
| 672 | 890 | // Various flags for the password. | |
| 673 | 891 | type TlsPasswordFlags int | |
| 674 | 892 | ||
| 893 | + | var xTlsPasswordFlagsGLibType func() types.GType | |
| 894 | + | ||
| 895 | + | func TlsPasswordFlagsGLibType() types.GType { | |
| 896 | + | return xTlsPasswordFlagsGLibType() | |
| 897 | + | } | |
| 898 | + | ||
| 675 | 899 | const ( | |
| 676 | 900 | ||
| 677 | 901 | // No flags | |
| @@ -698,6 +922,12 @@ const ( | |||
| 698 | 922 | // An enumeration for well-known message buses. | |
| 699 | 923 | type BusType int | |
| 700 | 924 | ||
| 925 | + | var xBusTypeGLibType func() types.GType | |
| 926 | + | ||
| 927 | + | func BusTypeGLibType() types.GType { | |
| 928 | + | return xBusTypeGLibType() | |
| 929 | + | } | |
| 930 | + | ||
| 701 | 931 | const ( | |
| 702 | 932 | ||
| 703 | 933 | // An alias for the message bus that activated the process, if any. | |
| @@ -713,6 +943,12 @@ const ( | |||
| 713 | 943 | // Results returned from g_converter_convert(). | |
| 714 | 944 | type ConverterResult int | |
| 715 | 945 | ||
| 946 | + | var xConverterResultGLibType func() types.GType | |
| 947 | + | ||
| 948 | + | func ConverterResultGLibType() types.GType { | |
| 949 | + | return xConverterResultGLibType() | |
| 950 | + | } | |
| 951 | + | ||
| 716 | 952 | const ( | |
| 717 | 953 | ||
| 718 | 954 | // There was an error during conversion. | |
| @@ -728,6 +964,12 @@ const ( | |||
| 728 | 964 | // Enumeration describing different kinds of native credential types. | |
| 729 | 965 | type CredentialsType int | |
| 730 | 966 | ||
| 967 | + | var xCredentialsTypeGLibType func() types.GType | |
| 968 | + | ||
| 969 | + | func CredentialsTypeGLibType() types.GType { | |
| 970 | + | return xCredentialsTypeGLibType() | |
| 971 | + | } | |
| 972 | + | ||
| 731 | 973 | const ( | |
| 732 | 974 | ||
| 733 | 975 | // Indicates an invalid native credential type. | |
| @@ -751,6 +993,12 @@ const ( | |||
| 751 | 993 | // Error codes for the %G_DBUS_ERROR error domain. | |
| 752 | 994 | type DBusError int | |
| 753 | 995 | ||
| 996 | + | var xDBusErrorGLibType func() types.GType | |
| 997 | + | ||
| 998 | + | func DBusErrorGLibType() types.GType { | |
| 999 | + | return xDBusErrorGLibType() | |
| 1000 | + | } | |
| 1001 | + | ||
| 754 | 1002 | const ( | |
| 755 | 1003 | ||
| 756 | 1004 | // A generic error; "something went wrong" - see the error message for | |
| @@ -858,6 +1106,12 @@ const ( | |||
| 858 | 1106 | // Enumeration used to describe the byte order of a D-Bus message. | |
| 859 | 1107 | type DBusMessageByteOrder int | |
| 860 | 1108 | ||
| 1109 | + | var xDBusMessageByteOrderGLibType func() types.GType | |
| 1110 | + | ||
| 1111 | + | func DBusMessageByteOrderGLibType() types.GType { | |
| 1112 | + | return xDBusMessageByteOrderGLibType() | |
| 1113 | + | } | |
| 1114 | + | ||
| 861 | 1115 | const ( | |
| 862 | 1116 | ||
| 863 | 1117 | // The byte order is big endian. | |
| @@ -869,6 +1123,12 @@ const ( | |||
| 869 | 1123 | // Header fields used in #GDBusMessage. | |
| 870 | 1124 | type DBusMessageHeaderField int | |
| 871 | 1125 | ||
| 1126 | + | var xDBusMessageHeaderFieldGLibType func() types.GType | |
| 1127 | + | ||
| 1128 | + | func DBusMessageHeaderFieldGLibType() types.GType { | |
| 1129 | + | return xDBusMessageHeaderFieldGLibType() | |
| 1130 | + | } | |
| 1131 | + | ||
| 872 | 1132 | const ( | |
| 873 | 1133 | ||
| 874 | 1134 | // Not a valid header field. | |
| @@ -896,6 +1156,12 @@ const ( | |||
| 896 | 1156 | // Message types used in #GDBusMessage. | |
| 897 | 1157 | type DBusMessageType int | |
| 898 | 1158 | ||
| 1159 | + | var xDBusMessageTypeGLibType func() types.GType | |
| 1160 | + | ||
| 1161 | + | func DBusMessageTypeGLibType() types.GType { | |
| 1162 | + | return xDBusMessageTypeGLibType() | |
| 1163 | + | } | |
| 1164 | + | ||
| 899 | 1165 | const ( | |
| 900 | 1166 | ||
| 901 | 1167 | // Message is of invalid type. | |
| @@ -914,6 +1180,12 @@ const ( | |||
| 914 | 1180 | // across various machine architectures. | |
| 915 | 1181 | type DataStreamByteOrder int | |
| 916 | 1182 | ||
| 1183 | + | var xDataStreamByteOrderGLibType func() types.GType | |
| 1184 | + | ||
| 1185 | + | func DataStreamByteOrderGLibType() types.GType { | |
| 1186 | + | return xDataStreamByteOrderGLibType() | |
| 1187 | + | } | |
| 1188 | + | ||
| 917 | 1189 | const ( | |
| 918 | 1190 | ||
| 919 | 1191 | // Selects Big Endian byte order. | |
| @@ -927,6 +1199,12 @@ const ( | |||
| 927 | 1199 | // #GDataStreamNewlineType is used when checking for or setting the line endings for a given file. | |
| 928 | 1200 | type DataStreamNewlineType int | |
| 929 | 1201 | ||
| 1202 | + | var xDataStreamNewlineTypeGLibType func() types.GType | |
| 1203 | + | ||
| 1204 | + | func DataStreamNewlineTypeGLibType() types.GType { | |
| 1205 | + | return xDataStreamNewlineTypeGLibType() | |
| 1206 | + | } | |
| 1207 | + | ||
| 930 | 1208 | const ( | |
| 931 | 1209 | ||
| 932 | 1210 | // Selects "LF" line endings, common on most modern UNIX platforms. | |
| @@ -942,6 +1220,12 @@ const ( | |||
| 942 | 1220 | // Enumeration describing how a drive can be started/stopped. | |
| 943 | 1221 | type DriveStartStopType int | |
| 944 | 1222 | ||
| 1223 | + | var xDriveStartStopTypeGLibType func() types.GType | |
| 1224 | + | ||
| 1225 | + | func DriveStartStopTypeGLibType() types.GType { | |
| 1226 | + | return xDriveStartStopTypeGLibType() | |
| 1227 | + | } | |
| 1228 | + | ||
| 945 | 1229 | const ( | |
| 946 | 1230 | ||
| 947 | 1231 | // Unknown or drive doesn't support | |
| @@ -968,6 +1252,12 @@ const ( | |||
| 968 | 1252 | // to #GEmblem. | |
| 969 | 1253 | type EmblemOrigin int | |
| 970 | 1254 | ||
| 1255 | + | var xEmblemOriginGLibType func() types.GType | |
| 1256 | + | ||
| 1257 | + | func EmblemOriginGLibType() types.GType { | |
| 1258 | + | return xEmblemOriginGLibType() | |
| 1259 | + | } | |
| 1260 | + | ||
| 971 | 1261 | const ( | |
| 972 | 1262 | ||
| 973 | 1263 | // Emblem of unknown origin | |
| @@ -983,6 +1273,12 @@ const ( | |||
| 983 | 1273 | // Used by g_file_set_attributes_from_info() when setting file attributes. | |
| 984 | 1274 | type FileAttributeStatus int | |
| 985 | 1275 | ||
| 1276 | + | var xFileAttributeStatusGLibType func() types.GType | |
| 1277 | + | ||
| 1278 | + | func FileAttributeStatusGLibType() types.GType { | |
| 1279 | + | return xFileAttributeStatusGLibType() | |
| 1280 | + | } | |
| 1281 | + | ||
| 986 | 1282 | const ( | |
| 987 | 1283 | ||
| 988 | 1284 | // Attribute value is unset (empty). | |
| @@ -996,6 +1292,12 @@ const ( | |||
| 996 | 1292 | // The data types for file attributes. | |
| 997 | 1293 | type FileAttributeType int | |
| 998 | 1294 | ||
| 1295 | + | var xFileAttributeTypeGLibType func() types.GType | |
| 1296 | + | ||
| 1297 | + | func FileAttributeTypeGLibType() types.GType { | |
| 1298 | + | return xFileAttributeTypeGLibType() | |
| 1299 | + | } | |
| 1300 | + | ||
| 999 | 1301 | const ( | |
| 1000 | 1302 | ||
| 1001 | 1303 | // indicates an invalid or uninitialized type. | |
| @@ -1023,6 +1325,12 @@ const ( | |||
| 1023 | 1325 | // Specifies what type of event a monitor event is. | |
| 1024 | 1326 | type FileMonitorEvent int | |
| 1025 | 1327 | ||
| 1328 | + | var xFileMonitorEventGLibType func() types.GType | |
| 1329 | + | ||
| 1330 | + | func FileMonitorEventGLibType() types.GType { | |
| 1331 | + | return xFileMonitorEventGLibType() | |
| 1332 | + | } | |
| 1333 | + | ||
| 1026 | 1334 | const ( | |
| 1027 | 1335 | ||
| 1028 | 1336 | // a file changed. | |
| @@ -1068,6 +1376,12 @@ const ( | |||
| 1068 | 1376 | // %G_FILE_TYPE_REGULAR or %G_FILE_TYPE_DIRECTORY. | |
| 1069 | 1377 | type FileType int | |
| 1070 | 1378 | ||
| 1379 | + | var xFileTypeGLibType func() types.GType | |
| 1380 | + | ||
| 1381 | + | func FileTypeGLibType() types.GType { | |
| 1382 | + | return xFileTypeGLibType() | |
| 1383 | + | } | |
| 1384 | + | ||
| 1071 | 1385 | const ( | |
| 1072 | 1386 | ||
| 1073 | 1387 | // File's type is unknown. | |
| @@ -1093,6 +1407,12 @@ const ( | |||
| 1093 | 1407 | // %G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW. | |
| 1094 | 1408 | type FilesystemPreviewType int | |
| 1095 | 1409 | ||
| 1410 | + | var xFilesystemPreviewTypeGLibType func() types.GType | |
| 1411 | + | ||
| 1412 | + | func FilesystemPreviewTypeGLibType() types.GType { | |
| 1413 | + | return xFilesystemPreviewTypeGLibType() | |
| 1414 | + | } | |
| 1415 | + | ||
| 1096 | 1416 | const ( | |
| 1097 | 1417 | ||
| 1098 | 1418 | // Only preview files if user has explicitly requested it. | |
| @@ -1125,6 +1445,12 @@ const ( | |||
| 1125 | 1445 | // %G_IO_ERROR_WOULD_BLOCK to callers without allocating a #GError. | |
| 1126 | 1446 | type IOErrorEnum int | |
| 1127 | 1447 | ||
| 1448 | + | var xIOErrorEnumGLibType func() types.GType | |
| 1449 | + | ||
| 1450 | + | func IOErrorEnumGLibType() types.GType { | |
| 1451 | + | return xIOErrorEnumGLibType() | |
| 1452 | + | } | |
| 1453 | + | ||
| 1128 | 1454 | const ( | |
| 1129 | 1455 | ||
| 1130 | 1456 | // Generic error condition for when an operation fails | |
| @@ -1241,6 +1567,12 @@ const ( | |||
| 1241 | 1567 | // Flags for use with g_io_module_scope_new(). | |
| 1242 | 1568 | type IOModuleScopeFlags int | |
| 1243 | 1569 | ||
| 1570 | + | var xIOModuleScopeFlagsGLibType func() types.GType | |
| 1571 | + | ||
| 1572 | + | func IOModuleScopeFlagsGLibType() types.GType { | |
| 1573 | + | return xIOModuleScopeFlagsGLibType() | |
| 1574 | + | } | |
| 1575 | + | ||
| 1244 | 1576 | const ( | |
| 1245 | 1577 | ||
| 1246 | 1578 | // No module scan flags | |
| @@ -1263,6 +1595,12 @@ const ( | |||
| 1263 | 1595 | // ]| | |
| 1264 | 1596 | type MemoryMonitorWarningLevel int | |
| 1265 | 1597 | ||
| 1598 | + | var xMemoryMonitorWarningLevelGLibType func() types.GType | |
| 1599 | + | ||
| 1600 | + | func MemoryMonitorWarningLevelGLibType() types.GType { | |
| 1601 | + | return xMemoryMonitorWarningLevelGLibType() | |
| 1602 | + | } | |
| 1603 | + | ||
| 1266 | 1604 | const ( | |
| 1267 | 1605 | ||
| 1268 | 1606 | // Memory on the device is low, processes | |
| @@ -1283,6 +1621,12 @@ const ( | |||
| 1283 | 1621 | // information is send by the mounting operation. | |
| 1284 | 1622 | type MountOperationResult int | |
| 1285 | 1623 | ||
| 1624 | + | var xMountOperationResultGLibType func() types.GType | |
| 1625 | + | ||
| 1626 | + | func MountOperationResultGLibType() types.GType { | |
| 1627 | + | return xMountOperationResultGLibType() | |
| 1628 | + | } | |
| 1629 | + | ||
| 1286 | 1630 | const ( | |
| 1287 | 1631 | ||
| 1288 | 1632 | // The request was fulfilled and the | |
| @@ -1299,6 +1643,12 @@ const ( | |||
| 1299 | 1643 | // The host's network connectivity state, as reported by #GNetworkMonitor. | |
| 1300 | 1644 | type NetworkConnectivity int | |
| 1301 | 1645 | ||
| 1646 | + | var xNetworkConnectivityGLibType func() types.GType | |
| 1647 | + | ||
| 1648 | + | func NetworkConnectivityGLibType() types.GType { | |
| 1649 | + | return xNetworkConnectivityGLibType() | |
| 1650 | + | } | |
| 1651 | + | ||
| 1302 | 1652 | const ( | |
| 1303 | 1653 | ||
| 1304 | 1654 | // The host is not configured with a | |
| @@ -1320,6 +1670,12 @@ const ( | |||
| 1320 | 1670 | // Priority levels for #GNotifications. | |
| 1321 | 1671 | type NotificationPriority int | |
| 1322 | 1672 | ||
| 1673 | + | var xNotificationPriorityGLibType func() types.GType | |
| 1674 | + | ||
| 1675 | + | func NotificationPriorityGLibType() types.GType { | |
| 1676 | + | return xNotificationPriorityGLibType() | |
| 1677 | + | } | |
| 1678 | + | ||
| 1323 | 1679 | const ( | |
| 1324 | 1680 | ||
| 1325 | 1681 | // the default priority, to be used for the | |
| @@ -1346,6 +1702,12 @@ const ( | |||
| 1346 | 1702 | // to, and later retrieves it again from there. | |
| 1347 | 1703 | type PasswordSave int | |
| 1348 | 1704 | ||
| 1705 | + | var xPasswordSaveGLibType func() types.GType | |
| 1706 | + | ||
| 1707 | + | func PasswordSaveGLibType() types.GType { | |
| 1708 | + | return xPasswordSaveGLibType() | |
| 1709 | + | } | |
| 1710 | + | ||
| 1349 | 1711 | const ( | |
| 1350 | 1712 | ||
| 1351 | 1713 | // never save a password. | |
| @@ -1367,6 +1729,12 @@ const ( | |||
| 1367 | 1729 | // operation to give details about the error that happened. | |
| 1368 | 1730 | type PollableReturn int | |
| 1369 | 1731 | ||
| 1732 | + | var xPollableReturnGLibType func() types.GType | |
| 1733 | + | ||
| 1734 | + | func PollableReturnGLibType() types.GType { | |
| 1735 | + | return xPollableReturnGLibType() | |
| 1736 | + | } | |
| 1737 | + | ||
| 1370 | 1738 | const ( | |
| 1371 | 1739 | ||
| 1372 | 1740 | // Generic error condition for when an operation fails. | |
| @@ -1381,6 +1749,12 @@ const ( | |||
| 1381 | 1749 | // from a #GResolver routine. | |
| 1382 | 1750 | type ResolverError int | |
| 1383 | 1751 | ||
| 1752 | + | var xResolverErrorGLibType func() types.GType | |
| 1753 | + | ||
| 1754 | + | func ResolverErrorGLibType() types.GType { | |
| 1755 | + | return xResolverErrorGLibType() | |
| 1756 | + | } | |
| 1757 | + | ||
| 1384 | 1758 | const ( | |
| 1385 | 1759 | ||
| 1386 | 1760 | // the requested name/address/service was not | |
| @@ -1425,6 +1799,12 @@ const ( | |||
| 1425 | 1799 | // `(s)`, representing a string of the hostname of the name server. | |
| 1426 | 1800 | type ResolverRecordType int | |
| 1427 | 1801 | ||
| 1802 | + | var xResolverRecordTypeGLibType func() types.GType | |
| 1803 | + | ||
| 1804 | + | func ResolverRecordTypeGLibType() types.GType { | |
| 1805 | + | return xResolverRecordTypeGLibType() | |
| 1806 | + | } | |
| 1807 | + | ||
| 1428 | 1808 | const ( | |
| 1429 | 1809 | ||
| 1430 | 1810 | // look up DNS SRV records for a domain | |
| @@ -1443,6 +1823,12 @@ const ( | |||
| 1443 | 1823 | // from a #GResource routine. | |
| 1444 | 1824 | type ResourceError int | |
| 1445 | 1825 | ||
| 1826 | + | var xResourceErrorGLibType func() types.GType | |
| 1827 | + | ||
| 1828 | + | func ResourceErrorGLibType() types.GType { | |
| 1829 | + | return xResourceErrorGLibType() | |
| 1830 | + | } | |
| 1831 | + | ||
| 1446 | 1832 | const ( | |
| 1447 | 1833 | ||
| 1448 | 1834 | // no file was found at the requested path | |
| @@ -1457,6 +1843,12 @@ const ( | |||
| 1457 | 1843 | // Additional values may be added to this type in the future. | |
| 1458 | 1844 | type SocketClientEvent int | |
| 1459 | 1845 | ||
| 1846 | + | var xSocketClientEventGLibType func() types.GType | |
| 1847 | + | ||
| 1848 | + | func SocketClientEventGLibType() types.GType { | |
| 1849 | + | return xSocketClientEventGLibType() | |
| 1850 | + | } | |
| 1851 | + | ||
| 1460 | 1852 | const ( | |
| 1461 | 1853 | ||
| 1462 | 1854 | // The client is doing a DNS lookup. | |
| @@ -1491,6 +1883,12 @@ const ( | |||
| 1491 | 1883 | // if available.) | |
| 1492 | 1884 | type SocketFamily int | |
| 1493 | 1885 | ||
| 1886 | + | var xSocketFamilyGLibType func() types.GType | |
| 1887 | + | ||
| 1888 | + | func SocketFamilyGLibType() types.GType { | |
| 1889 | + | return xSocketFamilyGLibType() | |
| 1890 | + | } | |
| 1891 | + | ||
| 1494 | 1892 | const ( | |
| 1495 | 1893 | ||
| 1496 | 1894 | // no address family | |
| @@ -1509,6 +1907,12 @@ const ( | |||
| 1509 | 1907 | // Additional values may be added to this type in the future. | |
| 1510 | 1908 | type SocketListenerEvent int | |
| 1511 | 1909 | ||
| 1910 | + | var xSocketListenerEventGLibType func() types.GType | |
| 1911 | + | ||
| 1912 | + | func SocketListenerEventGLibType() types.GType { | |
| 1913 | + | return xSocketListenerEventGLibType() | |
| 1914 | + | } | |
| 1915 | + | ||
| 1512 | 1916 | const ( | |
| 1513 | 1917 | ||
| 1514 | 1918 | // The listener is about to bind a socket. | |
| @@ -1532,6 +1936,12 @@ const ( | |||
| 1532 | 1936 | // use protocols not listed here. | |
| 1533 | 1937 | type SocketProtocol int | |
| 1534 | 1938 | ||
| 1939 | + | var xSocketProtocolGLibType func() types.GType | |
| 1940 | + | ||
| 1941 | + | func SocketProtocolGLibType() types.GType { | |
| 1942 | + | return xSocketProtocolGLibType() | |
| 1943 | + | } | |
| 1944 | + | ||
| 1535 | 1945 | const ( | |
| 1536 | 1946 | ||
| 1537 | 1947 | // The protocol type is unknown | |
| @@ -1550,6 +1960,12 @@ const ( | |||
| 1550 | 1960 | // all the socket types. | |
| 1551 | 1961 | type SocketType int | |
| 1552 | 1962 | ||
| 1963 | + | var xSocketTypeGLibType func() types.GType | |
| 1964 | + | ||
| 1965 | + | func SocketTypeGLibType() types.GType { | |
| 1966 | + | return xSocketTypeGLibType() | |
| 1967 | + | } | |
| 1968 | + | ||
| 1553 | 1969 | const ( | |
| 1554 | 1970 | ||
| 1555 | 1971 | // Type unknown or wrong | |
| @@ -1567,6 +1983,12 @@ const ( | |||
| 1567 | 1983 | // The client authentication mode for a #GTlsServerConnection. | |
| 1568 | 1984 | type TlsAuthenticationMode int | |
| 1569 | 1985 | ||
| 1986 | + | var xTlsAuthenticationModeGLibType func() types.GType | |
| 1987 | + | ||
| 1988 | + | func TlsAuthenticationModeGLibType() types.GType { | |
| 1989 | + | return xTlsAuthenticationModeGLibType() | |
| 1990 | + | } | |
| 1991 | + | ||
| 1570 | 1992 | const ( | |
| 1571 | 1993 | ||
| 1572 | 1994 | // client authentication not required | |
| @@ -1582,6 +2004,12 @@ const ( | |||
| 1582 | 2004 | // g_tls_interaction_invoke_request_certificate(). | |
| 1583 | 2005 | type TlsCertificateRequestFlags int | |
| 1584 | 2006 | ||
| 2007 | + | var xTlsCertificateRequestFlagsGLibType func() types.GType | |
| 2008 | + | ||
| 2009 | + | func TlsCertificateRequestFlagsGLibType() types.GType { | |
| 2010 | + | return xTlsCertificateRequestFlagsGLibType() | |
| 2011 | + | } | |
| 2012 | + | ||
| 1585 | 2013 | const ( | |
| 1586 | 2014 | ||
| 1587 | 2015 | // No flags | |
| @@ -1592,6 +2020,12 @@ const ( | |||
| 1592 | 2020 | // indicate a TLS channel binding retrieval error. | |
| 1593 | 2021 | type TlsChannelBindingError int | |
| 1594 | 2022 | ||
| 2023 | + | var xTlsChannelBindingErrorGLibType func() types.GType | |
| 2024 | + | ||
| 2025 | + | func TlsChannelBindingErrorGLibType() types.GType { | |
| 2026 | + | return xTlsChannelBindingErrorGLibType() | |
| 2027 | + | } | |
| 2028 | + | ||
| 1595 | 2029 | const ( | |
| 1596 | 2030 | ||
| 1597 | 2031 | // Either entire binding | |
| @@ -1623,6 +2057,12 @@ const ( | |||
| 1623 | 2057 | // binding type is not currently implemented. | |
| 1624 | 2058 | type TlsChannelBindingType int | |
| 1625 | 2059 | ||
| 2060 | + | var xTlsChannelBindingTypeGLibType func() types.GType | |
| 2061 | + | ||
| 2062 | + | func TlsChannelBindingTypeGLibType() types.GType { | |
| 2063 | + | return xTlsChannelBindingTypeGLibType() | |
| 2064 | + | } | |
| 2065 | + | ||
| 1626 | 2066 | const ( | |
| 1627 | 2067 | ||
| 1628 | 2068 | // [`tls-unique`](https://tools.ietf.org/html/rfc5929#section-3) binding | |
| @@ -1638,6 +2078,12 @@ const ( | |||
| 1638 | 2078 | // and g_tls_database_lookup_certificates_issued_by(). | |
| 1639 | 2079 | type TlsDatabaseLookupFlags int | |
| 1640 | 2080 | ||
| 2081 | + | var xTlsDatabaseLookupFlagsGLibType func() types.GType | |
| 2082 | + | ||
| 2083 | + | func TlsDatabaseLookupFlagsGLibType() types.GType { | |
| 2084 | + | return xTlsDatabaseLookupFlagsGLibType() | |
| 2085 | + | } | |
| 2086 | + | ||
| 1641 | 2087 | const ( | |
| 1642 | 2088 | ||
| 1643 | 2089 | // No lookup flags | |
| @@ -1651,6 +2097,12 @@ const ( | |||
| 1651 | 2097 | // TLS-related routine. | |
| 1652 | 2098 | type TlsError int | |
| 1653 | 2099 | ||
| 2100 | + | var xTlsErrorGLibType func() types.GType | |
| 2101 | + | ||
| 2102 | + | func TlsErrorGLibType() types.GType { | |
| 2103 | + | return xTlsErrorGLibType() | |
| 2104 | + | } | |
| 2105 | + | ||
| 1654 | 2106 | const ( | |
| 1655 | 2107 | ||
| 1656 | 2108 | // No TLS provider is available | |
| @@ -1687,6 +2139,12 @@ const ( | |||
| 1687 | 2139 | // when finishing an interaction request. | |
| 1688 | 2140 | type TlsInteractionResult int | |
| 1689 | 2141 | ||
| 2142 | + | var xTlsInteractionResultGLibType func() types.GType | |
| 2143 | + | ||
| 2144 | + | func TlsInteractionResultGLibType() types.GType { | |
| 2145 | + | return xTlsInteractionResultGLibType() | |
| 2146 | + | } | |
| 2147 | + | ||
| 1690 | 2148 | const ( | |
| 1691 | 2149 | ||
| 1692 | 2150 | // The interaction was unhandled (i.e. not | |
| @@ -1711,6 +2169,12 @@ const ( | |||
| 1711 | 2169 | // than the TLS protocol versions. | |
| 1712 | 2170 | type TlsProtocolVersion int | |
| 1713 | 2171 | ||
| 2172 | + | var xTlsProtocolVersionGLibType func() types.GType | |
| 2173 | + | ||
| 2174 | + | func TlsProtocolVersionGLibType() types.GType { | |
| 2175 | + | return xTlsProtocolVersionGLibType() | |
| 2176 | + | } | |
| 2177 | + | ||
| 1714 | 2178 | const ( | |
| 1715 | 2179 | ||
| 1716 | 2180 | // No protocol version or unknown protocol version | |
| @@ -1735,6 +2199,12 @@ const ( | |||
| 1735 | 2199 | // g_tls_connection_set_rehandshake_mode(). | |
| 1736 | 2200 | type TlsRehandshakeMode int | |
| 1737 | 2201 | ||
| 2202 | + | var xTlsRehandshakeModeGLibType func() types.GType | |
| 2203 | + | ||
| 2204 | + | func TlsRehandshakeModeGLibType() types.GType { | |
| 2205 | + | return xTlsRehandshakeModeGLibType() | |
| 2206 | + | } | |
| 2207 | + | ||
| 1738 | 2208 | const ( | |
| 1739 | 2209 | ||
| 1740 | 2210 | // Never allow rehandshaking | |
| @@ -1760,6 +2230,12 @@ const ( | |||
| 1760 | 2230 | // %G_UNIX_SOCKET_ADDRESS_ABSTRACT. | |
| 1761 | 2231 | type UnixSocketAddressType int | |
| 1762 | 2232 | ||
| 2233 | + | var xUnixSocketAddressTypeGLibType func() types.GType | |
| 2234 | + | ||
| 2235 | + | func UnixSocketAddressTypeGLibType() types.GType { | |
| 2236 | + | return xUnixSocketAddressTypeGLibType() | |
| 2237 | + | } | |
| 2238 | + | ||
| 1763 | 2239 | const ( | |
| 1764 | 2240 | ||
| 1765 | 2241 | // invalid | |
| @@ -1779,6 +2255,12 @@ const ( | |||
| 1779 | 2255 | // and #GZlibCompressor. | |
| 1780 | 2256 | type ZlibCompressorFormat int | |
| 1781 | 2257 | ||
| 2258 | + | var xZlibCompressorFormatGLibType func() types.GType | |
| 2259 | + | ||
| 2260 | + | func ZlibCompressorFormatGLibType() types.GType { | |
| 2261 | + | return xZlibCompressorFormatGLibType() | |
| 2262 | + | } | |
| 2263 | + | ||
| 1782 | 2264 | const ( | |
| 1783 | 2265 | ||
| 1784 | 2266 | // deflate compression with zlib header | |
M v4/gio/gioerror.go +1 -0
| @@ -26,6 +26,7 @@ func init() { | |||
| 26 | 26 | if err != nil { | |
| 27 | 27 | panic(err) | |
| 28 | 28 | } | |
| 29 | + | ||
| 29 | 30 | core.PuregoSafeRegister(&xIoErrorFromErrno, lib, "g_io_error_from_errno") | |
| 30 | 31 | ||
| 31 | 32 | } | |
M v4/gio/giomodule.go +9 -0
| @@ -152,6 +152,12 @@ type IOModule struct { | |||
| 152 | 152 | gobject.TypeModule | |
| 153 | 153 | } | |
| 154 | 154 | ||
| 155 | + | var xIOModuleGLibType func() types.GType | |
| 156 | + | ||
| 157 | + | func IOModuleGLibType() types.GType { | |
| 158 | + | return xIOModuleGLibType() | |
| 159 | + | } | |
| 160 | + | ||
| 155 | 161 | func IOModuleNewFromInternalPtr(ptr uintptr) *IOModule { | |
| 156 | 162 | cls := &IOModule{} | |
| 157 | 163 | cls.Ptr = ptr | |
| @@ -304,6 +310,7 @@ func init() { | |||
| 304 | 310 | if err != nil { | |
| 305 | 311 | panic(err) | |
| 306 | 312 | } | |
| 313 | + | ||
| 307 | 314 | core.PuregoSafeRegister(&xIoExtensionPointImplement, lib, "g_io_extension_point_implement") | |
| 308 | 315 | core.PuregoSafeRegister(&xIoExtensionPointLookup, lib, "g_io_extension_point_lookup") | |
| 309 | 316 | core.PuregoSafeRegister(&xIoExtensionPointRegister, lib, "g_io_extension_point_register") | |
| @@ -315,6 +322,8 @@ func init() { | |||
| 315 | 322 | core.PuregoSafeRegister(&xIOModuleScopeBlock, lib, "g_io_module_scope_block") | |
| 316 | 323 | core.PuregoSafeRegister(&xIOModuleScopeFree, lib, "g_io_module_scope_free") | |
| 317 | 324 | ||
| 325 | + | core.PuregoSafeRegister(&xIOModuleGLibType, lib, "g_io_module_get_type") | |
| 326 | + | ||
| 318 | 327 | core.PuregoSafeRegister(&xNewIOModule, lib, "g_io_module_new") | |
| 319 | 328 | ||
| 320 | 329 | core.PuregoSafeRegister(&xIOModuleLoad, lib, "g_io_module_load") | |
M v4/gio/gioscheduler.go +1 -0
| @@ -40,6 +40,7 @@ func init() { | |||
| 40 | 40 | if err != nil { | |
| 41 | 41 | panic(err) | |
| 42 | 42 | } | |
| 43 | + | ||
| 43 | 44 | core.PuregoSafeRegister(&xIoSchedulerCancelAllJobs, lib, "g_io_scheduler_cancel_all_jobs") | |
| 44 | 45 | core.PuregoSafeRegister(&xIoSchedulerPushJob, lib, "g_io_scheduler_push_job") | |
| 45 | 46 | ||
M v4/gio/giostream.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type IOStreamClass struct { | |
| @@ -75,6 +76,12 @@ type IOStream struct { | |||
| 75 | 76 | gobject.Object | |
| 76 | 77 | } | |
| 77 | 78 | ||
| 79 | + | var xIOStreamGLibType func() types.GType | |
| 80 | + | ||
| 81 | + | func IOStreamGLibType() types.GType { | |
| 82 | + | return xIOStreamGLibType() | |
| 83 | + | } | |
| 84 | + | ||
| 78 | 85 | func IOStreamNewFromInternalPtr(ptr uintptr) *IOStream { | |
| 79 | 86 | cls := &IOStream{} | |
| 80 | 87 | cls.Ptr = ptr | |
| @@ -281,6 +288,8 @@ func init() { | |||
| 281 | 288 | panic(err) | |
| 282 | 289 | } | |
| 283 | 290 | ||
| 291 | + | core.PuregoSafeRegister(&xIOStreamGLibType, lib, "g_io_stream_get_type") | |
| 292 | + | ||
| 284 | 293 | core.PuregoSafeRegister(&xIOStreamClearPending, lib, "g_io_stream_clear_pending") | |
| 285 | 294 | core.PuregoSafeRegister(&xIOStreamClose, lib, "g_io_stream_close") | |
| 286 | 295 | core.PuregoSafeRegister(&xIOStreamCloseAsync, lib, "g_io_stream_close_async") | |
M v4/gio/giotypes.go +24 -0
| @@ -105,6 +105,12 @@ type SocketSourceFunc func(uintptr, glib.IOCondition, uintptr) bool | |||
| 105 | 105 | type FileAttributeMatcher struct { | |
| 106 | 106 | } | |
| 107 | 107 | ||
| 108 | + | var xFileAttributeMatcherGLibType func() types.GType | |
| 109 | + | ||
| 110 | + | func FileAttributeMatcherGLibType() types.GType { | |
| 111 | + | return xFileAttributeMatcherGLibType() | |
| 112 | + | } | |
| 113 | + | ||
| 108 | 114 | func (x *FileAttributeMatcher) GoPointer() uintptr { | |
| 109 | 115 | return uintptr(unsafe.Pointer(x)) | |
| 110 | 116 | } | |
| @@ -601,6 +607,12 @@ func (x *OutputVector) GoPointer() uintptr { | |||
| 601 | 607 | type Resource struct { | |
| 602 | 608 | } | |
| 603 | 609 | ||
| 610 | + | var xResourceGLibType func() types.GType | |
| 611 | + | ||
| 612 | + | func ResourceGLibType() types.GType { | |
| 613 | + | return xResourceGLibType() | |
| 614 | + | } | |
| 615 | + | ||
| 604 | 616 | func (x *Resource) GoPointer() uintptr { | |
| 605 | 617 | return uintptr(unsafe.Pointer(x)) | |
| 606 | 618 | } | |
| @@ -778,6 +790,12 @@ func (x *Resource) Unref() { | |||
| 778 | 790 | type SrvTarget struct { | |
| 779 | 791 | } | |
| 780 | 792 | ||
| 793 | + | var xSrvTargetGLibType func() types.GType | |
| 794 | + | ||
| 795 | + | func SrvTargetGLibType() types.GType { | |
| 796 | + | return xSrvTargetGLibType() | |
| 797 | + | } | |
| 798 | + | ||
| 781 | 799 | func (x *SrvTarget) GoPointer() uintptr { | |
| 782 | 800 | return uintptr(unsafe.Pointer(x)) | |
| 783 | 801 | } | |
| @@ -861,6 +879,8 @@ func init() { | |||
| 861 | 879 | panic(err) | |
| 862 | 880 | } | |
| 863 | 881 | ||
| 882 | + | core.PuregoSafeRegister(&xFileAttributeMatcherGLibType, lib, "g_file_attribute_matcher_get_type") | |
| 883 | + | ||
| 864 | 884 | core.PuregoSafeRegister(&xNewFileAttributeMatcher, lib, "g_file_attribute_matcher_new") | |
| 865 | 885 | ||
| 866 | 886 | core.PuregoSafeRegister(&xFileAttributeMatcherEnumerateNamespace, lib, "g_file_attribute_matcher_enumerate_namespace") | |
| @@ -885,6 +905,8 @@ func init() { | |||
| 885 | 905 | core.PuregoSafeRegister(&xIOSchedulerJobSendToMainloop, lib, "g_io_scheduler_job_send_to_mainloop") | |
| 886 | 906 | core.PuregoSafeRegister(&xIOSchedulerJobSendToMainloopAsync, lib, "g_io_scheduler_job_send_to_mainloop_async") | |
| 887 | 907 | ||
| 908 | + | core.PuregoSafeRegister(&xResourceGLibType, lib, "g_resource_get_type") | |
| 909 | + | ||
| 888 | 910 | core.PuregoSafeRegister(&xNewResourceFromData, lib, "g_resource_new_from_data") | |
| 889 | 911 | ||
| 890 | 912 | core.PuregoSafeRegister(&xResourceRegister, lib, "g_resources_register") | |
| @@ -896,6 +918,8 @@ func init() { | |||
| 896 | 918 | core.PuregoSafeRegister(&xResourceRef, lib, "g_resource_ref") | |
| 897 | 919 | core.PuregoSafeRegister(&xResourceUnref, lib, "g_resource_unref") | |
| 898 | 920 | ||
| 921 | + | core.PuregoSafeRegister(&xSrvTargetGLibType, lib, "g_srv_target_get_type") | |
| 922 | + | ||
| 899 | 923 | core.PuregoSafeRegister(&xNewSrvTarget, lib, "g_srv_target_new") | |
| 900 | 924 | ||
| 901 | 925 | core.PuregoSafeRegister(&xSrvTargetCopy, lib, "g_srv_target_copy") | |
M v4/gio/glistmodel.go +9 -0
| @@ -75,6 +75,13 @@ type ListModel interface { | |||
| 75 | 75 | GetObject(PositionVar uint) *gobject.Object | |
| 76 | 76 | ItemsChanged(PositionVar uint, RemovedVar uint, AddedVar uint) | |
| 77 | 77 | } | |
| 78 | + | ||
| 79 | + | var xListModelGLibType func() types.GType | |
| 80 | + | ||
| 81 | + | func ListModelGLibType() types.GType { | |
| 82 | + | return xListModelGLibType() | |
| 83 | + | } | |
| 84 | + | ||
| 78 | 85 | type ListModelBase struct { | |
| 79 | 86 | Ptr uintptr | |
| 80 | 87 | } | |
| @@ -190,6 +197,8 @@ func init() { | |||
| 190 | 197 | panic(err) | |
| 191 | 198 | } | |
| 192 | 199 | ||
| 200 | + | core.PuregoSafeRegister(&xListModelGLibType, lib, "g_list_model_get_type") | |
| 201 | + | ||
| 193 | 202 | core.PuregoSafeRegister(&XGListModelGetItem, lib, "g_list_model_get_item") | |
| 194 | 203 | core.PuregoSafeRegister(&XGListModelGetItemType, lib, "g_list_model_get_item_type") | |
| 195 | 204 | core.PuregoSafeRegister(&XGListModelGetNItems, lib, "g_list_model_get_n_items") | |
M v4/gio/gliststore.go +8 -0
| @@ -28,6 +28,12 @@ type ListStore struct { | |||
| 28 | 28 | gobject.Object | |
| 29 | 29 | } | |
| 30 | 30 | ||
| 31 | + | var xListStoreGLibType func() types.GType | |
| 32 | + | ||
| 33 | + | func ListStoreGLibType() types.GType { | |
| 34 | + | return xListStoreGLibType() | |
| 35 | + | } | |
| 36 | + | ||
| 31 | 37 | func ListStoreNewFromInternalPtr(ptr uintptr) *ListStore { | |
| 32 | 38 | cls := &ListStore{} | |
| 33 | 39 | cls.Ptr = ptr | |
| @@ -280,6 +286,8 @@ func init() { | |||
| 280 | 286 | panic(err) | |
| 281 | 287 | } | |
| 282 | 288 | ||
| 289 | + | core.PuregoSafeRegister(&xListStoreGLibType, lib, "g_list_store_get_type") | |
| 290 | + | ||
| 283 | 291 | core.PuregoSafeRegister(&xNewListStore, lib, "g_list_store_new") | |
| 284 | 292 | ||
| 285 | 293 | core.PuregoSafeRegister(&xListStoreAppend, lib, "g_list_store_append") | |
M v4/gio/gloadableicon.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Interface for icons that can be loaded as a stream. | |
| @@ -27,6 +28,13 @@ type LoadableIcon interface { | |||
| 27 | 28 | LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | |
| 28 | 29 | LoadFinish(ResVar AsyncResult, TypeVar string) *InputStream | |
| 29 | 30 | } | |
| 31 | + | ||
| 32 | + | var xLoadableIconGLibType func() types.GType | |
| 33 | + | ||
| 34 | + | func LoadableIconGLibType() types.GType { | |
| 35 | + | return xLoadableIconGLibType() | |
| 36 | + | } | |
| 37 | + | ||
| 30 | 38 | type LoadableIconBase struct { | |
| 31 | 39 | Ptr uintptr | |
| 32 | 40 | } | |
| @@ -97,6 +105,8 @@ func init() { | |||
| 97 | 105 | panic(err) | |
| 98 | 106 | } | |
| 99 | 107 | ||
| 108 | + | core.PuregoSafeRegister(&xLoadableIconGLibType, lib, "g_loadable_icon_get_type") | |
| 109 | + | ||
| 100 | 110 | core.PuregoSafeRegister(&XGLoadableIconLoad, lib, "g_loadable_icon_load") | |
| 101 | 111 | core.PuregoSafeRegister(&XGLoadableIconLoadAsync, lib, "g_loadable_icon_load_async") | |
| 102 | 112 | core.PuregoSafeRegister(&XGLoadableIconLoadFinish, lib, "g_loadable_icon_load_finish") | |
M v4/gio/gmemoryinputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type MemoryInputStreamClass struct { | |
| @@ -33,6 +34,12 @@ type MemoryInputStream struct { | |||
| 33 | 34 | InputStream | |
| 34 | 35 | } | |
| 35 | 36 | ||
| 37 | + | var xMemoryInputStreamGLibType func() types.GType | |
| 38 | + | ||
| 39 | + | func MemoryInputStreamGLibType() types.GType { | |
| 40 | + | return xMemoryInputStreamGLibType() | |
| 41 | + | } | |
| 42 | + | ||
| 36 | 43 | func MemoryInputStreamNewFromInternalPtr(ptr uintptr) *MemoryInputStream { | |
| 37 | 44 | cls := &MemoryInputStream{} | |
| 38 | 45 | cls.Ptr = ptr | |
| @@ -249,6 +256,8 @@ func init() { | |||
| 249 | 256 | panic(err) | |
| 250 | 257 | } | |
| 251 | 258 | ||
| 259 | + | core.PuregoSafeRegister(&xMemoryInputStreamGLibType, lib, "g_memory_input_stream_get_type") | |
| 260 | + | ||
| 252 | 261 | core.PuregoSafeRegister(&xNewMemoryInputStream, lib, "g_memory_input_stream_new") | |
| 253 | 262 | core.PuregoSafeRegister(&xNewMemoryInputStreamFromBytes, lib, "g_memory_input_stream_new_from_bytes") | |
| 254 | 263 | core.PuregoSafeRegister(&xNewMemoryInputStreamFromData, lib, "g_memory_input_stream_new_from_data") | |
M v4/gio/gmemorymonitor.go +11 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The virtual function table for #GMemoryMonitor. | |
| @@ -70,6 +71,13 @@ type MemoryMonitor interface { | |||
| 70 | 71 | GoPointer() uintptr | |
| 71 | 72 | SetGoPointer(uintptr) | |
| 72 | 73 | } | |
| 74 | + | ||
| 75 | + | var xMemoryMonitorGLibType func() types.GType | |
| 76 | + | ||
| 77 | + | func MemoryMonitorGLibType() types.GType { | |
| 78 | + | return xMemoryMonitorGLibType() | |
| 79 | + | } | |
| 80 | + | ||
| 73 | 81 | type MemoryMonitorBase struct { | |
| 74 | 82 | Ptr uintptr | |
| 75 | 83 | } | |
| @@ -109,6 +117,9 @@ func init() { | |||
| 109 | 117 | if err != nil { | |
| 110 | 118 | panic(err) | |
| 111 | 119 | } | |
| 120 | + | ||
| 112 | 121 | core.PuregoSafeRegister(&xMemoryMonitorDupDefault, lib, "g_memory_monitor_dup_default") | |
| 113 | 122 | ||
| 123 | + | core.PuregoSafeRegister(&xMemoryMonitorGLibType, lib, "g_memory_monitor_get_type") | |
| 124 | + | ||
| 114 | 125 | } | |
M v4/gio/gmemoryoutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Changes the size of the memory block pointed to by @data to | |
| @@ -39,6 +40,12 @@ type MemoryOutputStream struct { | |||
| 39 | 40 | OutputStream | |
| 40 | 41 | } | |
| 41 | 42 | ||
| 43 | + | var xMemoryOutputStreamGLibType func() types.GType | |
| 44 | + | ||
| 45 | + | func MemoryOutputStreamGLibType() types.GType { | |
| 46 | + | return xMemoryOutputStreamGLibType() | |
| 47 | + | } | |
| 48 | + | ||
| 42 | 49 | func MemoryOutputStreamNewFromInternalPtr(ptr uintptr) *MemoryOutputStream { | |
| 43 | 50 | cls := &MemoryOutputStream{} | |
| 44 | 51 | cls.Ptr = ptr | |
| @@ -362,6 +369,8 @@ func init() { | |||
| 362 | 369 | panic(err) | |
| 363 | 370 | } | |
| 364 | 371 | ||
| 372 | + | core.PuregoSafeRegister(&xMemoryOutputStreamGLibType, lib, "g_memory_output_stream_get_type") | |
| 373 | + | ||
| 365 | 374 | core.PuregoSafeRegister(&xNewMemoryOutputStream, lib, "g_memory_output_stream_new") | |
| 366 | 375 | core.PuregoSafeRegister(&xNewMemoryOutputStreamResizable, lib, "g_memory_output_stream_new_resizable") | |
| 367 | 376 | ||
M v4/gio/gmenumodel.go +25 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type MenuAttributeIterClass struct { | |
| @@ -99,6 +100,12 @@ type MenuAttributeIter struct { | |||
| 99 | 100 | gobject.Object | |
| 100 | 101 | } | |
| 101 | 102 | ||
| 103 | + | var xMenuAttributeIterGLibType func() types.GType | |
| 104 | + | ||
| 105 | + | func MenuAttributeIterGLibType() types.GType { | |
| 106 | + | return xMenuAttributeIterGLibType() | |
| 107 | + | } | |
| 108 | + | ||
| 102 | 109 | func MenuAttributeIterNewFromInternalPtr(ptr uintptr) *MenuAttributeIter { | |
| 103 | 110 | cls := &MenuAttributeIter{} | |
| 104 | 111 | cls.Ptr = ptr | |
| @@ -182,6 +189,12 @@ type MenuLinkIter struct { | |||
| 182 | 189 | gobject.Object | |
| 183 | 190 | } | |
| 184 | 191 | ||
| 192 | + | var xMenuLinkIterGLibType func() types.GType | |
| 193 | + | ||
| 194 | + | func MenuLinkIterGLibType() types.GType { | |
| 195 | + | return xMenuLinkIterGLibType() | |
| 196 | + | } | |
| 197 | + | ||
| 185 | 198 | func MenuLinkIterNewFromInternalPtr(ptr uintptr) *MenuLinkIter { | |
| 186 | 199 | cls := &MenuLinkIter{} | |
| 187 | 200 | cls.Ptr = ptr | |
| @@ -380,6 +393,12 @@ type MenuModel struct { | |||
| 380 | 393 | gobject.Object | |
| 381 | 394 | } | |
| 382 | 395 | ||
| 396 | + | var xMenuModelGLibType func() types.GType | |
| 397 | + | ||
| 398 | + | func MenuModelGLibType() types.GType { | |
| 399 | + | return xMenuModelGLibType() | |
| 400 | + | } | |
| 401 | + | ||
| 383 | 402 | func MenuModelNewFromInternalPtr(ptr uintptr) *MenuModel { | |
| 384 | 403 | cls := &MenuModel{} | |
| 385 | 404 | cls.Ptr = ptr | |
| @@ -584,16 +603,22 @@ func init() { | |||
| 584 | 603 | panic(err) | |
| 585 | 604 | } | |
| 586 | 605 | ||
| 606 | + | core.PuregoSafeRegister(&xMenuAttributeIterGLibType, lib, "g_menu_attribute_iter_get_type") | |
| 607 | + | ||
| 587 | 608 | core.PuregoSafeRegister(&xMenuAttributeIterGetName, lib, "g_menu_attribute_iter_get_name") | |
| 588 | 609 | core.PuregoSafeRegister(&xMenuAttributeIterGetNext, lib, "g_menu_attribute_iter_get_next") | |
| 589 | 610 | core.PuregoSafeRegister(&xMenuAttributeIterGetValue, lib, "g_menu_attribute_iter_get_value") | |
| 590 | 611 | core.PuregoSafeRegister(&xMenuAttributeIterNext, lib, "g_menu_attribute_iter_next") | |
| 591 | 612 | ||
| 613 | + | core.PuregoSafeRegister(&xMenuLinkIterGLibType, lib, "g_menu_link_iter_get_type") | |
| 614 | + | ||
| 592 | 615 | core.PuregoSafeRegister(&xMenuLinkIterGetName, lib, "g_menu_link_iter_get_name") | |
| 593 | 616 | core.PuregoSafeRegister(&xMenuLinkIterGetNext, lib, "g_menu_link_iter_get_next") | |
| 594 | 617 | core.PuregoSafeRegister(&xMenuLinkIterGetValue, lib, "g_menu_link_iter_get_value") | |
| 595 | 618 | core.PuregoSafeRegister(&xMenuLinkIterNext, lib, "g_menu_link_iter_next") | |
| 596 | 619 | ||
| 620 | + | core.PuregoSafeRegister(&xMenuModelGLibType, lib, "g_menu_model_get_type") | |
| 621 | + | ||
| 597 | 622 | core.PuregoSafeRegister(&xMenuModelGetItemAttribute, lib, "g_menu_model_get_item_attribute") | |
| 598 | 623 | core.PuregoSafeRegister(&xMenuModelGetItemAttributeValue, lib, "g_menu_model_get_item_attribute_value") | |
| 599 | 624 | core.PuregoSafeRegister(&xMenuModelGetItemLink, lib, "g_menu_model_get_item_link") | |
M v4/gio/gmount.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Interface for implementing operations for mounts. | |
| @@ -68,6 +69,13 @@ type Mount interface { | |||
| 68 | 69 | UnmountWithOperationFinish(ResultVar AsyncResult) bool | |
| 69 | 70 | Unshadow() | |
| 70 | 71 | } | |
| 72 | + | ||
| 73 | + | var xMountGLibType func() types.GType | |
| 74 | + | ||
| 75 | + | func MountGLibType() types.GType { | |
| 76 | + | return xMountGLibType() | |
| 77 | + | } | |
| 78 | + | ||
| 71 | 79 | type MountBase struct { | |
| 72 | 80 | Ptr uintptr | |
| 73 | 81 | } | |
| @@ -459,6 +467,8 @@ func init() { | |||
| 459 | 467 | panic(err) | |
| 460 | 468 | } | |
| 461 | 469 | ||
| 470 | + | core.PuregoSafeRegister(&xMountGLibType, lib, "g_mount_get_type") | |
| 471 | + | ||
| 462 | 472 | core.PuregoSafeRegister(&XGMountCanEject, lib, "g_mount_can_eject") | |
| 463 | 473 | core.PuregoSafeRegister(&XGMountCanUnmount, lib, "g_mount_can_unmount") | |
| 464 | 474 | core.PuregoSafeRegister(&XGMountEject, lib, "g_mount_eject") | |
M v4/gio/gmountoperation.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type MountOperationClass struct { | |
| @@ -50,6 +51,12 @@ type MountOperation struct { | |||
| 50 | 51 | gobject.Object | |
| 51 | 52 | } | |
| 52 | 53 | ||
| 54 | + | var xMountOperationGLibType func() types.GType | |
| 55 | + | ||
| 56 | + | func MountOperationGLibType() types.GType { | |
| 57 | + | return xMountOperationGLibType() | |
| 58 | + | } | |
| 59 | + | ||
| 53 | 60 | func MountOperationNewFromInternalPtr(ptr uintptr) *MountOperation { | |
| 54 | 61 | cls := &MountOperation{} | |
| 55 | 62 | cls.Ptr = ptr | |
| @@ -419,6 +426,8 @@ func init() { | |||
| 419 | 426 | panic(err) | |
| 420 | 427 | } | |
| 421 | 428 | ||
| 429 | + | core.PuregoSafeRegister(&xMountOperationGLibType, lib, "g_mount_operation_get_type") | |
| 430 | + | ||
| 422 | 431 | core.PuregoSafeRegister(&xNewMountOperation, lib, "g_mount_operation_new") | |
| 423 | 432 | ||
| 424 | 433 | core.PuregoSafeRegister(&xMountOperationGetAnonymous, lib, "g_mount_operation_get_anonymous") | |
M v4/gio/gnativesocketaddress.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | type NativeSocketAddressClass struct { | |
| @@ -28,6 +29,12 @@ type NativeSocketAddress struct { | |||
| 28 | 29 | SocketAddress | |
| 29 | 30 | } | |
| 30 | 31 | ||
| 32 | + | var xNativeSocketAddressGLibType func() types.GType | |
| 33 | + | ||
| 34 | + | func NativeSocketAddressGLibType() types.GType { | |
| 35 | + | return xNativeSocketAddressGLibType() | |
| 36 | + | } | |
| 37 | + | ||
| 31 | 38 | func NativeSocketAddressNewFromInternalPtr(ptr uintptr) *NativeSocketAddress { | |
| 32 | 39 | cls := &NativeSocketAddress{} | |
| 33 | 40 | cls.Ptr = ptr | |
| @@ -111,6 +118,8 @@ func init() { | |||
| 111 | 118 | panic(err) | |
| 112 | 119 | } | |
| 113 | 120 | ||
| 121 | + | core.PuregoSafeRegister(&xNativeSocketAddressGLibType, lib, "g_native_socket_address_get_type") | |
| 122 | + | ||
| 114 | 123 | core.PuregoSafeRegister(&xNewNativeSocketAddress, lib, "g_native_socket_address_new") | |
| 115 | 124 | ||
| 116 | 125 | } | |
M v4/gio/gnativevolumemonitor.go +11 -1
| @@ -1,7 +1,11 @@ | |||
| 1 | 1 | // Package gio was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | - | import "unsafe" | |
| 4 | + | import ( | |
| 5 | + | "unsafe" | |
| 6 | + | ||
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | + | ) | |
| 5 | 9 | ||
| 6 | 10 | type NativeVolumeMonitorClass struct { | |
| 7 | 11 | ParentClass uintptr | |
| @@ -19,6 +23,12 @@ type NativeVolumeMonitor struct { | |||
| 19 | 23 | VolumeMonitor | |
| 20 | 24 | } | |
| 21 | 25 | ||
| 26 | + | var xNativeVolumeMonitorGLibType func() types.GType | |
| 27 | + | ||
| 28 | + | func NativeVolumeMonitorGLibType() types.GType { | |
| 29 | + | return xNativeVolumeMonitorGLibType() | |
| 30 | + | } | |
| 31 | + | ||
| 22 | 32 | func NativeVolumeMonitorNewFromInternalPtr(ptr uintptr) *NativeVolumeMonitor { | |
| 23 | 33 | cls := &NativeVolumeMonitor{} | |
| 24 | 34 | cls.Ptr = ptr | |
M v4/gio/gnetworkaddress.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type NetworkAddressClass struct { | |
| @@ -39,6 +40,12 @@ type NetworkAddress struct { | |||
| 39 | 40 | gobject.Object | |
| 40 | 41 | } | |
| 41 | 42 | ||
| 43 | + | var xNetworkAddressGLibType func() types.GType | |
| 44 | + | ||
| 45 | + | func NetworkAddressGLibType() types.GType { | |
| 46 | + | return xNetworkAddressGLibType() | |
| 47 | + | } | |
| 48 | + | ||
| 42 | 49 | func NetworkAddressNewFromInternalPtr(ptr uintptr) *NetworkAddress { | |
| 43 | 50 | cls := &NetworkAddress{} | |
| 44 | 51 | cls.Ptr = ptr | |
| @@ -251,6 +258,8 @@ func init() { | |||
| 251 | 258 | panic(err) | |
| 252 | 259 | } | |
| 253 | 260 | ||
| 261 | + | core.PuregoSafeRegister(&xNetworkAddressGLibType, lib, "g_network_address_get_type") | |
| 262 | + | ||
| 254 | 263 | core.PuregoSafeRegister(&xNewNetworkAddress, lib, "g_network_address_new") | |
| 255 | 264 | core.PuregoSafeRegister(&xNewNetworkAddressLoopback, lib, "g_network_address_new_loopback") | |
| 256 | 265 | ||
M v4/gio/gnetworking.go +1 -0
| @@ -23,6 +23,7 @@ func init() { | |||
| 23 | 23 | if err != nil { | |
| 24 | 24 | panic(err) | |
| 25 | 25 | } | |
| 26 | + | ||
| 26 | 27 | core.PuregoSafeRegister(&xNetworkingInit, lib, "g_networking_init") | |
| 27 | 28 | ||
| 28 | 29 | } | |
M v4/gio/gnetworkmonitor.go +11 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // The virtual function table for #GNetworkMonitor. | |
| @@ -35,6 +36,13 @@ type NetworkMonitor interface { | |||
| 35 | 36 | GetNetworkAvailable() bool | |
| 36 | 37 | GetNetworkMetered() bool | |
| 37 | 38 | } | |
| 39 | + | ||
| 40 | + | var xNetworkMonitorGLibType func() types.GType | |
| 41 | + | ||
| 42 | + | func NetworkMonitorGLibType() types.GType { | |
| 43 | + | return xNetworkMonitorGLibType() | |
| 44 | + | } | |
| 45 | + | ||
| 38 | 46 | type NetworkMonitorBase struct { | |
| 39 | 47 | Ptr uintptr | |
| 40 | 48 | } | |
| @@ -181,8 +189,11 @@ func init() { | |||
| 181 | 189 | if err != nil { | |
| 182 | 190 | panic(err) | |
| 183 | 191 | } | |
| 192 | + | ||
| 184 | 193 | core.PuregoSafeRegister(&xNetworkMonitorGetDefault, lib, "g_network_monitor_get_default") | |
| 185 | 194 | ||
| 195 | + | core.PuregoSafeRegister(&xNetworkMonitorGLibType, lib, "g_network_monitor_get_type") | |
| 196 | + | ||
| 186 | 197 | core.PuregoSafeRegister(&XGNetworkMonitorCanReach, lib, "g_network_monitor_can_reach") | |
| 187 | 198 | core.PuregoSafeRegister(&XGNetworkMonitorCanReachAsync, lib, "g_network_monitor_can_reach_async") | |
| 188 | 199 | core.PuregoSafeRegister(&XGNetworkMonitorCanReachFinish, lib, "g_network_monitor_can_reach_finish") | |
M v4/gio/gnetworkservice.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type NetworkServiceClass struct { | |
| @@ -37,6 +38,12 @@ type NetworkService struct { | |||
| 37 | 38 | gobject.Object | |
| 38 | 39 | } | |
| 39 | 40 | ||
| 41 | + | var xNetworkServiceGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func NetworkServiceGLibType() types.GType { | |
| 44 | + | return xNetworkServiceGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | func NetworkServiceNewFromInternalPtr(ptr uintptr) *NetworkService { | |
| 41 | 48 | cls := &NetworkService{} | |
| 42 | 49 | cls.Ptr = ptr | |
| @@ -170,6 +177,8 @@ func init() { | |||
| 170 | 177 | panic(err) | |
| 171 | 178 | } | |
| 172 | 179 | ||
| 180 | + | core.PuregoSafeRegister(&xNetworkServiceGLibType, lib, "g_network_service_get_type") | |
| 181 | + | ||
| 173 | 182 | core.PuregoSafeRegister(&xNewNetworkService, lib, "g_network_service_new") | |
| 174 | 183 | ||
| 175 | 184 | core.PuregoSafeRegister(&xNetworkServiceGetDomain, lib, "g_network_service_get_domain") | |
M v4/gio/goutputstream.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type OutputStreamClass struct { | |
| @@ -40,6 +41,12 @@ type OutputStream struct { | |||
| 40 | 41 | gobject.Object | |
| 41 | 42 | } | |
| 42 | 43 | ||
| 44 | + | var xOutputStreamGLibType func() types.GType | |
| 45 | + | ||
| 46 | + | func OutputStreamGLibType() types.GType { | |
| 47 | + | return xOutputStreamGLibType() | |
| 48 | + | } | |
| 49 | + | ||
| 43 | 50 | func OutputStreamNewFromInternalPtr(ptr uintptr) *OutputStream { | |
| 44 | 51 | cls := &OutputStream{} | |
| 45 | 52 | cls.Ptr = ptr | |
| @@ -720,6 +727,8 @@ func init() { | |||
| 720 | 727 | panic(err) | |
| 721 | 728 | } | |
| 722 | 729 | ||
| 730 | + | core.PuregoSafeRegister(&xOutputStreamGLibType, lib, "g_output_stream_get_type") | |
| 731 | + | ||
| 723 | 732 | core.PuregoSafeRegister(&xOutputStreamClearPending, lib, "g_output_stream_clear_pending") | |
| 724 | 733 | core.PuregoSafeRegister(&xOutputStreamClose, lib, "g_output_stream_close") | |
| 725 | 734 | core.PuregoSafeRegister(&xOutputStreamCloseAsync, lib, "g_output_stream_close_async") | |
M v4/gio/gpermission.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type PermissionClass struct { | |
| @@ -46,6 +47,12 @@ type Permission struct { | |||
| 46 | 47 | gobject.Object | |
| 47 | 48 | } | |
| 48 | 49 | ||
| 50 | + | var xPermissionGLibType func() types.GType | |
| 51 | + | ||
| 52 | + | func PermissionGLibType() types.GType { | |
| 53 | + | return xPermissionGLibType() | |
| 54 | + | } | |
| 55 | + | ||
| 49 | 56 | func PermissionNewFromInternalPtr(ptr uintptr) *Permission { | |
| 50 | 57 | cls := &Permission{} | |
| 51 | 58 | cls.Ptr = ptr | |
| @@ -228,6 +235,8 @@ func init() { | |||
| 228 | 235 | panic(err) | |
| 229 | 236 | } | |
| 230 | 237 | ||
| 238 | + | core.PuregoSafeRegister(&xPermissionGLibType, lib, "g_permission_get_type") | |
| 239 | + | ||
| 231 | 240 | core.PuregoSafeRegister(&xPermissionAcquire, lib, "g_permission_acquire") | |
| 232 | 241 | core.PuregoSafeRegister(&xPermissionAcquireAsync, lib, "g_permission_acquire_async") | |
| 233 | 242 | core.PuregoSafeRegister(&xPermissionAcquireFinish, lib, "g_permission_acquire_finish") | |
M v4/gio/gpollableinputstream.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The interface for pollable input streams. | |
| @@ -39,6 +40,13 @@ type PollableInputStream interface { | |||
| 39 | 40 | IsReadable() bool | |
| 40 | 41 | ReadNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int | |
| 41 | 42 | } | |
| 43 | + | ||
| 44 | + | var xPollableInputStreamGLibType func() types.GType | |
| 45 | + | ||
| 46 | + | func PollableInputStreamGLibType() types.GType { | |
| 47 | + | return xPollableInputStreamGLibType() | |
| 48 | + | } | |
| 49 | + | ||
| 42 | 50 | type PollableInputStreamBase struct { | |
| 43 | 51 | Ptr uintptr | |
| 44 | 52 | } | |
| @@ -125,6 +133,8 @@ func init() { | |||
| 125 | 133 | panic(err) | |
| 126 | 134 | } | |
| 127 | 135 | ||
| 136 | + | core.PuregoSafeRegister(&xPollableInputStreamGLibType, lib, "g_pollable_input_stream_get_type") | |
| 137 | + | ||
| 128 | 138 | core.PuregoSafeRegister(&XGPollableInputStreamCanPoll, lib, "g_pollable_input_stream_can_poll") | |
| 129 | 139 | core.PuregoSafeRegister(&XGPollableInputStreamCreateSource, lib, "g_pollable_input_stream_create_source") | |
| 130 | 140 | core.PuregoSafeRegister(&XGPollableInputStreamIsReadable, lib, "g_pollable_input_stream_is_readable") | |
M v4/gio/gpollableoutputstream.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The interface for pollable output streams. | |
| @@ -46,6 +47,13 @@ type PollableOutputStream interface { | |||
| 46 | 47 | WriteNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int | |
| 47 | 48 | WritevNonblocking(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) PollableReturn | |
| 48 | 49 | } | |
| 50 | + | ||
| 51 | + | var xPollableOutputStreamGLibType func() types.GType | |
| 52 | + | ||
| 53 | + | func PollableOutputStreamGLibType() types.GType { | |
| 54 | + | return xPollableOutputStreamGLibType() | |
| 55 | + | } | |
| 56 | + | ||
| 49 | 57 | type PollableOutputStreamBase struct { | |
| 50 | 58 | Ptr uintptr | |
| 51 | 59 | } | |
| @@ -164,6 +172,8 @@ func init() { | |||
| 164 | 172 | panic(err) | |
| 165 | 173 | } | |
| 166 | 174 | ||
| 175 | + | core.PuregoSafeRegister(&xPollableOutputStreamGLibType, lib, "g_pollable_output_stream_get_type") | |
| 176 | + | ||
| 167 | 177 | core.PuregoSafeRegister(&XGPollableOutputStreamCanPoll, lib, "g_pollable_output_stream_can_poll") | |
| 168 | 178 | core.PuregoSafeRegister(&XGPollableOutputStreamCreateSource, lib, "g_pollable_output_stream_create_source") | |
| 169 | 179 | core.PuregoSafeRegister(&XGPollableOutputStreamIsWritable, lib, "g_pollable_output_stream_is_writable") | |
M v4/gio/gpollableutils.go +1 -0
| @@ -114,6 +114,7 @@ func init() { | |||
| 114 | 114 | if err != nil { | |
| 115 | 115 | panic(err) | |
| 116 | 116 | } | |
| 117 | + | ||
| 117 | 118 | core.PuregoSafeRegister(&xPollableSourceNew, lib, "g_pollable_source_new") | |
| 118 | 119 | core.PuregoSafeRegister(&xPollableSourceNewFull, lib, "g_pollable_source_new_full") | |
| 119 | 120 | core.PuregoSafeRegister(&xPollableStreamRead, lib, "g_pollable_stream_read") | |
M v4/gio/gpowerprofilemonitor.go +11 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The virtual function table for #GPowerProfileMonitor. | |
| @@ -44,6 +45,13 @@ type PowerProfileMonitor interface { | |||
| 44 | 45 | SetGoPointer(uintptr) | |
| 45 | 46 | GetPowerSaverEnabled() bool | |
| 46 | 47 | } | |
| 48 | + | ||
| 49 | + | var xPowerProfileMonitorGLibType func() types.GType | |
| 50 | + | ||
| 51 | + | func PowerProfileMonitorGLibType() types.GType { | |
| 52 | + | return xPowerProfileMonitorGLibType() | |
| 53 | + | } | |
| 54 | + | ||
| 47 | 55 | type PowerProfileMonitorBase struct { | |
| 48 | 56 | Ptr uintptr | |
| 49 | 57 | } | |
| @@ -96,8 +104,11 @@ func init() { | |||
| 96 | 104 | if err != nil { | |
| 97 | 105 | panic(err) | |
| 98 | 106 | } | |
| 107 | + | ||
| 99 | 108 | core.PuregoSafeRegister(&xPowerProfileMonitorDupDefault, lib, "g_power_profile_monitor_dup_default") | |
| 100 | 109 | ||
| 110 | + | core.PuregoSafeRegister(&xPowerProfileMonitorGLibType, lib, "g_power_profile_monitor_get_type") | |
| 111 | + | ||
| 101 | 112 | core.PuregoSafeRegister(&XGPowerProfileMonitorGetPowerSaverEnabled, lib, "g_power_profile_monitor_get_power_saver_enabled") | |
| 102 | 113 | ||
| 103 | 114 | } | |
M v4/gio/gproxy.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Provides an interface for handling proxy connection and payload. | |
| @@ -32,6 +33,13 @@ type Proxy interface { | |||
| 32 | 33 | ConnectFinish(ResultVar AsyncResult) *IOStream | |
| 33 | 34 | SupportsHostname() bool | |
| 34 | 35 | } | |
| 36 | + | ||
| 37 | + | var xProxyGLibType func() types.GType | |
| 38 | + | ||
| 39 | + | func ProxyGLibType() types.GType { | |
| 40 | + | return xProxyGLibType() | |
| 41 | + | } | |
| 42 | + | ||
| 35 | 43 | type ProxyBase struct { | |
| 36 | 44 | Ptr uintptr | |
| 37 | 45 | } | |
| @@ -138,8 +146,11 @@ func init() { | |||
| 138 | 146 | if err != nil { | |
| 139 | 147 | panic(err) | |
| 140 | 148 | } | |
| 149 | + | ||
| 141 | 150 | core.PuregoSafeRegister(&xProxyGetDefaultForProtocol, lib, "g_proxy_get_default_for_protocol") | |
| 142 | 151 | ||
| 152 | + | core.PuregoSafeRegister(&xProxyGLibType, lib, "g_proxy_get_type") | |
| 153 | + | ||
| 143 | 154 | core.PuregoSafeRegister(&XGProxyConnect, lib, "g_proxy_connect") | |
| 144 | 155 | core.PuregoSafeRegister(&XGProxyConnectAsync, lib, "g_proxy_connect_async") | |
| 145 | 156 | core.PuregoSafeRegister(&XGProxyConnectFinish, lib, "g_proxy_connect_finish") | |
M v4/gio/gproxyaddress.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Class structure for #GProxyAddress. | |
| @@ -29,6 +30,12 @@ type ProxyAddress struct { | |||
| 29 | 30 | InetSocketAddress | |
| 30 | 31 | } | |
| 31 | 32 | ||
| 33 | + | var xProxyAddressGLibType func() types.GType | |
| 34 | + | ||
| 35 | + | func ProxyAddressGLibType() types.GType { | |
| 36 | + | return xProxyAddressGLibType() | |
| 37 | + | } | |
| 38 | + | ||
| 32 | 39 | func ProxyAddressNewFromInternalPtr(ptr uintptr) *ProxyAddress { | |
| 33 | 40 | cls := &ProxyAddress{} | |
| 34 | 41 | cls.Ptr = ptr | |
| @@ -185,6 +192,8 @@ func init() { | |||
| 185 | 192 | panic(err) | |
| 186 | 193 | } | |
| 187 | 194 | ||
| 195 | + | core.PuregoSafeRegister(&xProxyAddressGLibType, lib, "g_proxy_address_get_type") | |
| 196 | + | ||
| 188 | 197 | core.PuregoSafeRegister(&xNewProxyAddress, lib, "g_proxy_address_new") | |
| 189 | 198 | ||
| 190 | 199 | core.PuregoSafeRegister(&xProxyAddressGetDestinationHostname, lib, "g_proxy_address_get_destination_hostname") | |
M v4/gio/gproxyaddressenumerator.go +11 -1
| @@ -1,7 +1,11 @@ | |||
| 1 | 1 | // Package gio was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | |
| 2 | 2 | package gio | |
| 3 | 3 | ||
| 4 | - | import "unsafe" | |
| 4 | + | import ( | |
| 5 | + | "unsafe" | |
| 6 | + | ||
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 8 | + | ) | |
| 5 | 9 | ||
| 6 | 10 | // Class structure for #GProxyAddressEnumerator. | |
| 7 | 11 | type ProxyAddressEnumeratorClass struct { | |
| @@ -32,6 +36,12 @@ type ProxyAddressEnumerator struct { | |||
| 32 | 36 | SocketAddressEnumerator | |
| 33 | 37 | } | |
| 34 | 38 | ||
| 39 | + | var xProxyAddressEnumeratorGLibType func() types.GType | |
| 40 | + | ||
| 41 | + | func ProxyAddressEnumeratorGLibType() types.GType { | |
| 42 | + | return xProxyAddressEnumeratorGLibType() | |
| 43 | + | } | |
| 44 | + | ||
| 35 | 45 | func ProxyAddressEnumeratorNewFromInternalPtr(ptr uintptr) *ProxyAddressEnumerator { | |
| 36 | 46 | cls := &ProxyAddressEnumerator{} | |
| 37 | 47 | cls.Ptr = ptr | |
M v4/gio/gproxyresolver.go +11 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // The virtual function table for #GProxyResolver. | |
| @@ -34,6 +35,13 @@ type ProxyResolver interface { | |||
| 34 | 35 | LookupAsync(UriVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | |
| 35 | 36 | LookupFinish(ResultVar AsyncResult) []string | |
| 36 | 37 | } | |
| 38 | + | ||
| 39 | + | var xProxyResolverGLibType func() types.GType | |
| 40 | + | ||
| 41 | + | func ProxyResolverGLibType() types.GType { | |
| 42 | + | return xProxyResolverGLibType() | |
| 43 | + | } | |
| 44 | + | ||
| 37 | 45 | type ProxyResolverBase struct { | |
| 38 | 46 | Ptr uintptr | |
| 39 | 47 | } | |
| @@ -136,8 +144,11 @@ func init() { | |||
| 136 | 144 | if err != nil { | |
| 137 | 145 | panic(err) | |
| 138 | 146 | } | |
| 147 | + | ||
| 139 | 148 | core.PuregoSafeRegister(&xProxyResolverGetDefault, lib, "g_proxy_resolver_get_default") | |
| 140 | 149 | ||
| 150 | + | core.PuregoSafeRegister(&xProxyResolverGLibType, lib, "g_proxy_resolver_get_type") | |
| 151 | + | ||
| 141 | 152 | core.PuregoSafeRegister(&XGProxyResolverIsSupported, lib, "g_proxy_resolver_is_supported") | |
| 142 | 153 | core.PuregoSafeRegister(&XGProxyResolverLookup, lib, "g_proxy_resolver_lookup") | |
| 143 | 154 | core.PuregoSafeRegister(&XGProxyResolverLookupAsync, lib, "g_proxy_resolver_lookup_async") | |
M v4/gio/gremoteactiongroup.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The virtual function table for #GRemoteActionGroup. | |
| @@ -45,6 +46,13 @@ type RemoteActionGroup interface { | |||
| 45 | 46 | ActivateActionFull(ActionNameVar string, ParameterVar *glib.Variant, PlatformDataVar *glib.Variant) | |
| 46 | 47 | ChangeActionStateFull(ActionNameVar string, ValueVar *glib.Variant, PlatformDataVar *glib.Variant) | |
| 47 | 48 | } | |
| 49 | + | ||
| 50 | + | var xRemoteActionGroupGLibType func() types.GType | |
| 51 | + | ||
| 52 | + | func RemoteActionGroupGLibType() types.GType { | |
| 53 | + | return xRemoteActionGroupGLibType() | |
| 54 | + | } | |
| 55 | + | ||
| 48 | 56 | type RemoteActionGroupBase struct { | |
| 49 | 57 | Ptr uintptr | |
| 50 | 58 | } | |
| @@ -96,6 +104,8 @@ func init() { | |||
| 96 | 104 | panic(err) | |
| 97 | 105 | } | |
| 98 | 106 | ||
| 107 | + | core.PuregoSafeRegister(&xRemoteActionGroupGLibType, lib, "g_remote_action_group_get_type") | |
| 108 | + | ||
| 99 | 109 | core.PuregoSafeRegister(&XGRemoteActionGroupActivateActionFull, lib, "g_remote_action_group_activate_action_full") | |
| 100 | 110 | core.PuregoSafeRegister(&XGRemoteActionGroupChangeActionStateFull, lib, "g_remote_action_group_change_action_state_full") | |
| 101 | 111 | ||
M v4/gio/gresolver.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type ResolverClass struct { | |
| @@ -28,6 +29,12 @@ func (x *ResolverPrivate) GoPointer() uintptr { | |||
| 28 | 29 | // Flags to modify lookup behavior. | |
| 29 | 30 | type ResolverNameLookupFlags int | |
| 30 | 31 | ||
| 32 | + | var xResolverNameLookupFlagsGLibType func() types.GType | |
| 33 | + | ||
| 34 | + | func ResolverNameLookupFlagsGLibType() types.GType { | |
| 35 | + | return xResolverNameLookupFlagsGLibType() | |
| 36 | + | } | |
| 37 | + | ||
| 31 | 38 | const ( | |
| 32 | 39 | ||
| 33 | 40 | // default behavior (same as g_resolver_lookup_by_name()) | |
| @@ -50,6 +57,12 @@ type Resolver struct { | |||
| 50 | 57 | gobject.Object | |
| 51 | 58 | } | |
| 52 | 59 | ||
| 60 | + | var xResolverGLibType func() types.GType | |
| 61 | + | ||
| 62 | + | func ResolverGLibType() types.GType { | |
| 63 | + | return xResolverGLibType() | |
| 64 | + | } | |
| 65 | + | ||
| 53 | 66 | func ResolverNewFromInternalPtr(ptr uintptr) *Resolver { | |
| 54 | 67 | cls := &Resolver{} | |
| 55 | 68 | cls.Ptr = ptr | |
| @@ -438,6 +451,10 @@ func init() { | |||
| 438 | 451 | panic(err) | |
| 439 | 452 | } | |
| 440 | 453 | ||
| 454 | + | core.PuregoSafeRegister(&xResolverNameLookupFlagsGLibType, lib, "g_resolver_name_lookup_flags_get_type") | |
| 455 | + | ||
| 456 | + | core.PuregoSafeRegister(&xResolverGLibType, lib, "g_resolver_get_type") | |
| 457 | + | ||
| 441 | 458 | core.PuregoSafeRegister(&xResolverLookupByAddress, lib, "g_resolver_lookup_by_address") | |
| 442 | 459 | core.PuregoSafeRegister(&xResolverLookupByAddressAsync, lib, "g_resolver_lookup_by_address_async") | |
| 443 | 460 | core.PuregoSafeRegister(&xResolverLookupByAddressFinish, lib, "g_resolver_lookup_by_address_finish") | |
M v4/gio/gresource.go +1 -0
| @@ -203,6 +203,7 @@ func init() { | |||
| 203 | 203 | if err != nil { | |
| 204 | 204 | panic(err) | |
| 205 | 205 | } | |
| 206 | + | ||
| 206 | 207 | core.PuregoSafeRegister(&xResourceLoad, lib, "g_resource_load") | |
| 207 | 208 | core.PuregoSafeRegister(&xResourcesEnumerateChildren, lib, "g_resources_enumerate_children") | |
| 208 | 209 | core.PuregoSafeRegister(&xResourcesGetInfo, lib, "g_resources_get_info") | |
M v4/gio/gseekable.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Provides an interface for implementing seekable functionality on I/O Streams. | |
| @@ -41,6 +42,13 @@ type Seekable interface { | |||
| 41 | 42 | Tell() int64 | |
| 42 | 43 | Truncate(OffsetVar int64, CancellableVar *Cancellable) bool | |
| 43 | 44 | } | |
| 45 | + | ||
| 46 | + | var xSeekableGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func SeekableGLibType() types.GType { | |
| 49 | + | return xSeekableGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 44 | 52 | type SeekableBase struct { | |
| 45 | 53 | Ptr uintptr | |
| 46 | 54 | } | |
| @@ -132,6 +140,8 @@ func init() { | |||
| 132 | 140 | panic(err) | |
| 133 | 141 | } | |
| 134 | 142 | ||
| 143 | + | core.PuregoSafeRegister(&xSeekableGLibType, lib, "g_seekable_get_type") | |
| 144 | + | ||
| 135 | 145 | core.PuregoSafeRegister(&XGSeekableCanSeek, lib, "g_seekable_can_seek") | |
| 136 | 146 | core.PuregoSafeRegister(&XGSeekableCanTruncate, lib, "g_seekable_can_truncate") | |
| 137 | 147 | core.PuregoSafeRegister(&XGSeekableSeek, lib, "g_seekable_seek") | |
M v4/gio/gsettings.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // The type for the function that is used to convert from #GSettings to | |
| @@ -53,6 +54,12 @@ func (x *SettingsPrivate) GoPointer() uintptr { | |||
| 53 | 54 | // directions. | |
| 54 | 55 | type SettingsBindFlags int | |
| 55 | 56 | ||
| 57 | + | var xSettingsBindFlagsGLibType func() types.GType | |
| 58 | + | ||
| 59 | + | func SettingsBindFlagsGLibType() types.GType { | |
| 60 | + | return xSettingsBindFlagsGLibType() | |
| 61 | + | } | |
| 62 | + | ||
| 56 | 63 | const ( | |
| 57 | 64 | ||
| 58 | 65 | // Equivalent to `G_SETTINGS_BIND_GET|G_SETTINGS_BIND_SET` | |
| @@ -374,6 +381,12 @@ type Settings struct { | |||
| 374 | 381 | gobject.Object | |
| 375 | 382 | } | |
| 376 | 383 | ||
| 384 | + | var xSettingsGLibType func() types.GType | |
| 385 | + | ||
| 386 | + | func SettingsGLibType() types.GType { | |
| 387 | + | return xSettingsGLibType() | |
| 388 | + | } | |
| 389 | + | ||
| 377 | 390 | func SettingsNewFromInternalPtr(ptr uintptr) *Settings { | |
| 378 | 391 | cls := &Settings{} | |
| 379 | 392 | cls.Ptr = ptr | |
| @@ -1406,6 +1419,10 @@ func init() { | |||
| 1406 | 1419 | panic(err) | |
| 1407 | 1420 | } | |
| 1408 | 1421 | ||
| 1422 | + | core.PuregoSafeRegister(&xSettingsBindFlagsGLibType, lib, "g_settings_bind_flags_get_type") | |
| 1423 | + | ||
| 1424 | + | core.PuregoSafeRegister(&xSettingsGLibType, lib, "g_settings_get_type") | |
| 1425 | + | ||
| 1409 | 1426 | core.PuregoSafeRegister(&xNewSettings, lib, "g_settings_new") | |
| 1410 | 1427 | core.PuregoSafeRegister(&xNewSettingsFull, lib, "g_settings_new_full") | |
| 1411 | 1428 | core.PuregoSafeRegister(&xNewSettingsWithBackend, lib, "g_settings_new_with_backend") | |
M v4/gio/gsettingsbackend.go +10 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GSettingsBackend. | |
| @@ -168,6 +169,12 @@ type SettingsBackend struct { | |||
| 168 | 169 | gobject.Object | |
| 169 | 170 | } | |
| 170 | 171 | ||
| 172 | + | var xSettingsBackendGLibType func() types.GType | |
| 173 | + | ||
| 174 | + | func SettingsBackendGLibType() types.GType { | |
| 175 | + | return xSettingsBackendGLibType() | |
| 176 | + | } | |
| 177 | + | ||
| 171 | 178 | func SettingsBackendNewFromInternalPtr(ptr uintptr) *SettingsBackend { | |
| 172 | 179 | cls := &SettingsBackend{} | |
| 173 | 180 | cls.Ptr = ptr | |
| @@ -346,10 +353,13 @@ func init() { | |||
| 346 | 353 | if err != nil { | |
| 347 | 354 | panic(err) | |
| 348 | 355 | } | |
| 356 | + | ||
| 349 | 357 | core.PuregoSafeRegister(&xKeyfileSettingsBackendNew, lib, "g_keyfile_settings_backend_new") | |
| 350 | 358 | core.PuregoSafeRegister(&xMemorySettingsBackendNew, lib, "g_memory_settings_backend_new") | |
| 351 | 359 | core.PuregoSafeRegister(&xNullSettingsBackendNew, lib, "g_null_settings_backend_new") | |
| 352 | 360 | ||
| 361 | + | core.PuregoSafeRegister(&xSettingsBackendGLibType, lib, "g_settings_backend_get_type") | |
| 362 | + | ||
| 353 | 363 | core.PuregoSafeRegister(&xSettingsBackendChanged, lib, "g_settings_backend_changed") | |
| 354 | 364 | core.PuregoSafeRegister(&xSettingsBackendChangedTree, lib, "g_settings_backend_changed_tree") | |
| 355 | 365 | core.PuregoSafeRegister(&xSettingsBackendKeysChanged, lib, "g_settings_backend_keys_changed") | |
M v4/gio/gsettingsschema.go +26 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // The #GSettingsSchemaSource and #GSettingsSchema APIs provide a | |
| @@ -109,6 +110,12 @@ import ( | |||
| 109 | 110 | type SettingsSchema struct { | |
| 110 | 111 | } | |
| 111 | 112 | ||
| 113 | + | var xSettingsSchemaGLibType func() types.GType | |
| 114 | + | ||
| 115 | + | func SettingsSchemaGLibType() types.GType { | |
| 116 | + | return xSettingsSchemaGLibType() | |
| 117 | + | } | |
| 118 | + | ||
| 112 | 119 | func (x *SettingsSchema) GoPointer() uintptr { | |
| 113 | 120 | return uintptr(unsafe.Pointer(x)) | |
| 114 | 121 | } | |
| @@ -208,6 +215,12 @@ func (x *SettingsSchema) Unref() { | |||
| 208 | 215 | type SettingsSchemaKey struct { | |
| 209 | 216 | } | |
| 210 | 217 | ||
| 218 | + | var xSettingsSchemaKeyGLibType func() types.GType | |
| 219 | + | ||
| 220 | + | func SettingsSchemaKeyGLibType() types.GType { | |
| 221 | + | return xSettingsSchemaKeyGLibType() | |
| 222 | + | } | |
| 223 | + | ||
| 211 | 224 | func (x *SettingsSchemaKey) GoPointer() uintptr { | |
| 212 | 225 | return uintptr(unsafe.Pointer(x)) | |
| 213 | 226 | } | |
| @@ -364,6 +377,12 @@ func (x *SettingsSchemaKey) Unref() { | |||
| 364 | 377 | type SettingsSchemaSource struct { | |
| 365 | 378 | } | |
| 366 | 379 | ||
| 380 | + | var xSettingsSchemaSourceGLibType func() types.GType | |
| 381 | + | ||
| 382 | + | func SettingsSchemaSourceGLibType() types.GType { | |
| 383 | + | return xSettingsSchemaSourceGLibType() | |
| 384 | + | } | |
| 385 | + | ||
| 367 | 386 | func (x *SettingsSchemaSource) GoPointer() uintptr { | |
| 368 | 387 | return uintptr(unsafe.Pointer(x)) | |
| 369 | 388 | } | |
| @@ -494,8 +513,11 @@ func init() { | |||
| 494 | 513 | if err != nil { | |
| 495 | 514 | panic(err) | |
| 496 | 515 | } | |
| 516 | + | ||
| 497 | 517 | core.PuregoSafeRegister(&xSettingsSchemaSourceGetDefault, lib, "g_settings_schema_source_get_default") | |
| 498 | 518 | ||
| 519 | + | core.PuregoSafeRegister(&xSettingsSchemaGLibType, lib, "g_settings_schema_get_type") | |
| 520 | + | ||
| 499 | 521 | core.PuregoSafeRegister(&xSettingsSchemaGetId, lib, "g_settings_schema_get_id") | |
| 500 | 522 | core.PuregoSafeRegister(&xSettingsSchemaGetKey, lib, "g_settings_schema_get_key") | |
| 501 | 523 | core.PuregoSafeRegister(&xSettingsSchemaGetPath, lib, "g_settings_schema_get_path") | |
| @@ -505,6 +527,8 @@ func init() { | |||
| 505 | 527 | core.PuregoSafeRegister(&xSettingsSchemaRef, lib, "g_settings_schema_ref") | |
| 506 | 528 | core.PuregoSafeRegister(&xSettingsSchemaUnref, lib, "g_settings_schema_unref") | |
| 507 | 529 | ||
| 530 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGLibType, lib, "g_settings_schema_key_get_type") | |
| 531 | + | ||
| 508 | 532 | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDefaultValue, lib, "g_settings_schema_key_get_default_value") | |
| 509 | 533 | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDescription, lib, "g_settings_schema_key_get_description") | |
| 510 | 534 | core.PuregoSafeRegister(&xSettingsSchemaKeyGetName, lib, "g_settings_schema_key_get_name") | |
| @@ -515,6 +539,8 @@ func init() { | |||
| 515 | 539 | core.PuregoSafeRegister(&xSettingsSchemaKeyRef, lib, "g_settings_schema_key_ref") | |
| 516 | 540 | core.PuregoSafeRegister(&xSettingsSchemaKeyUnref, lib, "g_settings_schema_key_unref") | |
| 517 | 541 | ||
| 542 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceGLibType, lib, "g_settings_schema_source_get_type") | |
| 543 | + | ||
| 518 | 544 | core.PuregoSafeRegister(&xNewSettingsSchemaSourceFromDirectory, lib, "g_settings_schema_source_new_from_directory") | |
| 519 | 545 | ||
| 520 | 546 | core.PuregoSafeRegister(&xSettingsSchemaSourceListSchemas, lib, "g_settings_schema_source_list_schemas") | |
M v4/gio/gsimpleactiongroup.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SimpleActionGroupClass struct { | |
| @@ -33,6 +34,12 @@ type SimpleActionGroup struct { | |||
| 33 | 34 | gobject.Object | |
| 34 | 35 | } | |
| 35 | 36 | ||
| 37 | + | var xSimpleActionGroupGLibType func() types.GType | |
| 38 | + | ||
| 39 | + | func SimpleActionGroupGLibType() types.GType { | |
| 40 | + | return xSimpleActionGroupGLibType() | |
| 41 | + | } | |
| 42 | + | ||
| 36 | 43 | func SimpleActionGroupNewFromInternalPtr(ptr uintptr) *SimpleActionGroup { | |
| 37 | 44 | cls := &SimpleActionGroup{} | |
| 38 | 45 | cls.Ptr = ptr | |
| @@ -441,6 +448,8 @@ func init() { | |||
| 441 | 448 | panic(err) | |
| 442 | 449 | } | |
| 443 | 450 | ||
| 451 | + | core.PuregoSafeRegister(&xSimpleActionGroupGLibType, lib, "g_simple_action_group_get_type") | |
| 452 | + | ||
| 444 | 453 | core.PuregoSafeRegister(&xNewSimpleActionGroup, lib, "g_simple_action_group_new") | |
| 445 | 454 | ||
| 446 | 455 | core.PuregoSafeRegister(&xSimpleActionGroupAddEntries, lib, "g_simple_action_group_add_entries") | |
M v4/gio/gsimpleasyncresult.go +10 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SimpleAsyncResultClass struct { | |
| @@ -226,6 +227,12 @@ type SimpleAsyncResult struct { | |||
| 226 | 227 | gobject.Object | |
| 227 | 228 | } | |
| 228 | 229 | ||
| 230 | + | var xSimpleAsyncResultGLibType func() types.GType | |
| 231 | + | ||
| 232 | + | func SimpleAsyncResultGLibType() types.GType { | |
| 233 | + | return xSimpleAsyncResultGLibType() | |
| 234 | + | } | |
| 235 | + | ||
| 229 | 236 | func SimpleAsyncResultNewFromInternalPtr(ptr uintptr) *SimpleAsyncResult { | |
| 230 | 237 | cls := &SimpleAsyncResult{} | |
| 231 | 238 | cls.Ptr = ptr | |
| @@ -590,10 +597,13 @@ func init() { | |||
| 590 | 597 | if err != nil { | |
| 591 | 598 | panic(err) | |
| 592 | 599 | } | |
| 600 | + | ||
| 593 | 601 | core.PuregoSafeRegister(&xSimpleAsyncReportErrorInIdle, lib, "g_simple_async_report_error_in_idle") | |
| 594 | 602 | core.PuregoSafeRegister(&xSimpleAsyncReportGerrorInIdle, lib, "g_simple_async_report_gerror_in_idle") | |
| 595 | 603 | core.PuregoSafeRegister(&xSimpleAsyncReportTakeGerrorInIdle, lib, "g_simple_async_report_take_gerror_in_idle") | |
| 596 | 604 | ||
| 605 | + | core.PuregoSafeRegister(&xSimpleAsyncResultGLibType, lib, "g_simple_async_result_get_type") | |
| 606 | + | ||
| 597 | 607 | core.PuregoSafeRegister(&xNewSimpleAsyncResult, lib, "g_simple_async_result_new") | |
| 598 | 608 | core.PuregoSafeRegister(&xNewSimpleAsyncResultError, lib, "g_simple_async_result_new_error") | |
| 599 | 609 | core.PuregoSafeRegister(&xNewSimpleAsyncResultFromError, lib, "g_simple_async_result_new_from_error") | |
M v4/gio/gsimpleproxyresolver.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SimpleProxyResolverClass struct { | |
| @@ -37,6 +38,12 @@ type SimpleProxyResolver struct { | |||
| 37 | 38 | gobject.Object | |
| 38 | 39 | } | |
| 39 | 40 | ||
| 41 | + | var xSimpleProxyResolverGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func SimpleProxyResolverGLibType() types.GType { | |
| 44 | + | return xSimpleProxyResolverGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | func SimpleProxyResolverNewFromInternalPtr(ptr uintptr) *SimpleProxyResolver { | |
| 41 | 48 | cls := &SimpleProxyResolver{} | |
| 42 | 49 | cls.Ptr = ptr | |
| @@ -176,6 +183,8 @@ func init() { | |||
| 176 | 183 | panic(err) | |
| 177 | 184 | } | |
| 178 | 185 | ||
| 186 | + | core.PuregoSafeRegister(&xSimpleProxyResolverGLibType, lib, "g_simple_proxy_resolver_get_type") | |
| 187 | + | ||
| 179 | 188 | core.PuregoSafeRegister(&xSimpleProxyResolverSetDefaultProxy, lib, "g_simple_proxy_resolver_set_default_proxy") | |
| 180 | 189 | core.PuregoSafeRegister(&xSimpleProxyResolverSetIgnoreHosts, lib, "g_simple_proxy_resolver_set_ignore_hosts") | |
| 181 | 190 | core.PuregoSafeRegister(&xSimpleProxyResolverSetUriProxy, lib, "g_simple_proxy_resolver_set_uri_proxy") | |
M v4/gio/gsocket.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SocketClass struct { | |
| @@ -80,6 +81,12 @@ type Socket struct { | |||
| 80 | 81 | gobject.Object | |
| 81 | 82 | } | |
| 82 | 83 | ||
| 84 | + | var xSocketGLibType func() types.GType | |
| 85 | + | ||
| 86 | + | func SocketGLibType() types.GType { | |
| 87 | + | return xSocketGLibType() | |
| 88 | + | } | |
| 89 | + | ||
| 83 | 90 | func SocketNewFromInternalPtr(ptr uintptr) *Socket { | |
| 84 | 91 | cls := &Socket{} | |
| 85 | 92 | cls.Ptr = ptr | |
| @@ -1464,6 +1471,8 @@ func init() { | |||
| 1464 | 1471 | panic(err) | |
| 1465 | 1472 | } | |
| 1466 | 1473 | ||
| 1474 | + | core.PuregoSafeRegister(&xSocketGLibType, lib, "g_socket_get_type") | |
| 1475 | + | ||
| 1467 | 1476 | core.PuregoSafeRegister(&xNewSocket, lib, "g_socket_new") | |
| 1468 | 1477 | core.PuregoSafeRegister(&xNewSocketFromFd, lib, "g_socket_new_from_fd") | |
| 1469 | 1478 | ||
M v4/gio/gsocketaddress.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SocketAddressClass struct { | |
| @@ -25,6 +26,12 @@ type SocketAddress struct { | |||
| 25 | 26 | gobject.Object | |
| 26 | 27 | } | |
| 27 | 28 | ||
| 29 | + | var xSocketAddressGLibType func() types.GType | |
| 30 | + | ||
| 31 | + | func SocketAddressGLibType() types.GType { | |
| 32 | + | return xSocketAddressGLibType() | |
| 33 | + | } | |
| 34 | + | ||
| 28 | 35 | func SocketAddressNewFromInternalPtr(ptr uintptr) *SocketAddress { | |
| 29 | 36 | cls := &SocketAddress{} | |
| 30 | 37 | cls.Ptr = ptr | |
| @@ -148,6 +155,8 @@ func init() { | |||
| 148 | 155 | panic(err) | |
| 149 | 156 | } | |
| 150 | 157 | ||
| 158 | + | core.PuregoSafeRegister(&xSocketAddressGLibType, lib, "g_socket_address_get_type") | |
| 159 | + | ||
| 151 | 160 | core.PuregoSafeRegister(&xNewSocketAddressFromNative, lib, "g_socket_address_new_from_native") | |
| 152 | 161 | ||
| 153 | 162 | core.PuregoSafeRegister(&xSocketAddressGetFamily, lib, "g_socket_address_get_family") | |
M v4/gio/gsocketaddressenumerator.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GSocketAddressEnumerator. | |
| @@ -37,6 +38,12 @@ type SocketAddressEnumerator struct { | |||
| 37 | 38 | gobject.Object | |
| 38 | 39 | } | |
| 39 | 40 | ||
| 41 | + | var xSocketAddressEnumeratorGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func SocketAddressEnumeratorGLibType() types.GType { | |
| 44 | + | return xSocketAddressEnumeratorGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | func SocketAddressEnumeratorNewFromInternalPtr(ptr uintptr) *SocketAddressEnumerator { | |
| 41 | 48 | cls := &SocketAddressEnumerator{} | |
| 42 | 49 | cls.Ptr = ptr | |
| @@ -127,6 +134,8 @@ func init() { | |||
| 127 | 134 | panic(err) | |
| 128 | 135 | } | |
| 129 | 136 | ||
| 137 | + | core.PuregoSafeRegister(&xSocketAddressEnumeratorGLibType, lib, "g_socket_address_enumerator_get_type") | |
| 138 | + | ||
| 130 | 139 | core.PuregoSafeRegister(&xSocketAddressEnumeratorNext, lib, "g_socket_address_enumerator_next") | |
| 131 | 140 | core.PuregoSafeRegister(&xSocketAddressEnumeratorNextAsync, lib, "g_socket_address_enumerator_next_async") | |
| 132 | 141 | core.PuregoSafeRegister(&xSocketAddressEnumeratorNextFinish, lib, "g_socket_address_enumerator_next_finish") | |
M v4/gio/gsocketclient.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type SocketClientClass struct { | |
| @@ -42,6 +43,12 @@ type SocketClient struct { | |||
| 42 | 43 | gobject.Object | |
| 43 | 44 | } | |
| 44 | 45 | ||
| 46 | + | var xSocketClientGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func SocketClientGLibType() types.GType { | |
| 49 | + | return xSocketClientGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 45 | 52 | func SocketClientNewFromInternalPtr(ptr uintptr) *SocketClient { | |
| 46 | 53 | cls := &SocketClient{} | |
| 47 | 54 | cls.Ptr = ptr | |
| @@ -735,6 +742,8 @@ func init() { | |||
| 735 | 742 | panic(err) | |
| 736 | 743 | } | |
| 737 | 744 | ||
| 745 | + | core.PuregoSafeRegister(&xSocketClientGLibType, lib, "g_socket_client_get_type") | |
| 746 | + | ||
| 738 | 747 | core.PuregoSafeRegister(&xNewSocketClient, lib, "g_socket_client_new") | |
| 739 | 748 | ||
| 740 | 749 | core.PuregoSafeRegister(&xSocketClientAddApplicationProxy, lib, "g_socket_client_add_application_proxy") | |
M v4/gio/gsocketconnectable.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Provides an interface for returning a #GSocketAddressEnumerator | |
| @@ -85,6 +86,13 @@ type SocketConnectable interface { | |||
| 85 | 86 | ProxyEnumerate() *SocketAddressEnumerator | |
| 86 | 87 | ToString() string | |
| 87 | 88 | } | |
| 89 | + | ||
| 90 | + | var xSocketConnectableGLibType func() types.GType | |
| 91 | + | ||
| 92 | + | func SocketConnectableGLibType() types.GType { | |
| 93 | + | return xSocketConnectableGLibType() | |
| 94 | + | } | |
| 95 | + | ||
| 88 | 96 | type SocketConnectableBase struct { | |
| 89 | 97 | Ptr uintptr | |
| 90 | 98 | } | |
| @@ -154,6 +162,8 @@ func init() { | |||
| 154 | 162 | panic(err) | |
| 155 | 163 | } | |
| 156 | 164 | ||
| 165 | + | core.PuregoSafeRegister(&xSocketConnectableGLibType, lib, "g_socket_connectable_get_type") | |
| 166 | + | ||
| 157 | 167 | core.PuregoSafeRegister(&XGSocketConnectableEnumerate, lib, "g_socket_connectable_enumerate") | |
| 158 | 168 | core.PuregoSafeRegister(&XGSocketConnectableProxyEnumerate, lib, "g_socket_connectable_proxy_enumerate") | |
| 159 | 169 | core.PuregoSafeRegister(&XGSocketConnectableToString, lib, "g_socket_connectable_to_string") | |
M v4/gio/gsocketconnection.go +8 -0
| @@ -46,6 +46,12 @@ type SocketConnection struct { | |||
| 46 | 46 | IOStream | |
| 47 | 47 | } | |
| 48 | 48 | ||
| 49 | + | var xSocketConnectionGLibType func() types.GType | |
| 50 | + | ||
| 51 | + | func SocketConnectionGLibType() types.GType { | |
| 52 | + | return xSocketConnectionGLibType() | |
| 53 | + | } | |
| 54 | + | ||
| 49 | 55 | func SocketConnectionNewFromInternalPtr(ptr uintptr) *SocketConnection { | |
| 50 | 56 | cls := &SocketConnection{} | |
| 51 | 57 | cls.Ptr = ptr | |
| @@ -210,6 +216,8 @@ func init() { | |||
| 210 | 216 | panic(err) | |
| 211 | 217 | } | |
| 212 | 218 | ||
| 219 | + | core.PuregoSafeRegister(&xSocketConnectionGLibType, lib, "g_socket_connection_get_type") | |
| 220 | + | ||
| 213 | 221 | core.PuregoSafeRegister(&xSocketConnectionConnect, lib, "g_socket_connection_connect") | |
| 214 | 222 | core.PuregoSafeRegister(&xSocketConnectionConnectAsync, lib, "g_socket_connection_connect_async") | |
| 215 | 223 | core.PuregoSafeRegister(&xSocketConnectionConnectFinish, lib, "g_socket_connection_connect_finish") | |
M v4/gio/gsocketcontrolmessage.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Class structure for #GSocketControlMessage. | |
| @@ -49,6 +50,12 @@ type SocketControlMessage struct { | |||
| 49 | 50 | gobject.Object | |
| 50 | 51 | } | |
| 51 | 52 | ||
| 53 | + | var xSocketControlMessageGLibType func() types.GType | |
| 54 | + | ||
| 55 | + | func SocketControlMessageGLibType() types.GType { | |
| 56 | + | return xSocketControlMessageGLibType() | |
| 57 | + | } | |
| 58 | + | ||
| 52 | 59 | func SocketControlMessageNewFromInternalPtr(ptr uintptr) *SocketControlMessage { | |
| 53 | 60 | cls := &SocketControlMessage{} | |
| 54 | 61 | cls.Ptr = ptr | |
| @@ -135,6 +142,8 @@ func init() { | |||
| 135 | 142 | panic(err) | |
| 136 | 143 | } | |
| 137 | 144 | ||
| 145 | + | core.PuregoSafeRegister(&xSocketControlMessageGLibType, lib, "g_socket_control_message_get_type") | |
| 146 | + | ||
| 138 | 147 | core.PuregoSafeRegister(&xSocketControlMessageGetLevel, lib, "g_socket_control_message_get_level") | |
| 139 | 148 | core.PuregoSafeRegister(&xSocketControlMessageGetMsgType, lib, "g_socket_control_message_get_msg_type") | |
| 140 | 149 | core.PuregoSafeRegister(&xSocketControlMessageGetSize, lib, "g_socket_control_message_get_size") | |
M v4/gio/gsocketlistener.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GSocketListener. | |
| @@ -44,6 +45,12 @@ type SocketListener struct { | |||
| 44 | 45 | gobject.Object | |
| 45 | 46 | } | |
| 46 | 47 | ||
| 48 | + | var xSocketListenerGLibType func() types.GType | |
| 49 | + | ||
| 50 | + | func SocketListenerGLibType() types.GType { | |
| 51 | + | return xSocketListenerGLibType() | |
| 52 | + | } | |
| 53 | + | ||
| 47 | 54 | func SocketListenerNewFromInternalPtr(ptr uintptr) *SocketListener { | |
| 48 | 55 | cls := &SocketListener{} | |
| 49 | 56 | cls.Ptr = ptr | |
| @@ -370,6 +377,8 @@ func init() { | |||
| 370 | 377 | panic(err) | |
| 371 | 378 | } | |
| 372 | 379 | ||
| 380 | + | core.PuregoSafeRegister(&xSocketListenerGLibType, lib, "g_socket_listener_get_type") | |
| 381 | + | ||
| 373 | 382 | core.PuregoSafeRegister(&xNewSocketListener, lib, "g_socket_listener_new") | |
| 374 | 383 | ||
| 375 | 384 | core.PuregoSafeRegister(&xSocketListenerAccept, lib, "g_socket_listener_accept") | |
M v4/gio/gsocketservice.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GSocketService. | |
| @@ -56,6 +57,12 @@ type SocketService struct { | |||
| 56 | 57 | SocketListener | |
| 57 | 58 | } | |
| 58 | 59 | ||
| 60 | + | var xSocketServiceGLibType func() types.GType | |
| 61 | + | ||
| 62 | + | func SocketServiceGLibType() types.GType { | |
| 63 | + | return xSocketServiceGLibType() | |
| 64 | + | } | |
| 65 | + | ||
| 59 | 66 | func SocketServiceNewFromInternalPtr(ptr uintptr) *SocketService { | |
| 60 | 67 | cls := &SocketService{} | |
| 61 | 68 | cls.Ptr = ptr | |
| @@ -174,6 +181,8 @@ func init() { | |||
| 174 | 181 | panic(err) | |
| 175 | 182 | } | |
| 176 | 183 | ||
| 184 | + | core.PuregoSafeRegister(&xSocketServiceGLibType, lib, "g_socket_service_get_type") | |
| 185 | + | ||
| 177 | 186 | core.PuregoSafeRegister(&xNewSocketService, lib, "g_socket_service_new") | |
| 178 | 187 | ||
| 179 | 188 | core.PuregoSafeRegister(&xSocketServiceIsActive, lib, "g_socket_service_is_active") | |
M v4/gio/gsrvtarget.go +1 -0
| @@ -21,6 +21,7 @@ func init() { | |||
| 21 | 21 | if err != nil { | |
| 22 | 22 | panic(err) | |
| 23 | 23 | } | |
| 24 | + | ||
| 24 | 25 | core.PuregoSafeRegister(&xSrvTargetListSort, lib, "g_srv_target_list_sort") | |
| 25 | 26 | ||
| 26 | 27 | } | |
M v4/gio/gtask.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // The prototype for a task function to be run in a thread via | |
| @@ -545,6 +546,12 @@ type Task struct { | |||
| 545 | 546 | gobject.Object | |
| 546 | 547 | } | |
| 547 | 548 | ||
| 549 | + | var xTaskGLibType func() types.GType | |
| 550 | + | ||
| 551 | + | func TaskGLibType() types.GType { | |
| 552 | + | return xTaskGLibType() | |
| 553 | + | } | |
| 554 | + | ||
| 548 | 555 | func TaskNewFromInternalPtr(ptr uintptr) *Task { | |
| 549 | 556 | cls := &Task{} | |
| 550 | 557 | cls.Ptr = ptr | |
| @@ -1176,6 +1183,8 @@ func init() { | |||
| 1176 | 1183 | panic(err) | |
| 1177 | 1184 | } | |
| 1178 | 1185 | ||
| 1186 | + | core.PuregoSafeRegister(&xTaskGLibType, lib, "g_task_get_type") | |
| 1187 | + | ||
| 1179 | 1188 | core.PuregoSafeRegister(&xNewTask, lib, "g_task_new") | |
| 1180 | 1189 | ||
| 1181 | 1190 | core.PuregoSafeRegister(&xTaskAttachSource, lib, "g_task_attach_source") | |
M v4/gio/gtcpconnection.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | type TcpConnectionClass struct { | |
| @@ -29,6 +30,12 @@ type TcpConnection struct { | |||
| 29 | 30 | SocketConnection | |
| 30 | 31 | } | |
| 31 | 32 | ||
| 33 | + | var xTcpConnectionGLibType func() types.GType | |
| 34 | + | ||
| 35 | + | func TcpConnectionGLibType() types.GType { | |
| 36 | + | return xTcpConnectionGLibType() | |
| 37 | + | } | |
| 38 | + | ||
| 32 | 39 | func TcpConnectionNewFromInternalPtr(ptr uintptr) *TcpConnection { | |
| 33 | 40 | cls := &TcpConnection{} | |
| 34 | 41 | cls.Ptr = ptr | |
| @@ -76,6 +83,8 @@ func init() { | |||
| 76 | 83 | panic(err) | |
| 77 | 84 | } | |
| 78 | 85 | ||
| 86 | + | core.PuregoSafeRegister(&xTcpConnectionGLibType, lib, "g_tcp_connection_get_type") | |
| 87 | + | ||
| 79 | 88 | core.PuregoSafeRegister(&xTcpConnectionGetGracefulDisconnect, lib, "g_tcp_connection_get_graceful_disconnect") | |
| 80 | 89 | core.PuregoSafeRegister(&xTcpConnectionSetGracefulDisconnect, lib, "g_tcp_connection_set_graceful_disconnect") | |
| 81 | 90 | ||
M v4/gio/gtcpwrapperconnection.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type TcpWrapperConnectionClass struct { | |
| @@ -33,6 +34,12 @@ type TcpWrapperConnection struct { | |||
| 33 | 34 | TcpConnection | |
| 34 | 35 | } | |
| 35 | 36 | ||
| 37 | + | var xTcpWrapperConnectionGLibType func() types.GType | |
| 38 | + | ||
| 39 | + | func TcpWrapperConnectionGLibType() types.GType { | |
| 40 | + | return xTcpWrapperConnectionGLibType() | |
| 41 | + | } | |
| 42 | + | ||
| 36 | 43 | func TcpWrapperConnectionNewFromInternalPtr(ptr uintptr) *TcpWrapperConnection { | |
| 37 | 44 | cls := &TcpWrapperConnection{} | |
| 38 | 45 | cls.Ptr = ptr | |
| @@ -86,6 +93,8 @@ func init() { | |||
| 86 | 93 | panic(err) | |
| 87 | 94 | } | |
| 88 | 95 | ||
| 96 | + | core.PuregoSafeRegister(&xTcpWrapperConnectionGLibType, lib, "g_tcp_wrapper_connection_get_type") | |
| 97 | + | ||
| 89 | 98 | core.PuregoSafeRegister(&xNewTcpWrapperConnection, lib, "g_tcp_wrapper_connection_new") | |
| 90 | 99 | ||
| 91 | 100 | core.PuregoSafeRegister(&xTcpWrapperConnectionGetBaseIoStream, lib, "g_tcp_wrapper_connection_get_base_io_stream") | |
M v4/gio/gthemedicon.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type ThemedIconClass struct { | |
| @@ -28,6 +29,12 @@ type ThemedIcon struct { | |||
| 28 | 29 | gobject.Object | |
| 29 | 30 | } | |
| 30 | 31 | ||
| 32 | + | var xThemedIconGLibType func() types.GType | |
| 33 | + | ||
| 34 | + | func ThemedIconGLibType() types.GType { | |
| 35 | + | return xThemedIconGLibType() | |
| 36 | + | } | |
| 37 | + | ||
| 31 | 38 | func ThemedIconNewFromInternalPtr(ptr uintptr) *ThemedIcon { | |
| 32 | 39 | cls := &ThemedIcon{} | |
| 33 | 40 | cls.Ptr = ptr | |
| @@ -184,6 +191,8 @@ func init() { | |||
| 184 | 191 | panic(err) | |
| 185 | 192 | } | |
| 186 | 193 | ||
| 194 | + | core.PuregoSafeRegister(&xThemedIconGLibType, lib, "g_themed_icon_get_type") | |
| 195 | + | ||
| 187 | 196 | core.PuregoSafeRegister(&xNewThemedIcon, lib, "g_themed_icon_new") | |
| 188 | 197 | core.PuregoSafeRegister(&xNewThemedIconFromNames, lib, "g_themed_icon_new_from_names") | |
| 189 | 198 | core.PuregoSafeRegister(&xNewThemedIconWithDefaultFallbacks, lib, "g_themed_icon_new_with_default_fallbacks") | |
M v4/gio/gthreadedsocketservice.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type ThreadedSocketServiceClass struct { | |
| @@ -44,6 +45,12 @@ type ThreadedSocketService struct { | |||
| 44 | 45 | SocketService | |
| 45 | 46 | } | |
| 46 | 47 | ||
| 48 | + | var xThreadedSocketServiceGLibType func() types.GType | |
| 49 | + | ||
| 50 | + | func ThreadedSocketServiceGLibType() types.GType { | |
| 51 | + | return xThreadedSocketServiceGLibType() | |
| 52 | + | } | |
| 53 | + | ||
| 47 | 54 | func ThreadedSocketServiceNewFromInternalPtr(ptr uintptr) *ThreadedSocketService { | |
| 48 | 55 | cls := &ThreadedSocketService{} | |
| 49 | 56 | cls.Ptr = ptr | |
| @@ -104,6 +111,8 @@ func init() { | |||
| 104 | 111 | panic(err) | |
| 105 | 112 | } | |
| 106 | 113 | ||
| 114 | + | core.PuregoSafeRegister(&xThreadedSocketServiceGLibType, lib, "g_threaded_socket_service_get_type") | |
| 115 | + | ||
| 107 | 116 | core.PuregoSafeRegister(&xNewThreadedSocketService, lib, "g_threaded_socket_service_new") | |
| 108 | 117 | ||
| 109 | 118 | } | |
M v4/gio/gtlsbackend.go +10 -0
| @@ -34,6 +34,13 @@ type TlsBackend interface { | |||
| 34 | 34 | SupportsDtls() bool | |
| 35 | 35 | SupportsTls() bool | |
| 36 | 36 | } | |
| 37 | + | ||
| 38 | + | var xTlsBackendGLibType func() types.GType | |
| 39 | + | ||
| 40 | + | func TlsBackendGLibType() types.GType { | |
| 41 | + | return xTlsBackendGLibType() | |
| 42 | + | } | |
| 43 | + | ||
| 37 | 44 | type TlsBackendBase struct { | |
| 38 | 45 | Ptr uintptr | |
| 39 | 46 | } | |
| @@ -171,8 +178,11 @@ func init() { | |||
| 171 | 178 | if err != nil { | |
| 172 | 179 | panic(err) | |
| 173 | 180 | } | |
| 181 | + | ||
| 174 | 182 | core.PuregoSafeRegister(&xTlsBackendGetDefault, lib, "g_tls_backend_get_default") | |
| 175 | 183 | ||
| 184 | + | core.PuregoSafeRegister(&xTlsBackendGLibType, lib, "g_tls_backend_get_type") | |
| 185 | + | ||
| 176 | 186 | core.PuregoSafeRegister(&XGTlsBackendGetCertificateType, lib, "g_tls_backend_get_certificate_type") | |
| 177 | 187 | core.PuregoSafeRegister(&XGTlsBackendGetClientConnectionType, lib, "g_tls_backend_get_client_connection_type") | |
| 178 | 188 | core.PuregoSafeRegister(&XGTlsBackendGetDefaultDatabase, lib, "g_tls_backend_get_default_database") | |
M v4/gio/gtlscertificate.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type TlsCertificateClass struct { | |
| @@ -36,6 +37,12 @@ type TlsCertificate struct { | |||
| 36 | 37 | gobject.Object | |
| 37 | 38 | } | |
| 38 | 39 | ||
| 40 | + | var xTlsCertificateGLibType func() types.GType | |
| 41 | + | ||
| 42 | + | func TlsCertificateGLibType() types.GType { | |
| 43 | + | return xTlsCertificateGLibType() | |
| 44 | + | } | |
| 45 | + | ||
| 39 | 46 | func TlsCertificateNewFromInternalPtr(ptr uintptr) *TlsCertificate { | |
| 40 | 47 | cls := &TlsCertificate{} | |
| 41 | 48 | cls.Ptr = ptr | |
| @@ -406,6 +413,8 @@ func init() { | |||
| 406 | 413 | panic(err) | |
| 407 | 414 | } | |
| 408 | 415 | ||
| 416 | + | core.PuregoSafeRegister(&xTlsCertificateGLibType, lib, "g_tls_certificate_get_type") | |
| 417 | + | ||
| 409 | 418 | core.PuregoSafeRegister(&xNewTlsCertificateFromFile, lib, "g_tls_certificate_new_from_file") | |
| 410 | 419 | core.PuregoSafeRegister(&xNewTlsCertificateFromFileWithPassword, lib, "g_tls_certificate_new_from_file_with_password") | |
| 411 | 420 | core.PuregoSafeRegister(&xNewTlsCertificateFromFiles, lib, "g_tls_certificate_new_from_files") | |
M v4/gio/gtlsclientconnection.go +11 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // vtable for a #GTlsClientConnection implementation. | |
| @@ -33,6 +34,13 @@ type TlsClientConnection interface { | |||
| 33 | 34 | SetUseSsl3(UseSsl3Var bool) | |
| 34 | 35 | SetValidationFlags(FlagsVar TlsCertificateFlags) | |
| 35 | 36 | } | |
| 37 | + | ||
| 38 | + | var xTlsClientConnectionGLibType func() types.GType | |
| 39 | + | ||
| 40 | + | func TlsClientConnectionGLibType() types.GType { | |
| 41 | + | return xTlsClientConnectionGLibType() | |
| 42 | + | } | |
| 43 | + | ||
| 36 | 44 | type TlsClientConnectionBase struct { | |
| 37 | 45 | Ptr uintptr | |
| 38 | 46 | } | |
| @@ -206,8 +214,11 @@ func init() { | |||
| 206 | 214 | if err != nil { | |
| 207 | 215 | panic(err) | |
| 208 | 216 | } | |
| 217 | + | ||
| 209 | 218 | core.PuregoSafeRegister(&xTlsClientConnectionNew, lib, "g_tls_client_connection_new") | |
| 210 | 219 | ||
| 220 | + | core.PuregoSafeRegister(&xTlsClientConnectionGLibType, lib, "g_tls_client_connection_get_type") | |
| 221 | + | ||
| 211 | 222 | core.PuregoSafeRegister(&XGTlsClientConnectionCopySessionState, lib, "g_tls_client_connection_copy_session_state") | |
| 212 | 223 | core.PuregoSafeRegister(&XGTlsClientConnectionGetAcceptedCas, lib, "g_tls_client_connection_get_accepted_cas") | |
| 213 | 224 | core.PuregoSafeRegister(&XGTlsClientConnectionGetServerIdentity, lib, "g_tls_client_connection_get_server_identity") | |
M v4/gio/gtlsconnection.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // The class structure for the #GTlsConnection type. | |
| @@ -38,6 +39,12 @@ type TlsConnection struct { | |||
| 38 | 39 | IOStream | |
| 39 | 40 | } | |
| 40 | 41 | ||
| 42 | + | var xTlsConnectionGLibType func() types.GType | |
| 43 | + | ||
| 44 | + | func TlsConnectionGLibType() types.GType { | |
| 45 | + | return xTlsConnectionGLibType() | |
| 46 | + | } | |
| 47 | + | ||
| 41 | 48 | func TlsConnectionNewFromInternalPtr(ptr uintptr) *TlsConnection { | |
| 42 | 49 | cls := &TlsConnection{} | |
| 43 | 50 | cls.Ptr = ptr | |
| @@ -524,6 +531,8 @@ func init() { | |||
| 524 | 531 | panic(err) | |
| 525 | 532 | } | |
| 526 | 533 | ||
| 534 | + | core.PuregoSafeRegister(&xTlsConnectionGLibType, lib, "g_tls_connection_get_type") | |
| 535 | + | ||
| 527 | 536 | core.PuregoSafeRegister(&xTlsConnectionEmitAcceptCertificate, lib, "g_tls_connection_emit_accept_certificate") | |
| 528 | 537 | core.PuregoSafeRegister(&xTlsConnectionGetCertificate, lib, "g_tls_connection_get_certificate") | |
| 529 | 538 | core.PuregoSafeRegister(&xTlsConnectionGetChannelBindingData, lib, "g_tls_connection_get_channel_binding_data") | |
M v4/gio/gtlsdatabase.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // The class for #GTlsDatabase. Derived classes should implement the various | |
| @@ -52,6 +53,12 @@ type TlsDatabase struct { | |||
| 52 | 53 | gobject.Object | |
| 53 | 54 | } | |
| 54 | 55 | ||
| 56 | + | var xTlsDatabaseGLibType func() types.GType | |
| 57 | + | ||
| 58 | + | func TlsDatabaseGLibType() types.GType { | |
| 59 | + | return xTlsDatabaseGLibType() | |
| 60 | + | } | |
| 61 | + | ||
| 55 | 62 | func TlsDatabaseNewFromInternalPtr(ptr uintptr) *TlsDatabase { | |
| 56 | 63 | cls := &TlsDatabase{} | |
| 57 | 64 | cls.Ptr = ptr | |
| @@ -381,6 +388,8 @@ func init() { | |||
| 381 | 388 | panic(err) | |
| 382 | 389 | } | |
| 383 | 390 | ||
| 391 | + | core.PuregoSafeRegister(&xTlsDatabaseGLibType, lib, "g_tls_database_get_type") | |
| 392 | + | ||
| 384 | 393 | core.PuregoSafeRegister(&xTlsDatabaseCreateCertificateHandle, lib, "g_tls_database_create_certificate_handle") | |
| 385 | 394 | core.PuregoSafeRegister(&xTlsDatabaseLookupCertificateForHandle, lib, "g_tls_database_lookup_certificate_for_handle") | |
| 386 | 395 | core.PuregoSafeRegister(&xTlsDatabaseLookupCertificateForHandleAsync, lib, "g_tls_database_lookup_certificate_for_handle_async") | |
M v4/gio/gtlsfiledatabase.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Provides an interface for #GTlsFileDatabase implementations. | |
| @@ -27,6 +28,13 @@ type TlsFileDatabase interface { | |||
| 27 | 28 | GoPointer() uintptr | |
| 28 | 29 | SetGoPointer(uintptr) | |
| 29 | 30 | } | |
| 31 | + | ||
| 32 | + | var xTlsFileDatabaseGLibType func() types.GType | |
| 33 | + | ||
| 34 | + | func TlsFileDatabaseGLibType() types.GType { | |
| 35 | + | return xTlsFileDatabaseGLibType() | |
| 36 | + | } | |
| 37 | + | ||
| 30 | 38 | type TlsFileDatabaseBase struct { | |
| 31 | 39 | Ptr uintptr | |
| 32 | 40 | } | |
| @@ -68,6 +76,9 @@ func init() { | |||
| 68 | 76 | if err != nil { | |
| 69 | 77 | panic(err) | |
| 70 | 78 | } | |
| 79 | + | ||
| 71 | 80 | core.PuregoSafeRegister(&xTlsFileDatabaseNew, lib, "g_tls_file_database_new") | |
| 72 | 81 | ||
| 82 | + | core.PuregoSafeRegister(&xTlsFileDatabaseGLibType, lib, "g_tls_file_database_get_type") | |
| 83 | + | ||
| 73 | 84 | } | |
M v4/gio/gtlsinteraction.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // The class for #GTlsInteraction. Derived classes implement the various | |
| @@ -65,6 +66,12 @@ type TlsInteraction struct { | |||
| 65 | 66 | gobject.Object | |
| 66 | 67 | } | |
| 67 | 68 | ||
| 69 | + | var xTlsInteractionGLibType func() types.GType | |
| 70 | + | ||
| 71 | + | func TlsInteractionGLibType() types.GType { | |
| 72 | + | return xTlsInteractionGLibType() | |
| 73 | + | } | |
| 74 | + | ||
| 68 | 75 | func TlsInteractionNewFromInternalPtr(ptr uintptr) *TlsInteraction { | |
| 69 | 76 | cls := &TlsInteraction{} | |
| 70 | 77 | cls.Ptr = ptr | |
| @@ -289,6 +296,8 @@ func init() { | |||
| 289 | 296 | panic(err) | |
| 290 | 297 | } | |
| 291 | 298 | ||
| 299 | + | core.PuregoSafeRegister(&xTlsInteractionGLibType, lib, "g_tls_interaction_get_type") | |
| 300 | + | ||
| 292 | 301 | core.PuregoSafeRegister(&xTlsInteractionAskPassword, lib, "g_tls_interaction_ask_password") | |
| 293 | 302 | core.PuregoSafeRegister(&xTlsInteractionAskPasswordAsync, lib, "g_tls_interaction_ask_password_async") | |
| 294 | 303 | core.PuregoSafeRegister(&xTlsInteractionAskPasswordFinish, lib, "g_tls_interaction_ask_password_finish") | |
M v4/gio/gtlspassword.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Class structure for #GTlsPassword. | |
| @@ -33,6 +34,12 @@ type TlsPassword struct { | |||
| 33 | 34 | gobject.Object | |
| 34 | 35 | } | |
| 35 | 36 | ||
| 37 | + | var xTlsPasswordGLibType func() types.GType | |
| 38 | + | ||
| 39 | + | func TlsPasswordGLibType() types.GType { | |
| 40 | + | return xTlsPasswordGLibType() | |
| 41 | + | } | |
| 42 | + | ||
| 36 | 43 | func TlsPasswordNewFromInternalPtr(ptr uintptr) *TlsPassword { | |
| 37 | 44 | cls := &TlsPassword{} | |
| 38 | 45 | cls.Ptr = ptr | |
| @@ -172,6 +179,8 @@ func init() { | |||
| 172 | 179 | panic(err) | |
| 173 | 180 | } | |
| 174 | 181 | ||
| 182 | + | core.PuregoSafeRegister(&xTlsPasswordGLibType, lib, "g_tls_password_get_type") | |
| 183 | + | ||
| 175 | 184 | core.PuregoSafeRegister(&xNewTlsPassword, lib, "g_tls_password_new") | |
| 176 | 185 | ||
| 177 | 186 | core.PuregoSafeRegister(&xTlsPasswordGetDescription, lib, "g_tls_password_get_description") | |
M v4/gio/gtlsserverconnection.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // vtable for a #GTlsServerConnection implementation. | |
| @@ -24,6 +25,13 @@ type TlsServerConnection interface { | |||
| 24 | 25 | GoPointer() uintptr | |
| 25 | 26 | SetGoPointer(uintptr) | |
| 26 | 27 | } | |
| 28 | + | ||
| 29 | + | var xTlsServerConnectionGLibType func() types.GType | |
| 30 | + | ||
| 31 | + | func TlsServerConnectionGLibType() types.GType { | |
| 32 | + | return xTlsServerConnectionGLibType() | |
| 33 | + | } | |
| 34 | + | ||
| 27 | 35 | type TlsServerConnectionBase struct { | |
| 28 | 36 | Ptr uintptr | |
| 29 | 37 | } | |
| @@ -67,6 +75,9 @@ func init() { | |||
| 67 | 75 | if err != nil { | |
| 68 | 76 | panic(err) | |
| 69 | 77 | } | |
| 78 | + | ||
| 70 | 79 | core.PuregoSafeRegister(&xTlsServerConnectionNew, lib, "g_tls_server_connection_new") | |
| 71 | 80 | ||
| 81 | + | core.PuregoSafeRegister(&xTlsServerConnectionGLibType, lib, "g_tls_server_connection_get_type") | |
| 82 | + | ||
| 72 | 83 | } | |
M v4/gio/gunixconnection.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type UnixConnectionClass struct { | |
| @@ -40,6 +41,12 @@ type UnixConnection struct { | |||
| 40 | 41 | SocketConnection | |
| 41 | 42 | } | |
| 42 | 43 | ||
| 44 | + | var xUnixConnectionGLibType func() types.GType | |
| 45 | + | ||
| 46 | + | func UnixConnectionGLibType() types.GType { | |
| 47 | + | return xUnixConnectionGLibType() | |
| 48 | + | } | |
| 49 | + | ||
| 43 | 50 | func UnixConnectionNewFromInternalPtr(ptr uintptr) *UnixConnection { | |
| 44 | 51 | cls := &UnixConnection{} | |
| 45 | 52 | cls.Ptr = ptr | |
| @@ -237,6 +244,8 @@ func init() { | |||
| 237 | 244 | panic(err) | |
| 238 | 245 | } | |
| 239 | 246 | ||
| 247 | + | core.PuregoSafeRegister(&xUnixConnectionGLibType, lib, "g_unix_connection_get_type") | |
| 248 | + | ||
| 240 | 249 | core.PuregoSafeRegister(&xUnixConnectionReceiveCredentials, lib, "g_unix_connection_receive_credentials") | |
| 241 | 250 | core.PuregoSafeRegister(&xUnixConnectionReceiveCredentialsAsync, lib, "g_unix_connection_receive_credentials_async") | |
| 242 | 251 | core.PuregoSafeRegister(&xUnixConnectionReceiveCredentialsFinish, lib, "g_unix_connection_receive_credentials_finish") | |
M v4/gio/gunixcredentialsmessage.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Class structure for #GUnixCredentialsMessage. | |
| @@ -48,6 +49,12 @@ type UnixCredentialsMessage struct { | |||
| 48 | 49 | SocketControlMessage | |
| 49 | 50 | } | |
| 50 | 51 | ||
| 52 | + | var xUnixCredentialsMessageGLibType func() types.GType | |
| 53 | + | ||
| 54 | + | func UnixCredentialsMessageGLibType() types.GType { | |
| 55 | + | return xUnixCredentialsMessageGLibType() | |
| 56 | + | } | |
| 57 | + | ||
| 51 | 58 | func UnixCredentialsMessageNewFromInternalPtr(ptr uintptr) *UnixCredentialsMessage { | |
| 52 | 59 | cls := &UnixCredentialsMessage{} | |
| 53 | 60 | cls.Ptr = ptr | |
| @@ -126,6 +133,8 @@ func init() { | |||
| 126 | 133 | panic(err) | |
| 127 | 134 | } | |
| 128 | 135 | ||
| 136 | + | core.PuregoSafeRegister(&xUnixCredentialsMessageGLibType, lib, "g_unix_credentials_message_get_type") | |
| 137 | + | ||
| 129 | 138 | core.PuregoSafeRegister(&xNewUnixCredentialsMessage, lib, "g_unix_credentials_message_new") | |
| 130 | 139 | core.PuregoSafeRegister(&xNewUnixCredentialsMessageWithCredentials, lib, "g_unix_credentials_message_new_with_credentials") | |
| 131 | 140 | ||
M v4/gio/gunixfdlist.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type UnixFDListClass struct { | |
| @@ -39,6 +40,12 @@ type UnixFDList struct { | |||
| 39 | 40 | gobject.Object | |
| 40 | 41 | } | |
| 41 | 42 | ||
| 43 | + | var xUnixFDListGLibType func() types.GType | |
| 44 | + | ||
| 45 | + | func UnixFDListGLibType() types.GType { | |
| 46 | + | return xUnixFDListGLibType() | |
| 47 | + | } | |
| 48 | + | ||
| 42 | 49 | func UnixFDListNewFromInternalPtr(ptr uintptr) *UnixFDList { | |
| 43 | 50 | cls := &UnixFDList{} | |
| 44 | 51 | cls.Ptr = ptr | |
| @@ -205,6 +212,8 @@ func init() { | |||
| 205 | 212 | panic(err) | |
| 206 | 213 | } | |
| 207 | 214 | ||
| 215 | + | core.PuregoSafeRegister(&xUnixFDListGLibType, lib, "g_unix_fd_list_get_type") | |
| 216 | + | ||
| 208 | 217 | core.PuregoSafeRegister(&xNewUnixFDList, lib, "g_unix_fd_list_new") | |
| 209 | 218 | core.PuregoSafeRegister(&xNewUnixFDListFromArray, lib, "g_unix_fd_list_new_from_array") | |
| 210 | 219 | ||
M v4/gio/gunixfdmessage.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type UnixFDMessageClass struct { | |
| @@ -42,6 +43,12 @@ type UnixFDMessage struct { | |||
| 42 | 43 | SocketControlMessage | |
| 43 | 44 | } | |
| 44 | 45 | ||
| 46 | + | var xUnixFDMessageGLibType func() types.GType | |
| 47 | + | ||
| 48 | + | func UnixFDMessageGLibType() types.GType { | |
| 49 | + | return xUnixFDMessageGLibType() | |
| 50 | + | } | |
| 51 | + | ||
| 45 | 52 | func UnixFDMessageNewFromInternalPtr(ptr uintptr) *UnixFDMessage { | |
| 46 | 53 | cls := &UnixFDMessage{} | |
| 47 | 54 | cls.Ptr = ptr | |
| @@ -160,6 +167,8 @@ func init() { | |||
| 160 | 167 | panic(err) | |
| 161 | 168 | } | |
| 162 | 169 | ||
| 170 | + | core.PuregoSafeRegister(&xUnixFDMessageGLibType, lib, "g_unix_fd_message_get_type") | |
| 171 | + | ||
| 163 | 172 | core.PuregoSafeRegister(&xNewUnixFDMessage, lib, "g_unix_fd_message_new") | |
| 164 | 173 | core.PuregoSafeRegister(&xNewUnixFDMessageWithFdList, lib, "g_unix_fd_message_new_with_fd_list") | |
| 165 | 174 | ||
M v4/gio/gunixinputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type UnixInputStreamClass struct { | |
| @@ -37,6 +38,12 @@ type UnixInputStream struct { | |||
| 37 | 38 | InputStream | |
| 38 | 39 | } | |
| 39 | 40 | ||
| 41 | + | var xUnixInputStreamGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func UnixInputStreamGLibType() types.GType { | |
| 44 | + | return xUnixInputStreamGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | func UnixInputStreamNewFromInternalPtr(ptr uintptr) *UnixInputStream { | |
| 41 | 48 | cls := &UnixInputStream{} | |
| 42 | 49 | cls.Ptr = ptr | |
| @@ -168,6 +175,8 @@ func init() { | |||
| 168 | 175 | panic(err) | |
| 169 | 176 | } | |
| 170 | 177 | ||
| 178 | + | core.PuregoSafeRegister(&xUnixInputStreamGLibType, lib, "g_unix_input_stream_get_type") | |
| 179 | + | ||
| 171 | 180 | core.PuregoSafeRegister(&xNewUnixInputStream, lib, "g_unix_input_stream_new") | |
| 172 | 181 | ||
| 173 | 182 | core.PuregoSafeRegister(&xUnixInputStreamGetCloseFd, lib, "g_unix_input_stream_get_close_fd") | |
M v4/gio/gunixmounts.go +26 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // Defines a Unix mount entry (e.g. <filename>/media/cdrom</filename>). | |
| @@ -15,6 +16,12 @@ import ( | |||
| 15 | 16 | type UnixMountEntry struct { | |
| 16 | 17 | } | |
| 17 | 18 | ||
| 19 | + | var xUnixMountEntryGLibType func() types.GType | |
| 20 | + | ||
| 21 | + | func UnixMountEntryGLibType() types.GType { | |
| 22 | + | return xUnixMountEntryGLibType() | |
| 23 | + | } | |
| 24 | + | ||
| 18 | 25 | func (x *UnixMountEntry) GoPointer() uintptr { | |
| 19 | 26 | return uintptr(unsafe.Pointer(x)) | |
| 20 | 27 | } | |
| @@ -31,6 +38,12 @@ func (x *UnixMountMonitorClass) GoPointer() uintptr { | |||
| 31 | 38 | type UnixMountPoint struct { | |
| 32 | 39 | } | |
| 33 | 40 | ||
| 41 | + | var xUnixMountPointGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func UnixMountPointGLibType() types.GType { | |
| 44 | + | return xUnixMountPointGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 34 | 47 | func (x *UnixMountPoint) GoPointer() uintptr { | |
| 35 | 48 | return uintptr(unsafe.Pointer(x)) | |
| 36 | 49 | } | |
| @@ -476,6 +489,12 @@ type UnixMountMonitor struct { | |||
| 476 | 489 | gobject.Object | |
| 477 | 490 | } | |
| 478 | 491 | ||
| 492 | + | var xUnixMountMonitorGLibType func() types.GType | |
| 493 | + | ||
| 494 | + | func UnixMountMonitorGLibType() types.GType { | |
| 495 | + | return xUnixMountMonitorGLibType() | |
| 496 | + | } | |
| 497 | + | ||
| 479 | 498 | func UnixMountMonitorNewFromInternalPtr(ptr uintptr) *UnixMountMonitor { | |
| 480 | 499 | cls := &UnixMountMonitor{} | |
| 481 | 500 | cls.Ptr = ptr | |
| @@ -593,6 +612,7 @@ func init() { | |||
| 593 | 612 | if err != nil { | |
| 594 | 613 | panic(err) | |
| 595 | 614 | } | |
| 615 | + | ||
| 596 | 616 | core.PuregoSafeRegister(&xUnixIsMountPathSystemInternal, lib, "g_unix_is_mount_path_system_internal") | |
| 597 | 617 | core.PuregoSafeRegister(&xUnixIsSystemDevicePath, lib, "g_unix_is_system_device_path") | |
| 598 | 618 | core.PuregoSafeRegister(&xUnixIsSystemFsType, lib, "g_unix_is_system_fs_type") | |
| @@ -619,6 +639,10 @@ func init() { | |||
| 619 | 639 | core.PuregoSafeRegister(&xUnixMountsChangedSince, lib, "g_unix_mounts_changed_since") | |
| 620 | 640 | core.PuregoSafeRegister(&xUnixMountsGet, lib, "g_unix_mounts_get") | |
| 621 | 641 | ||
| 642 | + | core.PuregoSafeRegister(&xUnixMountEntryGLibType, lib, "g_unix_mount_entry_get_type") | |
| 643 | + | ||
| 644 | + | core.PuregoSafeRegister(&xUnixMountPointGLibType, lib, "g_unix_mount_point_get_type") | |
| 645 | + | ||
| 622 | 646 | core.PuregoSafeRegister(&xUnixMountPointCompare, lib, "g_unix_mount_point_compare") | |
| 623 | 647 | core.PuregoSafeRegister(&xUnixMountPointCopy, lib, "g_unix_mount_point_copy") | |
| 624 | 648 | core.PuregoSafeRegister(&xUnixMountPointFree, lib, "g_unix_mount_point_free") | |
| @@ -634,6 +658,8 @@ func init() { | |||
| 634 | 658 | core.PuregoSafeRegister(&xUnixMountPointIsReadonly, lib, "g_unix_mount_point_is_readonly") | |
| 635 | 659 | core.PuregoSafeRegister(&xUnixMountPointIsUserMountable, lib, "g_unix_mount_point_is_user_mountable") | |
| 636 | 660 | ||
| 661 | + | core.PuregoSafeRegister(&xUnixMountMonitorGLibType, lib, "g_unix_mount_monitor_get_type") | |
| 662 | + | ||
| 637 | 663 | core.PuregoSafeRegister(&xNewUnixMountMonitor, lib, "g_unix_mount_monitor_new") | |
| 638 | 664 | ||
| 639 | 665 | core.PuregoSafeRegister(&xUnixMountMonitorSetRateLimit, lib, "g_unix_mount_monitor_set_rate_limit") | |
M v4/gio/gunixoutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | type UnixOutputStreamClass struct { | |
| @@ -37,6 +38,12 @@ type UnixOutputStream struct { | |||
| 37 | 38 | OutputStream | |
| 38 | 39 | } | |
| 39 | 40 | ||
| 41 | + | var xUnixOutputStreamGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func UnixOutputStreamGLibType() types.GType { | |
| 44 | + | return xUnixOutputStreamGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | func UnixOutputStreamNewFromInternalPtr(ptr uintptr) *UnixOutputStream { | |
| 41 | 48 | cls := &UnixOutputStream{} | |
| 42 | 49 | cls.Ptr = ptr | |
| @@ -199,6 +206,8 @@ func init() { | |||
| 199 | 206 | panic(err) | |
| 200 | 207 | } | |
| 201 | 208 | ||
| 209 | + | core.PuregoSafeRegister(&xUnixOutputStreamGLibType, lib, "g_unix_output_stream_get_type") | |
| 210 | + | ||
| 202 | 211 | core.PuregoSafeRegister(&xNewUnixOutputStream, lib, "g_unix_output_stream_new") | |
| 203 | 212 | ||
| 204 | 213 | core.PuregoSafeRegister(&xUnixOutputStreamGetCloseFd, lib, "g_unix_output_stream_get_close_fd") | |
M v4/gio/gunixsocketaddress.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | type UnixSocketAddressClass struct { | |
| @@ -45,6 +46,12 @@ type UnixSocketAddress struct { | |||
| 45 | 46 | SocketAddress | |
| 46 | 47 | } | |
| 47 | 48 | ||
| 49 | + | var xUnixSocketAddressGLibType func() types.GType | |
| 50 | + | ||
| 51 | + | func UnixSocketAddressGLibType() types.GType { | |
| 52 | + | return xUnixSocketAddressGLibType() | |
| 53 | + | } | |
| 54 | + | ||
| 48 | 55 | func UnixSocketAddressNewFromInternalPtr(ptr uintptr) *UnixSocketAddress { | |
| 49 | 56 | cls := &UnixSocketAddress{} | |
| 50 | 57 | cls.Ptr = ptr | |
| @@ -246,6 +253,8 @@ func init() { | |||
| 246 | 253 | panic(err) | |
| 247 | 254 | } | |
| 248 | 255 | ||
| 256 | + | core.PuregoSafeRegister(&xUnixSocketAddressGLibType, lib, "g_unix_socket_address_get_type") | |
| 257 | + | ||
| 249 | 258 | core.PuregoSafeRegister(&xNewUnixSocketAddress, lib, "g_unix_socket_address_new") | |
| 250 | 259 | core.PuregoSafeRegister(&xNewUnixSocketAddressAbstract, lib, "g_unix_socket_address_new_abstract") | |
| 251 | 260 | core.PuregoSafeRegister(&xNewUnixSocketAddressWithType, lib, "g_unix_socket_address_new_with_type") | |
M v4/gio/gvfs.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | // This function type is used by g_vfs_register_uri_scheme() to make it | |
| @@ -37,6 +38,12 @@ type Vfs struct { | |||
| 37 | 38 | gobject.Object | |
| 38 | 39 | } | |
| 39 | 40 | ||
| 41 | + | var xVfsGLibType func() types.GType | |
| 42 | + | ||
| 43 | + | func VfsGLibType() types.GType { | |
| 44 | + | return xVfsGLibType() | |
| 45 | + | } | |
| 46 | + | ||
| 40 | 47 | func VfsNewFromInternalPtr(ptr uintptr) *Vfs { | |
| 41 | 48 | cls := &Vfs{} | |
| 42 | 49 | cls.Ptr = ptr | |
| @@ -201,6 +208,8 @@ func init() { | |||
| 201 | 208 | panic(err) | |
| 202 | 209 | } | |
| 203 | 210 | ||
| 211 | + | core.PuregoSafeRegister(&xVfsGLibType, lib, "g_vfs_get_type") | |
| 212 | + | ||
| 204 | 213 | core.PuregoSafeRegister(&xVfsGetFileForPath, lib, "g_vfs_get_file_for_path") | |
| 205 | 214 | core.PuregoSafeRegister(&xVfsGetFileForUri, lib, "g_vfs_get_file_for_uri") | |
| 206 | 215 | core.PuregoSafeRegister(&xVfsGetSupportedUriSchemes, lib, "g_vfs_get_supported_uri_schemes") | |
M v4/gio/gvolume.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| 11 | 12 | ||
| 12 | 13 | // Interface for implementing operations for mountable volumes. | |
| @@ -81,6 +82,13 @@ type Volume interface { | |||
| 81 | 82 | MountFinish(ResultVar AsyncResult) bool | |
| 82 | 83 | ShouldAutomount() bool | |
| 83 | 84 | } | |
| 85 | + | ||
| 86 | + | var xVolumeGLibType func() types.GType | |
| 87 | + | ||
| 88 | + | func VolumeGLibType() types.GType { | |
| 89 | + | return xVolumeGLibType() | |
| 90 | + | } | |
| 91 | + | ||
| 84 | 92 | type VolumeBase struct { | |
| 85 | 93 | Ptr uintptr | |
| 86 | 94 | } | |
| @@ -374,6 +382,8 @@ func init() { | |||
| 374 | 382 | panic(err) | |
| 375 | 383 | } | |
| 376 | 384 | ||
| 385 | + | core.PuregoSafeRegister(&xVolumeGLibType, lib, "g_volume_get_type") | |
| 386 | + | ||
| 377 | 387 | core.PuregoSafeRegister(&XGVolumeCanEject, lib, "g_volume_can_eject") | |
| 378 | 388 | core.PuregoSafeRegister(&XGVolumeCanMount, lib, "g_volume_can_mount") | |
| 379 | 389 | core.PuregoSafeRegister(&XGVolumeEject, lib, "g_volume_eject") | |
M v4/gio/gvolumemonitor.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type VolumeMonitorClass struct { | |
| @@ -39,6 +40,12 @@ type VolumeMonitor struct { | |||
| 39 | 40 | gobject.Object | |
| 40 | 41 | } | |
| 41 | 42 | ||
| 43 | + | var xVolumeMonitorGLibType func() types.GType | |
| 44 | + | ||
| 45 | + | func VolumeMonitorGLibType() types.GType { | |
| 46 | + | return xVolumeMonitorGLibType() | |
| 47 | + | } | |
| 48 | + | ||
| 42 | 49 | func VolumeMonitorNewFromInternalPtr(ptr uintptr) *VolumeMonitor { | |
| 43 | 50 | cls := &VolumeMonitor{} | |
| 44 | 51 | cls.Ptr = ptr | |
| @@ -429,6 +436,8 @@ func init() { | |||
| 429 | 436 | panic(err) | |
| 430 | 437 | } | |
| 431 | 438 | ||
| 439 | + | core.PuregoSafeRegister(&xVolumeMonitorGLibType, lib, "g_volume_monitor_get_type") | |
| 440 | + | ||
| 432 | 441 | core.PuregoSafeRegister(&xVolumeMonitorGetConnectedDrives, lib, "g_volume_monitor_get_connected_drives") | |
| 433 | 442 | core.PuregoSafeRegister(&xVolumeMonitorGetMountForUuid, lib, "g_volume_monitor_get_mount_for_uuid") | |
| 434 | 443 | core.PuregoSafeRegister(&xVolumeMonitorGetMounts, lib, "g_volume_monitor_get_mounts") | |
M v4/gio/gzlibcompressor.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type ZlibCompressorClass struct { | |
| @@ -24,6 +25,12 @@ type ZlibCompressor struct { | |||
| 24 | 25 | gobject.Object | |
| 25 | 26 | } | |
| 26 | 27 | ||
| 28 | + | var xZlibCompressorGLibType func() types.GType | |
| 29 | + | ||
| 30 | + | func ZlibCompressorGLibType() types.GType { | |
| 31 | + | return xZlibCompressorGLibType() | |
| 32 | + | } | |
| 33 | + | ||
| 27 | 34 | func ZlibCompressorNewFromInternalPtr(ptr uintptr) *ZlibCompressor { | |
| 28 | 35 | cls := &ZlibCompressor{} | |
| 29 | 36 | cls.Ptr = ptr | |
| @@ -195,6 +202,8 @@ func init() { | |||
| 195 | 202 | panic(err) | |
| 196 | 203 | } | |
| 197 | 204 | ||
| 205 | + | core.PuregoSafeRegister(&xZlibCompressorGLibType, lib, "g_zlib_compressor_get_type") | |
| 206 | + | ||
| 198 | 207 | core.PuregoSafeRegister(&xNewZlibCompressor, lib, "g_zlib_compressor_new") | |
| 199 | 208 | ||
| 200 | 209 | core.PuregoSafeRegister(&xZlibCompressorGetFileInfo, lib, "g_zlib_compressor_get_file_info") | |
M v4/gio/gzlibdecompressor.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | |
| 10 | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | |
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 11 | 12 | ) | |
| 12 | 13 | ||
| 13 | 14 | type ZlibDecompressorClass struct { | |
| @@ -24,6 +25,12 @@ type ZlibDecompressor struct { | |||
| 24 | 25 | gobject.Object | |
| 25 | 26 | } | |
| 26 | 27 | ||
| 28 | + | var xZlibDecompressorGLibType func() types.GType | |
| 29 | + | ||
| 30 | + | func ZlibDecompressorGLibType() types.GType { | |
| 31 | + | return xZlibDecompressorGLibType() | |
| 32 | + | } | |
| 33 | + | ||
| 27 | 34 | func ZlibDecompressorNewFromInternalPtr(ptr uintptr) *ZlibDecompressor { | |
| 28 | 35 | cls := &ZlibDecompressor{} | |
| 29 | 36 | cls.Ptr = ptr | |
| @@ -183,6 +190,8 @@ func init() { | |||
| 183 | 190 | panic(err) | |
| 184 | 191 | } | |
| 185 | 192 | ||
| 193 | + | core.PuregoSafeRegister(&xZlibDecompressorGLibType, lib, "g_zlib_decompressor_get_type") | |
| 194 | + | ||
| 186 | 195 | core.PuregoSafeRegister(&xNewZlibDecompressor, lib, "g_zlib_decompressor_new") | |
| 187 | 196 | ||
| 188 | 197 | core.PuregoSafeRegister(&xZlibDecompressorGetFileInfo, lib, "g_zlib_decompressor_get_file_info") | |
M v4/gio/main.go +1 -0
| @@ -20,6 +20,7 @@ func init() { | |||
| 20 | 20 | if err != nil { | |
| 21 | 21 | panic(err) | |
| 22 | 22 | } | |
| 23 | + | ||
| 23 | 24 | core.PuregoSafeRegister(&xDbusErrorQuark, lib, "g_dbus_error_quark") | |
| 24 | 25 | ||
| 25 | 26 | } | |
M v4/glib/garray.go +34 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Contains the public fields of a GArray. | |
| @@ -15,6 +16,12 @@ type Array struct { | |||
| 15 | 16 | Len uint | |
| 16 | 17 | } | |
| 17 | 18 | ||
| 19 | + | var xArrayGLibType func() types.GType | |
| 20 | + | ||
| 21 | + | func ArrayGLibType() types.GType { | |
| 22 | + | return xArrayGLibType() | |
| 23 | + | } | |
| 24 | + | ||
| 18 | 25 | func (x *Array) GoPointer() uintptr { | |
| 19 | 26 | return uintptr(unsafe.Pointer(x)) | |
| 20 | 27 | } | |
| @@ -26,6 +33,12 @@ type ByteArray struct { | |||
| 26 | 33 | Len uint | |
| 27 | 34 | } | |
| 28 | 35 | ||
| 36 | + | var xByteArrayGLibType func() types.GType | |
| 37 | + | ||
| 38 | + | func ByteArrayGLibType() types.GType { | |
| 39 | + | return xByteArrayGLibType() | |
| 40 | + | } | |
| 41 | + | ||
| 29 | 42 | func (x *ByteArray) GoPointer() uintptr { | |
| 30 | 43 | return uintptr(unsafe.Pointer(x)) | |
| 31 | 44 | } | |
| @@ -57,6 +70,12 @@ func (x *ByteArray) GoPointer() uintptr { | |||
| 57 | 70 | type Bytes struct { | |
| 58 | 71 | } | |
| 59 | 72 | ||
| 73 | + | var xBytesGLibType func() types.GType | |
| 74 | + | ||
| 75 | + | func BytesGLibType() types.GType { | |
| 76 | + | return xBytesGLibType() | |
| 77 | + | } | |
| 78 | + | ||
| 60 | 79 | func (x *Bytes) GoPointer() uintptr { | |
| 61 | 80 | return uintptr(unsafe.Pointer(x)) | |
| 62 | 81 | } | |
| @@ -296,6 +315,12 @@ type PtrArray struct { | |||
| 296 | 315 | Len uint | |
| 297 | 316 | } | |
| 298 | 317 | ||
| 318 | + | var xPtrArrayGLibType func() types.GType | |
| 319 | + | ||
| 320 | + | func PtrArrayGLibType() types.GType { | |
| 321 | + | return xPtrArrayGLibType() | |
| 322 | + | } | |
| 323 | + | ||
| 299 | 324 | func (x *PtrArray) GoPointer() uintptr { | |
| 300 | 325 | return uintptr(unsafe.Pointer(x)) | |
| 301 | 326 | } | |
| @@ -411,6 +436,7 @@ func init() { | |||
| 411 | 436 | if err != nil { | |
| 412 | 437 | panic(err) | |
| 413 | 438 | } | |
| 439 | + | ||
| 414 | 440 | core.PuregoSafeRegister(&xByteArrayFree, lib, "g_byte_array_free") | |
| 415 | 441 | core.PuregoSafeRegister(&xByteArrayFreeToBytes, lib, "g_byte_array_free_to_bytes") | |
| 416 | 442 | core.PuregoSafeRegister(&xByteArrayNew, lib, "g_byte_array_new") | |
| @@ -420,6 +446,12 @@ func init() { | |||
| 420 | 446 | core.PuregoSafeRegister(&xPtrArrayFind, lib, "g_ptr_array_find") | |
| 421 | 447 | core.PuregoSafeRegister(&xPtrArrayFindWithEqualFunc, lib, "g_ptr_array_find_with_equal_func") | |
| 422 | 448 | ||
| 449 | + | core.PuregoSafeRegister(&xArrayGLibType, lib, "g_array_get_type") | |
| 450 | + | ||
| 451 | + | core.PuregoSafeRegister(&xByteArrayGLibType, lib, "g_byte_array_get_type") | |
| 452 | + | ||
| 453 | + | core.PuregoSafeRegister(&xBytesGLibType, lib, "g_bytes_get_type") | |
| 454 | + | ||
| 423 | 455 | core.PuregoSafeRegister(&xNewBytes, lib, "g_bytes_new") | |
| 424 | 456 | core.PuregoSafeRegister(&xNewBytesStatic, lib, "g_bytes_new_static") | |
| 425 | 457 | core.PuregoSafeRegister(&xNewBytesTake, lib, "g_bytes_new_take") | |
| @@ -437,4 +469,6 @@ func init() { | |||
| 437 | 469 | core.PuregoSafeRegister(&xBytesUnrefToArray, lib, "g_bytes_unref_to_array") | |
| 438 | 470 | core.PuregoSafeRegister(&xBytesUnrefToData, lib, "g_bytes_unref_to_data") | |
| 439 | 471 | ||
| 472 | + | core.PuregoSafeRegister(&xPtrArrayGLibType, lib, "g_ptr_array_get_type") | |
| 473 | + | ||
| 440 | 474 | } | |
M v4/glib/gatomic.go +1 -0
| @@ -300,6 +300,7 @@ func init() { | |||
| 300 | 300 | if err != nil { | |
| 301 | 301 | panic(err) | |
| 302 | 302 | } | |
| 303 | + | ||
| 303 | 304 | core.PuregoSafeRegister(&xAtomicIntAdd, lib, "g_atomic_int_add") | |
| 304 | 305 | core.PuregoSafeRegister(&xAtomicIntAnd, lib, "g_atomic_int_and") | |
| 305 | 306 | core.PuregoSafeRegister(&xAtomicIntCompareAndExchange, lib, "g_atomic_int_compare_and_exchange") | |
M v4/glib/gbacktrace.go +1 -0
| @@ -90,6 +90,7 @@ func init() { | |||
| 90 | 90 | if err != nil { | |
| 91 | 91 | panic(err) | |
| 92 | 92 | } | |
| 93 | + | ||
| 93 | 94 | core.PuregoSafeRegister(&xOnErrorQuery, lib, "g_on_error_query") | |
| 94 | 95 | core.PuregoSafeRegister(&xOnErrorStackTrace, lib, "g_on_error_stack_trace") | |
| 95 | 96 | ||
M v4/glib/gbase64.go +1 -0
| @@ -100,6 +100,7 @@ func init() { | |||
| 100 | 100 | if err != nil { | |
| 101 | 101 | panic(err) | |
| 102 | 102 | } | |
| 103 | + | ||
| 103 | 104 | core.PuregoSafeRegister(&xBase64Decode, lib, "g_base64_decode") | |
| 104 | 105 | core.PuregoSafeRegister(&xBase64DecodeInplace, lib, "g_base64_decode_inplace") | |
| 105 | 106 | core.PuregoSafeRegister(&xBase64DecodeStep, lib, "g_base64_decode_step") | |
M v4/glib/gbitlock.go +1 -0
| @@ -118,6 +118,7 @@ func init() { | |||
| 118 | 118 | if err != nil { | |
| 119 | 119 | panic(err) | |
| 120 | 120 | } | |
| 121 | + | ||
| 121 | 122 | core.PuregoSafeRegister(&xBitLock, lib, "g_bit_lock") | |
| 122 | 123 | core.PuregoSafeRegister(&xBitTrylock, lib, "g_bit_trylock") | |
| 123 | 124 | core.PuregoSafeRegister(&xBitUnlock, lib, "g_bit_unlock") | |
M v4/glib/gcharset.go +1 -0
| @@ -133,6 +133,7 @@ func init() { | |||
| 133 | 133 | if err != nil { | |
| 134 | 134 | panic(err) | |
| 135 | 135 | } | |
| 136 | + | ||
| 136 | 137 | core.PuregoSafeRegister(&xGetCharset, lib, "g_get_charset") | |
| 137 | 138 | core.PuregoSafeRegister(&xGetCodeset, lib, "g_get_codeset") | |
| 138 | 139 | core.PuregoSafeRegister(&xGetConsoleCharset, lib, "g_get_console_charset") | |
M v4/glib/gchecksum.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // An opaque structure representing a checksumming operation. | |
| @@ -15,6 +16,12 @@ import ( | |||
| 15 | 16 | type Checksum struct { | |
| 16 | 17 | } | |
| 17 | 18 | ||
| 19 | + | var xChecksumGLibType func() types.GType | |
| 20 | + | ||
| 21 | + | func ChecksumGLibType() types.GType { | |
| 22 | + | return xChecksumGLibType() | |
| 23 | + | } | |
| 24 | + | ||
| 18 | 25 | func (x *Checksum) GoPointer() uintptr { | |
| 19 | 26 | return uintptr(unsafe.Pointer(x)) | |
| 20 | 27 | } | |
| @@ -179,11 +186,14 @@ func init() { | |||
| 179 | 186 | if err != nil { | |
| 180 | 187 | panic(err) | |
| 181 | 188 | } | |
| 189 | + | ||
| 182 | 190 | core.PuregoSafeRegister(&xChecksumTypeGetLength, lib, "g_checksum_type_get_length") | |
| 183 | 191 | core.PuregoSafeRegister(&xComputeChecksumForBytes, lib, "g_compute_checksum_for_bytes") | |
| 184 | 192 | core.PuregoSafeRegister(&xComputeChecksumForData, lib, "g_compute_checksum_for_data") | |
| 185 | 193 | core.PuregoSafeRegister(&xComputeChecksumForString, lib, "g_compute_checksum_for_string") | |
| 186 | 194 | ||
| 195 | + | core.PuregoSafeRegister(&xChecksumGLibType, lib, "g_checksum_get_type") | |
| 196 | + | ||
| 187 | 197 | core.PuregoSafeRegister(&xNewChecksum, lib, "g_checksum_new") | |
| 188 | 198 | ||
| 189 | 199 | core.PuregoSafeRegister(&xChecksumCopy, lib, "g_checksum_copy") | |
M v4/glib/gconvert.go +1 -0
| @@ -425,6 +425,7 @@ func init() { | |||
| 425 | 425 | if err != nil { | |
| 426 | 426 | panic(err) | |
| 427 | 427 | } | |
| 428 | + | ||
| 428 | 429 | core.PuregoSafeRegister(&xConvert, lib, "g_convert") | |
| 429 | 430 | core.PuregoSafeRegister(&xConvertWithFallback, lib, "g_convert_with_fallback") | |
| 430 | 431 | core.PuregoSafeRegister(&xConvertWithIconv, lib, "g_convert_with_iconv") | |
M v4/glib/gdataset.go +1 -0
| @@ -253,6 +253,7 @@ func init() { | |||
| 253 | 253 | if err != nil { | |
| 254 | 254 | panic(err) | |
| 255 | 255 | } | |
| 256 | + | ||
| 256 | 257 | core.PuregoSafeRegister(&xDatalistClear, lib, "g_datalist_clear") | |
| 257 | 258 | core.PuregoSafeRegister(&xDatalistForeach, lib, "g_datalist_foreach") | |
| 258 | 259 | core.PuregoSafeRegister(&xDatalistGetData, lib, "g_datalist_get_data") | |
M v4/glib/gdate.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Represents a day between January 1, Year 1 and a few thousand years in | |
| @@ -33,6 +34,12 @@ type Date struct { | |||
| 33 | 34 | Year uint | |
| 34 | 35 | } | |
| 35 | 36 | ||
| 37 | + | var xDateGLibType func() types.GType | |
| 38 | + | ||
| 39 | + | func DateGLibType() types.GType { | |
| 40 | + | return xDateGLibType() | |
| 41 | + | } | |
| 42 | + | ||
| 36 | 43 | func (x *Date) GoPointer() uintptr { | |
| 37 | 44 | return uintptr(unsafe.Pointer(x)) | |
| 38 | 45 | } | |
| @@ -727,6 +734,7 @@ func init() { | |||
| 727 | 734 | if err != nil { | |
| 728 | 735 | panic(err) | |
| 729 | 736 | } | |
| 737 | + | ||
| 730 | 738 | core.PuregoSafeRegister(&xDateGetDaysInMonth, lib, "g_date_get_days_in_month") | |
| 731 | 739 | core.PuregoSafeRegister(&xDateGetMondayWeeksInYear, lib, "g_date_get_monday_weeks_in_year") | |
| 732 | 740 | core.PuregoSafeRegister(&xDateGetSundayWeeksInYear, lib, "g_date_get_sunday_weeks_in_year") | |
| @@ -739,6 +747,8 @@ func init() { | |||
| 739 | 747 | core.PuregoSafeRegister(&xDateValidWeekday, lib, "g_date_valid_weekday") | |
| 740 | 748 | core.PuregoSafeRegister(&xDateValidYear, lib, "g_date_valid_year") | |
| 741 | 749 | ||
| 750 | + | core.PuregoSafeRegister(&xDateGLibType, lib, "g_date_get_type") | |
| 751 | + | ||
| 742 | 752 | core.PuregoSafeRegister(&xNewDate, lib, "g_date_new") | |
| 743 | 753 | core.PuregoSafeRegister(&xNewDateDmy, lib, "g_date_new_dmy") | |
| 744 | 754 | core.PuregoSafeRegister(&xNewDateJulian, lib, "g_date_new_julian") | |
M v4/glib/gdatetime.go +9 -0
| @@ -6,12 +6,19 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // An opaque structure that represents a date and time, including a time zone. | |
| 12 | 13 | type DateTime struct { | |
| 13 | 14 | } | |
| 14 | 15 | ||
| 16 | + | var xDateTimeGLibType func() types.GType | |
| 17 | + | ||
| 18 | + | func DateTimeGLibType() types.GType { | |
| 19 | + | return xDateTimeGLibType() | |
| 20 | + | } | |
| 21 | + | ||
| 15 | 22 | func (x *DateTime) GoPointer() uintptr { | |
| 16 | 23 | return uintptr(unsafe.Pointer(x)) | |
| 17 | 24 | } | |
| @@ -837,6 +844,8 @@ func init() { | |||
| 837 | 844 | panic(err) | |
| 838 | 845 | } | |
| 839 | 846 | ||
| 847 | + | core.PuregoSafeRegister(&xDateTimeGLibType, lib, "g_date_time_get_type") | |
| 848 | + | ||
| 840 | 849 | core.PuregoSafeRegister(&xNewDateTime, lib, "g_date_time_new") | |
| 841 | 850 | core.PuregoSafeRegister(&xNewDateTimeFromIso8601, lib, "g_date_time_new_from_iso8601") | |
| 842 | 851 | core.PuregoSafeRegister(&xNewDateTimeFromTimevalLocal, lib, "g_date_time_new_from_timeval_local") | |
M v4/glib/genviron.go +1 -0
| @@ -142,6 +142,7 @@ func init() { | |||
| 142 | 142 | if err != nil { | |
| 143 | 143 | panic(err) | |
| 144 | 144 | } | |
| 145 | + | ||
| 145 | 146 | core.PuregoSafeRegister(&xEnvironGetenv, lib, "g_environ_getenv") | |
| 146 | 147 | core.PuregoSafeRegister(&xEnvironSetenv, lib, "g_environ_setenv") | |
| 147 | 148 | core.PuregoSafeRegister(&xEnvironUnsetenv, lib, "g_environ_unsetenv") | |
M v4/glib/gerror.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Specifies the type of function which is called when an extended | |
| @@ -45,6 +46,12 @@ type Error struct { | |||
| 45 | 46 | Message uintptr | |
| 46 | 47 | } | |
| 47 | 48 | ||
| 49 | + | var xErrorGLibType func() types.GType | |
| 50 | + | ||
| 51 | + | func ErrorGLibType() types.GType { | |
| 52 | + | return xErrorGLibType() | |
| 53 | + | } | |
| 54 | + | ||
| 48 | 55 | func (x *Error) GoPointer() uintptr { | |
| 49 | 56 | return uintptr(unsafe.Pointer(x)) | |
| 50 | 57 | } | |
| @@ -211,6 +218,7 @@ func init() { | |||
| 211 | 218 | if err != nil { | |
| 212 | 219 | panic(err) | |
| 213 | 220 | } | |
| 221 | + | ||
| 214 | 222 | core.PuregoSafeRegister(&xClearError, lib, "g_clear_error") | |
| 215 | 223 | core.PuregoSafeRegister(&xPrefixError, lib, "g_prefix_error") | |
| 216 | 224 | core.PuregoSafeRegister(&xPrefixErrorLiteral, lib, "g_prefix_error_literal") | |
| @@ -219,6 +227,8 @@ func init() { | |||
| 219 | 227 | core.PuregoSafeRegister(&xSetError, lib, "g_set_error") | |
| 220 | 228 | core.PuregoSafeRegister(&xSetErrorLiteral, lib, "g_set_error_literal") | |
| 221 | 229 | ||
| 230 | + | core.PuregoSafeRegister(&xErrorGLibType, lib, "g_error_get_type") | |
| 231 | + | ||
| 222 | 232 | core.PuregoSafeRegister(&xNewError, lib, "g_error_new") | |
| 223 | 233 | core.PuregoSafeRegister(&xNewErrorLiteral, lib, "g_error_new_literal") | |
| 224 | 234 | core.PuregoSafeRegister(&xNewErrorValist, lib, "g_error_new_valist") | |
M v4/glib/gfileutils.go +1 -0
| @@ -717,6 +717,7 @@ func init() { | |||
| 717 | 717 | if err != nil { | |
| 718 | 718 | panic(err) | |
| 719 | 719 | } | |
| 720 | + | ||
| 720 | 721 | core.PuregoSafeRegister(&xBasename, lib, "g_basename") | |
| 721 | 722 | core.PuregoSafeRegister(&xBuildFilename, lib, "g_build_filename") | |
| 722 | 723 | core.PuregoSafeRegister(&xBuildFilenameValist, lib, "g_build_filename_valist") | |
M v4/glib/ggettext.go +1 -0
| @@ -125,6 +125,7 @@ func init() { | |||
| 125 | 125 | if err != nil { | |
| 126 | 126 | panic(err) | |
| 127 | 127 | } | |
| 128 | + | ||
| 128 | 129 | core.PuregoSafeRegister(&xDcgettext, lib, "g_dcgettext") | |
| 129 | 130 | core.PuregoSafeRegister(&xDgettext, lib, "g_dgettext") | |
| 130 | 131 | core.PuregoSafeRegister(&xDngettext, lib, "g_dngettext") | |
M v4/glib/ghash.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Specifies the type of the function passed to | |
| @@ -21,6 +22,12 @@ type HRFunc func(uintptr, uintptr, uintptr) bool | |||
| 21 | 22 | type HashTable struct { | |
| 22 | 23 | } | |
| 23 | 24 | ||
| 25 | + | var xHashTableGLibType func() types.GType | |
| 26 | + | ||
| 27 | + | func HashTableGLibType() types.GType { | |
| 28 | + | return xHashTableGLibType() | |
| 29 | + | } | |
| 30 | + | ||
| 24 | 31 | func (x *HashTable) GoPointer() uintptr { | |
| 25 | 32 | return uintptr(unsafe.Pointer(x)) | |
| 26 | 33 | } | |
| @@ -524,6 +531,7 @@ func init() { | |||
| 524 | 531 | if err != nil { | |
| 525 | 532 | panic(err) | |
| 526 | 533 | } | |
| 534 | + | ||
| 527 | 535 | core.PuregoSafeRegister(&xDirectEqual, lib, "g_direct_equal") | |
| 528 | 536 | core.PuregoSafeRegister(&xDirectHash, lib, "g_direct_hash") | |
| 529 | 537 | core.PuregoSafeRegister(&xDoubleEqual, lib, "g_double_equal") | |
| @@ -550,6 +558,8 @@ func init() { | |||
| 550 | 558 | core.PuregoSafeRegister(&xStrEqual, lib, "g_str_equal") | |
| 551 | 559 | core.PuregoSafeRegister(&xStrHash, lib, "g_str_hash") | |
| 552 | 560 | ||
| 561 | + | core.PuregoSafeRegister(&xHashTableGLibType, lib, "g_hash_table_get_type") | |
| 562 | + | ||
| 553 | 563 | core.PuregoSafeRegister(&xHashTableIterGetHashTable, lib, "g_hash_table_iter_get_hash_table") | |
| 554 | 564 | core.PuregoSafeRegister(&xHashTableIterInit, lib, "g_hash_table_iter_init") | |
| 555 | 565 | core.PuregoSafeRegister(&xHashTableIterNext, lib, "g_hash_table_iter_next") | |
M v4/glib/ghmac.go +1 -0
| @@ -135,6 +135,7 @@ func init() { | |||
| 135 | 135 | if err != nil { | |
| 136 | 136 | panic(err) | |
| 137 | 137 | } | |
| 138 | + | ||
| 138 | 139 | core.PuregoSafeRegister(&xComputeHmacForBytes, lib, "g_compute_hmac_for_bytes") | |
| 139 | 140 | core.PuregoSafeRegister(&xComputeHmacForData, lib, "g_compute_hmac_for_data") | |
| 140 | 141 | core.PuregoSafeRegister(&xComputeHmacForString, lib, "g_compute_hmac_for_string") | |
M v4/glib/ghook.go +1 -0
| @@ -229,6 +229,7 @@ func init() { | |||
| 229 | 229 | if err != nil { | |
| 230 | 230 | panic(err) | |
| 231 | 231 | } | |
| 232 | + | ||
| 232 | 233 | core.PuregoSafeRegister(&xHookDestroy, lib, "g_hook_destroy") | |
| 233 | 234 | core.PuregoSafeRegister(&xHookDestroyLink, lib, "g_hook_destroy_link") | |
| 234 | 235 | core.PuregoSafeRegister(&xHookFree, lib, "g_hook_free") | |
M v4/glib/ghostutils.go +1 -0
| @@ -80,6 +80,7 @@ func init() { | |||
| 80 | 80 | if err != nil { | |
| 81 | 81 | panic(err) | |
| 82 | 82 | } | |
| 83 | + | ||
| 83 | 84 | core.PuregoSafeRegister(&xHostnameIsAsciiEncoded, lib, "g_hostname_is_ascii_encoded") | |
| 84 | 85 | core.PuregoSafeRegister(&xHostnameIsIpAddress, lib, "g_hostname_is_ip_address") | |
| 85 | 86 | core.PuregoSafeRegister(&xHostnameIsNonAscii, lib, "g_hostname_is_non_ascii") | |
M v4/glib/giochannel.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Specifies the type of function passed to g_io_add_watch() or | |
| @@ -58,6 +59,12 @@ type IOChannel struct { | |||
| 58 | 59 | Reserved2 uintptr | |
| 59 | 60 | } | |
| 60 | 61 | ||
| 62 | + | var xIOChannelGLibType func() types.GType | |
| 63 | + | ||
| 64 | + | func IOChannelGLibType() types.GType { | |
| 65 | + | return xIOChannelGLibType() | |
| 66 | + | } | |
| 67 | + | ||
| 61 | 68 | func (x *IOChannel) GoPointer() uintptr { | |
| 62 | 69 | return uintptr(unsafe.Pointer(x)) | |
| 63 | 70 | } | |
| @@ -726,11 +733,14 @@ func init() { | |||
| 726 | 733 | if err != nil { | |
| 727 | 734 | panic(err) | |
| 728 | 735 | } | |
| 736 | + | ||
| 729 | 737 | core.PuregoSafeRegister(&xIoAddWatch, lib, "g_io_add_watch") | |
| 730 | 738 | core.PuregoSafeRegister(&xIoAddWatchFull, lib, "g_io_add_watch_full") | |
| 731 | 739 | core.PuregoSafeRegister(&xIoChannelErrorFromErrno, lib, "g_io_channel_error_from_errno") | |
| 732 | 740 | core.PuregoSafeRegister(&xIoCreateWatch, lib, "g_io_create_watch") | |
| 733 | 741 | ||
| 742 | + | core.PuregoSafeRegister(&xIOChannelGLibType, lib, "g_io_channel_get_type") | |
| 743 | + | ||
| 734 | 744 | core.PuregoSafeRegister(&xNewIOChannelFile, lib, "g_io_channel_new_file") | |
| 735 | 745 | core.PuregoSafeRegister(&xIOChannelUnixNew, lib, "g_io_channel_unix_new") | |
| 736 | 746 | ||
M v4/glib/gkeyfile.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The GKeyFile struct contains only private data | |
| @@ -13,6 +14,12 @@ import ( | |||
| 13 | 14 | type KeyFile struct { | |
| 14 | 15 | } | |
| 15 | 16 | ||
| 17 | + | var xKeyFileGLibType func() types.GType | |
| 18 | + | ||
| 19 | + | func KeyFileGLibType() types.GType { | |
| 20 | + | return xKeyFileGLibType() | |
| 21 | + | } | |
| 22 | + | ||
| 16 | 23 | func (x *KeyFile) GoPointer() uintptr { | |
| 17 | 24 | return uintptr(unsafe.Pointer(x)) | |
| 18 | 25 | } | |
| @@ -923,6 +930,8 @@ func init() { | |||
| 923 | 930 | panic(err) | |
| 924 | 931 | } | |
| 925 | 932 | ||
| 933 | + | core.PuregoSafeRegister(&xKeyFileGLibType, lib, "g_key_file_get_type") | |
| 934 | + | ||
| 926 | 935 | core.PuregoSafeRegister(&xNewKeyFile, lib, "g_key_file_new") | |
| 927 | 936 | ||
| 928 | 937 | core.PuregoSafeRegister(&xKeyFileFree, lib, "g_key_file_free") | |
M v4/glib/glib-2.0.go +10 -0
| @@ -4,12 +4,19 @@ package glib | |||
| 4 | 4 | import ( | |
| 5 | 5 | "github.com/jwijenbergh/purego" | |
| 6 | 6 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 7 | 8 | ) | |
| 8 | 9 | ||
| 9 | 10 | // A bitwise combination representing a condition to watch for on an | |
| 10 | 11 | // event source. | |
| 11 | 12 | type IOCondition int | |
| 12 | 13 | ||
| 14 | + | var xIOConditionGLibType func() types.GType | |
| 15 | + | ||
| 16 | + | func IOConditionGLibType() types.GType { | |
| 17 | + | return xIOConditionGLibType() | |
| 18 | + | } | |
| 19 | + | ||
| 13 | 20 | const ( | |
| 14 | 21 | ||
| 15 | 22 | // There is data to read. | |
| @@ -41,6 +48,9 @@ func init() { | |||
| 41 | 48 | if err != nil { | |
| 42 | 49 | panic(err) | |
| 43 | 50 | } | |
| 51 | + | ||
| 52 | + | core.PuregoSafeRegister(&xIOConditionGLibType, lib, "g_io_condition_get_type") | |
| 53 | + | ||
| 44 | 54 | core.PuregoSafeRegister(&xVariantParserGetErrorQuark, lib, "g_variant_parser_get_error_quark") | |
| 45 | 55 | ||
| 46 | 56 | } | |
M v4/glib/glib-types.go +1 -0
| @@ -30,6 +30,7 @@ func init() { | |||
| 30 | 30 | if err != nil { | |
| 31 | 31 | panic(err) | |
| 32 | 32 | } | |
| 33 | + | ||
| 33 | 34 | core.PuregoSafeRegister(&xStrvGetType, lib, "g_strv_get_type") | |
| 34 | 35 | core.PuregoSafeRegister(&xVariantGetGtype, lib, "g_variant_get_gtype") | |
| 35 | 36 | ||
M v4/glib/glib-unix.go +1 -0
| @@ -176,6 +176,7 @@ func init() { | |||
| 176 | 176 | if err != nil { | |
| 177 | 177 | panic(err) | |
| 178 | 178 | } | |
| 179 | + | ||
| 179 | 180 | core.PuregoSafeRegister(&xUnixFdAdd, lib, "g_unix_fd_add") | |
| 180 | 181 | core.PuregoSafeRegister(&xUnixFdAddFull, lib, "g_unix_fd_add_full") | |
| 181 | 182 | core.PuregoSafeRegister(&xUnixFdSourceNew, lib, "g_unix_fd_source_new") | |
M v4/glib/glist.go +1 -0
| @@ -37,6 +37,7 @@ func init() { | |||
| 37 | 37 | if err != nil { | |
| 38 | 38 | panic(err) | |
| 39 | 39 | } | |
| 40 | + | ||
| 40 | 41 | core.PuregoSafeRegister(&xClearList, lib, "g_clear_list") | |
| 41 | 42 | ||
| 42 | 43 | } | |
M v4/glib/gmain.go +26 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Prototype of a #GChildWatchSource callback, called when a child | |
| @@ -44,6 +45,12 @@ type SourceFunc func(uintptr) bool | |||
| 44 | 45 | type MainContext struct { | |
| 45 | 46 | } | |
| 46 | 47 | ||
| 48 | + | var xMainContextGLibType func() types.GType | |
| 49 | + | ||
| 50 | + | func MainContextGLibType() types.GType { | |
| 51 | + | return xMainContextGLibType() | |
| 52 | + | } | |
| 53 | + | ||
| 47 | 54 | func (x *MainContext) GoPointer() uintptr { | |
| 48 | 55 | return uintptr(unsafe.Pointer(x)) | |
| 49 | 56 | } | |
| @@ -458,6 +465,12 @@ func (x *MainContext) Wakeup() { | |||
| 458 | 465 | type MainLoop struct { | |
| 459 | 466 | } | |
| 460 | 467 | ||
| 468 | + | var xMainLoopGLibType func() types.GType | |
| 469 | + | ||
| 470 | + | func MainLoopGLibType() types.GType { | |
| 471 | + | return xMainLoopGLibType() | |
| 472 | + | } | |
| 473 | + | ||
| 461 | 474 | func (x *MainLoop) GoPointer() uintptr { | |
| 462 | 475 | return uintptr(unsafe.Pointer(x)) | |
| 463 | 476 | } | |
| @@ -563,6 +576,12 @@ type Source struct { | |||
| 563 | 576 | Priv *SourcePrivate | |
| 564 | 577 | } | |
| 565 | 578 | ||
| 579 | + | var xSourceGLibType func() types.GType | |
| 580 | + | ||
| 581 | + | func SourceGLibType() types.GType { | |
| 582 | + | return xSourceGLibType() | |
| 583 | + | } | |
| 584 | + | ||
| 566 | 585 | func (x *Source) GoPointer() uintptr { | |
| 567 | 586 | return uintptr(unsafe.Pointer(x)) | |
| 568 | 587 | } | |
| @@ -1918,6 +1937,7 @@ func init() { | |||
| 1918 | 1937 | if err != nil { | |
| 1919 | 1938 | panic(err) | |
| 1920 | 1939 | } | |
| 1940 | + | ||
| 1921 | 1941 | core.PuregoSafeRegister(&xChildWatchAdd, lib, "g_child_watch_add") | |
| 1922 | 1942 | core.PuregoSafeRegister(&xChildWatchAddFull, lib, "g_child_watch_add_full") | |
| 1923 | 1943 | core.PuregoSafeRegister(&xChildWatchSourceNew, lib, "g_child_watch_source_new") | |
| @@ -1945,6 +1965,8 @@ func init() { | |||
| 1945 | 1965 | core.PuregoSafeRegister(&xTimeoutSourceNew, lib, "g_timeout_source_new") | |
| 1946 | 1966 | core.PuregoSafeRegister(&xTimeoutSourceNewSeconds, lib, "g_timeout_source_new_seconds") | |
| 1947 | 1967 | ||
| 1968 | + | core.PuregoSafeRegister(&xMainContextGLibType, lib, "g_main_context_get_type") | |
| 1969 | + | ||
| 1948 | 1970 | core.PuregoSafeRegister(&xNewMainContext, lib, "g_main_context_new") | |
| 1949 | 1971 | core.PuregoSafeRegister(&xNewMainContextWithFlags, lib, "g_main_context_new_with_flags") | |
| 1950 | 1972 | ||
| @@ -1973,6 +1995,8 @@ func init() { | |||
| 1973 | 1995 | core.PuregoSafeRegister(&xMainContextWait, lib, "g_main_context_wait") | |
| 1974 | 1996 | core.PuregoSafeRegister(&xMainContextWakeup, lib, "g_main_context_wakeup") | |
| 1975 | 1997 | ||
| 1998 | + | core.PuregoSafeRegister(&xMainLoopGLibType, lib, "g_main_loop_get_type") | |
| 1999 | + | ||
| 1976 | 2000 | core.PuregoSafeRegister(&xNewMainLoop, lib, "g_main_loop_new") | |
| 1977 | 2001 | ||
| 1978 | 2002 | core.PuregoSafeRegister(&xMainLoopGetContext, lib, "g_main_loop_get_context") | |
| @@ -1982,6 +2006,8 @@ func init() { | |||
| 1982 | 2006 | core.PuregoSafeRegister(&xMainLoopRun, lib, "g_main_loop_run") | |
| 1983 | 2007 | core.PuregoSafeRegister(&xMainLoopUnref, lib, "g_main_loop_unref") | |
| 1984 | 2008 | ||
| 2009 | + | core.PuregoSafeRegister(&xSourceGLibType, lib, "g_source_get_type") | |
| 2010 | + | ||
| 1985 | 2011 | core.PuregoSafeRegister(&xNewSource, lib, "g_source_new") | |
| 1986 | 2012 | ||
| 1987 | 2013 | core.PuregoSafeRegister(&xSourceAddChildSource, lib, "g_source_add_child_source") | |
M v4/glib/gmappedfile.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The #GMappedFile represents a file mapping created with | |
| @@ -14,6 +15,12 @@ import ( | |||
| 14 | 15 | type MappedFile struct { | |
| 15 | 16 | } | |
| 16 | 17 | ||
| 18 | + | var xMappedFileGLibType func() types.GType | |
| 19 | + | ||
| 20 | + | func MappedFileGLibType() types.GType { | |
| 21 | + | return xMappedFileGLibType() | |
| 22 | + | } | |
| 23 | + | ||
| 17 | 24 | func (x *MappedFile) GoPointer() uintptr { | |
| 18 | 25 | return uintptr(unsafe.Pointer(x)) | |
| 19 | 26 | } | |
| @@ -145,6 +152,8 @@ func init() { | |||
| 145 | 152 | panic(err) | |
| 146 | 153 | } | |
| 147 | 154 | ||
| 155 | + | core.PuregoSafeRegister(&xMappedFileGLibType, lib, "g_mapped_file_get_type") | |
| 156 | + | ||
| 148 | 157 | core.PuregoSafeRegister(&xNewMappedFile, lib, "g_mapped_file_new") | |
| 149 | 158 | core.PuregoSafeRegister(&xNewMappedFileFromFd, lib, "g_mapped_file_new_from_fd") | |
| 150 | 159 | ||
M v4/glib/gmarkup.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // A parse context is used to parse a stream of bytes that | |
| @@ -16,6 +17,12 @@ import ( | |||
| 16 | 17 | type MarkupParseContext struct { | |
| 17 | 18 | } | |
| 18 | 19 | ||
| 20 | + | var xMarkupParseContextGLibType func() types.GType | |
| 21 | + | ||
| 22 | + | func MarkupParseContextGLibType() types.GType { | |
| 23 | + | return xMarkupParseContextGLibType() | |
| 24 | + | } | |
| 25 | + | ||
| 19 | 26 | func (x *MarkupParseContext) GoPointer() uintptr { | |
| 20 | 27 | return uintptr(unsafe.Pointer(x)) | |
| 21 | 28 | } | |
| @@ -528,11 +535,14 @@ func init() { | |||
| 528 | 535 | if err != nil { | |
| 529 | 536 | panic(err) | |
| 530 | 537 | } | |
| 538 | + | ||
| 531 | 539 | core.PuregoSafeRegister(&xMarkupCollectAttributes, lib, "g_markup_collect_attributes") | |
| 532 | 540 | core.PuregoSafeRegister(&xMarkupEscapeText, lib, "g_markup_escape_text") | |
| 533 | 541 | core.PuregoSafeRegister(&xMarkupPrintfEscaped, lib, "g_markup_printf_escaped") | |
| 534 | 542 | core.PuregoSafeRegister(&xMarkupVprintfEscaped, lib, "g_markup_vprintf_escaped") | |
| 535 | 543 | ||
| 544 | + | core.PuregoSafeRegister(&xMarkupParseContextGLibType, lib, "g_markup_parse_context_get_type") | |
| 545 | + | ||
| 536 | 546 | core.PuregoSafeRegister(&xNewMarkupParseContext, lib, "g_markup_parse_context_new") | |
| 537 | 547 | ||
| 538 | 548 | core.PuregoSafeRegister(&xMarkupParseContextEndParse, lib, "g_markup_parse_context_end_parse") | |
M v4/glib/gmem.go +1 -0
| @@ -255,6 +255,7 @@ func init() { | |||
| 255 | 255 | if err != nil { | |
| 256 | 256 | panic(err) | |
| 257 | 257 | } | |
| 258 | + | ||
| 258 | 259 | core.PuregoSafeRegister(&xAlignedAlloc, lib, "g_aligned_alloc") | |
| 259 | 260 | core.PuregoSafeRegister(&xAlignedAlloc0, lib, "g_aligned_alloc0") | |
| 260 | 261 | core.PuregoSafeRegister(&xAlignedFree, lib, "g_aligned_free") | |
M v4/glib/gmessages.go +1 -0
| @@ -820,6 +820,7 @@ func init() { | |||
| 820 | 820 | if err != nil { | |
| 821 | 821 | panic(err) | |
| 822 | 822 | } | |
| 823 | + | ||
| 823 | 824 | core.PuregoSafeRegister(&xAssertWarning, lib, "g_assert_warning") | |
| 824 | 825 | core.PuregoSafeRegister(&xLog, lib, "g_log") | |
| 825 | 826 | core.PuregoSafeRegister(&xLogDefaultHandler, lib, "g_log_default_handler") | |
M v4/glib/goption.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The type of function to be passed as callback for %G_OPTION_ARG_CALLBACK | |
| @@ -358,6 +359,12 @@ func (x *OptionEntry) GoPointer() uintptr { | |||
| 358 | 359 | type OptionGroup struct { | |
| 359 | 360 | } | |
| 360 | 361 | ||
| 362 | + | var xOptionGroupGLibType func() types.GType | |
| 363 | + | ||
| 364 | + | func OptionGroupGLibType() types.GType { | |
| 365 | + | return xOptionGroupGLibType() | |
| 366 | + | } | |
| 367 | + | ||
| 361 | 368 | func (x *OptionGroup) GoPointer() uintptr { | |
| 362 | 369 | return uintptr(unsafe.Pointer(x)) | |
| 363 | 370 | } | |
| @@ -592,6 +599,8 @@ func init() { | |||
| 592 | 599 | core.PuregoSafeRegister(&xOptionContextSetTranslateFunc, lib, "g_option_context_set_translate_func") | |
| 593 | 600 | core.PuregoSafeRegister(&xOptionContextSetTranslationDomain, lib, "g_option_context_set_translation_domain") | |
| 594 | 601 | ||
| 602 | + | core.PuregoSafeRegister(&xOptionGroupGLibType, lib, "g_option_group_get_type") | |
| 603 | + | ||
| 595 | 604 | core.PuregoSafeRegister(&xNewOptionGroup, lib, "g_option_group_new") | |
| 596 | 605 | ||
| 597 | 606 | core.PuregoSafeRegister(&xOptionGroupAddEntries, lib, "g_option_group_add_entries") | |
M v4/glib/gpattern.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // A GPatternSpec struct is the 'compiled' form of a pattern. This | |
| @@ -13,6 +14,12 @@ import ( | |||
| 13 | 14 | type PatternSpec struct { | |
| 14 | 15 | } | |
| 15 | 16 | ||
| 17 | + | var xPatternSpecGLibType func() types.GType | |
| 18 | + | ||
| 19 | + | func PatternSpecGLibType() types.GType { | |
| 20 | + | return xPatternSpecGLibType() | |
| 21 | + | } | |
| 22 | + | ||
| 16 | 23 | func (x *PatternSpec) GoPointer() uintptr { | |
| 17 | 24 | return uintptr(unsafe.Pointer(x)) | |
| 18 | 25 | } | |
| @@ -143,10 +150,13 @@ func init() { | |||
| 143 | 150 | if err != nil { | |
| 144 | 151 | panic(err) | |
| 145 | 152 | } | |
| 153 | + | ||
| 146 | 154 | core.PuregoSafeRegister(&xPatternMatch, lib, "g_pattern_match") | |
| 147 | 155 | core.PuregoSafeRegister(&xPatternMatchSimple, lib, "g_pattern_match_simple") | |
| 148 | 156 | core.PuregoSafeRegister(&xPatternMatchString, lib, "g_pattern_match_string") | |
| 149 | 157 | ||
| 158 | + | core.PuregoSafeRegister(&xPatternSpecGLibType, lib, "g_pattern_spec_get_type") | |
| 159 | + | ||
| 150 | 160 | core.PuregoSafeRegister(&xNewPatternSpec, lib, "g_pattern_spec_new") | |
| 151 | 161 | ||
| 152 | 162 | core.PuregoSafeRegister(&xPatternSpecCopy, lib, "g_pattern_spec_copy") | |
M v4/glib/gpoll.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Specifies the type of function passed to g_main_context_set_poll_func(). | |
| @@ -22,6 +23,12 @@ type PollFD struct { | |||
| 22 | 23 | Revents uint16 | |
| 23 | 24 | } | |
| 24 | 25 | ||
| 26 | + | var xPollFDGLibType func() types.GType | |
| 27 | + | ||
| 28 | + | func PollFDGLibType() types.GType { | |
| 29 | + | return xPollFDGLibType() | |
| 30 | + | } | |
| 31 | + | ||
| 25 | 32 | func (x *PollFD) GoPointer() uintptr { | |
| 26 | 33 | return uintptr(unsafe.Pointer(x)) | |
| 27 | 34 | } | |
| @@ -56,6 +63,9 @@ func init() { | |||
| 56 | 63 | if err != nil { | |
| 57 | 64 | panic(err) | |
| 58 | 65 | } | |
| 66 | + | ||
| 59 | 67 | core.PuregoSafeRegister(&xPoll, lib, "g_poll") | |
| 60 | 68 | ||
| 69 | + | core.PuregoSafeRegister(&xPollFDGLibType, lib, "g_pollfd_get_type") | |
| 70 | + | ||
| 61 | 71 | } | |
M v4/glib/gprimes.go +1 -0
| @@ -25,6 +25,7 @@ func init() { | |||
| 25 | 25 | if err != nil { | |
| 26 | 26 | panic(err) | |
| 27 | 27 | } | |
| 28 | + | ||
| 28 | 29 | core.PuregoSafeRegister(&xSpacedPrimesClosest, lib, "g_spaced_primes_closest") | |
| 29 | 30 | ||
| 30 | 31 | } | |
M v4/glib/gprintf.go +1 -0
| @@ -111,6 +111,7 @@ func init() { | |||
| 111 | 111 | if err != nil { | |
| 112 | 112 | panic(err) | |
| 113 | 113 | } | |
| 114 | + | ||
| 114 | 115 | core.PuregoSafeRegister(&xFprintf, lib, "g_fprintf") | |
| 115 | 116 | core.PuregoSafeRegister(&xPrintf, lib, "g_printf") | |
| 116 | 117 | core.PuregoSafeRegister(&xSprintf, lib, "g_sprintf") | |
M v4/glib/gqsort.go +1 -0
| @@ -23,6 +23,7 @@ func init() { | |||
| 23 | 23 | if err != nil { | |
| 24 | 24 | panic(err) | |
| 25 | 25 | } | |
| 26 | + | ||
| 26 | 27 | core.PuregoSafeRegister(&xQsortWithData, lib, "g_qsort_with_data") | |
| 27 | 28 | ||
| 28 | 29 | } | |
M v4/glib/gquark.go +1 -0
| @@ -110,6 +110,7 @@ func init() { | |||
| 110 | 110 | if err != nil { | |
| 111 | 111 | panic(err) | |
| 112 | 112 | } | |
| 113 | + | ||
| 113 | 114 | core.PuregoSafeRegister(&xInternStaticString, lib, "g_intern_static_string") | |
| 114 | 115 | core.PuregoSafeRegister(&xInternString, lib, "g_intern_string") | |
| 115 | 116 | core.PuregoSafeRegister(&xQuarkFromStaticString, lib, "g_quark_from_static_string") | |
M v4/glib/grand.go +1 -0
| @@ -153,6 +153,7 @@ func init() { | |||
| 153 | 153 | if err != nil { | |
| 154 | 154 | panic(err) | |
| 155 | 155 | } | |
| 156 | + | ||
| 156 | 157 | core.PuregoSafeRegister(&xRandomDouble, lib, "g_random_double") | |
| 157 | 158 | core.PuregoSafeRegister(&xRandomDoubleRange, lib, "g_random_double_range") | |
| 158 | 159 | core.PuregoSafeRegister(&xRandomInt, lib, "g_random_int") | |
M v4/glib/grcbox.go +1 -0
| @@ -187,6 +187,7 @@ func init() { | |||
| 187 | 187 | if err != nil { | |
| 188 | 188 | panic(err) | |
| 189 | 189 | } | |
| 190 | + | ||
| 190 | 191 | core.PuregoSafeRegister(&xAtomicRcBoxAcquire, lib, "g_atomic_rc_box_acquire") | |
| 191 | 192 | core.PuregoSafeRegister(&xAtomicRcBoxAlloc, lib, "g_atomic_rc_box_alloc") | |
| 192 | 193 | core.PuregoSafeRegister(&xAtomicRcBoxAlloc0, lib, "g_atomic_rc_box_alloc0") | |
M v4/glib/grefcount.go +1 -0
| @@ -91,6 +91,7 @@ func init() { | |||
| 91 | 91 | if err != nil { | |
| 92 | 92 | panic(err) | |
| 93 | 93 | } | |
| 94 | + | ||
| 94 | 95 | core.PuregoSafeRegister(&xAtomicRefCountCompare, lib, "g_atomic_ref_count_compare") | |
| 95 | 96 | core.PuregoSafeRegister(&xAtomicRefCountDec, lib, "g_atomic_ref_count_dec") | |
| 96 | 97 | core.PuregoSafeRegister(&xAtomicRefCountInc, lib, "g_atomic_ref_count_inc") | |
M v4/glib/grefstring.go +1 -0
| @@ -85,6 +85,7 @@ func init() { | |||
| 85 | 85 | if err != nil { | |
| 86 | 86 | panic(err) | |
| 87 | 87 | } | |
| 88 | + | ||
| 88 | 89 | core.PuregoSafeRegister(&xRefStringAcquire, lib, "g_ref_string_acquire") | |
| 89 | 90 | core.PuregoSafeRegister(&xRefStringLength, lib, "g_ref_string_length") | |
| 90 | 91 | core.PuregoSafeRegister(&xRefStringNew, lib, "g_ref_string_new") | |
M v4/glib/gregex.go +18 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // Specifies the type of the function passed to g_regex_replace_eval(). | |
| @@ -19,6 +20,12 @@ type RegexEvalCallback func(*MatchInfo, *String, uintptr) bool | |||
| 19 | 20 | type MatchInfo struct { | |
| 20 | 21 | } | |
| 21 | 22 | ||
| 23 | + | var xMatchInfoGLibType func() types.GType | |
| 24 | + | ||
| 25 | + | func MatchInfoGLibType() types.GType { | |
| 26 | + | return xMatchInfoGLibType() | |
| 27 | + | } | |
| 28 | + | ||
| 22 | 29 | func (x *MatchInfo) GoPointer() uintptr { | |
| 23 | 30 | return uintptr(unsafe.Pointer(x)) | |
| 24 | 31 | } | |
| @@ -355,6 +362,12 @@ func (x *MatchInfo) Unref() { | |||
| 355 | 362 | type Regex struct { | |
| 356 | 363 | } | |
| 357 | 364 | ||
| 365 | + | var xRegexGLibType func() types.GType | |
| 366 | + | ||
| 367 | + | func RegexGLibType() types.GType { | |
| 368 | + | return xRegexGLibType() | |
| 369 | + | } | |
| 370 | + | ||
| 358 | 371 | func (x *Regex) GoPointer() uintptr { | |
| 359 | 372 | return uintptr(unsafe.Pointer(x)) | |
| 360 | 373 | } | |
| @@ -1289,12 +1302,15 @@ func init() { | |||
| 1289 | 1302 | if err != nil { | |
| 1290 | 1303 | panic(err) | |
| 1291 | 1304 | } | |
| 1305 | + | ||
| 1292 | 1306 | core.PuregoSafeRegister(&xRegexCheckReplacement, lib, "g_regex_check_replacement") | |
| 1293 | 1307 | core.PuregoSafeRegister(&xRegexEscapeNul, lib, "g_regex_escape_nul") | |
| 1294 | 1308 | core.PuregoSafeRegister(&xRegexEscapeString, lib, "g_regex_escape_string") | |
| 1295 | 1309 | core.PuregoSafeRegister(&xRegexMatchSimple, lib, "g_regex_match_simple") | |
| 1296 | 1310 | core.PuregoSafeRegister(&xRegexSplitSimple, lib, "g_regex_split_simple") | |
| 1297 | 1311 | ||
| 1312 | + | core.PuregoSafeRegister(&xMatchInfoGLibType, lib, "g_match_info_get_type") | |
| 1313 | + | ||
| 1298 | 1314 | core.PuregoSafeRegister(&xMatchInfoExpandReferences, lib, "g_match_info_expand_references") | |
| 1299 | 1315 | core.PuregoSafeRegister(&xMatchInfoFetch, lib, "g_match_info_fetch") | |
| 1300 | 1316 | core.PuregoSafeRegister(&xMatchInfoFetchAll, lib, "g_match_info_fetch_all") | |
| @@ -1311,6 +1327,8 @@ func init() { | |||
| 1311 | 1327 | core.PuregoSafeRegister(&xMatchInfoRef, lib, "g_match_info_ref") | |
| 1312 | 1328 | core.PuregoSafeRegister(&xMatchInfoUnref, lib, "g_match_info_unref") | |
| 1313 | 1329 | ||
| 1330 | + | core.PuregoSafeRegister(&xRegexGLibType, lib, "g_regex_get_type") | |
| 1331 | + | ||
| 1314 | 1332 | core.PuregoSafeRegister(&xNewRegex, lib, "g_regex_new") | |
| 1315 | 1333 | ||
| 1316 | 1334 | core.PuregoSafeRegister(&xRegexGetCaptureCount, lib, "g_regex_get_capture_count") | |
M v4/glib/gsequence.go +1 -0
| @@ -463,6 +463,7 @@ func init() { | |||
| 463 | 463 | if err != nil { | |
| 464 | 464 | panic(err) | |
| 465 | 465 | } | |
| 466 | + | ||
| 466 | 467 | core.PuregoSafeRegister(&xSequenceGet, lib, "g_sequence_get") | |
| 467 | 468 | core.PuregoSafeRegister(&xSequenceInsertBefore, lib, "g_sequence_insert_before") | |
| 468 | 469 | core.PuregoSafeRegister(&xSequenceMove, lib, "g_sequence_move") | |
M v4/glib/gshell.go +1 -0
| @@ -113,6 +113,7 @@ func init() { | |||
| 113 | 113 | if err != nil { | |
| 114 | 114 | panic(err) | |
| 115 | 115 | } | |
| 116 | + | ||
| 116 | 117 | core.PuregoSafeRegister(&xShellParseArgv, lib, "g_shell_parse_argv") | |
| 117 | 118 | core.PuregoSafeRegister(&xShellQuote, lib, "g_shell_quote") | |
| 118 | 119 | core.PuregoSafeRegister(&xShellUnquote, lib, "g_shell_unquote") | |
M v4/glib/gslice.go +1 -0
| @@ -130,6 +130,7 @@ func init() { | |||
| 130 | 130 | if err != nil { | |
| 131 | 131 | panic(err) | |
| 132 | 132 | } | |
| 133 | + | ||
| 133 | 134 | core.PuregoSafeRegister(&xSliceAlloc, lib, "g_slice_alloc") | |
| 134 | 135 | core.PuregoSafeRegister(&xSliceAlloc0, lib, "g_slice_alloc0") | |
| 135 | 136 | core.PuregoSafeRegister(&xSliceCopy, lib, "g_slice_copy") | |
M v4/glib/gslist.go +1 -0
| @@ -36,6 +36,7 @@ func init() { | |||
| 36 | 36 | if err != nil { | |
| 37 | 37 | panic(err) | |
| 38 | 38 | } | |
| 39 | + | ||
| 39 | 40 | core.PuregoSafeRegister(&xClearSlist, lib, "g_clear_slist") | |
| 40 | 41 | ||
| 41 | 42 | } | |
M v4/glib/gspawn.go +1 -0
| @@ -581,6 +581,7 @@ func init() { | |||
| 581 | 581 | if err != nil { | |
| 582 | 582 | panic(err) | |
| 583 | 583 | } | |
| 584 | + | ||
| 584 | 585 | core.PuregoSafeRegister(&xSpawnAsync, lib, "g_spawn_async") | |
| 585 | 586 | core.PuregoSafeRegister(&xSpawnAsyncWithFds, lib, "g_spawn_async_with_fds") | |
| 586 | 587 | core.PuregoSafeRegister(&xSpawnAsyncWithPipes, lib, "g_spawn_async_with_pipes") | |
M v4/glib/gstdio.go +1 -0
| @@ -105,6 +105,7 @@ func init() { | |||
| 105 | 105 | if err != nil { | |
| 106 | 106 | panic(err) | |
| 107 | 107 | } | |
| 108 | + | ||
| 108 | 109 | core.PuregoSafeRegister(&xAccess, lib, "g_access") | |
| 109 | 110 | core.PuregoSafeRegister(&xChdir, lib, "g_chdir") | |
| 110 | 111 | core.PuregoSafeRegister(&xClose, lib, "g_close") | |
M v4/glib/gstrfuncs.go +1 -0 collapsed to keep the page light
M v4/glib/gstring.go +9 -0 collapsed to keep the page light
M v4/glib/gtestutils.go +1 -0 collapsed to keep the page light
M v4/glib/gthread.go +10 -0 collapsed to keep the page light
M v4/glib/gthreadpool.go +1 -0 collapsed to keep the page light
M v4/glib/gtimer.go +1 -0 collapsed to keep the page light
M v4/glib/gtimezone.go +9 -0 collapsed to keep the page light
M v4/glib/gtrashstack.go +1 -0 collapsed to keep the page light
M v4/glib/gtree.go +9 -0 collapsed to keep the page light
M v4/glib/gunicode.go +1 -0 collapsed to keep the page light
M v4/glib/guri.go +10 -0 collapsed to keep the page light
M v4/glib/gutils.go +1 -0 collapsed to keep the page light
M v4/glib/guuid.go +1 -0 collapsed to keep the page light
M v4/glib/gvariant.go +26 -0 collapsed to keep the page light
M v4/glib/gvarianttype.go +10 -0 collapsed to keep the page light
M v4/glib/gversion.go +1 -0 collapsed to keep the page light
M v4/glib/main.go +1 -0 collapsed to keep the page light
M v4/gmodule/gmodule.go +1 -0 collapsed to keep the page light
M v4/gmodule/main.go +1 -0 collapsed to keep the page light
M v4/gobject/gbinding.go +8 -0 collapsed to keep the page light
M v4/gobject/gboxed.go +1 -0 collapsed to keep the page light
M v4/gobject/gclosure.go +9 -0 collapsed to keep the page light
M v4/gobject/genums.go +1 -0 collapsed to keep the page light
M v4/gobject/gmarshal.go +1 -0 collapsed to keep the page light
M v4/gobject/gobject-2.0.go +33 -0 collapsed to keep the page light
M v4/gobject/gobject.go +17 -0 collapsed to keep the page light
M v4/gobject/gparam.go +9 -0 collapsed to keep the page light
M v4/gobject/gparamspecs.go +185 -0 collapsed to keep the page light
M v4/gobject/gsignal.go +1 -0 collapsed to keep the page light
M v4/gobject/gsourceclosure.go +1 -0 collapsed to keep the page light
M v4/gobject/gtype.go +1 -0 collapsed to keep the page light
M v4/gobject/gtypemodule.go +8 -0 collapsed to keep the page light
M v4/gobject/gvalue.go +9 -0 collapsed to keep the page light
M v4/gobject/gvaluearray.go +9 -0 collapsed to keep the page light
M v4/gobject/gvaluetypes.go +1 -0 collapsed to keep the page light
M v4/graphene/graphene-box.go +10 -0 collapsed to keep the page light
M v4/graphene/graphene-euler.go +9 -0 collapsed to keep the page light
M v4/graphene/graphene-frustum.go +9 -0 collapsed to keep the page light
M v4/graphene/graphene-matrix.go +9 -0 collapsed to keep the page light
M v4/graphene/graphene-plane.go +9 -0 collapsed to keep the page light
M v4/graphene/graphene-point.go +10 -0 collapsed to keep the page light
M v4/graphene/graphene-point3d.go +10 -0 collapsed to keep the page light
M v4/graphene/graphene-quad.go +9 -0 collapsed to keep the page light
M v4/graphene/graphene-quaternion.go +9 -0 collapsed to keep the page light
M v4/graphene/graphene-ray.go +9 -0 collapsed to keep the page light
M v4/graphene/graphene-rect.go +10 -0 collapsed to keep the page light
M v4/graphene/graphene-size.go +10 -0 collapsed to keep the page light
M v4/graphene/graphene-sphere.go +9 -0 collapsed to keep the page light
M v4/graphene/graphene-triangle.go +9 -0 collapsed to keep the page light
M v4/graphene/graphene-vec2.go +10 -0 collapsed to keep the page light
M v4/graphene/graphene-vec3.go +10 -0 collapsed to keep the page light
M v4/graphene/graphene-vec4.go +10 -0 collapsed to keep the page light
M v4/gsk/gskbroadwayrenderer.go +9 -0 collapsed to keep the page light
M v4/gsk/gskcairorenderer.go +9 -0 collapsed to keep the page light
M v4/gsk/gskenums.go +44 -0 collapsed to keep the page light
M v4/gsk/gskglrenderer.go +9 -0 collapsed to keep the page light
M v4/gsk/gskglshader.go +17 -0 collapsed to keep the page light
M v4/gsk/gskrenderer.go +9 -0 collapsed to keep the page light
M v4/gsk/gskrendernode.go +10 -0 collapsed to keep the page light
M v4/gsk/gskrendernodeimpl.go +201 -0 collapsed to keep the page light
M v4/gsk/gsktransform.go +1 -0 collapsed to keep the page light
M v4/gsk/gsktypes.go +9 -0 collapsed to keep the page light
M v4/gsk/main.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkaboutdialog.go +18 -0 collapsed to keep the page light
M v4/gtk/gtkaccelgroup.go +1 -0 collapsed to keep the page light
M v4/gtk/gtkaccessible.go +11 -0 collapsed to keep the page light
M v4/gtk/gtkactionable.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkactionbar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkadjustment.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkappchooser.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkappchooserbutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkappchooserdialog.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkappchooserwidget.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkapplication.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkapplicationwindow.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkaspectframe.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkassistant.go +25 -0 collapsed to keep the page light
M v4/gtk/gtkatcontext.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkbinlayout.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkbitset.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkbookmarklist.go +8 -0 collapsed to keep the page light
M v4/gtk/gtkboolfilter.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkborder.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkbox.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkboxlayout.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkbuildable.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkbuilder.go +16 -0 collapsed to keep the page light
M v4/gtk/gtkbuilderlistitemfactory.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkbuilderscope.go +26 -0 collapsed to keep the page light
M v4/gtk/gtkbutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcalendar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcellarea.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcellareabox.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcellareacontext.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcelleditable.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkcelllayout.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkcellrenderer.go +25 -0 collapsed to keep the page light
M v4/gtk/gtkcellrendereraccel.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkcellrenderercombo.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcellrendererpixbuf.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcellrendererprogress.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcellrendererspin.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcellrendererspinner.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcellrenderertext.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcellrenderertoggle.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcellview.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcenterbox.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcenterlayout.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcheckbutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcolorbutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcolorchooser.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkcolorchooserdialog.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcolorchooserwidget.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcolorutils.go +1 -0 collapsed to keep the page light
M v4/gtk/gtkcolumnview.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcolumnviewcolumn.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcombobox.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcomboboxtext.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkconstraint.go +18 -0 collapsed to keep the page light
M v4/gtk/gtkconstraintguide.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkconstraintlayout.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkcsserror.go +1 -0 collapsed to keep the page light
M v4/gtk/gtkcssprovider.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcsssection.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcustomfilter.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcustomlayout.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkcustomsorter.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkdebug.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkdialog.go +25 -0 collapsed to keep the page light
M v4/gtk/gtkdirectorylist.go +8 -0 collapsed to keep the page light
M v4/gtk/gtkdragicon.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkdragsource.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkdrawingarea.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkdropcontrollermotion.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkdropdown.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkdroptarget.go +8 -0 collapsed to keep the page light
M v4/gtk/gtkdroptargetasync.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkeditable.go +19 -0 collapsed to keep the page light
M v4/gtk/gtkeditablelabel.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkemojichooser.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkentry.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkentrybuffer.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkentrycompletion.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkenums.go +474 -0 collapsed to keep the page light
M v4/gtk/gtkeventcontroller.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkeventcontrollerfocus.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkeventcontrollerkey.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkeventcontrollerlegacy.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkeventcontrollermotion.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkeventcontrollerscroll.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkexpander.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkexpression.go +65 -0 collapsed to keep the page light
M v4/gtk/gtkfilechooser.go +27 -0 collapsed to keep the page light
M v4/gtk/gtkfilechooserdialog.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkfilechoosernative.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkfilechooserwidget.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkfilefilter.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkfilter.go +25 -0 collapsed to keep the page light
M v4/gtk/gtkfilterlistmodel.go +8 -0 collapsed to keep the page light
M v4/gtk/gtkfixed.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkfixedlayout.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkflattenlistmodel.go +8 -0 collapsed to keep the page light
M v4/gtk/gtkflowbox.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkfontbutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkfontchooser.go +18 -0 collapsed to keep the page light
M v4/gtk/gtkfontchooserdialog.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkfontchooserwidget.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkframe.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgesture.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgestureclick.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgesturedrag.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgesturelongpress.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgesturepan.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgesturerotate.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgesturesingle.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgesturestylus.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgestureswipe.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgesturezoom.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkglarea.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgrid.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkgridlayout.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkgridview.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkheaderbar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkicontheme.go +33 -0 collapsed to keep the page light
M v4/gtk/gtkiconview.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkimage.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkimcontext.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkimcontextsimple.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkimmulticontext.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkinfobar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkinscription.go +17 -0 collapsed to keep the page light
M v4/gtk/gtklabel.go +9 -0 collapsed to keep the page light
M v4/gtk/gtklayoutchild.go +9 -0 collapsed to keep the page light
M v4/gtk/gtklayoutmanager.go +8 -0 collapsed to keep the page light
M v4/gtk/gtklevelbar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtklinkbutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtklistbase.go +7 -0 collapsed to keep the page light
M v4/gtk/gtklistbox.go +17 -0 collapsed to keep the page light
M v4/gtk/gtklistitem.go +9 -0 collapsed to keep the page light
M v4/gtk/gtklistitemfactory.go +7 -0 collapsed to keep the page light
M v4/gtk/gtkliststore.go +8 -0 collapsed to keep the page light
M v4/gtk/gtklistview.go +9 -0 collapsed to keep the page light
M v4/gtk/gtklockbutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkmain.go +1 -0 collapsed to keep the page light
M v4/gtk/gtkmaplistmodel.go +8 -0 collapsed to keep the page light
M v4/gtk/gtkmediacontrols.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkmediafile.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkmediastream.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkmenubutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkmessagedialog.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkmountoperation.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkmultifilter.go +24 -0 collapsed to keep the page light
M v4/gtk/gtkmultiselection.go +8 -0 collapsed to keep the page light
M v4/gtk/gtkmultisorter.go +8 -0 collapsed to keep the page light
M v4/gtk/gtknative.go +11 -0 collapsed to keep the page light
M v4/gtk/gtknativedialog.go +9 -0 collapsed to keep the page light
M v4/gtk/gtknoselection.go +8 -0 collapsed to keep the page light
M v4/gtk/gtknotebook.go +25 -0 collapsed to keep the page light
M v4/gtk/gtknumericsorter.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkorientable.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkoverlay.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkoverlaylayout.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkpadcontroller.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkpagesetup.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkpagesetupunixdialog.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkpaned.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkpapersize.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkpasswordentry.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkpasswordentrybuffer.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkpicture.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkpopover.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkpopovermenu.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkpopovermenubar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkprintcontext.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkprinter.go +18 -0 collapsed to keep the page light
M v4/gtk/gtkprintjob.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkprintoperation.go +42 -0 collapsed to keep the page light
M v4/gtk/gtkprintoperationpreview.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkprintsettings.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkprintunixdialog.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkprogressbar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkrange.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkrecentmanager.go +25 -0 collapsed to keep the page light
M v4/gtk/gtkrender.go +1 -0 collapsed to keep the page light
M v4/gtk/gtkrevealer.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkroot.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkscale.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkscalebutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkscrollable.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkscrollbar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkscrolledwindow.go +25 -0 collapsed to keep the page light
M v4/gtk/gtksearchbar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtksearchentry.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkselectionfiltermodel.go +8 -0 collapsed to keep the page light
M v4/gtk/gtkselectionmodel.go +10 -0 collapsed to keep the page light
M v4/gtk/gtkseparator.go +9 -0 collapsed to keep the page light
M v4/gtk/gtksettings.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkshortcut.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkshortcutaction.go +65 -0 collapsed to keep the page light
M v4/gtk/gtkshortcutcontroller.go +8 -0 collapsed to keep the page light
M v4/gtk/gtkshortcutlabel.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkshortcutmanager.go +12 -1 collapsed to keep the page light
M v4/gtk/gtkshortcutsgroup.go +7 -0 collapsed to keep the page light
M v4/gtk/gtkshortcutssection.go +7 -0 collapsed to keep the page light
M v4/gtk/gtkshortcutsshortcut.go +13 -0 collapsed to keep the page light
M v4/gtk/gtkshortcutswindow.go +7 -0 collapsed to keep the page light
M v4/gtk/gtkshortcuttrigger.go +41 -0 collapsed to keep the page light
M v4/gtk/gtkshow.go +1 -0 collapsed to keep the page light
M v4/gtk/gtksignallistitemfactory.go +9 -0 collapsed to keep the page light
M v4/gtk/gtksingleselection.go +8 -0 collapsed to keep the page light
M v4/gtk/gtksizegroup.go +9 -0 collapsed to keep the page light
M v4/gtk/gtksizerequest.go +1 -0 collapsed to keep the page light
M v4/gtk/gtkslicelistmodel.go +8 -0 collapsed to keep the page light
M v4/gtk/gtksnapshot.go +9 -0 collapsed to keep the page light
M v4/gtk/gtksorter.go +25 -0 collapsed to keep the page light
M v4/gtk/gtksortlistmodel.go +8 -0 collapsed to keep the page light
M v4/gtk/gtkspinbutton.go +25 -0 collapsed to keep the page light
M v4/gtk/gtkspinner.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkstack.go +25 -0 collapsed to keep the page light
M v4/gtk/gtkstacksidebar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkstackswitcher.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkstatusbar.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkstringfilter.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkstringlist.go +16 -0 collapsed to keep the page light
M v4/gtk/gtkstringsorter.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkstylecontext.go +17 -0 collapsed to keep the page light
M v4/gtk/gtkstyleprovider.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkswitch.go +9 -0 collapsed to keep the page light
M v4/gtk/gtksymbolicpaintable.go +10 -0 collapsed to keep the page light
M v4/gtk/gtktestatcontext.go +1 -0 collapsed to keep the page light
M v4/gtk/gtktestutils.go +1 -0 collapsed to keep the page light
M v4/gtk/gtktext.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktextbuffer.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktextchild.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktextiter.go +17 -0 collapsed to keep the page light
M v4/gtk/gtktextmark.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktexttag.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktexttagtable.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktextview.go +33 -0 collapsed to keep the page light
M v4/gtk/gtktogglebutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktooltip.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktreednd.go +20 -0 collapsed to keep the page light
M v4/gtk/gtktreeexpander.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktreelistmodel.go +16 -0 collapsed to keep the page light
M v4/gtk/gtktreelistrowsorter.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktreemodel.go +42 -0 collapsed to keep the page light
M v4/gtk/gtktreemodelfilter.go +8 -0 collapsed to keep the page light
M v4/gtk/gtktreemodelsort.go +8 -0 collapsed to keep the page light
M v4/gtk/gtktreeselection.go +9 -0 collapsed to keep the page light
M v4/gtk/gtktreesortable.go +10 -0 collapsed to keep the page light
M v4/gtk/gtktreestore.go +8 -0 collapsed to keep the page light
M v4/gtk/gtktreeview.go +17 -0 collapsed to keep the page light
M v4/gtk/gtktreeviewcolumn.go +17 -0 collapsed to keep the page light
M v4/gtk/gtktypes.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkversion.go +1 -0 collapsed to keep the page light
M v4/gtk/gtkvideo.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkviewport.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkvolumebutton.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkwidget.go +16 -0 collapsed to keep the page light
M v4/gtk/gtkwidgetpaintable.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkwindow.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkwindowcontrols.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkwindowgroup.go +9 -0 collapsed to keep the page light
M v4/gtk/gtkwindowhandle.go +9 -0 collapsed to keep the page light
M v4/gtk/main.go +1 -0 collapsed to keep the page light
M v4/pango/main.go +1 -0 collapsed to keep the page light
M v4/pango/pango-attributes.go +82 -0 collapsed to keep the page light
M v4/pango/pango-bidi-type.go +10 -0 collapsed to keep the page light
M v4/pango/pango-break.go +1 -0 collapsed to keep the page light
M v4/pango/pango-color.go +9 -0 collapsed to keep the page light
M v4/pango/pango-context.go +9 -0 collapsed to keep the page light
M v4/pango/pango-coverage.go +17 -0 collapsed to keep the page light
M v4/pango/pango-direction.go +8 -0 collapsed to keep the page light
M v4/pango/pango-font.go +82 -0 collapsed to keep the page light
M v4/pango/pango-fontmap.go +9 -0 collapsed to keep the page light
M v4/pango/pango-fontset.go +17 -0 collapsed to keep the page light
M v4/pango/pango-glyph-item.go +17 -0 collapsed to keep the page light
M v4/pango/pango-glyph.go +18 -0 collapsed to keep the page light
M v4/pango/pango-gravity.go +18 -0 collapsed to keep the page light
M v4/pango/pango-item.go +10 -0 collapsed to keep the page light
M v4/pango/pango-language.go +1 -0 collapsed to keep the page light
M v4/pango/pango-layout.go +73 -0 collapsed to keep the page light
M v4/pango/pango-markup.go +1 -0 collapsed to keep the page light
M v4/pango/pango-matrix.go +9 -0 collapsed to keep the page light
M v4/pango/pango-renderer.go +17 -0 collapsed to keep the page light
M v4/pango/pango-script.go +18 -0 collapsed to keep the page light
M v4/pango/pango-tabs.go +18 -0 collapsed to keep the page light
M v4/pango/pango-types.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||
| 6 | 6 | ||
| 7 | 7 | "github.com/jwijenbergh/purego" | |
| 8 | 8 | "github.com/jwijenbergh/puregotk/internal/core" | |
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |
| 9 | 10 | ) | |
| 10 | 11 | ||
| 11 | 12 | // The `PangoLanguage` structure is used to | |
| @@ -16,6 +17,12 @@ import ( | |||
| 16 | 17 | type Language struct { | |
| 17 | 18 | } | |
| 18 | 19 | ||
| 20 | + | var xLanguageGLibType func() types.GType | |
| 21 | + | ||
| 22 | + | func LanguageGLibType() types.GType { | |
| 23 | + | return xLanguageGLibType() | |
| 24 | + | } | |
| 25 | + | ||
| 19 | 26 | func (x *Language) GoPointer() uintptr { | |
| 20 | 27 | return uintptr(unsafe.Pointer(x)) | |
| 21 | 28 | } | |
| @@ -211,10 +218,13 @@ func init() { | |||
| 211 | 218 | if err != nil { | |
| 212 | 219 | panic(err) | |
| 213 | 220 | } | |
| 221 | + | ||
| 214 | 222 | core.PuregoSafeRegister(&xExtentsToPixels, lib, "pango_extents_to_pixels") | |
| 215 | 223 | core.PuregoSafeRegister(&xUnitsFromDouble, lib, "pango_units_from_double") | |
| 216 | 224 | core.PuregoSafeRegister(&xUnitsToDouble, lib, "pango_units_to_double") | |
| 217 | 225 | ||
| 226 | + | core.PuregoSafeRegister(&xLanguageGLibType, lib, "pango_language_get_type") | |
| 227 | + | ||
| 218 | 228 | core.PuregoSafeRegister(&xLanguageGetSampleString, lib, "pango_language_get_sample_string") | |
| 219 | 229 | core.PuregoSafeRegister(&xLanguageGetScripts, lib, "pango_language_get_scripts") | |
| 220 | 230 | core.PuregoSafeRegister(&xLanguageIncludesScript, lib, "pango_language_includes_script") | |