Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36
| @@ -5,6 +5,7 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | + | "github.com/bnema/purego" | |
| 8 | 9 | "github.com/bnema/puregotk/pkg/core" | |
| 9 | 10 | "github.com/bnema/puregotk/v4/gobject/types" | |
| 10 | 11 | ) | |
| @@ -16,7 +17,6 @@ type Context struct { | |||
| 16 | 17 | var xContextGLibType func() types.GType | |
| 17 | 18 | ||
| 18 | 19 | func ContextGLibType() types.GType { | |
| 19 | - | core.LazyRegister(&xContextGLibType, "CAIRO", "cairo_gobject_context_get_type", false) | |
| 20 | 20 | return xContextGLibType() | |
| 21 | 21 | } | |
| 22 | 22 | ||
| @@ -39,7 +39,6 @@ type Device struct { | |||
| 39 | 39 | var xDeviceGLibType func() types.GType | |
| 40 | 40 | ||
| 41 | 41 | func DeviceGLibType() types.GType { | |
| 42 | - | core.LazyRegister(&xDeviceGLibType, "CAIRO", "cairo_gobject_device_get_type", false) | |
| 43 | 42 | return xDeviceGLibType() | |
| 44 | 43 | } | |
| 45 | 44 | ||
| @@ -62,7 +61,6 @@ type Surface struct { | |||
| 62 | 61 | var xSurfaceGLibType func() types.GType | |
| 63 | 62 | ||
| 64 | 63 | func SurfaceGLibType() types.GType { | |
| 65 | - | core.LazyRegister(&xSurfaceGLibType, "CAIRO", "cairo_gobject_surface_get_type", false) | |
| 66 | 64 | return xSurfaceGLibType() | |
| 67 | 65 | } | |
| 68 | 66 | ||
| @@ -101,7 +99,6 @@ type Pattern struct { | |||
| 101 | 99 | var xPatternGLibType func() types.GType | |
| 102 | 100 | ||
| 103 | 101 | func PatternGLibType() types.GType { | |
| 104 | - | core.LazyRegister(&xPatternGLibType, "CAIRO", "cairo_gobject_pattern_get_type", false) | |
| 105 | 102 | return xPatternGLibType() | |
| 106 | 103 | } | |
| 107 | 104 | ||
| @@ -124,7 +121,6 @@ type Region struct { | |||
| 124 | 121 | var xRegionGLibType func() types.GType | |
| 125 | 122 | ||
| 126 | 123 | func RegionGLibType() types.GType { | |
| 127 | - | core.LazyRegister(&xRegionGLibType, "CAIRO", "cairo_gobject_region_get_type", false) | |
| 128 | 124 | return xRegionGLibType() | |
| 129 | 125 | } | |
| 130 | 126 | ||
| @@ -147,7 +143,6 @@ type FontOptions struct { | |||
| 147 | 143 | var xFontOptionsGLibType func() types.GType | |
| 148 | 144 | ||
| 149 | 145 | func FontOptionsGLibType() types.GType { | |
| 150 | - | core.LazyRegister(&xFontOptionsGLibType, "CAIRO", "cairo_gobject_font_options_get_type", false) | |
| 151 | 146 | return xFontOptionsGLibType() | |
| 152 | 147 | } | |
| 153 | 148 | ||
| @@ -170,7 +165,6 @@ type FontFace struct { | |||
| 170 | 165 | var xFontFaceGLibType func() types.GType | |
| 171 | 166 | ||
| 172 | 167 | func FontFaceGLibType() types.GType { | |
| 173 | - | core.LazyRegister(&xFontFaceGLibType, "CAIRO", "cairo_gobject_font_face_get_type", false) | |
| 174 | 168 | return xFontFaceGLibType() | |
| 175 | 169 | } | |
| 176 | 170 | ||
| @@ -193,7 +187,6 @@ type ScaledFont struct { | |||
| 193 | 187 | var xScaledFontGLibType func() types.GType | |
| 194 | 188 | ||
| 195 | 189 | func ScaledFontGLibType() types.GType { | |
| 196 | - | core.LazyRegister(&xScaledFontGLibType, "CAIRO", "cairo_gobject_scaled_font_get_type", false) | |
| 197 | 190 | return xScaledFontGLibType() | |
| 198 | 191 | } | |
| 199 | 192 | ||
| @@ -240,7 +233,6 @@ type Rectangle struct { | |||
| 240 | 233 | var xRectangleGLibType func() types.GType | |
| 241 | 234 | ||
| 242 | 235 | func RectangleGLibType() types.GType { | |
| 243 | - | core.LazyRegister(&xRectangleGLibType, "CAIRO", "cairo_gobject_rectangle_get_type", false) | |
| 244 | 236 | return xRectangleGLibType() | |
| 245 | 237 | } | |
| 246 | 238 | ||
| @@ -271,7 +263,6 @@ type RectangleInt struct { | |||
| 271 | 263 | var xRectangleIntGLibType func() types.GType | |
| 272 | 264 | ||
| 273 | 265 | func RectangleIntGLibType() types.GType { | |
| 274 | - | core.LazyRegister(&xRectangleIntGLibType, "CAIRO", "cairo_gobject_rectangle_int_get_type", false) | |
| 275 | 266 | return xRectangleIntGLibType() | |
| 276 | 267 | } | |
| 277 | 268 | ||
| @@ -300,7 +291,6 @@ type Glyph struct { | |||
| 300 | 291 | var xGlyphGLibType func() types.GType | |
| 301 | 292 | ||
| 302 | 293 | func GlyphGLibType() types.GType { | |
| 303 | - | core.LazyRegister(&xGlyphGLibType, "CAIRO", "cairo_gobject_glyph_get_type", false) | |
| 304 | 294 | return xGlyphGLibType() | |
| 305 | 295 | } | |
| 306 | 296 | ||
| @@ -327,7 +317,6 @@ type TextCluster struct { | |||
| 327 | 317 | var xTextClusterGLibType func() types.GType | |
| 328 | 318 | ||
| 329 | 319 | func TextClusterGLibType() types.GType { | |
| 330 | - | core.LazyRegister(&xTextClusterGLibType, "CAIRO", "cairo_gobject_text_cluster_get_type", false) | |
| 331 | 320 | return xTextClusterGLibType() | |
| 332 | 321 | } | |
| 333 | 322 | ||
| @@ -348,7 +337,6 @@ type Status int | |||
| 348 | 337 | var xStatusGLibType func() types.GType | |
| 349 | 338 | ||
| 350 | 339 | func StatusGLibType() types.GType { | |
| 351 | - | core.LazyRegister(&xStatusGLibType, "CAIRO", "cairo_gobject_status_get_type", false) | |
| 352 | 340 | return xStatusGLibType() | |
| 353 | 341 | } | |
| 354 | 342 | ||
| @@ -437,7 +425,6 @@ type Content int | |||
| 437 | 425 | var xContentGLibType func() types.GType | |
| 438 | 426 | ||
| 439 | 427 | func ContentGLibType() types.GType { | |
| 440 | - | core.LazyRegister(&xContentGLibType, "CAIRO", "cairo_gobject_content_get_type", false) | |
| 441 | 428 | return xContentGLibType() | |
| 442 | 429 | } | |
| 443 | 430 | ||
| @@ -454,7 +441,6 @@ type Operator int | |||
| 454 | 441 | var xOperatorGLibType func() types.GType | |
| 455 | 442 | ||
| 456 | 443 | func OperatorGLibType() types.GType { | |
| 457 | - | core.LazyRegister(&xOperatorGLibType, "CAIRO", "cairo_gobject_operator_get_type", false) | |
| 458 | 444 | return xOperatorGLibType() | |
| 459 | 445 | } | |
| 460 | 446 | ||
| @@ -523,7 +509,6 @@ type Antialias int | |||
| 523 | 509 | var xAntialiasGLibType func() types.GType | |
| 524 | 510 | ||
| 525 | 511 | func AntialiasGLibType() types.GType { | |
| 526 | - | core.LazyRegister(&xAntialiasGLibType, "CAIRO", "cairo_gobject_antialias_get_type", false) | |
| 527 | 512 | return xAntialiasGLibType() | |
| 528 | 513 | } | |
| 529 | 514 | ||
| @@ -548,7 +533,6 @@ type FillRule int | |||
| 548 | 533 | var xFillRuleGLibType func() types.GType | |
| 549 | 534 | ||
| 550 | 535 | func FillRuleGLibType() types.GType { | |
| 551 | - | core.LazyRegister(&xFillRuleGLibType, "CAIRO", "cairo_gobject_fill_rule_get_type", false) | |
| 552 | 536 | return xFillRuleGLibType() | |
| 553 | 537 | } | |
| 554 | 538 | ||
| @@ -563,7 +547,6 @@ type LineCap int | |||
| 563 | 547 | var xLineCapGLibType func() types.GType | |
| 564 | 548 | ||
| 565 | 549 | func LineCapGLibType() types.GType { | |
| 566 | - | core.LazyRegister(&xLineCapGLibType, "CAIRO", "cairo_gobject_line_cap_get_type", false) | |
| 567 | 550 | return xLineCapGLibType() | |
| 568 | 551 | } | |
| 569 | 552 | ||
| @@ -580,7 +563,6 @@ type LineJoin int | |||
| 580 | 563 | var xLineJoinGLibType func() types.GType | |
| 581 | 564 | ||
| 582 | 565 | func LineJoinGLibType() types.GType { | |
| 583 | - | core.LazyRegister(&xLineJoinGLibType, "CAIRO", "cairo_gobject_line_join_get_type", false) | |
| 584 | 566 | return xLineJoinGLibType() | |
| 585 | 567 | } | |
| 586 | 568 | ||
| @@ -597,7 +579,6 @@ type TextClusterFlags int | |||
| 597 | 579 | var xTextClusterFlagsGLibType func() types.GType | |
| 598 | 580 | ||
| 599 | 581 | func TextClusterFlagsGLibType() types.GType { | |
| 600 | - | core.LazyRegister(&xTextClusterFlagsGLibType, "CAIRO", "cairo_gobject_text_cluster_flags_get_type", false) | |
| 601 | 582 | return xTextClusterFlagsGLibType() | |
| 602 | 583 | } | |
| 603 | 584 | ||
| @@ -610,7 +591,6 @@ type FontSlant int | |||
| 610 | 591 | var xFontSlantGLibType func() types.GType | |
| 611 | 592 | ||
| 612 | 593 | func FontSlantGLibType() types.GType { | |
| 613 | - | core.LazyRegister(&xFontSlantGLibType, "CAIRO", "cairo_gobject_font_slant_get_type", false) | |
| 614 | 594 | return xFontSlantGLibType() | |
| 615 | 595 | } | |
| 616 | 596 | ||
| @@ -627,7 +607,6 @@ type FontWeight int | |||
| 627 | 607 | var xFontWeightGLibType func() types.GType | |
| 628 | 608 | ||
| 629 | 609 | func FontWeightGLibType() types.GType { | |
| 630 | - | core.LazyRegister(&xFontWeightGLibType, "CAIRO", "cairo_gobject_font_weight_get_type", false) | |
| 631 | 610 | return xFontWeightGLibType() | |
| 632 | 611 | } | |
| 633 | 612 | ||
| @@ -642,7 +621,6 @@ type SubpixelOrder int | |||
| 642 | 621 | var xSubpixelOrderGLibType func() types.GType | |
| 643 | 622 | ||
| 644 | 623 | func SubpixelOrderGLibType() types.GType { | |
| 645 | - | core.LazyRegister(&xSubpixelOrderGLibType, "CAIRO", "cairo_gobject_subpixel_order_get_type", false) | |
| 646 | 624 | return xSubpixelOrderGLibType() | |
| 647 | 625 | } | |
| 648 | 626 | ||
| @@ -663,7 +641,6 @@ type HintStyle int | |||
| 663 | 641 | var xHintStyleGLibType func() types.GType | |
| 664 | 642 | ||
| 665 | 643 | func HintStyleGLibType() types.GType { | |
| 666 | - | core.LazyRegister(&xHintStyleGLibType, "CAIRO", "cairo_gobject_hint_style_get_type", false) | |
| 667 | 644 | return xHintStyleGLibType() | |
| 668 | 645 | } | |
| 669 | 646 | ||
| @@ -684,7 +661,6 @@ type HintMetrics int | |||
| 684 | 661 | var xHintMetricsGLibType func() types.GType | |
| 685 | 662 | ||
| 686 | 663 | func HintMetricsGLibType() types.GType { | |
| 687 | - | core.LazyRegister(&xHintMetricsGLibType, "CAIRO", "cairo_gobject_hint_metrics_get_type", false) | |
| 688 | 664 | return xHintMetricsGLibType() | |
| 689 | 665 | } | |
| 690 | 666 | ||
| @@ -701,7 +677,6 @@ type FontType int | |||
| 701 | 677 | var xFontTypeGLibType func() types.GType | |
| 702 | 678 | ||
| 703 | 679 | func FontTypeGLibType() types.GType { | |
| 704 | - | core.LazyRegister(&xFontTypeGLibType, "CAIRO", "cairo_gobject_font_type_get_type", false) | |
| 705 | 680 | return xFontTypeGLibType() | |
| 706 | 681 | } | |
| 707 | 682 | ||
| @@ -722,7 +697,6 @@ type PathDataType int | |||
| 722 | 697 | var xPathDataTypeGLibType func() types.GType | |
| 723 | 698 | ||
| 724 | 699 | func PathDataTypeGLibType() types.GType { | |
| 725 | - | core.LazyRegister(&xPathDataTypeGLibType, "CAIRO", "cairo_gobject_path_data_type_get_type", false) | |
| 726 | 700 | return xPathDataTypeGLibType() | |
| 727 | 701 | } | |
| 728 | 702 | ||
| @@ -741,7 +715,6 @@ type DeviceType int | |||
| 741 | 715 | var xDeviceTypeGLibType func() types.GType | |
| 742 | 716 | ||
| 743 | 717 | func DeviceTypeGLibType() types.GType { | |
| 744 | - | core.LazyRegister(&xDeviceTypeGLibType, "CAIRO", "cairo_gobject_device_type_get_type", false) | |
| 745 | 718 | return xDeviceTypeGLibType() | |
| 746 | 719 | } | |
| 747 | 720 | ||
| @@ -770,7 +743,6 @@ type SurfaceType int | |||
| 770 | 743 | var xSurfaceTypeGLibType func() types.GType | |
| 771 | 744 | ||
| 772 | 745 | func SurfaceTypeGLibType() types.GType { | |
| 773 | - | core.LazyRegister(&xSurfaceTypeGLibType, "CAIRO", "cairo_gobject_surface_type_get_type", false) | |
| 774 | 746 | return xSurfaceTypeGLibType() | |
| 775 | 747 | } | |
| 776 | 748 | ||
| @@ -831,7 +803,6 @@ type Format int | |||
| 831 | 803 | var xFormatGLibType func() types.GType | |
| 832 | 804 | ||
| 833 | 805 | func FormatGLibType() types.GType { | |
| 834 | - | core.LazyRegister(&xFormatGLibType, "CAIRO", "cairo_gobject_format_get_type", false) | |
| 835 | 806 | return xFormatGLibType() | |
| 836 | 807 | } | |
| 837 | 808 | ||
| @@ -856,7 +827,6 @@ type PatternType int | |||
| 856 | 827 | var xPatternTypeGLibType func() types.GType | |
| 857 | 828 | ||
| 858 | 829 | func PatternTypeGLibType() types.GType { | |
| 859 | - | core.LazyRegister(&xPatternTypeGLibType, "CAIRO", "cairo_gobject_pattern_type_get_type", false) | |
| 860 | 830 | return xPatternTypeGLibType() | |
| 861 | 831 | } | |
| 862 | 832 | ||
| @@ -879,7 +849,6 @@ type Extend int | |||
| 879 | 849 | var xExtendGLibType func() types.GType | |
| 880 | 850 | ||
| 881 | 851 | func ExtendGLibType() types.GType { | |
| 882 | - | core.LazyRegister(&xExtendGLibType, "CAIRO", "cairo_gobject_extend_get_type", false) | |
| 883 | 852 | return xExtendGLibType() | |
| 884 | 853 | } | |
| 885 | 854 | ||
| @@ -898,7 +867,6 @@ type Filter int | |||
| 898 | 867 | var xFilterGLibType func() types.GType | |
| 899 | 868 | ||
| 900 | 869 | func FilterGLibType() types.GType { | |
| 901 | - | core.LazyRegister(&xFilterGLibType, "CAIRO", "cairo_gobject_filter_get_type", false) | |
| 902 | 870 | return xFilterGLibType() | |
| 903 | 871 | } | |
| 904 | 872 | ||
| @@ -921,7 +889,6 @@ type RegionOverlap int | |||
| 921 | 889 | var xRegionOverlapGLibType func() types.GType | |
| 922 | 890 | ||
| 923 | 891 | func RegionOverlapGLibType() types.GType { | |
| 924 | - | core.LazyRegister(&xRegionOverlapGLibType, "CAIRO", "cairo_gobject_region_overlap_get_type", false) | |
| 925 | 892 | return xRegionOverlapGLibType() | |
| 926 | 893 | } | |
| 927 | 894 | ||
| @@ -936,12 +903,88 @@ const ( | |||
| 936 | 903 | var xImageSurfaceCreate func() | |
| 937 | 904 | ||
| 938 | 905 | func ImageSurfaceCreate() { | |
| 939 | - | core.LazyRegister(&xImageSurfaceCreate, "CAIRO", "cairo_image_surface_create", false) | |
| 940 | - | ||
| 941 | 906 | xImageSurfaceCreate() | |
| 942 | 907 | } | |
| 943 | 908 | ||
| 944 | 909 | func init() { | |
| 945 | 910 | core.SetPackageName("CAIRO", "cairo-gobject") | |
| 946 | 911 | core.SetSharedLibraries("CAIRO", []string{"libcairo-gobject.so.2", "libcairo-gobject.2.dylib"}) | |
| 912 | + | var libs []uintptr | |
| 913 | + | for _, libPath := range core.GetPaths("CAIRO") { | |
| 914 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 915 | + | if err != nil { | |
| 916 | + | panic(err) | |
| 917 | + | } | |
| 918 | + | libs = append(libs, lib) | |
| 919 | + | } | |
| 920 | + | ||
| 921 | + | core.PuregoSafeRegister(&xStatusGLibType, libs, "cairo_gobject_status_get_type") | |
| 922 | + | ||
| 923 | + | core.PuregoSafeRegister(&xContentGLibType, libs, "cairo_gobject_content_get_type") | |
| 924 | + | ||
| 925 | + | core.PuregoSafeRegister(&xOperatorGLibType, libs, "cairo_gobject_operator_get_type") | |
| 926 | + | ||
| 927 | + | core.PuregoSafeRegister(&xAntialiasGLibType, libs, "cairo_gobject_antialias_get_type") | |
| 928 | + | ||
| 929 | + | core.PuregoSafeRegister(&xFillRuleGLibType, libs, "cairo_gobject_fill_rule_get_type") | |
| 930 | + | ||
| 931 | + | core.PuregoSafeRegister(&xLineCapGLibType, libs, "cairo_gobject_line_cap_get_type") | |
| 932 | + | ||
| 933 | + | core.PuregoSafeRegister(&xLineJoinGLibType, libs, "cairo_gobject_line_join_get_type") | |
| 934 | + | ||
| 935 | + | core.PuregoSafeRegister(&xTextClusterFlagsGLibType, libs, "cairo_gobject_text_cluster_flags_get_type") | |
| 936 | + | ||
| 937 | + | core.PuregoSafeRegister(&xFontSlantGLibType, libs, "cairo_gobject_font_slant_get_type") | |
| 938 | + | ||
| 939 | + | core.PuregoSafeRegister(&xFontWeightGLibType, libs, "cairo_gobject_font_weight_get_type") | |
| 940 | + | ||
| 941 | + | core.PuregoSafeRegister(&xSubpixelOrderGLibType, libs, "cairo_gobject_subpixel_order_get_type") | |
| 942 | + | ||
| 943 | + | core.PuregoSafeRegister(&xHintStyleGLibType, libs, "cairo_gobject_hint_style_get_type") | |
| 944 | + | ||
| 945 | + | core.PuregoSafeRegister(&xHintMetricsGLibType, libs, "cairo_gobject_hint_metrics_get_type") | |
| 946 | + | ||
| 947 | + | core.PuregoSafeRegister(&xFontTypeGLibType, libs, "cairo_gobject_font_type_get_type") | |
| 948 | + | ||
| 949 | + | core.PuregoSafeRegister(&xPathDataTypeGLibType, libs, "cairo_gobject_path_data_type_get_type") | |
| 950 | + | ||
| 951 | + | core.PuregoSafeRegister(&xDeviceTypeGLibType, libs, "cairo_gobject_device_type_get_type") | |
| 952 | + | ||
| 953 | + | core.PuregoSafeRegister(&xSurfaceTypeGLibType, libs, "cairo_gobject_surface_type_get_type") | |
| 954 | + | ||
| 955 | + | core.PuregoSafeRegister(&xFormatGLibType, libs, "cairo_gobject_format_get_type") | |
| 956 | + | ||
| 957 | + | core.PuregoSafeRegister(&xPatternTypeGLibType, libs, "cairo_gobject_pattern_type_get_type") | |
| 958 | + | ||
| 959 | + | core.PuregoSafeRegister(&xExtendGLibType, libs, "cairo_gobject_extend_get_type") | |
| 960 | + | ||
| 961 | + | core.PuregoSafeRegister(&xFilterGLibType, libs, "cairo_gobject_filter_get_type") | |
| 962 | + | ||
| 963 | + | core.PuregoSafeRegister(&xRegionOverlapGLibType, libs, "cairo_gobject_region_overlap_get_type") | |
| 964 | + | ||
| 965 | + | core.PuregoSafeRegister(&xImageSurfaceCreate, libs, "cairo_image_surface_create") | |
| 966 | + | ||
| 967 | + | core.PuregoSafeRegister(&xContextGLibType, libs, "cairo_gobject_context_get_type") | |
| 968 | + | ||
| 969 | + | core.PuregoSafeRegister(&xDeviceGLibType, libs, "cairo_gobject_device_get_type") | |
| 970 | + | ||
| 971 | + | core.PuregoSafeRegister(&xSurfaceGLibType, libs, "cairo_gobject_surface_get_type") | |
| 972 | + | ||
| 973 | + | core.PuregoSafeRegister(&xPatternGLibType, libs, "cairo_gobject_pattern_get_type") | |
| 974 | + | ||
| 975 | + | core.PuregoSafeRegister(&xRegionGLibType, libs, "cairo_gobject_region_get_type") | |
| 976 | + | ||
| 977 | + | core.PuregoSafeRegister(&xFontOptionsGLibType, libs, "cairo_gobject_font_options_get_type") | |
| 978 | + | ||
| 979 | + | core.PuregoSafeRegister(&xFontFaceGLibType, libs, "cairo_gobject_font_face_get_type") | |
| 980 | + | ||
| 981 | + | core.PuregoSafeRegister(&xScaledFontGLibType, libs, "cairo_gobject_scaled_font_get_type") | |
| 982 | + | ||
| 983 | + | core.PuregoSafeRegister(&xRectangleGLibType, libs, "cairo_gobject_rectangle_get_type") | |
| 984 | + | ||
| 985 | + | core.PuregoSafeRegister(&xRectangleIntGLibType, libs, "cairo_gobject_rectangle_int_get_type") | |
| 986 | + | ||
| 987 | + | core.PuregoSafeRegister(&xGlyphGLibType, libs, "cairo_gobject_glyph_get_type") | |
| 988 | + | ||
| 989 | + | core.PuregoSafeRegister(&xTextClusterGLibType, libs, "cairo_gobject_text_cluster_get_type") | |
| 947 | 990 | } | |
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | + | "github.com/bnema/purego" | |||
| 8 | "github.com/bnema/puregotk/pkg/core" | 9 | "github.com/bnema/puregotk/pkg/core" | ||
| 9 | "github.com/bnema/puregotk/v4/gobject/types" | 10 | "github.com/bnema/puregotk/v4/gobject/types" | ||
| 10 | ) | 11 | ) | ||
| @@ -16,7 +17,6 @@ type Context struct { | |||||
| 16 | var xContextGLibType func() types.GType | 17 | var xContextGLibType func() types.GType | ||
| 17 | 18 | ||||
| 18 | func ContextGLibType() types.GType { | 19 | func ContextGLibType() types.GType { | ||
| 19 | - | core.LazyRegister(&xContextGLibType, "CAIRO", "cairo_gobject_context_get_type", false) | |||
| 20 | return xContextGLibType() | 20 | return xContextGLibType() | ||
| 21 | } | 21 | } | ||
| 22 | 22 | ||||
| @@ -39,7 +39,6 @@ type Device struct { | |||||
| 39 | var xDeviceGLibType func() types.GType | 39 | var xDeviceGLibType func() types.GType | ||
| 40 | 40 | ||||
| 41 | func DeviceGLibType() types.GType { | 41 | func DeviceGLibType() types.GType { | ||
| 42 | - | core.LazyRegister(&xDeviceGLibType, "CAIRO", "cairo_gobject_device_get_type", false) | |||
| 43 | return xDeviceGLibType() | 42 | return xDeviceGLibType() | ||
| 44 | } | 43 | } | ||
| 45 | 44 | ||||
| @@ -62,7 +61,6 @@ type Surface struct { | |||||
| 62 | var xSurfaceGLibType func() types.GType | 61 | var xSurfaceGLibType func() types.GType | ||
| 63 | 62 | ||||
| 64 | func SurfaceGLibType() types.GType { | 63 | func SurfaceGLibType() types.GType { | ||
| 65 | - | core.LazyRegister(&xSurfaceGLibType, "CAIRO", "cairo_gobject_surface_get_type", false) | |||
| 66 | return xSurfaceGLibType() | 64 | return xSurfaceGLibType() | ||
| 67 | } | 65 | } | ||
| 68 | 66 | ||||
| @@ -101,7 +99,6 @@ type Pattern struct { | |||||
| 101 | var xPatternGLibType func() types.GType | 99 | var xPatternGLibType func() types.GType | ||
| 102 | 100 | ||||
| 103 | func PatternGLibType() types.GType { | 101 | func PatternGLibType() types.GType { | ||
| 104 | - | core.LazyRegister(&xPatternGLibType, "CAIRO", "cairo_gobject_pattern_get_type", false) | |||
| 105 | return xPatternGLibType() | 102 | return xPatternGLibType() | ||
| 106 | } | 103 | } | ||
| 107 | 104 | ||||
| @@ -124,7 +121,6 @@ type Region struct { | |||||
| 124 | var xRegionGLibType func() types.GType | 121 | var xRegionGLibType func() types.GType | ||
| 125 | 122 | ||||
| 126 | func RegionGLibType() types.GType { | 123 | func RegionGLibType() types.GType { | ||
| 127 | - | core.LazyRegister(&xRegionGLibType, "CAIRO", "cairo_gobject_region_get_type", false) | |||
| 128 | return xRegionGLibType() | 124 | return xRegionGLibType() | ||
| 129 | } | 125 | } | ||
| 130 | 126 | ||||
| @@ -147,7 +143,6 @@ type FontOptions struct { | |||||
| 147 | var xFontOptionsGLibType func() types.GType | 143 | var xFontOptionsGLibType func() types.GType | ||
| 148 | 144 | ||||
| 149 | func FontOptionsGLibType() types.GType { | 145 | func FontOptionsGLibType() types.GType { | ||
| 150 | - | core.LazyRegister(&xFontOptionsGLibType, "CAIRO", "cairo_gobject_font_options_get_type", false) | |||
| 151 | return xFontOptionsGLibType() | 146 | return xFontOptionsGLibType() | ||
| 152 | } | 147 | } | ||
| 153 | 148 | ||||
| @@ -170,7 +165,6 @@ type FontFace struct { | |||||
| 170 | var xFontFaceGLibType func() types.GType | 165 | var xFontFaceGLibType func() types.GType | ||
| 171 | 166 | ||||
| 172 | func FontFaceGLibType() types.GType { | 167 | func FontFaceGLibType() types.GType { | ||
| 173 | - | core.LazyRegister(&xFontFaceGLibType, "CAIRO", "cairo_gobject_font_face_get_type", false) | |||
| 174 | return xFontFaceGLibType() | 168 | return xFontFaceGLibType() | ||
| 175 | } | 169 | } | ||
| 176 | 170 | ||||
| @@ -193,7 +187,6 @@ type ScaledFont struct { | |||||
| 193 | var xScaledFontGLibType func() types.GType | 187 | var xScaledFontGLibType func() types.GType | ||
| 194 | 188 | ||||
| 195 | func ScaledFontGLibType() types.GType { | 189 | func ScaledFontGLibType() types.GType { | ||
| 196 | - | core.LazyRegister(&xScaledFontGLibType, "CAIRO", "cairo_gobject_scaled_font_get_type", false) | |||
| 197 | return xScaledFontGLibType() | 190 | return xScaledFontGLibType() | ||
| 198 | } | 191 | } | ||
| 199 | 192 | ||||
| @@ -240,7 +233,6 @@ type Rectangle struct { | |||||
| 240 | var xRectangleGLibType func() types.GType | 233 | var xRectangleGLibType func() types.GType | ||
| 241 | 234 | ||||
| 242 | func RectangleGLibType() types.GType { | 235 | func RectangleGLibType() types.GType { | ||
| 243 | - | core.LazyRegister(&xRectangleGLibType, "CAIRO", "cairo_gobject_rectangle_get_type", false) | |||
| 244 | return xRectangleGLibType() | 236 | return xRectangleGLibType() | ||
| 245 | } | 237 | } | ||
| 246 | 238 | ||||
| @@ -271,7 +263,6 @@ type RectangleInt struct { | |||||
| 271 | var xRectangleIntGLibType func() types.GType | 263 | var xRectangleIntGLibType func() types.GType | ||
| 272 | 264 | ||||
| 273 | func RectangleIntGLibType() types.GType { | 265 | func RectangleIntGLibType() types.GType { | ||
| 274 | - | core.LazyRegister(&xRectangleIntGLibType, "CAIRO", "cairo_gobject_rectangle_int_get_type", false) | |||
| 275 | return xRectangleIntGLibType() | 266 | return xRectangleIntGLibType() | ||
| 276 | } | 267 | } | ||
| 277 | 268 | ||||
| @@ -300,7 +291,6 @@ type Glyph struct { | |||||
| 300 | var xGlyphGLibType func() types.GType | 291 | var xGlyphGLibType func() types.GType | ||
| 301 | 292 | ||||
| 302 | func GlyphGLibType() types.GType { | 293 | func GlyphGLibType() types.GType { | ||
| 303 | - | core.LazyRegister(&xGlyphGLibType, "CAIRO", "cairo_gobject_glyph_get_type", false) | |||
| 304 | return xGlyphGLibType() | 294 | return xGlyphGLibType() | ||
| 305 | } | 295 | } | ||
| 306 | 296 | ||||
| @@ -327,7 +317,6 @@ type TextCluster struct { | |||||
| 327 | var xTextClusterGLibType func() types.GType | 317 | var xTextClusterGLibType func() types.GType | ||
| 328 | 318 | ||||
| 329 | func TextClusterGLibType() types.GType { | 319 | func TextClusterGLibType() types.GType { | ||
| 330 | - | core.LazyRegister(&xTextClusterGLibType, "CAIRO", "cairo_gobject_text_cluster_get_type", false) | |||
| 331 | return xTextClusterGLibType() | 320 | return xTextClusterGLibType() | ||
| 332 | } | 321 | } | ||
| 333 | 322 | ||||
| @@ -348,7 +337,6 @@ type Status int | |||||
| 348 | var xStatusGLibType func() types.GType | 337 | var xStatusGLibType func() types.GType | ||
| 349 | 338 | ||||
| 350 | func StatusGLibType() types.GType { | 339 | func StatusGLibType() types.GType { | ||
| 351 | - | core.LazyRegister(&xStatusGLibType, "CAIRO", "cairo_gobject_status_get_type", false) | |||
| 352 | return xStatusGLibType() | 340 | return xStatusGLibType() | ||
| 353 | } | 341 | } | ||
| 354 | 342 | ||||
| @@ -437,7 +425,6 @@ type Content int | |||||
| 437 | var xContentGLibType func() types.GType | 425 | var xContentGLibType func() types.GType | ||
| 438 | 426 | ||||
| 439 | func ContentGLibType() types.GType { | 427 | func ContentGLibType() types.GType { | ||
| 440 | - | core.LazyRegister(&xContentGLibType, "CAIRO", "cairo_gobject_content_get_type", false) | |||
| 441 | return xContentGLibType() | 428 | return xContentGLibType() | ||
| 442 | } | 429 | } | ||
| 443 | 430 | ||||
| @@ -454,7 +441,6 @@ type Operator int | |||||
| 454 | var xOperatorGLibType func() types.GType | 441 | var xOperatorGLibType func() types.GType | ||
| 455 | 442 | ||||
| 456 | func OperatorGLibType() types.GType { | 443 | func OperatorGLibType() types.GType { | ||
| 457 | - | core.LazyRegister(&xOperatorGLibType, "CAIRO", "cairo_gobject_operator_get_type", false) | |||
| 458 | return xOperatorGLibType() | 444 | return xOperatorGLibType() | ||
| 459 | } | 445 | } | ||
| 460 | 446 | ||||
| @@ -523,7 +509,6 @@ type Antialias int | |||||
| 523 | var xAntialiasGLibType func() types.GType | 509 | var xAntialiasGLibType func() types.GType | ||
| 524 | 510 | ||||
| 525 | func AntialiasGLibType() types.GType { | 511 | func AntialiasGLibType() types.GType { | ||
| 526 | - | core.LazyRegister(&xAntialiasGLibType, "CAIRO", "cairo_gobject_antialias_get_type", false) | |||
| 527 | return xAntialiasGLibType() | 512 | return xAntialiasGLibType() | ||
| 528 | } | 513 | } | ||
| 529 | 514 | ||||
| @@ -548,7 +533,6 @@ type FillRule int | |||||
| 548 | var xFillRuleGLibType func() types.GType | 533 | var xFillRuleGLibType func() types.GType | ||
| 549 | 534 | ||||
| 550 | func FillRuleGLibType() types.GType { | 535 | func FillRuleGLibType() types.GType { | ||
| 551 | - | core.LazyRegister(&xFillRuleGLibType, "CAIRO", "cairo_gobject_fill_rule_get_type", false) | |||
| 552 | return xFillRuleGLibType() | 536 | return xFillRuleGLibType() | ||
| 553 | } | 537 | } | ||
| 554 | 538 | ||||
| @@ -563,7 +547,6 @@ type LineCap int | |||||
| 563 | var xLineCapGLibType func() types.GType | 547 | var xLineCapGLibType func() types.GType | ||
| 564 | 548 | ||||
| 565 | func LineCapGLibType() types.GType { | 549 | func LineCapGLibType() types.GType { | ||
| 566 | - | core.LazyRegister(&xLineCapGLibType, "CAIRO", "cairo_gobject_line_cap_get_type", false) | |||
| 567 | return xLineCapGLibType() | 550 | return xLineCapGLibType() | ||
| 568 | } | 551 | } | ||
| 569 | 552 | ||||
| @@ -580,7 +563,6 @@ type LineJoin int | |||||
| 580 | var xLineJoinGLibType func() types.GType | 563 | var xLineJoinGLibType func() types.GType | ||
| 581 | 564 | ||||
| 582 | func LineJoinGLibType() types.GType { | 565 | func LineJoinGLibType() types.GType { | ||
| 583 | - | core.LazyRegister(&xLineJoinGLibType, "CAIRO", "cairo_gobject_line_join_get_type", false) | |||
| 584 | return xLineJoinGLibType() | 566 | return xLineJoinGLibType() | ||
| 585 | } | 567 | } | ||
| 586 | 568 | ||||
| @@ -597,7 +579,6 @@ type TextClusterFlags int | |||||
| 597 | var xTextClusterFlagsGLibType func() types.GType | 579 | var xTextClusterFlagsGLibType func() types.GType | ||
| 598 | 580 | ||||
| 599 | func TextClusterFlagsGLibType() types.GType { | 581 | func TextClusterFlagsGLibType() types.GType { | ||
| 600 | - | core.LazyRegister(&xTextClusterFlagsGLibType, "CAIRO", "cairo_gobject_text_cluster_flags_get_type", false) | |||
| 601 | return xTextClusterFlagsGLibType() | 582 | return xTextClusterFlagsGLibType() | ||
| 602 | } | 583 | } | ||
| 603 | 584 | ||||
| @@ -610,7 +591,6 @@ type FontSlant int | |||||
| 610 | var xFontSlantGLibType func() types.GType | 591 | var xFontSlantGLibType func() types.GType | ||
| 611 | 592 | ||||
| 612 | func FontSlantGLibType() types.GType { | 593 | func FontSlantGLibType() types.GType { | ||
| 613 | - | core.LazyRegister(&xFontSlantGLibType, "CAIRO", "cairo_gobject_font_slant_get_type", false) | |||
| 614 | return xFontSlantGLibType() | 594 | return xFontSlantGLibType() | ||
| 615 | } | 595 | } | ||
| 616 | 596 | ||||
| @@ -627,7 +607,6 @@ type FontWeight int | |||||
| 627 | var xFontWeightGLibType func() types.GType | 607 | var xFontWeightGLibType func() types.GType | ||
| 628 | 608 | ||||
| 629 | func FontWeightGLibType() types.GType { | 609 | func FontWeightGLibType() types.GType { | ||
| 630 | - | core.LazyRegister(&xFontWeightGLibType, "CAIRO", "cairo_gobject_font_weight_get_type", false) | |||
| 631 | return xFontWeightGLibType() | 610 | return xFontWeightGLibType() | ||
| 632 | } | 611 | } | ||
| 633 | 612 | ||||
| @@ -642,7 +621,6 @@ type SubpixelOrder int | |||||
| 642 | var xSubpixelOrderGLibType func() types.GType | 621 | var xSubpixelOrderGLibType func() types.GType | ||
| 643 | 622 | ||||
| 644 | func SubpixelOrderGLibType() types.GType { | 623 | func SubpixelOrderGLibType() types.GType { | ||
| 645 | - | core.LazyRegister(&xSubpixelOrderGLibType, "CAIRO", "cairo_gobject_subpixel_order_get_type", false) | |||
| 646 | return xSubpixelOrderGLibType() | 624 | return xSubpixelOrderGLibType() | ||
| 647 | } | 625 | } | ||
| 648 | 626 | ||||
| @@ -663,7 +641,6 @@ type HintStyle int | |||||
| 663 | var xHintStyleGLibType func() types.GType | 641 | var xHintStyleGLibType func() types.GType | ||
| 664 | 642 | ||||
| 665 | func HintStyleGLibType() types.GType { | 643 | func HintStyleGLibType() types.GType { | ||
| 666 | - | core.LazyRegister(&xHintStyleGLibType, "CAIRO", "cairo_gobject_hint_style_get_type", false) | |||
| 667 | return xHintStyleGLibType() | 644 | return xHintStyleGLibType() | ||
| 668 | } | 645 | } | ||
| 669 | 646 | ||||
| @@ -684,7 +661,6 @@ type HintMetrics int | |||||
| 684 | var xHintMetricsGLibType func() types.GType | 661 | var xHintMetricsGLibType func() types.GType | ||
| 685 | 662 | ||||
| 686 | func HintMetricsGLibType() types.GType { | 663 | func HintMetricsGLibType() types.GType { | ||
| 687 | - | core.LazyRegister(&xHintMetricsGLibType, "CAIRO", "cairo_gobject_hint_metrics_get_type", false) | |||
| 688 | return xHintMetricsGLibType() | 664 | return xHintMetricsGLibType() | ||
| 689 | } | 665 | } | ||
| 690 | 666 | ||||
| @@ -701,7 +677,6 @@ type FontType int | |||||
| 701 | var xFontTypeGLibType func() types.GType | 677 | var xFontTypeGLibType func() types.GType | ||
| 702 | 678 | ||||
| 703 | func FontTypeGLibType() types.GType { | 679 | func FontTypeGLibType() types.GType { | ||
| 704 | - | core.LazyRegister(&xFontTypeGLibType, "CAIRO", "cairo_gobject_font_type_get_type", false) | |||
| 705 | return xFontTypeGLibType() | 680 | return xFontTypeGLibType() | ||
| 706 | } | 681 | } | ||
| 707 | 682 | ||||
| @@ -722,7 +697,6 @@ type PathDataType int | |||||
| 722 | var xPathDataTypeGLibType func() types.GType | 697 | var xPathDataTypeGLibType func() types.GType | ||
| 723 | 698 | ||||
| 724 | func PathDataTypeGLibType() types.GType { | 699 | func PathDataTypeGLibType() types.GType { | ||
| 725 | - | core.LazyRegister(&xPathDataTypeGLibType, "CAIRO", "cairo_gobject_path_data_type_get_type", false) | |||
| 726 | return xPathDataTypeGLibType() | 700 | return xPathDataTypeGLibType() | ||
| 727 | } | 701 | } | ||
| 728 | 702 | ||||
| @@ -741,7 +715,6 @@ type DeviceType int | |||||
| 741 | var xDeviceTypeGLibType func() types.GType | 715 | var xDeviceTypeGLibType func() types.GType | ||
| 742 | 716 | ||||
| 743 | func DeviceTypeGLibType() types.GType { | 717 | func DeviceTypeGLibType() types.GType { | ||
| 744 | - | core.LazyRegister(&xDeviceTypeGLibType, "CAIRO", "cairo_gobject_device_type_get_type", false) | |||
| 745 | return xDeviceTypeGLibType() | 718 | return xDeviceTypeGLibType() | ||
| 746 | } | 719 | } | ||
| 747 | 720 | ||||
| @@ -770,7 +743,6 @@ type SurfaceType int | |||||
| 770 | var xSurfaceTypeGLibType func() types.GType | 743 | var xSurfaceTypeGLibType func() types.GType | ||
| 771 | 744 | ||||
| 772 | func SurfaceTypeGLibType() types.GType { | 745 | func SurfaceTypeGLibType() types.GType { | ||
| 773 | - | core.LazyRegister(&xSurfaceTypeGLibType, "CAIRO", "cairo_gobject_surface_type_get_type", false) | |||
| 774 | return xSurfaceTypeGLibType() | 746 | return xSurfaceTypeGLibType() | ||
| 775 | } | 747 | } | ||
| 776 | 748 | ||||
| @@ -831,7 +803,6 @@ type Format int | |||||
| 831 | var xFormatGLibType func() types.GType | 803 | var xFormatGLibType func() types.GType | ||
| 832 | 804 | ||||
| 833 | func FormatGLibType() types.GType { | 805 | func FormatGLibType() types.GType { | ||
| 834 | - | core.LazyRegister(&xFormatGLibType, "CAIRO", "cairo_gobject_format_get_type", false) | |||
| 835 | return xFormatGLibType() | 806 | return xFormatGLibType() | ||
| 836 | } | 807 | } | ||
| 837 | 808 | ||||
| @@ -856,7 +827,6 @@ type PatternType int | |||||
| 856 | var xPatternTypeGLibType func() types.GType | 827 | var xPatternTypeGLibType func() types.GType | ||
| 857 | 828 | ||||
| 858 | func PatternTypeGLibType() types.GType { | 829 | func PatternTypeGLibType() types.GType { | ||
| 859 | - | core.LazyRegister(&xPatternTypeGLibType, "CAIRO", "cairo_gobject_pattern_type_get_type", false) | |||
| 860 | return xPatternTypeGLibType() | 830 | return xPatternTypeGLibType() | ||
| 861 | } | 831 | } | ||
| 862 | 832 | ||||
| @@ -879,7 +849,6 @@ type Extend int | |||||
| 879 | var xExtendGLibType func() types.GType | 849 | var xExtendGLibType func() types.GType | ||
| 880 | 850 | ||||
| 881 | func ExtendGLibType() types.GType { | 851 | func ExtendGLibType() types.GType { | ||
| 882 | - | core.LazyRegister(&xExtendGLibType, "CAIRO", "cairo_gobject_extend_get_type", false) | |||
| 883 | return xExtendGLibType() | 852 | return xExtendGLibType() | ||
| 884 | } | 853 | } | ||
| 885 | 854 | ||||
| @@ -898,7 +867,6 @@ type Filter int | |||||
| 898 | var xFilterGLibType func() types.GType | 867 | var xFilterGLibType func() types.GType | ||
| 899 | 868 | ||||
| 900 | func FilterGLibType() types.GType { | 869 | func FilterGLibType() types.GType { | ||
| 901 | - | core.LazyRegister(&xFilterGLibType, "CAIRO", "cairo_gobject_filter_get_type", false) | |||
| 902 | return xFilterGLibType() | 870 | return xFilterGLibType() | ||
| 903 | } | 871 | } | ||
| 904 | 872 | ||||
| @@ -921,7 +889,6 @@ type RegionOverlap int | |||||
| 921 | var xRegionOverlapGLibType func() types.GType | 889 | var xRegionOverlapGLibType func() types.GType | ||
| 922 | 890 | ||||
| 923 | func RegionOverlapGLibType() types.GType { | 891 | func RegionOverlapGLibType() types.GType { | ||
| 924 | - | core.LazyRegister(&xRegionOverlapGLibType, "CAIRO", "cairo_gobject_region_overlap_get_type", false) | |||
| 925 | return xRegionOverlapGLibType() | 892 | return xRegionOverlapGLibType() | ||
| 926 | } | 893 | } | ||
| 927 | 894 | ||||
| @@ -936,12 +903,88 @@ const ( | |||||
| 936 | var xImageSurfaceCreate func() | 903 | var xImageSurfaceCreate func() | ||
| 937 | 904 | ||||
| 938 | func ImageSurfaceCreate() { | 905 | func ImageSurfaceCreate() { | ||
| 939 | - | core.LazyRegister(&xImageSurfaceCreate, "CAIRO", "cairo_image_surface_create", false) | |||
| 940 | - | ||||
| 941 | xImageSurfaceCreate() | 906 | xImageSurfaceCreate() | ||
| 942 | } | 907 | } | ||
| 943 | 908 | ||||
| 944 | func init() { | 909 | func init() { | ||
| 945 | core.SetPackageName("CAIRO", "cairo-gobject") | 910 | core.SetPackageName("CAIRO", "cairo-gobject") | ||
| 946 | core.SetSharedLibraries("CAIRO", []string{"libcairo-gobject.so.2", "libcairo-gobject.2.dylib"}) | 911 | core.SetSharedLibraries("CAIRO", []string{"libcairo-gobject.so.2", "libcairo-gobject.2.dylib"}) | ||
| 912 | + | var libs []uintptr | |||
| 913 | + | for _, libPath := range core.GetPaths("CAIRO") { | |||
| 914 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 915 | + | if err != nil { | |||
| 916 | + | panic(err) | |||
| 917 | + | } | |||
| 918 | + | libs = append(libs, lib) | |||
| 919 | + | } | |||
| 920 | + | ||||
| 921 | + | core.PuregoSafeRegister(&xStatusGLibType, libs, "cairo_gobject_status_get_type") | |||
| 922 | + | ||||
| 923 | + | core.PuregoSafeRegister(&xContentGLibType, libs, "cairo_gobject_content_get_type") | |||
| 924 | + | ||||
| 925 | + | core.PuregoSafeRegister(&xOperatorGLibType, libs, "cairo_gobject_operator_get_type") | |||
| 926 | + | ||||
| 927 | + | core.PuregoSafeRegister(&xAntialiasGLibType, libs, "cairo_gobject_antialias_get_type") | |||
| 928 | + | ||||
| 929 | + | core.PuregoSafeRegister(&xFillRuleGLibType, libs, "cairo_gobject_fill_rule_get_type") | |||
| 930 | + | ||||
| 931 | + | core.PuregoSafeRegister(&xLineCapGLibType, libs, "cairo_gobject_line_cap_get_type") | |||
| 932 | + | ||||
| 933 | + | core.PuregoSafeRegister(&xLineJoinGLibType, libs, "cairo_gobject_line_join_get_type") | |||
| 934 | + | ||||
| 935 | + | core.PuregoSafeRegister(&xTextClusterFlagsGLibType, libs, "cairo_gobject_text_cluster_flags_get_type") | |||
| 936 | + | ||||
| 937 | + | core.PuregoSafeRegister(&xFontSlantGLibType, libs, "cairo_gobject_font_slant_get_type") | |||
| 938 | + | ||||
| 939 | + | core.PuregoSafeRegister(&xFontWeightGLibType, libs, "cairo_gobject_font_weight_get_type") | |||
| 940 | + | ||||
| 941 | + | core.PuregoSafeRegister(&xSubpixelOrderGLibType, libs, "cairo_gobject_subpixel_order_get_type") | |||
| 942 | + | ||||
| 943 | + | core.PuregoSafeRegister(&xHintStyleGLibType, libs, "cairo_gobject_hint_style_get_type") | |||
| 944 | + | ||||
| 945 | + | core.PuregoSafeRegister(&xHintMetricsGLibType, libs, "cairo_gobject_hint_metrics_get_type") | |||
| 946 | + | ||||
| 947 | + | core.PuregoSafeRegister(&xFontTypeGLibType, libs, "cairo_gobject_font_type_get_type") | |||
| 948 | + | ||||
| 949 | + | core.PuregoSafeRegister(&xPathDataTypeGLibType, libs, "cairo_gobject_path_data_type_get_type") | |||
| 950 | + | ||||
| 951 | + | core.PuregoSafeRegister(&xDeviceTypeGLibType, libs, "cairo_gobject_device_type_get_type") | |||
| 952 | + | ||||
| 953 | + | core.PuregoSafeRegister(&xSurfaceTypeGLibType, libs, "cairo_gobject_surface_type_get_type") | |||
| 954 | + | ||||
| 955 | + | core.PuregoSafeRegister(&xFormatGLibType, libs, "cairo_gobject_format_get_type") | |||
| 956 | + | ||||
| 957 | + | core.PuregoSafeRegister(&xPatternTypeGLibType, libs, "cairo_gobject_pattern_type_get_type") | |||
| 958 | + | ||||
| 959 | + | core.PuregoSafeRegister(&xExtendGLibType, libs, "cairo_gobject_extend_get_type") | |||
| 960 | + | ||||
| 961 | + | core.PuregoSafeRegister(&xFilterGLibType, libs, "cairo_gobject_filter_get_type") | |||
| 962 | + | ||||
| 963 | + | core.PuregoSafeRegister(&xRegionOverlapGLibType, libs, "cairo_gobject_region_overlap_get_type") | |||
| 964 | + | ||||
| 965 | + | core.PuregoSafeRegister(&xImageSurfaceCreate, libs, "cairo_image_surface_create") | |||
| 966 | + | ||||
| 967 | + | core.PuregoSafeRegister(&xContextGLibType, libs, "cairo_gobject_context_get_type") | |||
| 968 | + | ||||
| 969 | + | core.PuregoSafeRegister(&xDeviceGLibType, libs, "cairo_gobject_device_get_type") | |||
| 970 | + | ||||
| 971 | + | core.PuregoSafeRegister(&xSurfaceGLibType, libs, "cairo_gobject_surface_get_type") | |||
| 972 | + | ||||
| 973 | + | core.PuregoSafeRegister(&xPatternGLibType, libs, "cairo_gobject_pattern_get_type") | |||
| 974 | + | ||||
| 975 | + | core.PuregoSafeRegister(&xRegionGLibType, libs, "cairo_gobject_region_get_type") | |||
| 976 | + | ||||
| 977 | + | core.PuregoSafeRegister(&xFontOptionsGLibType, libs, "cairo_gobject_font_options_get_type") | |||
| 978 | + | ||||
| 979 | + | core.PuregoSafeRegister(&xFontFaceGLibType, libs, "cairo_gobject_font_face_get_type") | |||
| 980 | + | ||||
| 981 | + | core.PuregoSafeRegister(&xScaledFontGLibType, libs, "cairo_gobject_scaled_font_get_type") | |||
| 982 | + | ||||
| 983 | + | core.PuregoSafeRegister(&xRectangleGLibType, libs, "cairo_gobject_rectangle_get_type") | |||
| 984 | + | ||||
| 985 | + | core.PuregoSafeRegister(&xRectangleIntGLibType, libs, "cairo_gobject_rectangle_int_get_type") | |||
| 986 | + | ||||
| 987 | + | core.PuregoSafeRegister(&xGlyphGLibType, libs, "cairo_gobject_glyph_get_type") | |||
| 988 | + | ||||
| 989 | + | core.PuregoSafeRegister(&xTextClusterGLibType, libs, "cairo_gobject_text_cluster_get_type") | |||
| 947 | } | 990 | } | ||