Merge pull request #344 from bnema/chore/upstream-foundations
chore(deps): integrate approved upstream foundations
921 files · +28709 -25527
M docs/first-presentation.md +5 -2
| @@ -46,5 +46,8 @@ labels. Set `DUMBER_MACHINE_GPU_PROFILE` to one of `generic-gpu`, | |||
| 46 | 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | |
| 47 | 47 | do not use a device model or other identifier. Publish only the seven reviewed | |
| 48 | 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | |
| 49 | - | must not be published. A missing or incomplete timeline, non-DMABUF backend, or | |
| 50 | - | invalid run fails collection. | |
| 49 | + | must not be published. `metadata.json` derives the selected | |
| 50 | + | `github.com/bnema/purego-cef2gtk` pseudo-version and its full immutable Git | |
| 51 | + | origin hash from Go module metadata; branch selectors or missing origin metadata | |
| 52 | + | fail collection. A missing or incomplete timeline, non-DMABUF backend, or invalid | |
| 53 | + | run also fails collection. | |
| @@ -46,5 +46,8 @@ labels. Set `DUMBER_MACHINE_GPU_PROFILE` to one of `generic-gpu`, | |||||
| 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | 46 | `integrated-gpu`, `discrete-gpu`, `hybrid-gpu`, `virtual-gpu`, or `unknown-gpu`; | ||
| 47 | do not use a device model or other identifier. Publish only the seven reviewed | 47 | do not use a device model or other identifier. Publish only the seven reviewed | ||
| 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | 48 | JSON files to an external Gist. Raw logs and temporary XDG homes are removed and | ||
| 49 | - | must not be published. A missing or incomplete timeline, non-DMABUF backend, or | 49 | + | must not be published. `metadata.json` derives the selected |
| 50 | - | invalid run fails collection. | 50 | + | `github.com/bnema/purego-cef2gtk` pseudo-version and its full immutable Git |
| 51 | + | origin hash from Go module metadata; branch selectors or missing origin metadata | |||
| 52 | + | fail collection. A missing or incomplete timeline, non-DMABUF backend, or invalid | |||
| 53 | + | run also fails collection. | |||
M go.mod +5 -5
| @@ -6,11 +6,11 @@ require ( | |||
| 6 | 6 | github.com/a-h/templ v0.3.1020 | |
| 7 | 7 | github.com/andybalholm/brotli v1.2.2 | |
| 8 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | |
| 9 | - | github.com/bnema/purego-cef v0.13.3 | |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.4 | |
| 11 | - | github.com/bnema/purego-pipewire v0.1.4 | |
| 12 | - | github.com/bnema/purego-sqlite v0.1.3 | |
| 13 | - | github.com/bnema/puregotk v0.7.0 | |
| 9 | + | github.com/bnema/purego-cef v0.13.4-0.20260714140305-f0b7414af67e | |
| 10 | + | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe | |
| 11 | + | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | + | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | 14 | github.com/charmbracelet/bubbles v1.0.0 | |
| 15 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 16 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -6,11 +6,11 @@ require ( | |||||
| 6 | github.com/a-h/templ v0.3.1020 | 6 | github.com/a-h/templ v0.3.1020 | ||
| 7 | github.com/andybalholm/brotli v1.2.2 | 7 | github.com/andybalholm/brotli v1.2.2 | ||
| 8 | github.com/bnema/purego v0.11.0-bnema.4 | 8 | github.com/bnema/purego v0.11.0-bnema.4 | ||
| 9 | - | github.com/bnema/purego-cef v0.13.3 | 9 | + | github.com/bnema/purego-cef v0.13.4-0.20260714140305-f0b7414af67e |
| 10 | - | github.com/bnema/purego-cef2gtk v0.8.4 | 10 | + | github.com/bnema/purego-cef2gtk v0.8.4-0.20260714160309-bbd397409ebe |
| 11 | - | github.com/bnema/purego-pipewire v0.1.4 | 11 | + | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a |
| 12 | - | github.com/bnema/purego-sqlite v0.1.3 | 12 | + | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c |
| 13 | - | github.com/bnema/puregotk v0.7.0 | 13 | + | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 |
| 14 | github.com/charmbracelet/bubbles v1.0.0 | 14 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 15 | github.com/charmbracelet/bubbletea v1.3.10 | 15 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 16 | github.com/charmbracelet/lipgloss v1.1.0 | 16 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +12 -0 generated file: collapsed
A internal/infrastructure/persistence/sqlite/history_repo_benchmark_test.go +71 -0
| @@ -0,0 +1,71 @@ | |||
| 1 | + | package sqlite_test | |
| 2 | + | ||
| 3 | + | import ( | |
| 4 | + | "fmt" | |
| 5 | + | "path/filepath" | |
| 6 | + | "testing" | |
| 7 | + | ||
| 8 | + | "github.com/bnema/dumber/internal/domain/entity" | |
| 9 | + | "github.com/bnema/dumber/internal/domain/repository" | |
| 10 | + | "github.com/bnema/dumber/internal/infrastructure/persistence/sqlite" | |
| 11 | + | ) | |
| 12 | + | ||
| 13 | + | // newHistoryBenchmarkRepository creates a representative local history corpus | |
| 14 | + | // outside the measured operation. Sidebar reads use GetRecent and omnibox | |
| 15 | + | // history suggestions use Search. | |
| 16 | + | func newHistoryBenchmarkRepository(b *testing.B) (repository.HistoryRepository, func()) { | |
| 17 | + | b.Helper() | |
| 18 | + | ||
| 19 | + | ctx := historyTestCtx() | |
| 20 | + | db, err := sqlite.NewConnection(ctx, filepath.Join(b.TempDir(), "dumber.db")) | |
| 21 | + | if err != nil { | |
| 22 | + | b.Fatal(err) | |
| 23 | + | } | |
| 24 | + | ||
| 25 | + | b.Cleanup(func() { | |
| 26 | + | if err := db.Close(); err != nil { | |
| 27 | + | b.Errorf("close benchmark database: %v", err) | |
| 28 | + | } | |
| 29 | + | }) | |
| 30 | + | ||
| 31 | + | repo := sqlite.NewHistoryRepository(db) | |
| 32 | + | for i := range 200 { | |
| 33 | + | entry := &entity.HistoryEntry{ | |
| 34 | + | URL: fmt.Sprintf("https://example%d.test/dumber/history/%d", i%20, i), | |
| 35 | + | Title: fmt.Sprintf("Dumber history entry %d", i), | |
| 36 | + | } | |
| 37 | + | if err := repo.Save(ctx, entry); err != nil { | |
| 38 | + | b.Fatal(err) | |
| 39 | + | } | |
| 40 | + | } | |
| 41 | + | ||
| 42 | + | return repo, func() {} | |
| 43 | + | } | |
| 44 | + | ||
| 45 | + | func BenchmarkHistorySQLiteSidebarRecent(b *testing.B) { | |
| 46 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |
| 47 | + | defer closeDB() | |
| 48 | + | ctx := historyTestCtx() | |
| 49 | + | ||
| 50 | + | b.ReportAllocs() | |
| 51 | + | b.ResetTimer() | |
| 52 | + | for range b.N { | |
| 53 | + | if _, err := repo.GetRecent(ctx, 50, 0); err != nil { | |
| 54 | + | b.Fatal(err) | |
| 55 | + | } | |
| 56 | + | } | |
| 57 | + | } | |
| 58 | + | ||
| 59 | + | func BenchmarkHistorySQLiteOmniboxSearch(b *testing.B) { | |
| 60 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |
| 61 | + | defer closeDB() | |
| 62 | + | ctx := historyTestCtx() | |
| 63 | + | ||
| 64 | + | b.ReportAllocs() | |
| 65 | + | b.ResetTimer() | |
| 66 | + | for range b.N { | |
| 67 | + | if _, err := repo.Search(ctx, "dumber history", 10); err != nil { | |
| 68 | + | b.Fatal(err) | |
| 69 | + | } | |
| 70 | + | } | |
| 71 | + | } | |
| @@ -0,0 +1,71 @@ | |||||
| 1 | + | package sqlite_test | |||
| 2 | + | ||||
| 3 | + | import ( | |||
| 4 | + | "fmt" | |||
| 5 | + | "path/filepath" | |||
| 6 | + | "testing" | |||
| 7 | + | ||||
| 8 | + | "github.com/bnema/dumber/internal/domain/entity" | |||
| 9 | + | "github.com/bnema/dumber/internal/domain/repository" | |||
| 10 | + | "github.com/bnema/dumber/internal/infrastructure/persistence/sqlite" | |||
| 11 | + | ) | |||
| 12 | + | ||||
| 13 | + | // newHistoryBenchmarkRepository creates a representative local history corpus | |||
| 14 | + | // outside the measured operation. Sidebar reads use GetRecent and omnibox | |||
| 15 | + | // history suggestions use Search. | |||
| 16 | + | func newHistoryBenchmarkRepository(b *testing.B) (repository.HistoryRepository, func()) { | |||
| 17 | + | b.Helper() | |||
| 18 | + | ||||
| 19 | + | ctx := historyTestCtx() | |||
| 20 | + | db, err := sqlite.NewConnection(ctx, filepath.Join(b.TempDir(), "dumber.db")) | |||
| 21 | + | if err != nil { | |||
| 22 | + | b.Fatal(err) | |||
| 23 | + | } | |||
| 24 | + | ||||
| 25 | + | b.Cleanup(func() { | |||
| 26 | + | if err := db.Close(); err != nil { | |||
| 27 | + | b.Errorf("close benchmark database: %v", err) | |||
| 28 | + | } | |||
| 29 | + | }) | |||
| 30 | + | ||||
| 31 | + | repo := sqlite.NewHistoryRepository(db) | |||
| 32 | + | for i := range 200 { | |||
| 33 | + | entry := &entity.HistoryEntry{ | |||
| 34 | + | URL: fmt.Sprintf("https://example%d.test/dumber/history/%d", i%20, i), | |||
| 35 | + | Title: fmt.Sprintf("Dumber history entry %d", i), | |||
| 36 | + | } | |||
| 37 | + | if err := repo.Save(ctx, entry); err != nil { | |||
| 38 | + | b.Fatal(err) | |||
| 39 | + | } | |||
| 40 | + | } | |||
| 41 | + | ||||
| 42 | + | return repo, func() {} | |||
| 43 | + | } | |||
| 44 | + | ||||
| 45 | + | func BenchmarkHistorySQLiteSidebarRecent(b *testing.B) { | |||
| 46 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |||
| 47 | + | defer closeDB() | |||
| 48 | + | ctx := historyTestCtx() | |||
| 49 | + | ||||
| 50 | + | b.ReportAllocs() | |||
| 51 | + | b.ResetTimer() | |||
| 52 | + | for range b.N { | |||
| 53 | + | if _, err := repo.GetRecent(ctx, 50, 0); err != nil { | |||
| 54 | + | b.Fatal(err) | |||
| 55 | + | } | |||
| 56 | + | } | |||
| 57 | + | } | |||
| 58 | + | ||||
| 59 | + | func BenchmarkHistorySQLiteOmniboxSearch(b *testing.B) { | |||
| 60 | + | repo, closeDB := newHistoryBenchmarkRepository(b) | |||
| 61 | + | defer closeDB() | |||
| 62 | + | ctx := historyTestCtx() | |||
| 63 | + | ||||
| 64 | + | b.ReportAllocs() | |||
| 65 | + | b.ResetTimer() | |||
| 66 | + | for range b.N { | |||
| 67 | + | if _, err := repo.Search(ctx, "dumber history", 10); err != nil { | |||
| 68 | + | b.Fatal(err) | |||
| 69 | + | } | |||
| 70 | + | } | |||
| 71 | + | } | |||
M internal/logging/first_presentation_collector_test.go +132 -1
| @@ -2,6 +2,7 @@ package logging | |||
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | 4 | "encoding/json" | |
| 5 | + | "fmt" | |
| 5 | 6 | "os" | |
| 6 | 7 | "os/exec" | |
| 7 | 8 | "path/filepath" | |
| @@ -143,8 +144,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 143 | 144 | } | |
| 144 | 145 | for _, required := range []string{ | |
| 145 | 146 | `"measured_source_revision"`, | |
| 147 | + | `"version": "v0.8.4-0.20260714160309-bbd397409ebe"`, | |
| 146 | 148 | `"tag": "v0.8.4"`, | |
| 147 | - | `"revision": "f217ece342dea3ef2a3f98671fcd16a39ad0037d"`, | |
| 149 | + | `"revision": "bbd397409ebed75a5979c1e4566a2ef319f6a484"`, | |
| 148 | 150 | } { | |
| 149 | 151 | require.Contains(t, artifacts.String(), required) | |
| 150 | 152 | } | |
| @@ -166,6 +168,135 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||
| 166 | 168 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | |
| 167 | 169 | } | |
| 168 | 170 | ||
| 171 | + | func TestFirstPresentationCollectorDerivesSelectedImmutableModuleProvenance(t *testing.T) { | |
| 172 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 173 | + | require.NoError(t, err) | |
| 174 | + | temp := t.TempDir() | |
| 175 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |
| 176 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |
| 177 | + | binary := filepath.Join(temp, "dumber") | |
| 178 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 179 | + | ||
| 180 | + | // This exact pseudo-version is deliberately newer than the former v0.8.4 | |
| 181 | + | // hardcode; the collector must report what the selected module says. | |
| 182 | + | const version = "v0.8.5-0.20300102030405-bbd397409ebe" | |
| 183 | + | const revision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |
| 184 | + | goBin := collectorProvenanceGo(t, temp, version, revision, "") | |
| 185 | + | output := filepath.Join(temp, "artifacts") | |
| 186 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 187 | + | cmd.Dir = repoRoot | |
| 188 | + | cmd.Env = append(os.Environ(), | |
| 189 | + | "DISPLAY=:test", | |
| 190 | + | "DUMBER_CEF_DIR="+runtime, | |
| 191 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |
| 192 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 193 | + | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |
| 194 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 195 | + | ) | |
| 196 | + | result, err := cmd.CombinedOutput() | |
| 197 | + | require.NoErrorf(t, err, "collector failed: %s", result) | |
| 198 | + | ||
| 199 | + | var metadata struct { | |
| 200 | + | Upstream struct { | |
| 201 | + | Module string `json:"module"` | |
| 202 | + | Version string `json:"version"` | |
| 203 | + | Tag string `json:"tag"` | |
| 204 | + | Revision string `json:"revision"` | |
| 205 | + | } `json:"upstream"` | |
| 206 | + | } | |
| 207 | + | contents, err := os.ReadFile(filepath.Join(output, "metadata.json")) | |
| 208 | + | require.NoError(t, err) | |
| 209 | + | require.NoError(t, json.Unmarshal(contents, &metadata)) | |
| 210 | + | require.Equal(t, "github.com/bnema/purego-cef2gtk", metadata.Upstream.Module) | |
| 211 | + | require.Equal(t, version, metadata.Upstream.Version) | |
| 212 | + | require.Equal(t, "v0.8.5", metadata.Upstream.Tag) | |
| 213 | + | require.Equal(t, revision, metadata.Upstream.Revision) | |
| 214 | + | ||
| 215 | + | script, err := os.ReadFile(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 216 | + | require.NoError(t, err) | |
| 217 | + | require.NotContains(t, string(script), "f217ece342dea3ef2a3f98671fcd16a39ad0037d") | |
| 218 | + | } | |
| 219 | + | ||
| 220 | + | func TestFirstPresentationCollectorRejectsNonImmutableModuleProvenanceWithoutLeaks(t *testing.T) { | |
| 221 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 222 | + | require.NoError(t, err) | |
| 223 | + | ||
| 224 | + | for _, test := range []struct { | |
| 225 | + | name, version, revision, ref string | |
| 226 | + | }{ | |
| 227 | + | {name: "branch selector", version: "main", ref: "main"}, | |
| 228 | + | {name: "missing origin", version: "v0.8.5-0.20300102030405-bbd397409ebe"}, | |
| 229 | + | {name: "named origin ref", version: "v0.8.5-0.20300102030405-bbd397409ebe", revision: "bbd397409ebed75a5979c1e4566a2ef319f6a484", ref: "main"}, | |
| 230 | + | } { | |
| 231 | + | t.Run(test.name, func(t *testing.T) { | |
| 232 | + | temp := t.TempDir() | |
| 233 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |
| 234 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |
| 235 | + | binary := filepath.Join(temp, "dumber") | |
| 236 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |
| 237 | + | ||
| 238 | + | goBin := collectorProvenanceGo(t, temp, test.version, test.revision, test.ref) | |
| 239 | + | output := filepath.Join(temp, "artifacts") | |
| 240 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |
| 241 | + | cmd.Dir = repoRoot | |
| 242 | + | cmd.Env = append(os.Environ(), | |
| 243 | + | "DISPLAY=:test", | |
| 244 | + | "DUMBER_CEF_DIR="+runtime, | |
| 245 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |
| 246 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |
| 247 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |
| 248 | + | ) | |
| 249 | + | result, runErr := cmd.CombinedOutput() | |
| 250 | + | require.Errorf(t, runErr, "collector accepted nonimmutable module provenance: %s", result) | |
| 251 | + | require.Contains(t, string(result), "immutable module provenance is unavailable") | |
| 252 | + | require.NotContains(t, string(result), temp) | |
| 253 | + | require.NoFileExists(t, filepath.Join(output, "metadata.json")) | |
| 254 | + | for _, name := range runArtifactNames() { | |
| 255 | + | require.NoFileExists(t, filepath.Join(output, name)) | |
| 256 | + | } | |
| 257 | + | }) | |
| 258 | + | } | |
| 259 | + | } | |
| 260 | + | ||
| 261 | + | func collectorProvenanceGo(t *testing.T, temp, version, revision, ref string) string { | |
| 262 | + | t.Helper() | |
| 263 | + | infoPath := filepath.Join(temp, "module.info") | |
| 264 | + | info := map[string]any{"Version": version} | |
| 265 | + | if revision != "" { | |
| 266 | + | info["Origin"] = map[string]string{ | |
| 267 | + | "VCS": "git", "URL": "https://github.com/bnema/purego-cef2gtk", "Hash": revision, "Ref": ref, | |
| 268 | + | } | |
| 269 | + | } | |
| 270 | + | infoJSON, err := json.Marshal(info) | |
| 271 | + | require.NoError(t, err) | |
| 272 | + | require.NoError(t, os.WriteFile(infoPath, infoJSON, 0o600)) | |
| 273 | + | ||
| 274 | + | selectedJSON, err := json.Marshal(map[string]string{ | |
| 275 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, | |
| 276 | + | }) | |
| 277 | + | require.NoError(t, err) | |
| 278 | + | downloadedJSON, err := json.Marshal(map[string]string{ | |
| 279 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, "Info": infoPath, | |
| 280 | + | }) | |
| 281 | + | require.NoError(t, err) | |
| 282 | + | binDir := filepath.Join(temp, "bin") | |
| 283 | + | require.NoError(t, os.Mkdir(binDir, 0o755)) | |
| 284 | + | goBin := filepath.Join(binDir, "go") | |
| 285 | + | script := fmt.Sprintf(`#!/bin/sh | |
| 286 | + | if [ "$1" = "list" ] && [ "$2" = "-m" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk" ]; then | |
| 287 | + | printf '%%s\n' '%s' | |
| 288 | + | exit 0 | |
| 289 | + | fi | |
| 290 | + | if [ "$1" = "mod" ] && [ "$2" = "download" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk@%s" ]; then | |
| 291 | + | printf '%%s\n' '%s' | |
| 292 | + | exit 0 | |
| 293 | + | fi | |
| 294 | + | exit 1 | |
| 295 | + | `, selectedJSON, version, downloadedJSON) | |
| 296 | + | require.NoError(t, os.WriteFile(goBin, []byte(script), 0o755)) | |
| 297 | + | return goBin | |
| 298 | + | } | |
| 299 | + | ||
| 169 | 300 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | |
| 170 | 301 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |
| 171 | 302 | require.NoError(t, err) | |
| @@ -2,6 +2,7 @@ package logging | |||||
| 2 | 2 | ||||
| 3 | import ( | 3 | import ( | ||
| 4 | "encoding/json" | 4 | "encoding/json" | ||
| 5 | + | "fmt" | |||
| 5 | "os" | 6 | "os" | ||
| 6 | "os/exec" | 7 | "os/exec" | ||
| 7 | "path/filepath" | 8 | "path/filepath" | ||
| @@ -143,8 +144,9 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 143 | } | 144 | } | ||
| 144 | for _, required := range []string{ | 145 | for _, required := range []string{ | ||
| 145 | `"measured_source_revision"`, | 146 | `"measured_source_revision"`, | ||
| 147 | + | `"version": "v0.8.4-0.20260714160309-bbd397409ebe"`, | |||
| 146 | `"tag": "v0.8.4"`, | 148 | `"tag": "v0.8.4"`, | ||
| 147 | - | `"revision": "f217ece342dea3ef2a3f98671fcd16a39ad0037d"`, | 149 | + | `"revision": "bbd397409ebed75a5979c1e4566a2ef319f6a484"`, |
| 148 | } { | 150 | } { | ||
| 149 | require.Contains(t, artifacts.String(), required) | 151 | require.Contains(t, artifacts.String(), required) | ||
| 150 | } | 152 | } | ||
| @@ -166,6 +168,135 @@ func TestFirstPresentationCollectorSanitizesMachineLocalValues(t *testing.T) { | |||||
| 166 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | 168 | require.Equal(t, "integrated-gpu", metadata.Comparison.MachineGPUProfile) | ||
| 167 | } | 169 | } | ||
| 168 | 170 | ||||
| 171 | + | func TestFirstPresentationCollectorDerivesSelectedImmutableModuleProvenance(t *testing.T) { | |||
| 172 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |||
| 173 | + | require.NoError(t, err) | |||
| 174 | + | temp := t.TempDir() | |||
| 175 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |||
| 176 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |||
| 177 | + | binary := filepath.Join(temp, "dumber") | |||
| 178 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |||
| 179 | + | ||||
| 180 | + | // This exact pseudo-version is deliberately newer than the former v0.8.4 | |||
| 181 | + | // hardcode; the collector must report what the selected module says. | |||
| 182 | + | const version = "v0.8.5-0.20300102030405-bbd397409ebe" | |||
| 183 | + | const revision = "bbd397409ebed75a5979c1e4566a2ef319f6a484" | |||
| 184 | + | goBin := collectorProvenanceGo(t, temp, version, revision, "") | |||
| 185 | + | output := filepath.Join(temp, "artifacts") | |||
| 186 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 187 | + | cmd.Dir = repoRoot | |||
| 188 | + | cmd.Env = append(os.Environ(), | |||
| 189 | + | "DISPLAY=:test", | |||
| 190 | + | "DUMBER_CEF_DIR="+runtime, | |||
| 191 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |||
| 192 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |||
| 193 | + | "DUMBER_FIRST_PRESENTATION_TIMEOUT_SECONDS=1", | |||
| 194 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 195 | + | ) | |||
| 196 | + | result, err := cmd.CombinedOutput() | |||
| 197 | + | require.NoErrorf(t, err, "collector failed: %s", result) | |||
| 198 | + | ||||
| 199 | + | var metadata struct { | |||
| 200 | + | Upstream struct { | |||
| 201 | + | Module string `json:"module"` | |||
| 202 | + | Version string `json:"version"` | |||
| 203 | + | Tag string `json:"tag"` | |||
| 204 | + | Revision string `json:"revision"` | |||
| 205 | + | } `json:"upstream"` | |||
| 206 | + | } | |||
| 207 | + | contents, err := os.ReadFile(filepath.Join(output, "metadata.json")) | |||
| 208 | + | require.NoError(t, err) | |||
| 209 | + | require.NoError(t, json.Unmarshal(contents, &metadata)) | |||
| 210 | + | require.Equal(t, "github.com/bnema/purego-cef2gtk", metadata.Upstream.Module) | |||
| 211 | + | require.Equal(t, version, metadata.Upstream.Version) | |||
| 212 | + | require.Equal(t, "v0.8.5", metadata.Upstream.Tag) | |||
| 213 | + | require.Equal(t, revision, metadata.Upstream.Revision) | |||
| 214 | + | ||||
| 215 | + | script, err := os.ReadFile(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 216 | + | require.NoError(t, err) | |||
| 217 | + | require.NotContains(t, string(script), "f217ece342dea3ef2a3f98671fcd16a39ad0037d") | |||
| 218 | + | } | |||
| 219 | + | ||||
| 220 | + | func TestFirstPresentationCollectorRejectsNonImmutableModuleProvenanceWithoutLeaks(t *testing.T) { | |||
| 221 | + | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | |||
| 222 | + | require.NoError(t, err) | |||
| 223 | + | ||||
| 224 | + | for _, test := range []struct { | |||
| 225 | + | name, version, revision, ref string | |||
| 226 | + | }{ | |||
| 227 | + | {name: "branch selector", version: "main", ref: "main"}, | |||
| 228 | + | {name: "missing origin", version: "v0.8.5-0.20300102030405-bbd397409ebe"}, | |||
| 229 | + | {name: "named origin ref", version: "v0.8.5-0.20300102030405-bbd397409ebe", revision: "bbd397409ebed75a5979c1e4566a2ef319f6a484", ref: "main"}, | |||
| 230 | + | } { | |||
| 231 | + | t.Run(test.name, func(t *testing.T) { | |||
| 232 | + | temp := t.TempDir() | |||
| 233 | + | runtime := filepath.Join(temp, "cef-147-runtime") | |||
| 234 | + | require.NoError(t, os.Mkdir(runtime, 0o755)) | |||
| 235 | + | binary := filepath.Join(temp, "dumber") | |||
| 236 | + | require.NoError(t, os.WriteFile(binary, collectorTestBinary(validFirstPresentationLog), 0o755)) | |||
| 237 | + | ||||
| 238 | + | goBin := collectorProvenanceGo(t, temp, test.version, test.revision, test.ref) | |||
| 239 | + | output := filepath.Join(temp, "artifacts") | |||
| 240 | + | cmd := exec.Command(filepath.Join(repoRoot, "scripts", "collect_first_presentation.sh")) | |||
| 241 | + | cmd.Dir = repoRoot | |||
| 242 | + | cmd.Env = append(os.Environ(), | |||
| 243 | + | "DISPLAY=:test", | |||
| 244 | + | "DUMBER_CEF_DIR="+runtime, | |||
| 245 | + | "DUMBER_FIRST_PRESENTATION_BIN="+binary, | |||
| 246 | + | "DUMBER_FIRST_PRESENTATION_OUTPUT="+output, | |||
| 247 | + | "PATH="+filepath.Dir(goBin)+":"+os.Getenv("PATH"), | |||
| 248 | + | ) | |||
| 249 | + | result, runErr := cmd.CombinedOutput() | |||
| 250 | + | require.Errorf(t, runErr, "collector accepted nonimmutable module provenance: %s", result) | |||
| 251 | + | require.Contains(t, string(result), "immutable module provenance is unavailable") | |||
| 252 | + | require.NotContains(t, string(result), temp) | |||
| 253 | + | require.NoFileExists(t, filepath.Join(output, "metadata.json")) | |||
| 254 | + | for _, name := range runArtifactNames() { | |||
| 255 | + | require.NoFileExists(t, filepath.Join(output, name)) | |||
| 256 | + | } | |||
| 257 | + | }) | |||
| 258 | + | } | |||
| 259 | + | } | |||
| 260 | + | ||||
| 261 | + | func collectorProvenanceGo(t *testing.T, temp, version, revision, ref string) string { | |||
| 262 | + | t.Helper() | |||
| 263 | + | infoPath := filepath.Join(temp, "module.info") | |||
| 264 | + | info := map[string]any{"Version": version} | |||
| 265 | + | if revision != "" { | |||
| 266 | + | info["Origin"] = map[string]string{ | |||
| 267 | + | "VCS": "git", "URL": "https://github.com/bnema/purego-cef2gtk", "Hash": revision, "Ref": ref, | |||
| 268 | + | } | |||
| 269 | + | } | |||
| 270 | + | infoJSON, err := json.Marshal(info) | |||
| 271 | + | require.NoError(t, err) | |||
| 272 | + | require.NoError(t, os.WriteFile(infoPath, infoJSON, 0o600)) | |||
| 273 | + | ||||
| 274 | + | selectedJSON, err := json.Marshal(map[string]string{ | |||
| 275 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, | |||
| 276 | + | }) | |||
| 277 | + | require.NoError(t, err) | |||
| 278 | + | downloadedJSON, err := json.Marshal(map[string]string{ | |||
| 279 | + | "Path": "github.com/bnema/purego-cef2gtk", "Version": version, "Info": infoPath, | |||
| 280 | + | }) | |||
| 281 | + | require.NoError(t, err) | |||
| 282 | + | binDir := filepath.Join(temp, "bin") | |||
| 283 | + | require.NoError(t, os.Mkdir(binDir, 0o755)) | |||
| 284 | + | goBin := filepath.Join(binDir, "go") | |||
| 285 | + | script := fmt.Sprintf(`#!/bin/sh | |||
| 286 | + | if [ "$1" = "list" ] && [ "$2" = "-m" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk" ]; then | |||
| 287 | + | printf '%%s\n' '%s' | |||
| 288 | + | exit 0 | |||
| 289 | + | fi | |||
| 290 | + | if [ "$1" = "mod" ] && [ "$2" = "download" ] && [ "$3" = "-json" ] && [ "$4" = "github.com/bnema/purego-cef2gtk@%s" ]; then | |||
| 291 | + | printf '%%s\n' '%s' | |||
| 292 | + | exit 0 | |||
| 293 | + | fi | |||
| 294 | + | exit 1 | |||
| 295 | + | `, selectedJSON, version, downloadedJSON) | |||
| 296 | + | require.NoError(t, os.WriteFile(goBin, []byte(script), 0o755)) | |||
| 297 | + | return goBin | |||
| 298 | + | } | |||
| 299 | + | ||||
| 169 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | 300 | func TestFirstPresentationCollectorDefaultsToXDGStateEvidenceDirectory(t *testing.T) { | ||
| 170 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | 301 | repoRoot, err := filepath.Abs(filepath.Join("..", "..")) | ||
| 171 | require.NoError(t, err) | 302 | require.NoError(t, err) | ||
M scripts/collect_first_presentation.sh +78 -9
| @@ -31,8 +31,78 @@ else | |||
| 31 | 31 | fi | |
| 32 | 32 | readonly output | |
| 33 | 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | |
| 34 | - | readonly upstream_tag="v0.8.4" | |
| 35 | - | readonly upstream_revision="f217ece342dea3ef2a3f98671fcd16a39ad0037d" | |
| 34 | + | ||
| 35 | + | # Resolve the version selected by this checkout, then obtain its immutable VCS | |
| 36 | + | # origin from Go's cached module metadata. Do not infer a revision from a tag, | |
| 37 | + | # a branch, or a truncated pseudo-version suffix. | |
| 38 | + | resolve_upstream_provenance() { | |
| 39 | + | local selected_metadata selected_version downloaded_metadata | |
| 40 | + | ||
| 41 | + | selected_metadata="$(go list -m -json "$upstream_module" 2>/dev/null)" || { | |
| 42 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |
| 43 | + | exit 2 | |
| 44 | + | } | |
| 45 | + | selected_version="$(python3 - "$upstream_module" "$selected_metadata" <<'PY' | |
| 46 | + | import json, sys | |
| 47 | + | try: | |
| 48 | + | metadata = json.loads(sys.argv[2]) | |
| 49 | + | if metadata.get("Path") != sys.argv[1] or not isinstance(metadata.get("Version"), str): | |
| 50 | + | raise ValueError | |
| 51 | + | print(metadata["Version"]) | |
| 52 | + | except (AttributeError, TypeError, ValueError, json.JSONDecodeError): | |
| 53 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |
| 54 | + | PY | |
| 55 | + | )" || exit $? | |
| 56 | + | downloaded_metadata="$(go mod download -json "$upstream_module@$selected_version" 2>/dev/null)" || { | |
| 57 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |
| 58 | + | exit 2 | |
| 59 | + | } | |
| 60 | + | ||
| 61 | + | python3 - "$upstream_module" "$selected_metadata" "$downloaded_metadata" <<'PY' | |
| 62 | + | import json, re, sys | |
| 63 | + | ||
| 64 | + | module, selected_raw, downloaded_raw = sys.argv[1:] | |
| 65 | + | ||
| 66 | + | def fail(): | |
| 67 | + | # Do not expose Go cache locations or other machine-local values. | |
| 68 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |
| 69 | + | ||
| 70 | + | try: | |
| 71 | + | selected = json.loads(selected_raw) | |
| 72 | + | downloaded = json.loads(downloaded_raw) | |
| 73 | + | version = selected["Version"] | |
| 74 | + | if selected.get("Path") != module or downloaded.get("Path") != module: | |
| 75 | + | fail() | |
| 76 | + | if downloaded.get("Version") != version: | |
| 77 | + | fail() | |
| 78 | + | # A selected pseudo-version is an exact immutable selector, never a branch. | |
| 79 | + | match = re.fullmatch(r"(v\d+\.\d+\.\d+)-0\.\d{14}-([0-9a-f]{12})", version) | |
| 80 | + | if not match: | |
| 81 | + | fail() | |
| 82 | + | info_path = downloaded.get("Info") | |
| 83 | + | if not isinstance(info_path, str) or not info_path: | |
| 84 | + | fail() | |
| 85 | + | with open(info_path, encoding="utf-8") as info_file: | |
| 86 | + | info = json.load(info_file) | |
| 87 | + | origin = info.get("Origin") or downloaded.get("Origin") | |
| 88 | + | if info.get("Version") != version or not isinstance(origin, dict): | |
| 89 | + | fail() | |
| 90 | + | revision = origin.get("Hash") | |
| 91 | + | if origin.get("VCS") != "git" or origin.get("URL") != "https://github.com/bnema/purego-cef2gtk": | |
| 92 | + | fail() | |
| 93 | + | if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision): | |
| 94 | + | fail() | |
| 95 | + | if not revision.startswith(match.group(2)): | |
| 96 | + | fail() | |
| 97 | + | # A named ref can move. Only the immutable hash itself is acceptable. | |
| 98 | + | if origin.get("Ref") not in (None, "", revision): | |
| 99 | + | fail() | |
| 100 | + | except (AttributeError, KeyError, OSError, TypeError, ValueError, json.JSONDecodeError): | |
| 101 | + | fail() | |
| 102 | + | ||
| 103 | + | print("\t".join((version, match.group(1), revision))) | |
| 104 | + | PY | |
| 105 | + | } | |
| 36 | 106 | ||
| 37 | 107 | # The artifact destination is caller-controlled. Never empty or recursively | |
| 38 | 108 | # clear it: collection only writes to a newly-created directory whose parent is | |
| @@ -66,10 +136,9 @@ prepare_output | |||
| 66 | 136 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | |
| 67 | 137 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | |
| 68 | 138 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | |
| 69 | - | [[ "$(go list -m -f '{{.Version}}' "$upstream_module")" == "$upstream_tag" ]] || { | |
| 70 | - | echo "first-presentation: expected $upstream_module@$upstream_tag" >&2 | |
| 71 | - | exit 2 | |
| 72 | - | } | |
| 139 | + | upstream_provenance="$(resolve_upstream_provenance)" || exit $? | |
| 140 | + | IFS=$'\t' read -r upstream_version upstream_tag upstream_revision <<<"$upstream_provenance" | |
| 141 | + | readonly upstream_version upstream_tag upstream_revision | |
| 73 | 142 | ||
| 74 | 143 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | |
| 75 | 144 | # outside the committed artifact directory and always remove them. | |
| @@ -80,9 +149,9 @@ cleanup_work_root() { | |||
| 80 | 149 | rm -rf -- "$work_root" | |
| 81 | 150 | } | |
| 82 | 151 | trap cleanup_work_root EXIT | |
| 83 | - | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_tag" "$upstream_revision" <<'PY' | |
| 152 | + | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_version" "$upstream_tag" "$upstream_revision" <<'PY' | |
| 84 | 153 | import hashlib, json, os, platform, subprocess, sys | |
| 85 | - | path, binary, timeout, upstream_module, upstream_tag, upstream_revision = sys.argv[1:] | |
| 154 | + | path, binary, timeout, upstream_module, upstream_version, upstream_tag, upstream_revision = sys.argv[1:] | |
| 86 | 155 | with open(binary, "rb") as candidate: | |
| 87 | 156 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | |
| 88 | 157 | ||
| @@ -102,7 +171,7 @@ json.dump({ | |||
| 102 | 171 | "binary": {"label": "dumber", "sha256": binary_sha256}, | |
| 103 | 172 | "timeout_seconds": int(timeout), | |
| 104 | 173 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | |
| 105 | - | "upstream": {"module": upstream_module, "tag": upstream_tag, "revision": upstream_revision}, | |
| 174 | + | "upstream": {"module": upstream_module, "version": upstream_version, "tag": upstream_tag, "revision": upstream_revision}, | |
| 106 | 175 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | |
| 107 | 176 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | |
| 108 | 177 | }, open(path, "w"), indent=2, sort_keys=True) | |
| @@ -31,8 +31,78 @@ else | |||||
| 31 | fi | 31 | fi | ||
| 32 | readonly output | 32 | readonly output | ||
| 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | 33 | readonly upstream_module="github.com/bnema/purego-cef2gtk" | ||
| 34 | - | readonly upstream_tag="v0.8.4" | 34 | + | |
| 35 | - | readonly upstream_revision="f217ece342dea3ef2a3f98671fcd16a39ad0037d" | 35 | + | # Resolve the version selected by this checkout, then obtain its immutable VCS |
| 36 | + | # origin from Go's cached module metadata. Do not infer a revision from a tag, | |||
| 37 | + | # a branch, or a truncated pseudo-version suffix. | |||
| 38 | + | resolve_upstream_provenance() { | |||
| 39 | + | local selected_metadata selected_version downloaded_metadata | |||
| 40 | + | ||||
| 41 | + | selected_metadata="$(go list -m -json "$upstream_module" 2>/dev/null)" || { | |||
| 42 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |||
| 43 | + | exit 2 | |||
| 44 | + | } | |||
| 45 | + | selected_version="$(python3 - "$upstream_module" "$selected_metadata" <<'PY' | |||
| 46 | + | import json, sys | |||
| 47 | + | try: | |||
| 48 | + | metadata = json.loads(sys.argv[2]) | |||
| 49 | + | if metadata.get("Path") != sys.argv[1] or not isinstance(metadata.get("Version"), str): | |||
| 50 | + | raise ValueError | |||
| 51 | + | print(metadata["Version"]) | |||
| 52 | + | except (AttributeError, TypeError, ValueError, json.JSONDecodeError): | |||
| 53 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |||
| 54 | + | PY | |||
| 55 | + | )" || exit $? | |||
| 56 | + | downloaded_metadata="$(go mod download -json "$upstream_module@$selected_version" 2>/dev/null)" || { | |||
| 57 | + | echo "first-presentation: immutable module provenance is unavailable" >&2 | |||
| 58 | + | exit 2 | |||
| 59 | + | } | |||
| 60 | + | ||||
| 61 | + | python3 - "$upstream_module" "$selected_metadata" "$downloaded_metadata" <<'PY' | |||
| 62 | + | import json, re, sys | |||
| 63 | + | ||||
| 64 | + | module, selected_raw, downloaded_raw = sys.argv[1:] | |||
| 65 | + | ||||
| 66 | + | def fail(): | |||
| 67 | + | # Do not expose Go cache locations or other machine-local values. | |||
| 68 | + | raise SystemExit("first-presentation: immutable module provenance is unavailable") | |||
| 69 | + | ||||
| 70 | + | try: | |||
| 71 | + | selected = json.loads(selected_raw) | |||
| 72 | + | downloaded = json.loads(downloaded_raw) | |||
| 73 | + | version = selected["Version"] | |||
| 74 | + | if selected.get("Path") != module or downloaded.get("Path") != module: | |||
| 75 | + | fail() | |||
| 76 | + | if downloaded.get("Version") != version: | |||
| 77 | + | fail() | |||
| 78 | + | # A selected pseudo-version is an exact immutable selector, never a branch. | |||
| 79 | + | match = re.fullmatch(r"(v\d+\.\d+\.\d+)-0\.\d{14}-([0-9a-f]{12})", version) | |||
| 80 | + | if not match: | |||
| 81 | + | fail() | |||
| 82 | + | info_path = downloaded.get("Info") | |||
| 83 | + | if not isinstance(info_path, str) or not info_path: | |||
| 84 | + | fail() | |||
| 85 | + | with open(info_path, encoding="utf-8") as info_file: | |||
| 86 | + | info = json.load(info_file) | |||
| 87 | + | origin = info.get("Origin") or downloaded.get("Origin") | |||
| 88 | + | if info.get("Version") != version or not isinstance(origin, dict): | |||
| 89 | + | fail() | |||
| 90 | + | revision = origin.get("Hash") | |||
| 91 | + | if origin.get("VCS") != "git" or origin.get("URL") != "https://github.com/bnema/purego-cef2gtk": | |||
| 92 | + | fail() | |||
| 93 | + | if not isinstance(revision, str) or not re.fullmatch(r"[0-9a-f]{40}", revision): | |||
| 94 | + | fail() | |||
| 95 | + | if not revision.startswith(match.group(2)): | |||
| 96 | + | fail() | |||
| 97 | + | # A named ref can move. Only the immutable hash itself is acceptable. | |||
| 98 | + | if origin.get("Ref") not in (None, "", revision): | |||
| 99 | + | fail() | |||
| 100 | + | except (AttributeError, KeyError, OSError, TypeError, ValueError, json.JSONDecodeError): | |||
| 101 | + | fail() | |||
| 102 | + | ||||
| 103 | + | print("\t".join((version, match.group(1), revision))) | |||
| 104 | + | PY | |||
| 105 | + | } | |||
| 36 | 106 | ||||
| 37 | # The artifact destination is caller-controlled. Never empty or recursively | 107 | # The artifact destination is caller-controlled. Never empty or recursively | ||
| 38 | # clear it: collection only writes to a newly-created directory whose parent is | 108 | # clear it: collection only writes to a newly-created directory whose parent is | ||
| @@ -66,10 +136,9 @@ prepare_output | |||||
| 66 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | 136 | [[ -x "$binary" ]] || { echo "first-presentation: executable not found: $binary" >&2; exit 2; } | ||
| 67 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | 137 | [[ -d "$runtime" ]] || { echo "first-presentation: CEF runtime not found: $runtime" >&2; exit 2; } | ||
| 68 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | 138 | [[ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]] || { echo "first-presentation: a current Wayland/X11 display is required" >&2; exit 2; } | ||
| 69 | - | [[ "$(go list -m -f '{{.Version}}' "$upstream_module")" == "$upstream_tag" ]] || { | 139 | + | upstream_provenance="$(resolve_upstream_provenance)" || exit $? |
| 70 | - | echo "first-presentation: expected $upstream_module@$upstream_tag" >&2 | 140 | + | IFS=$'\t' read -r upstream_version upstream_tag upstream_revision <<<"$upstream_provenance" |
| 71 | - | exit 2 | 141 | + | readonly upstream_version upstream_tag upstream_revision |
| 72 | - | } | |||
| 73 | 142 | ||||
| 74 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | 143 | # Raw logs and temporary XDG homes may contain machine-local paths. Keep them | ||
| 75 | # outside the committed artifact directory and always remove them. | 144 | # outside the committed artifact directory and always remove them. | ||
| @@ -80,9 +149,9 @@ cleanup_work_root() { | |||||
| 80 | rm -rf -- "$work_root" | 149 | rm -rf -- "$work_root" | ||
| 81 | } | 150 | } | ||
| 82 | trap cleanup_work_root EXIT | 151 | trap cleanup_work_root EXIT | ||
| 83 | - | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_tag" "$upstream_revision" <<'PY' | 152 | + | python3 - "$output/metadata.json" "$binary" "$timeout_seconds" "$upstream_module" "$upstream_version" "$upstream_tag" "$upstream_revision" <<'PY' |
| 84 | import hashlib, json, os, platform, subprocess, sys | 153 | import hashlib, json, os, platform, subprocess, sys | ||
| 85 | - | path, binary, timeout, upstream_module, upstream_tag, upstream_revision = sys.argv[1:] | 154 | + | path, binary, timeout, upstream_module, upstream_version, upstream_tag, upstream_revision = sys.argv[1:] |
| 86 | with open(binary, "rb") as candidate: | 155 | with open(binary, "rb") as candidate: | ||
| 87 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | 156 | binary_sha256 = hashlib.file_digest(candidate, "sha256").hexdigest() | ||
| 88 | 157 | ||||
| @@ -102,7 +171,7 @@ json.dump({ | |||||
| 102 | "binary": {"label": "dumber", "sha256": binary_sha256}, | 171 | "binary": {"label": "dumber", "sha256": binary_sha256}, | ||
| 103 | "timeout_seconds": int(timeout), | 172 | "timeout_seconds": int(timeout), | ||
| 104 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | 173 | "measured_source_revision": subprocess.check_output(["git", "-c", f"safe.directory={os.getcwd()}", "rev-parse", "HEAD"], text=True).strip(), | ||
| 105 | - | "upstream": {"module": upstream_module, "tag": upstream_tag, "revision": upstream_revision}, | 174 | + | "upstream": {"module": upstream_module, "version": upstream_version, "tag": upstream_tag, "revision": upstream_revision}, |
| 106 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | 175 | "comparison": {"os": os_label, "architecture": architecture, "display_protocol": display_protocol, "machine_gpu_profile": gpu_profile}, | ||
| 107 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | 176 | "render_configuration": {"backend": "gdk-dmabuf", "buffer_sharing": "dmabuf", "renderer": "vulkan"} | ||
| 108 | }, open(path, "w"), indent=2, sort_keys=True) | 177 | }, open(path, "w"), indent=2, sort_keys=True) | ||
M vendor/github.com/bnema/purego-cef/cef/bridge.go +8 -13 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/cefadapter/accelerated_paint.go +34 -37 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/dmabuf/frame.go +38 -19 generated file: collapsed
M vendor/github.com/bnema/purego-cef2gtk/internal/gtkgdk/renderer.go +89 -69 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/player.go +5 -0 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/player_rt.go +10 -6 generated file: collapsed
M vendor/github.com/bnema/purego-pipewire/internal/core/pwbuffer.go +66 -32 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/driver/driver.go +268 -63 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/core/db.go +8 -0 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/core/rows.go +13 -0 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/loader/loader.go +23 -5 generated file: collapsed
M vendor/github.com/bnema/purego-sqlite/internal/ports/in/ports_gen.go +3 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +197 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +10 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +99 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +95 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +33 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +66 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +10 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +23 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +47 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +33 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +47 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +17 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +34 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +45 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +40 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +61 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +18 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +7 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +69 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +5 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +63 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +10 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +60 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +48 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +24 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +38 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +18 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +31 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +24 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +41 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +39 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +34 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +17 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +49 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +20 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +25 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +33 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +35 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +5 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +45 -37 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +123 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +30 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +41 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +64 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +40 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +78 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +15 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +14 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +66 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +57 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +36 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +20 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +34 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +28 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +23 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +36 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +27 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +10 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +51 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +10 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +53 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +20 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +21 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +120 -118 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +17 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +40 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +41 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +19 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +42 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +63 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +47 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +36 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +19 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +11 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +157 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +9 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +95 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +3 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +26 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +9 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +13 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +11 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +102 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +5 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +59 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +96 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +244 -116 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +79 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +4 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +26 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +30 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +23 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +12 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +45 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +31 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +14 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +77 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +16 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +54 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +88 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +35 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +10 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +26 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +16 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +12 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +42 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +14 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +12 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +4 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +214 -82 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +34 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +207 -80 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +6 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +1148 -450 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +34 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +138 -84 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +17 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +9 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +6 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +32 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +40 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +10 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +11 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +52 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +90 -1 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +6 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +26 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +4 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +25 -29 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +70 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +6 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +33 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +8 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +2 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +13 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +62 -50 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +31 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +215 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +40 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +11 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +3 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +49 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +12 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +86 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +30 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +7 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +7 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +16 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +7 -0 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +35 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +12 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +75 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +19 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +41 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +99 -67 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +19 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +48 -43 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +9 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +46 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +2 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +87 -72 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +11 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +13 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +54 -44 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +19 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +14 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +10 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +18 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +8 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +2 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +40 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +34 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +70 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +5 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +3 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +16 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +10 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +7 -0 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +2 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +69 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +25 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +55 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +56 -46 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +51 -48 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +27 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +20 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +11 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +18 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +143 -58 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +9 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +32 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +82 -59 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +56 -39 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +43 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +23 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +69 -61 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +23 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +14 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +25 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +36 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +103 -65 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +107 -66 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +12 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +30 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +45 -38 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +81 -53 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +28 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +11 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +83 -67 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +72 -62 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +181 -117 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +15 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +51 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +44 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +70 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +50 -35 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +57 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +26 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +19 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +3 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +13 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +84 -52 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +33 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +29 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +15 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +72 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +20 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +40 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +74 -49 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +12 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +33 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +115 -71 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstring.go +77 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstringchunk.go +10 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrvbuilder.go +19 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtestutils.go +132 -80 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthread.go +146 -97 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gthreadpool.go +26 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimer.go +18 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtimezone.go +27 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtrashstack.go +8 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtree.go +63 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gtypes.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gunicode.go +132 -85 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guri.go +63 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gutils.go +62 -41 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/guuid.go +5 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant-parser.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvariant.go +242 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gvarianttype.go +63 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gversion.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/main.go +31 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gmodule/gmodule.go +14 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gmodule/main.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gbinding.go +14 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gbindinggroup.go +11 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gboxed.go +6 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gclosure.go +37 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/genums.go +24 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/glib-types.go +2 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gmarshal.go +45 -35 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gobject.go +116 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gparam.go +54 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gparamspecs.go +46 -79 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsignal.go +79 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsignalgroup.go +21 -24 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gsourceclosure.go +4 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gtype.go +136 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gtypemodule.go +15 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gtypeplugin.go +26 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gvalue.go +141 -85 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gvaluearray.go +21 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/gvaluetypes.go +6 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/main.go +10 -1 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gobject/more.go +8 -1 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-box.go +61 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-euler.go +43 -34 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-frustum.go +21 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-matrix.go +135 -80 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-plane.go +29 -27 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-point.go +23 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-point3d.go +35 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-quad.go +17 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-quaternion.go +49 -37 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-ray.go +37 -31 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-rect.go +67 -46 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-size.go +17 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-sphere.go +27 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-triangle.go +33 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec2.go +53 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec3.go +69 -48 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/graphene/graphene-vec4.go +69 -48 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskblendnode.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskblurnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskbordernode.go +8 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskbroadwayrenderer.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcaironode.go +6 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcairorenderer.go +2 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskclipnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcolormatrixnode.go +7 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcolornode.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfer.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcomponenttransfernode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcompositenode.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskconicgradientnode.go +12 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcontainernode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcopynode.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskcrossfadenode.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskdebugnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskenums.go +24 -1 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskfillnode.go +7 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskglrenderer.go +4 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskglshader.go +65 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskglshadernode.go +8 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskinsetshadownode.go +14 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskisolationnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsklineargradientnode.go +12 -22 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskmasknode.go +6 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskopacitynode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskoutsetshadownode.go +14 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskpastenode.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskpath.go +4 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskpathpoint.go +19 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskradialgradientnode.go +18 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskrenderer.go +12 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskrendernode.go +26 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskrepeatnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskroundedclipnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskroundedrect.go +20 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskshadownode.go +7 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskstroke.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gskstrokenode.go +7 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsksubsurfacenode.go +5 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktextnode.go +13 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktexturenode.go +3 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktexturescalenode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktransform.go +3 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktransformnode.go +5 -16 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gsk/gsktypes.go +237 -153
| @@ -5,7 +5,6 @@ import ( | |||
| 5 | 5 | "structs" | |
| 6 | 6 | "unsafe" | |
| 7 | 7 | ||
| 8 | - | "github.com/bnema/purego" | |
| 9 | 8 | "github.com/bnema/puregotk/pkg/core" | |
| 10 | 9 | "github.com/bnema/puregotk/v4/cairo" | |
| 11 | 10 | "github.com/bnema/puregotk/v4/gdk" | |
| @@ -30,6 +29,7 @@ type ComponentTransfer struct { | |||
| 30 | 29 | var xComponentTransferGLibType func() types.GType | |
| 31 | 30 | ||
| 32 | 31 | func ComponentTransferGLibType() types.GType { | |
| 32 | + | core.LazyRegister(&xComponentTransferGLibType, "GSK", "gsk_component_transfer_get_type", false) | |
| 33 | 33 | return xComponentTransferGLibType() | |
| 34 | 34 | } | |
| 35 | 35 | ||
| @@ -67,6 +67,8 @@ var xNewComponentTransferDiscrete func(uint, []float32) uintptr | |||
| 67 | 67 | // | |
| 68 | 68 | // </figure> | |
| 69 | 69 | func NewComponentTransferDiscrete(NVar uint, ValuesVar []float32) *ComponentTransfer { | |
| 70 | + | core.LazyRegister(&xNewComponentTransferDiscrete, "GSK", "gsk_component_transfer_new_discrete", false) | |
| 71 | + | ||
| 70 | 72 | cret := xNewComponentTransferDiscrete(NVar, ValuesVar) | |
| 71 | 73 | if cret == 0 { | |
| 72 | 74 | return nil | |
| @@ -92,6 +94,8 @@ var xNewComponentTransferGamma func(float32, float32, float32) uintptr | |||
| 92 | 94 | // | |
| 93 | 95 | // </figure> | |
| 94 | 96 | func NewComponentTransferGamma(AmpVar float32, ExpVar float32, OfsVar float32) *ComponentTransfer { | |
| 97 | + | core.LazyRegister(&xNewComponentTransferGamma, "GSK", "gsk_component_transfer_new_gamma", false) | |
| 98 | + | ||
| 95 | 99 | cret := xNewComponentTransferGamma(AmpVar, ExpVar, OfsVar) | |
| 96 | 100 | if cret == 0 { | |
| 97 | 101 | return nil | |
| @@ -113,6 +117,8 @@ var xNewComponentTransferIdentity func() uintptr | |||
| 113 | 117 | // | |
| 114 | 118 | // </figure> | |
| 115 | 119 | func NewComponentTransferIdentity() *ComponentTransfer { | |
| 120 | + | core.LazyRegister(&xNewComponentTransferIdentity, "GSK", "gsk_component_transfer_new_identity", false) | |
| 121 | + | ||
| 116 | 122 | cret := xNewComponentTransferIdentity() | |
| 117 | 123 | if cret == 0 { | |
| 118 | 124 | return nil | |
| @@ -138,6 +144,8 @@ var xNewComponentTransferLevels func(float32) uintptr | |||
| 138 | 144 | // | |
| 139 | 145 | // </figure> | |
| 140 | 146 | func NewComponentTransferLevels(NVar float32) *ComponentTransfer { | |
| 147 | + | core.LazyRegister(&xNewComponentTransferLevels, "GSK", "gsk_component_transfer_new_levels", false) | |
| 148 | + | ||
| 141 | 149 | cret := xNewComponentTransferLevels(NVar) | |
| 142 | 150 | if cret == 0 { | |
| 143 | 151 | return nil | |
| @@ -163,6 +171,8 @@ var xNewComponentTransferLinear func(float32, float32) uintptr | |||
| 163 | 171 | // | |
| 164 | 172 | // </figure> | |
| 165 | 173 | func NewComponentTransferLinear(MVar float32, BVar float32) *ComponentTransfer { | |
| 174 | + | core.LazyRegister(&xNewComponentTransferLinear, "GSK", "gsk_component_transfer_new_linear", false) | |
| 175 | + | ||
| 166 | 176 | cret := xNewComponentTransferLinear(MVar, BVar) | |
| 167 | 177 | if cret == 0 { | |
| 168 | 178 | return nil | |
| @@ -192,6 +202,8 @@ var xNewComponentTransferTable func(uint, []float32) uintptr | |||
| 192 | 202 | // | |
| 193 | 203 | // </figure> | |
| 194 | 204 | func NewComponentTransferTable(NVar uint, ValuesVar []float32) *ComponentTransfer { | |
| 205 | + | core.LazyRegister(&xNewComponentTransferTable, "GSK", "gsk_component_transfer_new_table", false) | |
| 206 | + | ||
| 195 | 207 | cret := xNewComponentTransferTable(NVar, ValuesVar) | |
| 196 | 208 | if cret == 0 { | |
| 197 | 209 | return nil | |
| @@ -203,6 +215,8 @@ var xComponentTransferCopy func(uintptr) uintptr | |||
| 203 | 215 | ||
| 204 | 216 | // Creates a copy of @other. | |
| 205 | 217 | func (x *ComponentTransfer) Copy() *ComponentTransfer { | |
| 218 | + | core.LazyRegister(&xComponentTransferCopy, "GSK", "gsk_component_transfer_copy", false) | |
| 219 | + | ||
| 206 | 220 | cret := xComponentTransferCopy(x.GoPointer()) | |
| 207 | 221 | if cret == 0 { | |
| 208 | 222 | return nil | |
| @@ -214,6 +228,8 @@ var xComponentTransferFree func(uintptr) | |||
| 214 | 228 | ||
| 215 | 229 | // Frees a component transfer. | |
| 216 | 230 | func (x *ComponentTransfer) Free() { | |
| 231 | + | core.LazyRegister(&xComponentTransferFree, "GSK", "gsk_component_transfer_free", false) | |
| 232 | + | ||
| 217 | 233 | xComponentTransferFree(x.GoPointer()) | |
| 218 | 234 | } | |
| 219 | 235 | ||
| @@ -244,6 +260,7 @@ type Path struct { | |||
| 244 | 260 | var xPathGLibType func() types.GType | |
| 245 | 261 | ||
| 246 | 262 | func PathGLibType() types.GType { | |
| 263 | + | core.LazyRegister(&xPathGLibType, "GSK", "gsk_path_get_type", false) | |
| 247 | 264 | return xPathGLibType() | |
| 248 | 265 | } | |
| 249 | 266 | ||
| @@ -266,6 +283,8 @@ var xPathEqual func(uintptr, *Path) bool | |||
| 266 | 283 | // Note that it is possible to construct paths that render | |
| 267 | 284 | // identical even though they don't have the same structure. | |
| 268 | 285 | func (x *Path) Equal(Path2Var *Path) bool { | |
| 286 | + | core.LazyRegister(&xPathEqual, "GSK", "gsk_path_equal", false) | |
| 287 | + | ||
| 269 | 288 | cret := xPathEqual(x.GoPointer(), Path2Var) | |
| 270 | 289 | return cret | |
| 271 | 290 | } | |
| @@ -286,6 +305,8 @@ var xPathForeach func(uintptr, PathForeachFlags, uintptr, uintptr) bool | |||
| 286 | 305 | // - When the @flags disallow certain operations, it provides | |
| 287 | 306 | // an approximation of the path using just the allowed operations. | |
| 288 | 307 | func (x *Path) Foreach(FlagsVar PathForeachFlags, FuncVar *PathForeachFunc, UserDataVar uintptr) bool { | |
| 308 | + | core.LazyRegister(&xPathForeach, "GSK", "gsk_path_foreach", false) | |
| 309 | + | ||
| 289 | 310 | cret := xPathForeach(x.GoPointer(), FlagsVar, glib.NewCallback(FuncVar), UserDataVar) | |
| 290 | 311 | return cret | |
| 291 | 312 | } | |
| @@ -308,6 +329,8 @@ var xPathForeachIntersection func(uintptr, *Path, uintptr, uintptr) bool | |||
| 308 | 329 | // | |
| 309 | 330 | // If @func returns `FALSE`, the iteration is stopped. | |
| 310 | 331 | func (x *Path) ForeachIntersection(Path2Var *Path, FuncVar *PathIntersectionFunc, UserDataVar uintptr) bool { | |
| 332 | + | core.LazyRegister(&xPathForeachIntersection, "GSK", "gsk_path_foreach_intersection", false) | |
| 333 | + | ||
| 311 | 334 | cret := xPathForeachIntersection(x.GoPointer(), Path2Var, glib.NewCallback(FuncVar), UserDataVar) | |
| 312 | 335 | return cret | |
| 313 | 336 | } | |
| @@ -330,6 +353,8 @@ var xPathGetBounds func(uintptr, *graphene.Rect) bool | |||
| 330 | 353 | // is a single point at the origin, where the @bounds will also be set to | |
| 331 | 354 | // the zero rectangle but true will be returned. | |
| 332 | 355 | func (x *Path) GetBounds(BoundsVar *graphene.Rect) bool { | |
| 356 | + | core.LazyRegister(&xPathGetBounds, "GSK", "gsk_path_get_bounds", false) | |
| 357 | + | ||
| 333 | 358 | cret := xPathGetBounds(x.GoPointer(), BoundsVar) | |
| 334 | 359 | return cret | |
| 335 | 360 | } | |
| @@ -341,6 +366,8 @@ var xPathGetClosestPoint func(uintptr, *graphene.Point, float32, *PathPoint, *fl | |||
| 341 | 366 | // If there is no point closer than the given threshold, | |
| 342 | 367 | // false is returned. | |
| 343 | 368 | func (x *Path) GetClosestPoint(PointVar *graphene.Point, ThresholdVar float32, ResultVar *PathPoint, DistanceVar *float32) bool { | |
| 369 | + | core.LazyRegister(&xPathGetClosestPoint, "GSK", "gsk_path_get_closest_point", false) | |
| 370 | + | ||
| 344 | 371 | cret := xPathGetClosestPoint(x.GoPointer(), PointVar, ThresholdVar, ResultVar, DistanceVar) | |
| 345 | 372 | return cret | |
| 346 | 373 | } | |
| @@ -352,6 +379,8 @@ var xPathGetEndPoint func(uintptr, *PathPoint) bool | |||
| 352 | 379 | // An empty path has no points, so false | |
| 353 | 380 | // is returned in this case. | |
| 354 | 381 | func (x *Path) GetEndPoint(ResultVar *PathPoint) bool { | |
| 382 | + | core.LazyRegister(&xPathGetEndPoint, "GSK", "gsk_path_get_end_point", false) | |
| 383 | + | ||
| 355 | 384 | cret := xPathGetEndPoint(x.GoPointer(), ResultVar) | |
| 356 | 385 | return cret | |
| 357 | 386 | } | |
| @@ -363,6 +392,8 @@ var xPathGetNext func(uintptr, *PathPoint) bool | |||
| 363 | 392 | // An empty path has no points, so false | |
| 364 | 393 | // is returned in this case. | |
| 365 | 394 | func (x *Path) GetNext(PointVar *PathPoint) bool { | |
| 395 | + | core.LazyRegister(&xPathGetNext, "GSK", "gsk_path_get_next", false) | |
| 396 | + | ||
| 366 | 397 | cret := xPathGetNext(x.GoPointer(), PointVar) | |
| 367 | 398 | return cret | |
| 368 | 399 | } | |
| @@ -374,6 +405,8 @@ var xPathGetPrevious func(uintptr, *PathPoint) bool | |||
| 374 | 405 | // An empty path has no points, so false | |
| 375 | 406 | // is returned in this case. | |
| 376 | 407 | func (x *Path) GetPrevious(PointVar *PathPoint) bool { | |
| 408 | + | core.LazyRegister(&xPathGetPrevious, "GSK", "gsk_path_get_previous", false) | |
| 409 | + | ||
| 377 | 410 | cret := xPathGetPrevious(x.GoPointer(), PointVar) | |
| 378 | 411 | return cret | |
| 379 | 412 | } | |
| @@ -385,6 +418,8 @@ var xPathGetStartPoint func(uintptr, *PathPoint) bool | |||
| 385 | 418 | // An empty path has no points, so false | |
| 386 | 419 | // is returned in this case. | |
| 387 | 420 | func (x *Path) GetStartPoint(ResultVar *PathPoint) bool { | |
| 421 | + | core.LazyRegister(&xPathGetStartPoint, "GSK", "gsk_path_get_start_point", false) | |
| 422 | + | ||
| 388 | 423 | cret := xPathGetStartPoint(x.GoPointer(), ResultVar) | |
| 389 | 424 | return cret | |
| 390 | 425 | } | |
| @@ -399,6 +434,8 @@ var xPathGetStrokeBounds func(uintptr, *Stroke, *graphene.Rect) bool | |||
| 399 | 434 | // to contain the area affected by the stroke, including protrusions | |
| 400 | 435 | // like miters. | |
| 401 | 436 | func (x *Path) GetStrokeBounds(StrokeVar *Stroke, BoundsVar *graphene.Rect) bool { | |
| 437 | + | core.LazyRegister(&xPathGetStrokeBounds, "GSK", "gsk_path_get_stroke_bounds", false) | |
| 438 | + | ||
| 402 | 439 | cret := xPathGetStrokeBounds(x.GoPointer(), StrokeVar, BoundsVar) | |
| 403 | 440 | return cret | |
| 404 | 441 | } | |
| @@ -410,6 +447,8 @@ var xPathGetTightBounds func(uintptr, *graphene.Rect) bool | |||
| 410 | 447 | // This function works harder than [method@Gsk.Path.get_bounds] to | |
| 411 | 448 | // produce the smallest possible bounds. | |
| 412 | 449 | func (x *Path) GetTightBounds(BoundsVar *graphene.Rect) bool { | |
| 450 | + | core.LazyRegister(&xPathGetTightBounds, "GSK", "gsk_path_get_tight_bounds", false) | |
| 451 | + | ||
| 413 | 452 | cret := xPathGetTightBounds(x.GoPointer(), BoundsVar) | |
| 414 | 453 | return cret | |
| 415 | 454 | } | |
| @@ -421,6 +460,8 @@ var xPathInFill func(uintptr, *graphene.Point, FillRule) bool | |||
| 421 | 460 | // Note that this function assumes that filling a contour | |
| 422 | 461 | // implicitly closes it. | |
| 423 | 462 | func (x *Path) InFill(PointVar *graphene.Point, FillRuleVar FillRule) bool { | |
| 463 | + | core.LazyRegister(&xPathInFill, "GSK", "gsk_path_in_fill", false) | |
| 464 | + | ||
| 424 | 465 | cret := xPathInFill(x.GoPointer(), PointVar, FillRuleVar) | |
| 425 | 466 | return cret | |
| 426 | 467 | } | |
| @@ -429,6 +470,8 @@ var xPathIsClosed func(uintptr) bool | |||
| 429 | 470 | ||
| 430 | 471 | // Returns if the path represents a single closed contour. | |
| 431 | 472 | func (x *Path) IsClosed() bool { | |
| 473 | + | core.LazyRegister(&xPathIsClosed, "GSK", "gsk_path_is_closed", false) | |
| 474 | + | ||
| 432 | 475 | cret := xPathIsClosed(x.GoPointer()) | |
| 433 | 476 | return cret | |
| 434 | 477 | } | |
| @@ -437,6 +480,8 @@ var xPathIsEmpty func(uintptr) bool | |||
| 437 | 480 | ||
| 438 | 481 | // Checks if the path is empty, i.e. contains no lines or curves. | |
| 439 | 482 | func (x *Path) IsEmpty() bool { | |
| 483 | + | core.LazyRegister(&xPathIsEmpty, "GSK", "gsk_path_is_empty", false) | |
| 484 | + | ||
| 440 | 485 | cret := xPathIsEmpty(x.GoPointer()) | |
| 441 | 486 | return cret | |
| 442 | 487 | } | |
| @@ -449,6 +494,8 @@ var xPathPrint func(uintptr, *glib.String) | |||
| 449 | 494 | // [SVG path syntax](https://www.w3.org/TR/SVG11/paths.html#PathData), | |
| 450 | 495 | // see [func@Gsk.Path.parse] for a summary of the syntax. | |
| 451 | 496 | func (x *Path) Print(StringVar *glib.String) { | |
| 497 | + | core.LazyRegister(&xPathPrint, "GSK", "gsk_path_print", false) | |
| 498 | + | ||
| 452 | 499 | xPathPrint(x.GoPointer(), StringVar) | |
| 453 | 500 | } | |
| 454 | 501 | ||
| @@ -456,6 +503,8 @@ var xPathRef func(uintptr) uintptr | |||
| 456 | 503 | ||
| 457 | 504 | // Increases the reference count of a path by one. | |
| 458 | 505 | func (x *Path) Ref() *Path { | |
| 506 | + | core.LazyRegister(&xPathRef, "GSK", "gsk_path_ref", false) | |
| 507 | + | ||
| 459 | 508 | cret := xPathRef(x.GoPointer()) | |
| 460 | 509 | if cret == 0 { | |
| 461 | 510 | return nil | |
| @@ -473,6 +522,8 @@ var xPathToCairo func(uintptr, *cairo.Context) | |||
| 473 | 522 | // This function does not clear the existing Cairo path. Call | |
| 474 | 523 | // cairo_new_path() if you want this. | |
| 475 | 524 | func (x *Path) ToCairo(CrVar *cairo.Context) { | |
| 525 | + | core.LazyRegister(&xPathToCairo, "GSK", "gsk_path_to_cairo", false) | |
| 526 | + | ||
| 476 | 527 | xPathToCairo(x.GoPointer(), CrVar) | |
| 477 | 528 | } | |
| 478 | 529 | ||
| @@ -486,6 +537,8 @@ var xPathToString func(uintptr) string | |||
| 486 | 537 | // This is a wrapper around [method@Gsk.Path.print], see that function | |
| 487 | 538 | // for details. | |
| 488 | 539 | func (x *Path) ToString() string { | |
| 540 | + | core.LazyRegister(&xPathToString, "GSK", "gsk_path_to_string", false) | |
| 541 | + | ||
| 489 | 542 | cret := xPathToString(x.GoPointer()) | |
| 490 | 543 | return cret | |
| 491 | 544 | } | |
| @@ -496,6 +549,8 @@ var xPathUnref func(uintptr) | |||
| 496 | 549 | // | |
| 497 | 550 | // If the resulting reference count is zero, frees the path. | |
| 498 | 551 | func (x *Path) Unref() { | |
| 552 | + | core.LazyRegister(&xPathUnref, "GSK", "gsk_path_unref", false) | |
| 553 | + | ||
| 499 | 554 | xPathUnref(x.GoPointer()) | |
| 500 | 555 | } | |
| 501 | 556 | ||
| @@ -546,6 +601,7 @@ type PathBuilder struct { | |||
| 546 | 601 | var xPathBuilderGLibType func() types.GType | |
| 547 | 602 | ||
| 548 | 603 | func PathBuilderGLibType() types.GType { | |
| 604 | + | core.LazyRegister(&xPathBuilderGLibType, "GSK", "gsk_path_builder_get_type", false) | |
| 549 | 605 | return xPathBuilderGLibType() | |
| 550 | 606 | } | |
| 551 | 607 | ||
| @@ -568,6 +624,8 @@ var xNewPathBuilder func() uintptr | |||
| 568 | 624 | // The resulting builder would create an empty `GskPath`. | |
| 569 | 625 | // Use addition functions to add types to it. | |
| 570 | 626 | func NewPathBuilder() *PathBuilder { | |
| 627 | + | core.LazyRegister(&xNewPathBuilder, "GSK", "gsk_path_builder_new", false) | |
| 628 | + | ||
| 571 | 629 | cret := xNewPathBuilder() | |
| 572 | 630 | if cret == 0 { | |
| 573 | 631 | return nil | |
| @@ -582,6 +640,8 @@ var xPathBuilderAddCairoPath func(uintptr, *cairo.Path) | |||
| 582 | 640 | // You can use cairo_copy_path() to access the path | |
| 583 | 641 | // from a Cairo context. | |
| 584 | 642 | func (x *PathBuilder) AddCairoPath(PathVar *cairo.Path) { | |
| 643 | + | core.LazyRegister(&xPathBuilderAddCairoPath, "GSK", "gsk_path_builder_add_cairo_path", false) | |
| 644 | + | ||
| 585 | 645 | xPathBuilderAddCairoPath(x.GoPointer(), PathVar) | |
| 586 | 646 | } | |
| 587 | 647 | ||
| @@ -593,6 +653,8 @@ var xPathBuilderAddCircle func(uintptr, *graphene.Point, float32) | |||
| 593 | 653 | // | |
| 594 | 654 | // If @radius is zero, the contour will be a closed point. | |
| 595 | 655 | func (x *PathBuilder) AddCircle(CenterVar *graphene.Point, RadiusVar float32) { | |
| 656 | + | core.LazyRegister(&xPathBuilderAddCircle, "GSK", "gsk_path_builder_add_circle", false) | |
| 657 | + | ||
| 596 | 658 | xPathBuilderAddCircle(x.GoPointer(), CenterVar, RadiusVar) | |
| 597 | 659 | } | |
| 598 | 660 | ||
| @@ -600,6 +662,8 @@ var xPathBuilderAddLayout func(uintptr, uintptr) | |||
| 600 | 662 | ||
| 601 | 663 | // Adds the outlines for the glyphs in @layout to the builder. | |
| 602 | 664 | func (x *PathBuilder) AddLayout(LayoutVar *pango.Layout) { | |
| 665 | + | core.LazyRegister(&xPathBuilderAddLayout, "GSK", "gsk_path_builder_add_layout", false) | |
| 666 | + | ||
| 603 | 667 | xPathBuilderAddLayout(x.GoPointer(), LayoutVar.GoPointer()) | |
| 604 | 668 | } | |
| 605 | 669 | ||
| @@ -607,6 +671,8 @@ var xPathBuilderAddPath func(uintptr, *Path) | |||
| 607 | 671 | ||
| 608 | 672 | // Appends all of @path to the builder. | |
| 609 | 673 | func (x *PathBuilder) AddPath(PathVar *Path) { | |
| 674 | + | core.LazyRegister(&xPathBuilderAddPath, "GSK", "gsk_path_builder_add_path", false) | |
| 675 | + | ||
| 610 | 676 | xPathBuilderAddPath(x.GoPointer(), PathVar) | |
| 611 | 677 | } | |
| 612 | 678 | ||
| @@ -619,6 +685,8 @@ var xPathBuilderAddRect func(uintptr, *graphene.Rect) | |||
| 619 | 685 | // If the the width or height are 0, the path will be a closed | |
| 620 | 686 | // horizontal or vertical line. If both are 0, it'll be a closed dot. | |
| 621 | 687 | func (x *PathBuilder) AddRect(RectVar *graphene.Rect) { | |
| 688 | + | core.LazyRegister(&xPathBuilderAddRect, "GSK", "gsk_path_builder_add_rect", false) | |
| 689 | + | ||
| 622 | 690 | xPathBuilderAddRect(x.GoPointer(), RectVar) | |
| 623 | 691 | } | |
| 624 | 692 | ||
| @@ -626,6 +694,8 @@ var xPathBuilderAddReversePath func(uintptr, *Path) | |||
| 626 | 694 | ||
| 627 | 695 | // Appends all of @path to the builder, in reverse order. | |
| 628 | 696 | func (x *PathBuilder) AddReversePath(PathVar *Path) { | |
| 697 | + | core.LazyRegister(&xPathBuilderAddReversePath, "GSK", "gsk_path_builder_add_reverse_path", false) | |
| 698 | + | ||
| 629 | 699 | xPathBuilderAddReversePath(x.GoPointer(), PathVar) | |
| 630 | 700 | } | |
| 631 | 701 | ||
| @@ -635,6 +705,8 @@ var xPathBuilderAddRoundedRect func(uintptr, *RoundedRect) | |||
| 635 | 705 | // | |
| 636 | 706 | // The path is going around the rectangle in clockwise direction. | |
| 637 | 707 | func (x *PathBuilder) AddRoundedRect(RectVar *RoundedRect) { | |
| 708 | + | core.LazyRegister(&xPathBuilderAddRoundedRect, "GSK", "gsk_path_builder_add_rounded_rect", false) | |
| 709 | + | ||
| 638 | 710 | xPathBuilderAddRoundedRect(x.GoPointer(), RectVar) | |
| 639 | 711 | } | |
| 640 | 712 | ||
| @@ -650,6 +722,8 @@ var xPathBuilderAddSegment func(uintptr, *Path, *PathPoint, *PathPoint) | |||
| 650 | 722 | // Note that this method always adds a path with the given start point | |
| 651 | 723 | // and end point. To add a closed path, use [method@Gsk.PathBuilder.add_path]. | |
| 652 | 724 | func (x *PathBuilder) AddSegment(PathVar *Path, StartVar *PathPoint, EndVar *PathPoint) { | |
| 725 | + | core.LazyRegister(&xPathBuilderAddSegment, "GSK", "gsk_path_builder_add_segment", false) | |
| 726 | + | ||
| 653 | 727 | xPathBuilderAddSegment(x.GoPointer(), PathVar, StartVar, EndVar) | |
| 654 | 728 | } | |
| 655 | 729 | ||
| @@ -672,6 +746,8 @@ var xPathBuilderArcTo func(uintptr, float32, float32, float32, float32) | |||
| 672 | 746 | // | |
| 673 | 747 | // </picture> | |
| 674 | 748 | func (x *PathBuilder) ArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | |
| 749 | + | core.LazyRegister(&xPathBuilderArcTo, "GSK", "gsk_path_builder_arc_to", false) | |
| 750 | + | ||
| 675 | 751 | xPathBuilderArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | |
| 676 | 752 | } | |
| 677 | 753 | ||
| @@ -685,6 +761,8 @@ var xPathBuilderClose func(uintptr) | |||
| 685 | 761 | // start and end point are considered connected, so they will be | |
| 686 | 762 | // joined via the line join, and not ended with line caps. | |
| 687 | 763 | func (x *PathBuilder) Close() { | |
| 764 | + | core.LazyRegister(&xPathBuilderClose, "GSK", "gsk_path_builder_close", false) | |
| 765 | + | ||
| 688 | 766 | xPathBuilderClose(x.GoPointer()) | |
| 689 | 767 | } | |
| 690 | 768 | ||
| @@ -709,6 +787,8 @@ var xPathBuilderConicTo func(uintptr, float32, float32, float32, float32, float3 | |||
| 709 | 787 | // | |
| 710 | 788 | // </picture> | |
| 711 | 789 | func (x *PathBuilder) ConicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, WeightVar float32) { | |
| 790 | + | core.LazyRegister(&xPathBuilderConicTo, "GSK", "gsk_path_builder_conic_to", false) | |
| 791 | + | ||
| 712 | 792 | xPathBuilderConicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, WeightVar) | |
| 713 | 793 | } | |
| 714 | 794 | ||
| @@ -727,6 +807,8 @@ var xPathBuilderCubicTo func(uintptr, float32, float32, float32, float32, float3 | |||
| 727 | 807 | // | |
| 728 | 808 | // </picture> | |
| 729 | 809 | func (x *PathBuilder) CubicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, X3Var float32, Y3Var float32) { | |
| 810 | + | core.LazyRegister(&xPathBuilderCubicTo, "GSK", "gsk_path_builder_cubic_to", false) | |
| 811 | + | ||
| 730 | 812 | xPathBuilderCubicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, X3Var, Y3Var) | |
| 731 | 813 | } | |
| 732 | 814 | ||
| @@ -735,6 +817,8 @@ var xPathBuilderFreeToPath func(uintptr) uintptr | |||
| 735 | 817 | // Creates a new path from the current state of the | |
| 736 | 818 | // builder, and unrefs the builder. | |
| 737 | 819 | func (x *PathBuilder) FreeToPath() *Path { | |
| 820 | + | core.LazyRegister(&xPathBuilderFreeToPath, "GSK", "gsk_path_builder_free_to_path", false) | |
| 821 | + | ||
| 738 | 822 | cret := xPathBuilderFreeToPath(x.GoPointer()) | |
| 739 | 823 | if cret == 0 { | |
| 740 | 824 | return nil | |
| @@ -753,6 +837,8 @@ var xPathBuilderGetCurrentPoint func(uintptr) uintptr | |||
| 753 | 837 | // to `0, 0`. Note that this is different from cairo, which starts | |
| 754 | 838 | // out without a current point. | |
| 755 | 839 | func (x *PathBuilder) GetCurrentPoint() *graphene.Point { | |
| 840 | + | core.LazyRegister(&xPathBuilderGetCurrentPoint, "GSK", "gsk_path_builder_get_current_point", false) | |
| 841 | + | ||
| 756 | 842 | cret := xPathBuilderGetCurrentPoint(x.GoPointer()) | |
| 757 | 843 | if cret == 0 { | |
| 758 | 844 | return nil | |
| @@ -772,6 +858,8 @@ var xPathBuilderHtmlArcTo func(uintptr, float32, float32, float32, float32, floa | |||
| 772 | 858 | // the circle with the given radius touches the line from | |
| 773 | 859 | // @x1, @y1 to @x2, @y2. | |
| 774 | 860 | func (x *PathBuilder) HtmlArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, RadiusVar float32) { | |
| 861 | + | core.LazyRegister(&xPathBuilderHtmlArcTo, "GSK", "gsk_path_builder_html_arc_to", false) | |
| 862 | + | ||
| 775 | 863 | xPathBuilderHtmlArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, RadiusVar) | |
| 776 | 864 | } | |
| 777 | 865 | ||
| @@ -787,6 +875,8 @@ var xPathBuilderLineTo func(uintptr, float32, float32) | |||
| 787 | 875 | // | |
| 788 | 876 | // </picture> | |
| 789 | 877 | func (x *PathBuilder) LineTo(XVar float32, YVar float32) { | |
| 878 | + | core.LazyRegister(&xPathBuilderLineTo, "GSK", "gsk_path_builder_line_to", false) | |
| 879 | + | ||
| 790 | 880 | xPathBuilderLineTo(x.GoPointer(), XVar, YVar) | |
| 791 | 881 | } | |
| 792 | 882 | ||
| @@ -798,6 +888,8 @@ var xPathBuilderMoveTo func(uintptr, float32, float32) | |||
| 798 | 888 | // call will result in a contour made up of a single point. | |
| 799 | 889 | // The second call will start a new contour. | |
| 800 | 890 | func (x *PathBuilder) MoveTo(XVar float32, YVar float32) { | |
| 891 | + | core.LazyRegister(&xPathBuilderMoveTo, "GSK", "gsk_path_builder_move_to", false) | |
| 892 | + | ||
| 801 | 893 | xPathBuilderMoveTo(x.GoPointer(), XVar, YVar) | |
| 802 | 894 | } | |
| 803 | 895 | ||
| @@ -815,6 +907,8 @@ var xPathBuilderQuadTo func(uintptr, float32, float32, float32, float32) | |||
| 815 | 907 | // | |
| 816 | 908 | // </picture> | |
| 817 | 909 | func (x *PathBuilder) QuadTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | |
| 910 | + | core.LazyRegister(&xPathBuilderQuadTo, "GSK", "gsk_path_builder_quad_to", false) | |
| 911 | + | ||
| 818 | 912 | xPathBuilderQuadTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | |
| 819 | 913 | } | |
| 820 | 914 | ||
| @@ -825,6 +919,8 @@ var xPathBuilderRef func(uintptr) uintptr | |||
| 825 | 919 | // This function is intended primarily for language bindings. | |
| 826 | 920 | // `GskPathBuilder` objects should not be kept around. | |
| 827 | 921 | func (x *PathBuilder) Ref() *PathBuilder { | |
| 922 | + | core.LazyRegister(&xPathBuilderRef, "GSK", "gsk_path_builder_ref", false) | |
| 923 | + | ||
| 828 | 924 | cret := xPathBuilderRef(x.GoPointer()) | |
| 829 | 925 | if cret == 0 { | |
| 830 | 926 | return nil | |
| @@ -841,6 +937,8 @@ var xPathBuilderRelArcTo func(uintptr, float32, float32, float32, float32) | |||
| 841 | 937 | // | |
| 842 | 938 | // This is the relative version of [method@Gsk.PathBuilder.arc_to]. | |
| 843 | 939 | func (x *PathBuilder) RelArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | |
| 940 | + | core.LazyRegister(&xPathBuilderRelArcTo, "GSK", "gsk_path_builder_rel_arc_to", false) | |
| 941 | + | ||
| 844 | 942 | xPathBuilderRelArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | |
| 845 | 943 | } | |
| 846 | 944 | ||
| @@ -854,6 +952,8 @@ var xPathBuilderRelConicTo func(uintptr, float32, float32, float32, float32, flo | |||
| 854 | 952 | // | |
| 855 | 953 | // This is the relative version of [method@Gsk.PathBuilder.conic_to]. | |
| 856 | 954 | func (x *PathBuilder) RelConicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, WeightVar float32) { | |
| 955 | + | core.LazyRegister(&xPathBuilderRelConicTo, "GSK", "gsk_path_builder_rel_conic_to", false) | |
| 956 | + | ||
| 857 | 957 | xPathBuilderRelConicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, WeightVar) | |
| 858 | 958 | } | |
| 859 | 959 | ||
| @@ -867,6 +967,8 @@ var xPathBuilderRelCubicTo func(uintptr, float32, float32, float32, float32, flo | |||
| 867 | 967 | // | |
| 868 | 968 | // This is the relative version of [method@Gsk.PathBuilder.cubic_to]. | |
| 869 | 969 | func (x *PathBuilder) RelCubicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, X3Var float32, Y3Var float32) { | |
| 970 | + | core.LazyRegister(&xPathBuilderRelCubicTo, "GSK", "gsk_path_builder_rel_cubic_to", false) | |
| 971 | + | ||
| 870 | 972 | xPathBuilderRelCubicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, X3Var, Y3Var) | |
| 871 | 973 | } | |
| 872 | 974 | ||
| @@ -878,6 +980,8 @@ var xPathBuilderRelHtmlArcTo func(uintptr, float32, float32, float32, float32, f | |||
| 878 | 980 | // | |
| 879 | 981 | // This is the relative version of [method@Gsk.PathBuilder.html_arc_to]. | |
| 880 | 982 | func (x *PathBuilder) RelHtmlArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, RadiusVar float32) { | |
| 983 | + | core.LazyRegister(&xPathBuilderRelHtmlArcTo, "GSK", "gsk_path_builder_rel_html_arc_to", false) | |
| 984 | + | ||
| 881 | 985 | xPathBuilderRelHtmlArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, RadiusVar) | |
| 882 | 986 | } | |
| 883 | 987 | ||
| @@ -888,6 +992,8 @@ var xPathBuilderRelLineTo func(uintptr, float32, float32) | |||
| 888 | 992 | // | |
| 889 | 993 | // This is the relative version of [method@Gsk.PathBuilder.line_to]. | |
| 890 | 994 | func (x *PathBuilder) RelLineTo(XVar float32, YVar float32) { | |
| 995 | + | core.LazyRegister(&xPathBuilderRelLineTo, "GSK", "gsk_path_builder_rel_line_to", false) | |
| 996 | + | ||
| 891 | 997 | xPathBuilderRelLineTo(x.GoPointer(), XVar, YVar) | |
| 892 | 998 | } | |
| 893 | 999 | ||
| @@ -898,6 +1004,8 @@ var xPathBuilderRelMoveTo func(uintptr, float32, float32) | |||
| 898 | 1004 | // | |
| 899 | 1005 | // This is the relative version of [method@Gsk.PathBuilder.move_to]. | |
| 900 | 1006 | func (x *PathBuilder) RelMoveTo(XVar float32, YVar float32) { | |
| 1007 | + | core.LazyRegister(&xPathBuilderRelMoveTo, "GSK", "gsk_path_builder_rel_move_to", false) | |
| 1008 | + | ||
| 901 | 1009 | xPathBuilderRelMoveTo(x.GoPointer(), XVar, YVar) | |
| 902 | 1010 | } | |
| 903 | 1011 | ||
| @@ -910,6 +1018,8 @@ var xPathBuilderRelQuadTo func(uintptr, float32, float32, float32, float32) | |||
| 910 | 1018 | // | |
| 911 | 1019 | // This is the relative version of [method@Gsk.PathBuilder.quad_to]. | |
| 912 | 1020 | func (x *PathBuilder) RelQuadTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | |
| 1021 | + | core.LazyRegister(&xPathBuilderRelQuadTo, "GSK", "gsk_path_builder_rel_quad_to", false) | |
| 1022 | + | ||
| 913 | 1023 | xPathBuilderRelQuadTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | |
| 914 | 1024 | } | |
| 915 | 1025 | ||
| @@ -921,6 +1031,8 @@ var xPathBuilderRelSvgArcTo func(uintptr, float32, float32, float32, bool, bool, | |||
| 921 | 1031 | // | |
| 922 | 1032 | // This is the relative version of [method@Gsk.PathBuilder.svg_arc_to]. | |
| 923 | 1033 | func (x *PathBuilder) RelSvgArcTo(RxVar float32, RyVar float32, XAxisRotationVar float32, LargeArcVar bool, PositiveSweepVar bool, XVar float32, YVar float32) { | |
| 1034 | + | core.LazyRegister(&xPathBuilderRelSvgArcTo, "GSK", "gsk_path_builder_rel_svg_arc_to", false) | |
| 1035 | + | ||
| 924 | 1036 | xPathBuilderRelSvgArcTo(x.GoPointer(), RxVar, RyVar, XAxisRotationVar, LargeArcVar, PositiveSweepVar, XVar, YVar) | |
| 925 | 1037 | } | |
| 926 | 1038 | ||
| @@ -934,6 +1046,8 @@ var xPathBuilderSvgArcTo func(uintptr, float32, float32, float32, bool, bool, fl | |||
| 934 | 1046 | // | |
| 935 | 1047 | // After this, @x, @y will be the new current point. | |
| 936 | 1048 | func (x *PathBuilder) SvgArcTo(RxVar float32, RyVar float32, XAxisRotationVar float32, LargeArcVar bool, PositiveSweepVar bool, XVar float32, YVar float32) { | |
| 1049 | + | core.LazyRegister(&xPathBuilderSvgArcTo, "GSK", "gsk_path_builder_svg_arc_to", false) | |
| 1050 | + | ||
| 937 | 1051 | xPathBuilderSvgArcTo(x.GoPointer(), RxVar, RyVar, XAxisRotationVar, LargeArcVar, PositiveSweepVar, XVar, YVar) | |
| 938 | 1052 | } | |
| 939 | 1053 | ||
| @@ -949,6 +1063,8 @@ var xPathBuilderToPath func(uintptr) uintptr | |||
| 949 | 1063 | // This function is intended primarily for language bindings. | |
| 950 | 1064 | // C code should use [method@Gsk.PathBuilder.free_to_path]. | |
| 951 | 1065 | func (x *PathBuilder) ToPath() *Path { | |
| 1066 | + | core.LazyRegister(&xPathBuilderToPath, "GSK", "gsk_path_builder_to_path", false) | |
| 1067 | + | ||
| 952 | 1068 | cret := xPathBuilderToPath(x.GoPointer()) | |
| 953 | 1069 | if cret == 0 { | |
| 954 | 1070 | return nil | |
| @@ -960,6 +1076,8 @@ var xPathBuilderUnref func(uintptr) | |||
| 960 | 1076 | ||
| 961 | 1077 | // Releases a reference on the given builder. | |
| 962 | 1078 | func (x *PathBuilder) Unref() { | |
| 1079 | + | core.LazyRegister(&xPathBuilderUnref, "GSK", "gsk_path_builder_unref", false) | |
| 1080 | + | ||
| 963 | 1081 | xPathBuilderUnref(x.GoPointer()) | |
| 964 | 1082 | } | |
| 965 | 1083 | ||
| @@ -979,6 +1097,7 @@ type PathMeasure struct { | |||
| 979 | 1097 | var xPathMeasureGLibType func() types.GType | |
| 980 | 1098 | ||
| 981 | 1099 | func PathMeasureGLibType() types.GType { | |
| 1100 | + | core.LazyRegister(&xPathMeasureGLibType, "GSK", "gsk_path_measure_get_type", false) | |
| 982 | 1101 | return xPathMeasureGLibType() | |
| 983 | 1102 | } | |
| 984 | 1103 | ||
| @@ -999,6 +1118,8 @@ var xNewPathMeasure func(*Path) uintptr | |||
| 999 | 1118 | // Creates a measure object for the given @path with the | |
| 1000 | 1119 | // default tolerance. | |
| 1001 | 1120 | func NewPathMeasure(PathVar *Path) *PathMeasure { | |
| 1121 | + | core.LazyRegister(&xNewPathMeasure, "GSK", "gsk_path_measure_new", false) | |
| 1122 | + | ||
| 1002 | 1123 | cret := xNewPathMeasure(PathVar) | |
| 1003 | 1124 | if cret == 0 { | |
| 1004 | 1125 | return nil | |
| @@ -1010,6 +1131,8 @@ var xNewPathMeasureWithTolerance func(*Path, float32) uintptr | |||
| 1010 | 1131 | ||
| 1011 | 1132 | // Creates a measure object for the given @path and @tolerance. | |
| 1012 | 1133 | func NewPathMeasureWithTolerance(PathVar *Path, ToleranceVar float32) *PathMeasure { | |
| 1134 | + | core.LazyRegister(&xNewPathMeasureWithTolerance, "GSK", "gsk_path_measure_new_with_tolerance", false) | |
| 1135 | + | ||
| 1013 | 1136 | cret := xNewPathMeasureWithTolerance(PathVar, ToleranceVar) | |
| 1014 | 1137 | if cret == 0 { | |
| 1015 | 1138 | return nil | |
| @@ -1023,6 +1146,8 @@ var xPathMeasureGetLength func(uintptr) float32 | |||
| 1023 | 1146 | // | |
| 1024 | 1147 | // The length is cached, so this function does not do any work. | |
| 1025 | 1148 | func (x *PathMeasure) GetLength() float32 { | |
| 1149 | + | core.LazyRegister(&xPathMeasureGetLength, "GSK", "gsk_path_measure_get_length", false) | |
| 1150 | + | ||
| 1026 | 1151 | cret := xPathMeasureGetLength(x.GoPointer()) | |
| 1027 | 1152 | return cret | |
| 1028 | 1153 | } | |
| @@ -1031,6 +1156,8 @@ var xPathMeasureGetPath func(uintptr) uintptr | |||
| 1031 | 1156 | ||
| 1032 | 1157 | // Returns the path that the measure was created for. | |
| 1033 | 1158 | func (x *PathMeasure) GetPath() *Path { | |
| 1159 | + | core.LazyRegister(&xPathMeasureGetPath, "GSK", "gsk_path_measure_get_path", false) | |
| 1160 | + | ||
| 1034 | 1161 | cret := xPathMeasureGetPath(x.GoPointer()) | |
| 1035 | 1162 | if cret == 0 { | |
| 1036 | 1163 | return nil | |
| @@ -1044,6 +1171,8 @@ var xPathMeasureGetPoint func(uintptr, float32, *PathPoint) bool | |||
| 1044 | 1171 | // | |
| 1045 | 1172 | // An empty path has no points, so false is returned in that case. | |
| 1046 | 1173 | func (x *PathMeasure) GetPoint(DistanceVar float32, ResultVar *PathPoint) bool { | |
| 1174 | + | core.LazyRegister(&xPathMeasureGetPoint, "GSK", "gsk_path_measure_get_point", false) | |
| 1175 | + | ||
| 1047 | 1176 | cret := xPathMeasureGetPoint(x.GoPointer(), DistanceVar, ResultVar) | |
| 1048 | 1177 | return cret | |
| 1049 | 1178 | } | |
| @@ -1052,6 +1181,8 @@ var xPathMeasureGetTolerance func(uintptr) float32 | |||
| 1052 | 1181 | ||
| 1053 | 1182 | // Returns the tolerance that the measure was created with. | |
| 1054 | 1183 | func (x *PathMeasure) GetTolerance() float32 { | |
| 1184 | + | core.LazyRegister(&xPathMeasureGetTolerance, "GSK", "gsk_path_measure_get_tolerance", false) | |
| 1185 | + | ||
| 1055 | 1186 | cret := xPathMeasureGetTolerance(x.GoPointer()) | |
| 1056 | 1187 | return cret | |
| 1057 | 1188 | } | |
| @@ -1060,6 +1191,8 @@ var xPathMeasureRef func(uintptr) uintptr | |||
| 1060 | 1191 | ||
| 1061 | 1192 | // Increases the reference count of a `GskPathMeasure` by one. | |
| 1062 | 1193 | func (x *PathMeasure) Ref() *PathMeasure { | |
| 1194 | + | core.LazyRegister(&xPathMeasureRef, "GSK", "gsk_path_measure_ref", false) | |
| 1195 | + | ||
| 1063 | 1196 | cret := xPathMeasureRef(x.GoPointer()) | |
| 1064 | 1197 | if cret == 0 { | |
| 1065 | 1198 | return nil | |
| @@ -1073,6 +1206,8 @@ var xPathMeasureUnref func(uintptr) | |||
| 1073 | 1206 | // | |
| 1074 | 1207 | // If the resulting reference count is zero, frees the object. | |
| 1075 | 1208 | func (x *PathMeasure) Unref() { | |
| 1209 | + | core.LazyRegister(&xPathMeasureUnref, "GSK", "gsk_path_measure_unref", false) | |
| 1210 | + | ||
| 1076 | 1211 | xPathMeasureUnref(x.GoPointer()) | |
| 1077 | 1212 | } | |
| 1078 | 1213 | ||
| @@ -1169,6 +1304,7 @@ type RenderReplay struct { | |||
| 1169 | 1304 | var xRenderReplayGLibType func() types.GType | |
| 1170 | 1305 | ||
| 1171 | 1306 | func RenderReplayGLibType() types.GType { | |
| 1307 | + | core.LazyRegister(&xRenderReplayGLibType, "GSK", "gsk_render_replay_get_type", false) | |
| 1172 | 1308 | return xRenderReplayGLibType() | |
| 1173 | 1309 | } | |
| 1174 | 1310 | ||
| @@ -1188,6 +1324,8 @@ var xNewRenderReplay func() uintptr | |||
| 1188 | 1324 | ||
| 1189 | 1325 | // Creates a new replay object to replay nodes. | |
| 1190 | 1326 | func NewRenderReplay() *RenderReplay { | |
| 1327 | + | core.LazyRegister(&xNewRenderReplay, "GSK", "gsk_render_replay_new", false) | |
| 1328 | + | ||
| 1191 | 1329 | cret := xNewRenderReplay() | |
| 1192 | 1330 | if cret == 0 { | |
| 1193 | 1331 | return nil | |
| @@ -1209,6 +1347,7 @@ var xRenderReplayDefault func(uintptr, uintptr) uintptr | |||
| 1209 | 1347 | // callbacks return NULL. In that case, this function will return | |
| 1210 | 1348 | // NULL, too. | |
| 1211 | 1349 | func (x *RenderReplay) Default(NodeVar *RenderNode) *RenderNode { | |
| 1350 | + | core.LazyRegister(&xRenderReplayDefault, "GSK", "gsk_render_replay_default", false) | |
| 1212 | 1351 | var cls *RenderNode | |
| 1213 | 1352 | ||
| 1214 | 1353 | cret := xRenderReplayDefault(x.GoPointer(), NodeVar.GoPointer()) | |
| @@ -1225,6 +1364,7 @@ var xRenderReplayFilterFont func(uintptr, uintptr) uintptr | |||
| 1225 | 1364 | ||
| 1226 | 1365 | // Filters a font using the current filter function. | |
| 1227 | 1366 | func (x *RenderReplay) FilterFont(FontVar *pango.Font) *pango.Font { | |
| 1367 | + | core.LazyRegister(&xRenderReplayFilterFont, "GSK", "gsk_render_replay_filter_font", false) | |
| 1228 | 1368 | var cls *pango.Font | |
| 1229 | 1369 | ||
| 1230 | 1370 | cret := xRenderReplayFilterFont(x.GoPointer(), FontVar.GoPointer()) | |
| @@ -1247,6 +1387,7 @@ var xRenderReplayFilterNode func(uintptr, uintptr) uintptr | |||
| 1247 | 1387 | // If no filter node is set, [method@Gsk.RenderReplay.default] is | |
| 1248 | 1388 | // called instead. | |
| 1249 | 1389 | func (x *RenderReplay) FilterNode(NodeVar *RenderNode) *RenderNode { | |
| 1390 | + | core.LazyRegister(&xRenderReplayFilterNode, "GSK", "gsk_render_replay_filter_node", false) | |
| 1250 | 1391 | var cls *RenderNode | |
| 1251 | 1392 | ||
| 1252 | 1393 | cret := xRenderReplayFilterNode(x.GoPointer(), NodeVar.GoPointer()) | |
| @@ -1263,6 +1404,7 @@ var xRenderReplayFilterTexture func(uintptr, uintptr) uintptr | |||
| 1263 | 1404 | ||
| 1264 | 1405 | // Filters a texture using the current filter function. | |
| 1265 | 1406 | func (x *RenderReplay) FilterTexture(TextureVar *gdk.Texture) *gdk.Texture { | |
| 1407 | + | core.LazyRegister(&xRenderReplayFilterTexture, "GSK", "gsk_render_replay_filter_texture", false) | |
| 1266 | 1408 | var cls *gdk.Texture | |
| 1267 | 1409 | ||
| 1268 | 1410 | cret := xRenderReplayFilterTexture(x.GoPointer(), TextureVar.GoPointer()) | |
| @@ -1279,6 +1421,8 @@ var xRenderReplayFree func(uintptr) | |||
| 1279 | 1421 | ||
| 1280 | 1422 | // Frees a `GskRenderReplay`. | |
| 1281 | 1423 | func (x *RenderReplay) Free() { | |
| 1424 | + | core.LazyRegister(&xRenderReplayFree, "GSK", "gsk_render_replay_free", false) | |
| 1425 | + | ||
| 1282 | 1426 | xRenderReplayFree(x.GoPointer()) | |
| 1283 | 1427 | } | |
| 1284 | 1428 | ||
| @@ -1290,6 +1434,8 @@ var xRenderReplaySetFontFilter func(uintptr, uintptr, uintptr, uintptr) | |||
| 1290 | 1434 | // You can call [method@GskRenderReplay.filter_font] to filter | |
| 1291 | 1435 | // a font yourself. | |
| 1292 | 1436 | func (x *RenderReplay) SetFontFilter(FilterVar *RenderReplayFontFilter, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | |
| 1437 | + | core.LazyRegister(&xRenderReplaySetFontFilter, "GSK", "gsk_render_replay_set_font_filter", false) | |
| 1438 | + | ||
| 1293 | 1439 | xRenderReplaySetFontFilter(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | |
| 1294 | 1440 | } | |
| 1295 | 1441 | ||
| @@ -1309,6 +1455,8 @@ var xRenderReplaySetNodeFilter func(uintptr, uintptr, uintptr, uintptr) | |||
| 1309 | 1455 | // - call [method@Gsk.RenderReplay.default] to have the default handler | |
| 1310 | 1456 | // run for this node, which calls your function on its children | |
| 1311 | 1457 | func (x *RenderReplay) SetNodeFilter(FilterVar *RenderReplayNodeFilter, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | |
| 1458 | + | core.LazyRegister(&xRenderReplaySetNodeFilter, "GSK", "gsk_render_replay_set_node_filter", false) | |
| 1459 | + | ||
| 1312 | 1460 | xRenderReplaySetNodeFilter(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | |
| 1313 | 1461 | } | |
| 1314 | 1462 | ||
| @@ -1320,6 +1468,8 @@ var xRenderReplaySetTextureFilter func(uintptr, uintptr, uintptr, uintptr) | |||
| 1320 | 1468 | // You can call [method@GskRenderReplay.filter_texture] to filter | |
| 1321 | 1469 | // a texture yourself. | |
| 1322 | 1470 | func (x *RenderReplay) SetTextureFilter(FilterVar *RenderReplayTextureFilter, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | |
| 1471 | + | core.LazyRegister(&xRenderReplaySetTextureFilter, "GSK", "gsk_render_replay_set_texture_filter", false) | |
| 1472 | + | ||
| 1323 | 1473 | xRenderReplaySetTextureFilter(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | |
| 1324 | 1474 | } | |
| 1325 | 1475 | ||
| @@ -1331,6 +1481,7 @@ type Stroke struct { | |||
| 1331 | 1481 | var xStrokeGLibType func() types.GType | |
| 1332 | 1482 | ||
| 1333 | 1483 | func StrokeGLibType() types.GType { | |
| 1484 | + | core.LazyRegister(&xStrokeGLibType, "GSK", "gsk_stroke_get_type", false) | |
| 1334 | 1485 | return xStrokeGLibType() | |
| 1335 | 1486 | } | |
| 1336 | 1487 | ||
| @@ -1350,6 +1501,8 @@ var xNewStroke func(float32) uintptr | |||
| 1350 | 1501 | ||
| 1351 | 1502 | // Creates a new `GskStroke` with the given @line_width. | |
| 1352 | 1503 | func NewStroke(LineWidthVar float32) *Stroke { | |
| 1504 | + | core.LazyRegister(&xNewStroke, "GSK", "gsk_stroke_new", false) | |
| 1505 | + | ||
| 1353 | 1506 | cret := xNewStroke(LineWidthVar) | |
| 1354 | 1507 | if cret == 0 { | |
| 1355 | 1508 | return nil | |
| @@ -1361,6 +1514,8 @@ var xStrokeCopy func(uintptr) uintptr | |||
| 1361 | 1514 | ||
| 1362 | 1515 | // Creates a copy of a `GskStroke`. | |
| 1363 | 1516 | func (x *Stroke) Copy() *Stroke { | |
| 1517 | + | core.LazyRegister(&xStrokeCopy, "GSK", "gsk_stroke_copy", false) | |
| 1518 | + | ||
| 1364 | 1519 | cret := xStrokeCopy(x.GoPointer()) | |
| 1365 | 1520 | if cret == 0 { | |
| 1366 | 1521 | return nil | |
| @@ -1372,6 +1527,8 @@ var xStrokeFree func(uintptr) | |||
| 1372 | 1527 | ||
| 1373 | 1528 | // Frees a `GskStroke`. | |
| 1374 | 1529 | func (x *Stroke) Free() { | |
| 1530 | + | core.LazyRegister(&xStrokeFree, "GSK", "gsk_stroke_free", false) | |
| 1531 | + | ||
| 1375 | 1532 | xStrokeFree(x.GoPointer()) | |
| 1376 | 1533 | } | |
| 1377 | 1534 | ||
| @@ -1379,6 +1536,8 @@ var xStrokeGetDash func(uintptr, *uint) uintptr | |||
| 1379 | 1536 | ||
| 1380 | 1537 | // Gets the dash array in use. | |
| 1381 | 1538 | func (x *Stroke) GetDash(NDashVar *uint) uintptr { | |
| 1539 | + | core.LazyRegister(&xStrokeGetDash, "GSK", "gsk_stroke_get_dash", false) | |
| 1540 | + | ||
| 1382 | 1541 | cret := xStrokeGetDash(x.GoPointer(), NDashVar) | |
| 1383 | 1542 | return cret | |
| 1384 | 1543 | } | |
| @@ -1387,6 +1546,8 @@ var xStrokeGetDashOffset func(uintptr) float32 | |||
| 1387 | 1546 | ||
| 1388 | 1547 | // Gets the dash offset. | |
| 1389 | 1548 | func (x *Stroke) GetDashOffset() float32 { | |
| 1549 | + | core.LazyRegister(&xStrokeGetDashOffset, "GSK", "gsk_stroke_get_dash_offset", false) | |
| 1550 | + | ||
| 1390 | 1551 | cret := xStrokeGetDashOffset(x.GoPointer()) | |
| 1391 | 1552 | return cret | |
| 1392 | 1553 | } | |
| @@ -1397,6 +1558,8 @@ var xStrokeGetLineCap func(uintptr) LineCap | |||
| 1397 | 1558 | // | |
| 1398 | 1559 | // See [enum@Gsk.LineCap] for details. | |
| 1399 | 1560 | func (x *Stroke) GetLineCap() LineCap { | |
| 1561 | + | core.LazyRegister(&xStrokeGetLineCap, "GSK", "gsk_stroke_get_line_cap", false) | |
| 1562 | + | ||
| 1400 | 1563 | cret := xStrokeGetLineCap(x.GoPointer()) | |
| 1401 | 1564 | return cret | |
| 1402 | 1565 | } | |
| @@ -1407,6 +1570,8 @@ var xStrokeGetLineJoin func(uintptr) LineJoin | |||
| 1407 | 1570 | // | |
| 1408 | 1571 | // See [enum@Gsk.LineJoin] for details. | |
| 1409 | 1572 | func (x *Stroke) GetLineJoin() LineJoin { | |
| 1573 | + | core.LazyRegister(&xStrokeGetLineJoin, "GSK", "gsk_stroke_get_line_join", false) | |
| 1574 | + | ||
| 1410 | 1575 | cret := xStrokeGetLineJoin(x.GoPointer()) | |
| 1411 | 1576 | return cret | |
| 1412 | 1577 | } | |
| @@ -1415,6 +1580,8 @@ var xStrokeGetLineWidth func(uintptr) float32 | |||
| 1415 | 1580 | ||
| 1416 | 1581 | // Gets the line width used. | |
| 1417 | 1582 | func (x *Stroke) GetLineWidth() float32 { | |
| 1583 | + | core.LazyRegister(&xStrokeGetLineWidth, "GSK", "gsk_stroke_get_line_width", false) | |
| 1584 | + | ||
| 1418 | 1585 | cret := xStrokeGetLineWidth(x.GoPointer()) | |
| 1419 | 1586 | return cret | |
| 1420 | 1587 | } | |
| @@ -1423,6 +1590,8 @@ var xStrokeGetMiterLimit func(uintptr) float32 | |||
| 1423 | 1590 | ||
| 1424 | 1591 | // Gets the miter limit. | |
| 1425 | 1592 | func (x *Stroke) GetMiterLimit() float32 { | |
| 1593 | + | core.LazyRegister(&xStrokeGetMiterLimit, "GSK", "gsk_stroke_get_miter_limit", false) | |
| 1594 | + | ||
| 1426 | 1595 | cret := xStrokeGetMiterLimit(x.GoPointer()) | |
| 1427 | 1596 | return cret | |
| 1428 | 1597 | } | |
| @@ -1453,6 +1622,8 @@ var xStrokeSetDash func(uintptr, []float32, uint) | |||
| 1453 | 1622 | // You can specify a starting offset into the dash with | |
| 1454 | 1623 | // [method@Gsk.Stroke.set_dash_offset]. | |
| 1455 | 1624 | func (x *Stroke) SetDash(DashVar []float32, NDashVar uint) { | |
| 1625 | + | core.LazyRegister(&xStrokeSetDash, "GSK", "gsk_stroke_set_dash", false) | |
| 1626 | + | ||
| 1456 | 1627 | xStrokeSetDash(x.GoPointer(), DashVar, NDashVar) | |
| 1457 | 1628 | } | |
| 1458 | 1629 | ||
| @@ -1465,6 +1636,8 @@ var xStrokeSetDashOffset func(uintptr, float32) | |||
| 1465 | 1636 | // | |
| 1466 | 1637 | // See [method@Gsk.Stroke.set_dash] for more details on dashing. | |
| 1467 | 1638 | func (x *Stroke) SetDashOffset(OffsetVar float32) { | |
| 1639 | + | core.LazyRegister(&xStrokeSetDashOffset, "GSK", "gsk_stroke_set_dash_offset", false) | |
| 1640 | + | ||
| 1468 | 1641 | xStrokeSetDashOffset(x.GoPointer(), OffsetVar) | |
| 1469 | 1642 | } | |
| 1470 | 1643 | ||
| @@ -1474,6 +1647,8 @@ var xStrokeSetLineCap func(uintptr, LineCap) | |||
| 1474 | 1647 | // | |
| 1475 | 1648 | // See [enum@Gsk.LineCap] for details. | |
| 1476 | 1649 | func (x *Stroke) SetLineCap(LineCapVar LineCap) { | |
| 1650 | + | core.LazyRegister(&xStrokeSetLineCap, "GSK", "gsk_stroke_set_line_cap", false) | |
| 1651 | + | ||
| 1477 | 1652 | xStrokeSetLineCap(x.GoPointer(), LineCapVar) | |
| 1478 | 1653 | } | |
| 1479 | 1654 | ||
| @@ -1483,6 +1658,8 @@ var xStrokeSetLineJoin func(uintptr, LineJoin) | |||
| 1483 | 1658 | // | |
| 1484 | 1659 | // See [enum@Gsk.LineJoin] for details. | |
| 1485 | 1660 | func (x *Stroke) SetLineJoin(LineJoinVar LineJoin) { | |
| 1661 | + | core.LazyRegister(&xStrokeSetLineJoin, "GSK", "gsk_stroke_set_line_join", false) | |
| 1662 | + | ||
| 1486 | 1663 | xStrokeSetLineJoin(x.GoPointer(), LineJoinVar) | |
| 1487 | 1664 | } | |
| 1488 | 1665 | ||
| @@ -1492,6 +1669,8 @@ var xStrokeSetLineWidth func(uintptr, float32) | |||
| 1492 | 1669 | // | |
| 1493 | 1670 | // The line width must be >= 0. | |
| 1494 | 1671 | func (x *Stroke) SetLineWidth(LineWidthVar float32) { | |
| 1672 | + | core.LazyRegister(&xStrokeSetLineWidth, "GSK", "gsk_stroke_set_line_width", false) | |
| 1673 | + | ||
| 1495 | 1674 | xStrokeSetLineWidth(x.GoPointer(), LineWidthVar) | |
| 1496 | 1675 | } | |
| 1497 | 1676 | ||
| @@ -1507,6 +1686,8 @@ var xStrokeSetMiterLimit func(uintptr, float32) | |||
| 1507 | 1686 | // For joins of type [enum@Gsk.LineJoin.miter] that exceed the miter limit, | |
| 1508 | 1687 | // the join gets rendered as if it was of type [enum@Gsk.LineJoin.bevel]. | |
| 1509 | 1688 | func (x *Stroke) SetMiterLimit(LimitVar float32) { | |
| 1689 | + | core.LazyRegister(&xStrokeSetMiterLimit, "GSK", "gsk_stroke_set_miter_limit", false) | |
| 1690 | + | ||
| 1510 | 1691 | xStrokeSetMiterLimit(x.GoPointer(), LimitVar) | |
| 1511 | 1692 | } | |
| 1512 | 1693 | ||
| @@ -1515,6 +1696,8 @@ var xStrokeToCairo func(uintptr, *cairo.Context) | |||
| 1515 | 1696 | // A helper function that sets the stroke parameters | |
| 1516 | 1697 | // of a cairo context from a `GskStroke`. | |
| 1517 | 1698 | func (x *Stroke) ToCairo(CrVar *cairo.Context) { | |
| 1699 | + | core.LazyRegister(&xStrokeToCairo, "GSK", "gsk_stroke_to_cairo", false) | |
| 1700 | + | ||
| 1518 | 1701 | xStrokeToCairo(x.GoPointer(), CrVar) | |
| 1519 | 1702 | } | |
| 1520 | 1703 | ||
| @@ -1534,6 +1717,7 @@ type Transform struct { | |||
| 1534 | 1717 | var xTransformGLibType func() types.GType | |
| 1535 | 1718 | ||
| 1536 | 1719 | func TransformGLibType() types.GType { | |
| 1720 | + | core.LazyRegister(&xTransformGLibType, "GSK", "gsk_transform_get_type", false) | |
| 1537 | 1721 | return xTransformGLibType() | |
| 1538 | 1722 | } | |
| 1539 | 1723 | ||
| @@ -1556,6 +1740,8 @@ var xNewTransform func() uintptr | |||
| 1556 | 1740 | // This function is meant to be used by language | |
| 1557 | 1741 | // bindings. For C code, this is equivalent to using `NULL`. | |
| 1558 | 1742 | func NewTransform() *Transform { | |
| 1743 | + | core.LazyRegister(&xNewTransform, "GSK", "gsk_transform_new", false) | |
| 1744 | + | ||
| 1559 | 1745 | cret := xNewTransform() | |
| 1560 | 1746 | if cret == 0 { | |
| 1561 | 1747 | return nil | |
| @@ -1567,6 +1753,8 @@ var xTransformEqual func(uintptr, *Transform) bool | |||
| 1567 | 1753 | ||
| 1568 | 1754 | // Checks two transforms for equality. | |
| 1569 | 1755 | func (x *Transform) Equal(SecondVar *Transform) bool { | |
| 1756 | + | core.LazyRegister(&xTransformEqual, "GSK", "gsk_transform_equal", false) | |
| 1757 | + | ||
| 1570 | 1758 | cret := xTransformEqual(x.GoPointer(), SecondVar) | |
| 1571 | 1759 | return cret | |
| 1572 | 1760 | } | |
| @@ -1575,6 +1763,8 @@ var xTransformGetCategory func(uintptr) TransformCategory | |||
| 1575 | 1763 | ||
| 1576 | 1764 | // Returns the category this transform belongs to. | |
| 1577 | 1765 | func (x *Transform) GetCategory() TransformCategory { | |
| 1766 | + | core.LazyRegister(&xTransformGetCategory, "GSK", "gsk_transform_get_category", false) | |
| 1767 | + | ||
| 1578 | 1768 | cret := xTransformGetCategory(x.GoPointer()) | |
| 1579 | 1769 | return cret | |
| 1580 | 1770 | } | |
| @@ -1592,6 +1782,8 @@ var xTransformInvert func(uintptr) uintptr | |||
| 1592 | 1782 | // This function consumes @self. Use [method@Gsk.Transform.ref] first | |
| 1593 | 1783 | // if you want to keep it around. | |
| 1594 | 1784 | func (x *Transform) Invert() *Transform { | |
| 1785 | + | core.LazyRegister(&xTransformInvert, "GSK", "gsk_transform_invert", false) | |
| 1786 | + | ||
| 1595 | 1787 | cret := xTransformInvert(x.GoPointer()) | |
| 1596 | 1788 | if cret == 0 { | |
| 1597 | 1789 | return nil | |
| @@ -1606,6 +1798,8 @@ var xTransformMatrix func(uintptr, *graphene.Matrix) uintptr | |||
| 1606 | 1798 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1607 | 1799 | // if you want to keep it around. | |
| 1608 | 1800 | func (x *Transform) Matrix(MatrixVar *graphene.Matrix) *Transform { | |
| 1801 | + | core.LazyRegister(&xTransformMatrix, "GSK", "gsk_transform_matrix", false) | |
| 1802 | + | ||
| 1609 | 1803 | cret := xTransformMatrix(x.GoPointer(), MatrixVar) | |
| 1610 | 1804 | if cret == 0 { | |
| 1611 | 1805 | return nil | |
| @@ -1624,6 +1818,8 @@ var xTransformMatrix2d func(uintptr, float32, float32, float32, float32, float32 | |||
| 1624 | 1818 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1625 | 1819 | // if you want to keep it around. | |
| 1626 | 1820 | func (x *Transform) Matrix2d(XxVar float32, YxVar float32, XyVar float32, YyVar float32, DxVar float32, DyVar float32) *Transform { | |
| 1821 | + | core.LazyRegister(&xTransformMatrix2d, "GSK", "gsk_transform_matrix_2d", false) | |
| 1822 | + | ||
| 1627 | 1823 | cret := xTransformMatrix2d(x.GoPointer(), XxVar, YxVar, XyVar, YyVar, DxVar, DyVar) | |
| 1628 | 1824 | if cret == 0 { | |
| 1629 | 1825 | return nil | |
| @@ -1643,6 +1839,8 @@ var xTransformPerspective func(uintptr, float32) uintptr | |||
| 1643 | 1839 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1644 | 1840 | // if you want to keep it around. | |
| 1645 | 1841 | func (x *Transform) Perspective(DepthVar float32) *Transform { | |
| 1842 | + | core.LazyRegister(&xTransformPerspective, "GSK", "gsk_transform_perspective", false) | |
| 1843 | + | ||
| 1646 | 1844 | cret := xTransformPerspective(x.GoPointer(), DepthVar) | |
| 1647 | 1845 | if cret == 0 { | |
| 1648 | 1846 | return nil | |
| @@ -1657,6 +1855,8 @@ var xTransformPrint func(uintptr, *glib.String) | |||
| 1657 | 1855 | // The result of this function can later be parsed with | |
| 1658 | 1856 | // [func@Gsk.Transform.parse]. | |
| 1659 | 1857 | func (x *Transform) Print(StringVar *glib.String) { | |
| 1858 | + | core.LazyRegister(&xTransformPrint, "GSK", "gsk_transform_print", false) | |
| 1859 | + | ||
| 1660 | 1860 | xTransformPrint(x.GoPointer(), StringVar) | |
| 1661 | 1861 | } | |
| 1662 | 1862 | ||
| @@ -1664,6 +1864,8 @@ var xTransformRef func(uintptr) uintptr | |||
| 1664 | 1864 | ||
| 1665 | 1865 | // Acquires a reference on the given transform. | |
| 1666 | 1866 | func (x *Transform) Ref() *Transform { | |
| 1867 | + | core.LazyRegister(&xTransformRef, "GSK", "gsk_transform_ref", false) | |
| 1868 | + | ||
| 1667 | 1869 | cret := xTransformRef(x.GoPointer()) | |
| 1668 | 1870 | if cret == 0 { | |
| 1669 | 1871 | return nil | |
| @@ -1680,6 +1882,8 @@ var xTransformRotate func(uintptr, float32) uintptr | |||
| 1680 | 1882 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1681 | 1883 | // if you want to keep it around. | |
| 1682 | 1884 | func (x *Transform) Rotate(AngleVar float32) *Transform { | |
| 1885 | + | core.LazyRegister(&xTransformRotate, "GSK", "gsk_transform_rotate", false) | |
| 1886 | + | ||
| 1683 | 1887 | cret := xTransformRotate(x.GoPointer(), AngleVar) | |
| 1684 | 1888 | if cret == 0 { | |
| 1685 | 1889 | return nil | |
| @@ -1696,6 +1900,8 @@ var xTransformRotate3d func(uintptr, float32, *graphene.Vec3) uintptr | |||
| 1696 | 1900 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1697 | 1901 | // if you want to keep it around. | |
| 1698 | 1902 | func (x *Transform) Rotate3d(AngleVar float32, AxisVar *graphene.Vec3) *Transform { | |
| 1903 | + | core.LazyRegister(&xTransformRotate3d, "GSK", "gsk_transform_rotate_3d", false) | |
| 1904 | + | ||
| 1699 | 1905 | cret := xTransformRotate3d(x.GoPointer(), AngleVar, AxisVar) | |
| 1700 | 1906 | if cret == 0 { | |
| 1701 | 1907 | return nil | |
| @@ -1712,6 +1918,8 @@ var xTransformScale func(uintptr, float32, float32) uintptr | |||
| 1712 | 1918 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1713 | 1919 | // if you want to keep it around. | |
| 1714 | 1920 | func (x *Transform) Scale(FactorXVar float32, FactorYVar float32) *Transform { | |
| 1921 | + | core.LazyRegister(&xTransformScale, "GSK", "gsk_transform_scale", false) | |
| 1922 | + | ||
| 1715 | 1923 | cret := xTransformScale(x.GoPointer(), FactorXVar, FactorYVar) | |
| 1716 | 1924 | if cret == 0 { | |
| 1717 | 1925 | return nil | |
| @@ -1726,6 +1934,8 @@ var xTransformScale3d func(uintptr, float32, float32, float32) uintptr | |||
| 1726 | 1934 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1727 | 1935 | // if you want to keep it around. | |
| 1728 | 1936 | func (x *Transform) Scale3d(FactorXVar float32, FactorYVar float32, FactorZVar float32) *Transform { | |
| 1937 | + | core.LazyRegister(&xTransformScale3d, "GSK", "gsk_transform_scale_3d", false) | |
| 1938 | + | ||
| 1729 | 1939 | cret := xTransformScale3d(x.GoPointer(), FactorXVar, FactorYVar, FactorZVar) | |
| 1730 | 1940 | if cret == 0 { | |
| 1731 | 1941 | return nil | |
| @@ -1740,6 +1950,8 @@ var xTransformSkew func(uintptr, float32, float32) uintptr | |||
| 1740 | 1950 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1741 | 1951 | // if you want to keep it around. | |
| 1742 | 1952 | func (x *Transform) Skew(SkewXVar float32, SkewYVar float32) *Transform { | |
| 1953 | + | core.LazyRegister(&xTransformSkew, "GSK", "gsk_transform_skew", false) | |
| 1954 | + | ||
| 1743 | 1955 | cret := xTransformSkew(x.GoPointer(), SkewXVar, SkewYVar) | |
| 1744 | 1956 | if cret == 0 { | |
| 1745 | 1957 | return nil | |
| @@ -1774,6 +1986,8 @@ var xTransformTo2d func(uintptr, *float32, *float32, *float32, *float32, *float3 | |||
| 1774 | 1986 | // and a matrix type from other 2D drawing libraries, in particular | |
| 1775 | 1987 | // Cairo. | |
| 1776 | 1988 | func (x *Transform) To2d(OutXxVar *float32, OutYxVar *float32, OutXyVar *float32, OutYyVar *float32, OutDxVar *float32, OutDyVar *float32) { | |
| 1989 | + | core.LazyRegister(&xTransformTo2d, "GSK", "gsk_transform_to_2d", false) | |
| 1990 | + | ||
| 1777 | 1991 | xTransformTo2d(x.GoPointer(), OutXxVar, OutYxVar, OutXyVar, OutYyVar, OutDxVar, OutDyVar) | |
| 1778 | 1992 | } | |
| 1779 | 1993 | ||
| @@ -1798,6 +2012,8 @@ var xTransformTo2dComponents func(uintptr, *float32, *float32, *float32, *float3 | |||
| 1798 | 2012 | // | |
| 1799 | 2013 | // to check. | |
| 1800 | 2014 | func (x *Transform) To2dComponents(OutSkewXVar *float32, OutSkewYVar *float32, OutScaleXVar *float32, OutScaleYVar *float32, OutAngleVar *float32, OutDxVar *float32, OutDyVar *float32) { | |
| 2015 | + | core.LazyRegister(&xTransformTo2dComponents, "GSK", "gsk_transform_to_2d_components", false) | |
| 2016 | + | ||
| 1801 | 2017 | xTransformTo2dComponents(x.GoPointer(), OutSkewXVar, OutSkewYVar, OutScaleXVar, OutScaleYVar, OutAngleVar, OutDxVar, OutDyVar) | |
| 1802 | 2018 | } | |
| 1803 | 2019 | ||
| @@ -1821,6 +2037,8 @@ var xTransformToAffine func(uintptr, *float32, *float32, *float32, *float32) | |||
| 1821 | 2037 | // | |
| 1822 | 2038 | // to check. | |
| 1823 | 2039 | func (x *Transform) ToAffine(OutScaleXVar *float32, OutScaleYVar *float32, OutDxVar *float32, OutDyVar *float32) { | |
| 2040 | + | core.LazyRegister(&xTransformToAffine, "GSK", "gsk_transform_to_affine", false) | |
| 2041 | + | ||
| 1824 | 2042 | xTransformToAffine(x.GoPointer(), OutScaleXVar, OutScaleYVar, OutDxVar, OutDyVar) | |
| 1825 | 2043 | } | |
| 1826 | 2044 | ||
| @@ -1830,6 +2048,8 @@ var xTransformToMatrix func(uintptr, *graphene.Matrix) | |||
| 1830 | 2048 | // | |
| 1831 | 2049 | // The previous value of @out_matrix will be ignored. | |
| 1832 | 2050 | func (x *Transform) ToMatrix(OutMatrixVar *graphene.Matrix) { | |
| 2051 | + | core.LazyRegister(&xTransformToMatrix, "GSK", "gsk_transform_to_matrix", false) | |
| 2052 | + | ||
| 1833 | 2053 | xTransformToMatrix(x.GoPointer(), OutMatrixVar) | |
| 1834 | 2054 | } | |
| 1835 | 2055 | ||
| @@ -1841,6 +2061,8 @@ var xTransformToString func(uintptr) string | |||
| 1841 | 2061 | // | |
| 1842 | 2062 | // This is a wrapper around [method@Gsk.Transform.print]. | |
| 1843 | 2063 | func (x *Transform) ToString() string { | |
| 2064 | + | core.LazyRegister(&xTransformToString, "GSK", "gsk_transform_to_string", false) | |
| 2065 | + | ||
| 1844 | 2066 | cret := xTransformToString(x.GoPointer()) | |
| 1845 | 2067 | return cret | |
| 1846 | 2068 | } | |
| @@ -1856,6 +2078,8 @@ var xTransformToTranslate func(uintptr, *float32, *float32) | |||
| 1856 | 2078 | // | |
| 1857 | 2079 | // to check. | |
| 1858 | 2080 | func (x *Transform) ToTranslate(OutDxVar *float32, OutDyVar *float32) { | |
| 2081 | + | core.LazyRegister(&xTransformToTranslate, "GSK", "gsk_transform_to_translate", false) | |
| 2082 | + | ||
| 1859 | 2083 | xTransformToTranslate(x.GoPointer(), OutDxVar, OutDyVar) | |
| 1860 | 2084 | } | |
| 1861 | 2085 | ||
| @@ -1866,6 +2090,8 @@ var xTransformTransform func(uintptr, *Transform) uintptr | |||
| 1866 | 2090 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1867 | 2091 | // if you want to keep it around. | |
| 1868 | 2092 | func (x *Transform) Transform(OtherVar *Transform) *Transform { | |
| 2093 | + | core.LazyRegister(&xTransformTransform, "GSK", "gsk_transform_transform", false) | |
| 2094 | + | ||
| 1869 | 2095 | cret := xTransformTransform(x.GoPointer(), OtherVar) | |
| 1870 | 2096 | if cret == 0 { | |
| 1871 | 2097 | return nil | |
| @@ -1881,6 +2107,8 @@ var xTransformTransformBounds func(uintptr, *graphene.Rect, *graphene.Rect) | |||
| 1881 | 2107 | // | |
| 1882 | 2108 | // The input and output rect may point to the same rectangle. | |
| 1883 | 2109 | func (x *Transform) TransformBounds(RectVar *graphene.Rect, OutRectVar *graphene.Rect) { | |
| 2110 | + | core.LazyRegister(&xTransformTransformBounds, "GSK", "gsk_transform_transform_bounds", false) | |
| 2111 | + | ||
| 1884 | 2112 | xTransformTransformBounds(x.GoPointer(), RectVar, OutRectVar) | |
| 1885 | 2113 | } | |
| 1886 | 2114 | ||
| @@ -1888,6 +2116,8 @@ var xTransformTransformPoint func(uintptr, *graphene.Point, *graphene.Point) | |||
| 1888 | 2116 | ||
| 1889 | 2117 | // Transforms a point using the given transform. | |
| 1890 | 2118 | func (x *Transform) TransformPoint(PointVar *graphene.Point, OutPointVar *graphene.Point) { | |
| 2119 | + | core.LazyRegister(&xTransformTransformPoint, "GSK", "gsk_transform_transform_point", false) | |
| 2120 | + | ||
| 1891 | 2121 | xTransformTransformPoint(x.GoPointer(), PointVar, OutPointVar) | |
| 1892 | 2122 | } | |
| 1893 | 2123 | ||
| @@ -1898,6 +2128,8 @@ var xTransformTranslate func(uintptr, *graphene.Point) uintptr | |||
| 1898 | 2128 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1899 | 2129 | // if you want to keep it around. | |
| 1900 | 2130 | func (x *Transform) Translate(PointVar *graphene.Point) *Transform { | |
| 2131 | + | core.LazyRegister(&xTransformTranslate, "GSK", "gsk_transform_translate", false) | |
| 2132 | + | ||
| 1901 | 2133 | cret := xTransformTranslate(x.GoPointer(), PointVar) | |
| 1902 | 2134 | if cret == 0 { | |
| 1903 | 2135 | return nil | |
| @@ -1912,6 +2144,8 @@ var xTransformTranslate3d func(uintptr, *graphene.Point3D) uintptr | |||
| 1912 | 2144 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | |
| 1913 | 2145 | // if you want to keep it around. | |
| 1914 | 2146 | func (x *Transform) Translate3d(PointVar *graphene.Point3D) *Transform { | |
| 2147 | + | core.LazyRegister(&xTransformTranslate3d, "GSK", "gsk_transform_translate_3d", false) | |
| 2148 | + | ||
| 1915 | 2149 | cret := xTransformTranslate3d(x.GoPointer(), PointVar) | |
| 1916 | 2150 | if cret == 0 { | |
| 1917 | 2151 | return nil | |
| @@ -1926,162 +2160,12 @@ var xTransformUnref func(uintptr) | |||
| 1926 | 2160 | // If the reference was the last, the resources associated to the @self are | |
| 1927 | 2161 | // freed. | |
| 1928 | 2162 | func (x *Transform) Unref() { | |
| 2163 | + | core.LazyRegister(&xTransformUnref, "GSK", "gsk_transform_unref", false) | |
| 2164 | + | ||
| 1929 | 2165 | xTransformUnref(x.GoPointer()) | |
| 1930 | 2166 | } | |
| 1931 | 2167 | ||
| 1932 | 2168 | func init() { | |
| 1933 | 2169 | core.SetPackageName("GSK", "gtk4") | |
| 1934 | 2170 | core.SetSharedLibraries("GSK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | |
| 1935 | - | var libs []uintptr | |
| 1936 | - | for _, libPath := range core.GetPaths("GSK") { | |
| 1937 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1938 | - | if err != nil { | |
| 1939 | - | panic(err) | |
| 1940 | - | } | |
| 1941 | - | libs = append(libs, lib) | |
| 1942 | - | } | |
| 1943 | - | ||
| 1944 | - | core.PuregoSafeRegister(&xComponentTransferGLibType, libs, "gsk_component_transfer_get_type") | |
| 1945 | - | ||
| 1946 | - | core.PuregoSafeRegister(&xNewComponentTransferDiscrete, libs, "gsk_component_transfer_new_discrete") | |
| 1947 | - | core.PuregoSafeRegister(&xNewComponentTransferGamma, libs, "gsk_component_transfer_new_gamma") | |
| 1948 | - | core.PuregoSafeRegister(&xNewComponentTransferIdentity, libs, "gsk_component_transfer_new_identity") | |
| 1949 | - | core.PuregoSafeRegister(&xNewComponentTransferLevels, libs, "gsk_component_transfer_new_levels") | |
| 1950 | - | core.PuregoSafeRegister(&xNewComponentTransferLinear, libs, "gsk_component_transfer_new_linear") | |
| 1951 | - | core.PuregoSafeRegister(&xNewComponentTransferTable, libs, "gsk_component_transfer_new_table") | |
| 1952 | - | ||
| 1953 | - | core.PuregoSafeRegister(&xComponentTransferCopy, libs, "gsk_component_transfer_copy") | |
| 1954 | - | core.PuregoSafeRegister(&xComponentTransferFree, libs, "gsk_component_transfer_free") | |
| 1955 | - | ||
| 1956 | - | core.PuregoSafeRegister(&xPathGLibType, libs, "gsk_path_get_type") | |
| 1957 | - | ||
| 1958 | - | core.PuregoSafeRegister(&xPathEqual, libs, "gsk_path_equal") | |
| 1959 | - | core.PuregoSafeRegister(&xPathForeach, libs, "gsk_path_foreach") | |
| 1960 | - | core.PuregoSafeRegister(&xPathForeachIntersection, libs, "gsk_path_foreach_intersection") | |
| 1961 | - | core.PuregoSafeRegister(&xPathGetBounds, libs, "gsk_path_get_bounds") | |
| 1962 | - | core.PuregoSafeRegister(&xPathGetClosestPoint, libs, "gsk_path_get_closest_point") | |
| 1963 | - | core.PuregoSafeRegister(&xPathGetEndPoint, libs, "gsk_path_get_end_point") | |
| 1964 | - | core.PuregoSafeRegister(&xPathGetNext, libs, "gsk_path_get_next") | |
| 1965 | - | core.PuregoSafeRegister(&xPathGetPrevious, libs, "gsk_path_get_previous") | |
| 1966 | - | core.PuregoSafeRegister(&xPathGetStartPoint, libs, "gsk_path_get_start_point") | |
| 1967 | - | core.PuregoSafeRegister(&xPathGetStrokeBounds, libs, "gsk_path_get_stroke_bounds") | |
| 1968 | - | core.PuregoSafeRegister(&xPathGetTightBounds, libs, "gsk_path_get_tight_bounds") | |
| 1969 | - | core.PuregoSafeRegister(&xPathInFill, libs, "gsk_path_in_fill") | |
| 1970 | - | core.PuregoSafeRegister(&xPathIsClosed, libs, "gsk_path_is_closed") | |
| 1971 | - | core.PuregoSafeRegister(&xPathIsEmpty, libs, "gsk_path_is_empty") | |
| 1972 | - | core.PuregoSafeRegister(&xPathPrint, libs, "gsk_path_print") | |
| 1973 | - | core.PuregoSafeRegister(&xPathRef, libs, "gsk_path_ref") | |
| 1974 | - | core.PuregoSafeRegister(&xPathToCairo, libs, "gsk_path_to_cairo") | |
| 1975 | - | core.PuregoSafeRegister(&xPathToString, libs, "gsk_path_to_string") | |
| 1976 | - | core.PuregoSafeRegister(&xPathUnref, libs, "gsk_path_unref") | |
| 1977 | - | ||
| 1978 | - | core.PuregoSafeRegister(&xPathBuilderGLibType, libs, "gsk_path_builder_get_type") | |
| 1979 | - | ||
| 1980 | - | core.PuregoSafeRegister(&xNewPathBuilder, libs, "gsk_path_builder_new") | |
| 1981 | - | ||
| 1982 | - | core.PuregoSafeRegister(&xPathBuilderAddCairoPath, libs, "gsk_path_builder_add_cairo_path") | |
| 1983 | - | core.PuregoSafeRegister(&xPathBuilderAddCircle, libs, "gsk_path_builder_add_circle") | |
| 1984 | - | core.PuregoSafeRegister(&xPathBuilderAddLayout, libs, "gsk_path_builder_add_layout") | |
| 1985 | - | core.PuregoSafeRegister(&xPathBuilderAddPath, libs, "gsk_path_builder_add_path") | |
| 1986 | - | core.PuregoSafeRegister(&xPathBuilderAddRect, libs, "gsk_path_builder_add_rect") | |
| 1987 | - | core.PuregoSafeRegister(&xPathBuilderAddReversePath, libs, "gsk_path_builder_add_reverse_path") | |
| 1988 | - | core.PuregoSafeRegister(&xPathBuilderAddRoundedRect, libs, "gsk_path_builder_add_rounded_rect") | |
| 1989 | - | core.PuregoSafeRegister(&xPathBuilderAddSegment, libs, "gsk_path_builder_add_segment") | |
| 1990 | - | core.PuregoSafeRegister(&xPathBuilderArcTo, libs, "gsk_path_builder_arc_to") | |
| 1991 | - | core.PuregoSafeRegister(&xPathBuilderClose, libs, "gsk_path_builder_close") | |
| 1992 | - | core.PuregoSafeRegister(&xPathBuilderConicTo, libs, "gsk_path_builder_conic_to") | |
| 1993 | - | core.PuregoSafeRegister(&xPathBuilderCubicTo, libs, "gsk_path_builder_cubic_to") | |
| 1994 | - | core.PuregoSafeRegister(&xPathBuilderFreeToPath, libs, "gsk_path_builder_free_to_path") | |
| 1995 | - | core.PuregoSafeRegister(&xPathBuilderGetCurrentPoint, libs, "gsk_path_builder_get_current_point") | |
| 1996 | - | core.PuregoSafeRegister(&xPathBuilderHtmlArcTo, libs, "gsk_path_builder_html_arc_to") | |
| 1997 | - | core.PuregoSafeRegister(&xPathBuilderLineTo, libs, "gsk_path_builder_line_to") | |
| 1998 | - | core.PuregoSafeRegister(&xPathBuilderMoveTo, libs, "gsk_path_builder_move_to") | |
| 1999 | - | core.PuregoSafeRegister(&xPathBuilderQuadTo, libs, "gsk_path_builder_quad_to") | |
| 2000 | - | core.PuregoSafeRegister(&xPathBuilderRef, libs, "gsk_path_builder_ref") | |
| 2001 | - | core.PuregoSafeRegister(&xPathBuilderRelArcTo, libs, "gsk_path_builder_rel_arc_to") | |
| 2002 | - | core.PuregoSafeRegister(&xPathBuilderRelConicTo, libs, "gsk_path_builder_rel_conic_to") | |
| 2003 | - | core.PuregoSafeRegister(&xPathBuilderRelCubicTo, libs, "gsk_path_builder_rel_cubic_to") | |
| 2004 | - | core.PuregoSafeRegister(&xPathBuilderRelHtmlArcTo, libs, "gsk_path_builder_rel_html_arc_to") | |
| 2005 | - | core.PuregoSafeRegister(&xPathBuilderRelLineTo, libs, "gsk_path_builder_rel_line_to") | |
| 2006 | - | core.PuregoSafeRegister(&xPathBuilderRelMoveTo, libs, "gsk_path_builder_rel_move_to") | |
| 2007 | - | core.PuregoSafeRegister(&xPathBuilderRelQuadTo, libs, "gsk_path_builder_rel_quad_to") | |
| 2008 | - | core.PuregoSafeRegister(&xPathBuilderRelSvgArcTo, libs, "gsk_path_builder_rel_svg_arc_to") | |
| 2009 | - | core.PuregoSafeRegister(&xPathBuilderSvgArcTo, libs, "gsk_path_builder_svg_arc_to") | |
| 2010 | - | core.PuregoSafeRegister(&xPathBuilderToPath, libs, "gsk_path_builder_to_path") | |
| 2011 | - | core.PuregoSafeRegister(&xPathBuilderUnref, libs, "gsk_path_builder_unref") | |
| 2012 | - | ||
| 2013 | - | core.PuregoSafeRegister(&xPathMeasureGLibType, libs, "gsk_path_measure_get_type") | |
| 2014 | - | ||
| 2015 | - | core.PuregoSafeRegister(&xNewPathMeasure, libs, "gsk_path_measure_new") | |
| 2016 | - | core.PuregoSafeRegister(&xNewPathMeasureWithTolerance, libs, "gsk_path_measure_new_with_tolerance") | |
| 2017 | - | ||
| 2018 | - | core.PuregoSafeRegister(&xPathMeasureGetLength, libs, "gsk_path_measure_get_length") | |
| 2019 | - | core.PuregoSafeRegister(&xPathMeasureGetPath, libs, "gsk_path_measure_get_path") | |
| 2020 | - | core.PuregoSafeRegister(&xPathMeasureGetPoint, libs, "gsk_path_measure_get_point") | |
| 2021 | - | core.PuregoSafeRegister(&xPathMeasureGetTolerance, libs, "gsk_path_measure_get_tolerance") | |
| 2022 | - | core.PuregoSafeRegister(&xPathMeasureRef, libs, "gsk_path_measure_ref") | |
| 2023 | - | core.PuregoSafeRegister(&xPathMeasureUnref, libs, "gsk_path_measure_unref") | |
| 2024 | - | ||
| 2025 | - | core.PuregoSafeRegister(&xRenderReplayGLibType, libs, "gsk_render_replay_get_type") | |
| 2026 | - | ||
| 2027 | - | core.PuregoSafeRegister(&xNewRenderReplay, libs, "gsk_render_replay_new") | |
| 2028 | - | ||
| 2029 | - | core.PuregoSafeRegister(&xRenderReplayDefault, libs, "gsk_render_replay_default") | |
| 2030 | - | core.PuregoSafeRegister(&xRenderReplayFilterFont, libs, "gsk_render_replay_filter_font") | |
| 2031 | - | core.PuregoSafeRegister(&xRenderReplayFilterNode, libs, "gsk_render_replay_filter_node") | |
| 2032 | - | core.PuregoSafeRegister(&xRenderReplayFilterTexture, libs, "gsk_render_replay_filter_texture") | |
| 2033 | - | core.PuregoSafeRegister(&xRenderReplayFree, libs, "gsk_render_replay_free") | |
| 2034 | - | core.PuregoSafeRegister(&xRenderReplaySetFontFilter, libs, "gsk_render_replay_set_font_filter") | |
| 2035 | - | core.PuregoSafeRegister(&xRenderReplaySetNodeFilter, libs, "gsk_render_replay_set_node_filter") | |
| 2036 | - | core.PuregoSafeRegister(&xRenderReplaySetTextureFilter, libs, "gsk_render_replay_set_texture_filter") | |
| 2037 | - | ||
| 2038 | - | core.PuregoSafeRegister(&xStrokeGLibType, libs, "gsk_stroke_get_type") | |
| 2039 | - | ||
| 2040 | - | core.PuregoSafeRegister(&xNewStroke, libs, "gsk_stroke_new") | |
| 2041 | - | ||
| 2042 | - | core.PuregoSafeRegister(&xStrokeCopy, libs, "gsk_stroke_copy") | |
| 2043 | - | core.PuregoSafeRegister(&xStrokeFree, libs, "gsk_stroke_free") | |
| 2044 | - | core.PuregoSafeRegister(&xStrokeGetDash, libs, "gsk_stroke_get_dash") | |
| 2045 | - | core.PuregoSafeRegister(&xStrokeGetDashOffset, libs, "gsk_stroke_get_dash_offset") | |
| 2046 | - | core.PuregoSafeRegister(&xStrokeGetLineCap, libs, "gsk_stroke_get_line_cap") | |
| 2047 | - | core.PuregoSafeRegister(&xStrokeGetLineJoin, libs, "gsk_stroke_get_line_join") | |
| 2048 | - | core.PuregoSafeRegister(&xStrokeGetLineWidth, libs, "gsk_stroke_get_line_width") | |
| 2049 | - | core.PuregoSafeRegister(&xStrokeGetMiterLimit, libs, "gsk_stroke_get_miter_limit") | |
| 2050 | - | core.PuregoSafeRegister(&xStrokeSetDash, libs, "gsk_stroke_set_dash") | |
| 2051 | - | core.PuregoSafeRegister(&xStrokeSetDashOffset, libs, "gsk_stroke_set_dash_offset") | |
| 2052 | - | core.PuregoSafeRegister(&xStrokeSetLineCap, libs, "gsk_stroke_set_line_cap") | |
| 2053 | - | core.PuregoSafeRegister(&xStrokeSetLineJoin, libs, "gsk_stroke_set_line_join") | |
| 2054 | - | core.PuregoSafeRegister(&xStrokeSetLineWidth, libs, "gsk_stroke_set_line_width") | |
| 2055 | - | core.PuregoSafeRegister(&xStrokeSetMiterLimit, libs, "gsk_stroke_set_miter_limit") | |
| 2056 | - | core.PuregoSafeRegister(&xStrokeToCairo, libs, "gsk_stroke_to_cairo") | |
| 2057 | - | ||
| 2058 | - | core.PuregoSafeRegister(&xTransformGLibType, libs, "gsk_transform_get_type") | |
| 2059 | - | ||
| 2060 | - | core.PuregoSafeRegister(&xNewTransform, libs, "gsk_transform_new") | |
| 2061 | - | ||
| 2062 | - | core.PuregoSafeRegister(&xTransformEqual, libs, "gsk_transform_equal") | |
| 2063 | - | core.PuregoSafeRegister(&xTransformGetCategory, libs, "gsk_transform_get_category") | |
| 2064 | - | core.PuregoSafeRegister(&xTransformInvert, libs, "gsk_transform_invert") | |
| 2065 | - | core.PuregoSafeRegister(&xTransformMatrix, libs, "gsk_transform_matrix") | |
| 2066 | - | core.PuregoSafeRegister(&xTransformMatrix2d, libs, "gsk_transform_matrix_2d") | |
| 2067 | - | core.PuregoSafeRegister(&xTransformPerspective, libs, "gsk_transform_perspective") | |
| 2068 | - | core.PuregoSafeRegister(&xTransformPrint, libs, "gsk_transform_print") | |
| 2069 | - | core.PuregoSafeRegister(&xTransformRef, libs, "gsk_transform_ref") | |
| 2070 | - | core.PuregoSafeRegister(&xTransformRotate, libs, "gsk_transform_rotate") | |
| 2071 | - | core.PuregoSafeRegister(&xTransformRotate3d, libs, "gsk_transform_rotate_3d") | |
| 2072 | - | core.PuregoSafeRegister(&xTransformScale, libs, "gsk_transform_scale") | |
| 2073 | - | core.PuregoSafeRegister(&xTransformScale3d, libs, "gsk_transform_scale_3d") | |
| 2074 | - | core.PuregoSafeRegister(&xTransformSkew, libs, "gsk_transform_skew") | |
| 2075 | - | core.PuregoSafeRegister(&xTransformTo2d, libs, "gsk_transform_to_2d") | |
| 2076 | - | core.PuregoSafeRegister(&xTransformTo2dComponents, libs, "gsk_transform_to_2d_components") | |
| 2077 | - | core.PuregoSafeRegister(&xTransformToAffine, libs, "gsk_transform_to_affine") | |
| 2078 | - | core.PuregoSafeRegister(&xTransformToMatrix, libs, "gsk_transform_to_matrix") | |
| 2079 | - | core.PuregoSafeRegister(&xTransformToString, libs, "gsk_transform_to_string") | |
| 2080 | - | core.PuregoSafeRegister(&xTransformToTranslate, libs, "gsk_transform_to_translate") | |
| 2081 | - | core.PuregoSafeRegister(&xTransformTransform, libs, "gsk_transform_transform") | |
| 2082 | - | core.PuregoSafeRegister(&xTransformTransformBounds, libs, "gsk_transform_transform_bounds") | |
| 2083 | - | core.PuregoSafeRegister(&xTransformTransformPoint, libs, "gsk_transform_transform_point") | |
| 2084 | - | core.PuregoSafeRegister(&xTransformTranslate, libs, "gsk_transform_translate") | |
| 2085 | - | core.PuregoSafeRegister(&xTransformTranslate3d, libs, "gsk_transform_translate_3d") | |
| 2086 | - | core.PuregoSafeRegister(&xTransformUnref, libs, "gsk_transform_unref") | |
| 2087 | 2171 | } | |
| @@ -5,7 +5,6 @@ import ( | |||||
| 5 | "structs" | 5 | "structs" | ||
| 6 | "unsafe" | 6 | "unsafe" | ||
| 7 | 7 | ||||
| 8 | - | "github.com/bnema/purego" | |||
| 9 | "github.com/bnema/puregotk/pkg/core" | 8 | "github.com/bnema/puregotk/pkg/core" | ||
| 10 | "github.com/bnema/puregotk/v4/cairo" | 9 | "github.com/bnema/puregotk/v4/cairo" | ||
| 11 | "github.com/bnema/puregotk/v4/gdk" | 10 | "github.com/bnema/puregotk/v4/gdk" | ||
| @@ -30,6 +29,7 @@ type ComponentTransfer struct { | |||||
| 30 | var xComponentTransferGLibType func() types.GType | 29 | var xComponentTransferGLibType func() types.GType | ||
| 31 | 30 | ||||
| 32 | func ComponentTransferGLibType() types.GType { | 31 | func ComponentTransferGLibType() types.GType { | ||
| 32 | + | core.LazyRegister(&xComponentTransferGLibType, "GSK", "gsk_component_transfer_get_type", false) | |||
| 33 | return xComponentTransferGLibType() | 33 | return xComponentTransferGLibType() | ||
| 34 | } | 34 | } | ||
| 35 | 35 | ||||
| @@ -67,6 +67,8 @@ var xNewComponentTransferDiscrete func(uint, []float32) uintptr | |||||
| 67 | // | 67 | // | ||
| 68 | // </figure> | 68 | // </figure> | ||
| 69 | func NewComponentTransferDiscrete(NVar uint, ValuesVar []float32) *ComponentTransfer { | 69 | func NewComponentTransferDiscrete(NVar uint, ValuesVar []float32) *ComponentTransfer { | ||
| 70 | + | core.LazyRegister(&xNewComponentTransferDiscrete, "GSK", "gsk_component_transfer_new_discrete", false) | |||
| 71 | + | ||||
| 70 | cret := xNewComponentTransferDiscrete(NVar, ValuesVar) | 72 | cret := xNewComponentTransferDiscrete(NVar, ValuesVar) | ||
| 71 | if cret == 0 { | 73 | if cret == 0 { | ||
| 72 | return nil | 74 | return nil | ||
| @@ -92,6 +94,8 @@ var xNewComponentTransferGamma func(float32, float32, float32) uintptr | |||||
| 92 | // | 94 | // | ||
| 93 | // </figure> | 95 | // </figure> | ||
| 94 | func NewComponentTransferGamma(AmpVar float32, ExpVar float32, OfsVar float32) *ComponentTransfer { | 96 | func NewComponentTransferGamma(AmpVar float32, ExpVar float32, OfsVar float32) *ComponentTransfer { | ||
| 97 | + | core.LazyRegister(&xNewComponentTransferGamma, "GSK", "gsk_component_transfer_new_gamma", false) | |||
| 98 | + | ||||
| 95 | cret := xNewComponentTransferGamma(AmpVar, ExpVar, OfsVar) | 99 | cret := xNewComponentTransferGamma(AmpVar, ExpVar, OfsVar) | ||
| 96 | if cret == 0 { | 100 | if cret == 0 { | ||
| 97 | return nil | 101 | return nil | ||
| @@ -113,6 +117,8 @@ var xNewComponentTransferIdentity func() uintptr | |||||
| 113 | // | 117 | // | ||
| 114 | // </figure> | 118 | // </figure> | ||
| 115 | func NewComponentTransferIdentity() *ComponentTransfer { | 119 | func NewComponentTransferIdentity() *ComponentTransfer { | ||
| 120 | + | core.LazyRegister(&xNewComponentTransferIdentity, "GSK", "gsk_component_transfer_new_identity", false) | |||
| 121 | + | ||||
| 116 | cret := xNewComponentTransferIdentity() | 122 | cret := xNewComponentTransferIdentity() | ||
| 117 | if cret == 0 { | 123 | if cret == 0 { | ||
| 118 | return nil | 124 | return nil | ||
| @@ -138,6 +144,8 @@ var xNewComponentTransferLevels func(float32) uintptr | |||||
| 138 | // | 144 | // | ||
| 139 | // </figure> | 145 | // </figure> | ||
| 140 | func NewComponentTransferLevels(NVar float32) *ComponentTransfer { | 146 | func NewComponentTransferLevels(NVar float32) *ComponentTransfer { | ||
| 147 | + | core.LazyRegister(&xNewComponentTransferLevels, "GSK", "gsk_component_transfer_new_levels", false) | |||
| 148 | + | ||||
| 141 | cret := xNewComponentTransferLevels(NVar) | 149 | cret := xNewComponentTransferLevels(NVar) | ||
| 142 | if cret == 0 { | 150 | if cret == 0 { | ||
| 143 | return nil | 151 | return nil | ||
| @@ -163,6 +171,8 @@ var xNewComponentTransferLinear func(float32, float32) uintptr | |||||
| 163 | // | 171 | // | ||
| 164 | // </figure> | 172 | // </figure> | ||
| 165 | func NewComponentTransferLinear(MVar float32, BVar float32) *ComponentTransfer { | 173 | func NewComponentTransferLinear(MVar float32, BVar float32) *ComponentTransfer { | ||
| 174 | + | core.LazyRegister(&xNewComponentTransferLinear, "GSK", "gsk_component_transfer_new_linear", false) | |||
| 175 | + | ||||
| 166 | cret := xNewComponentTransferLinear(MVar, BVar) | 176 | cret := xNewComponentTransferLinear(MVar, BVar) | ||
| 167 | if cret == 0 { | 177 | if cret == 0 { | ||
| 168 | return nil | 178 | return nil | ||
| @@ -192,6 +202,8 @@ var xNewComponentTransferTable func(uint, []float32) uintptr | |||||
| 192 | // | 202 | // | ||
| 193 | // </figure> | 203 | // </figure> | ||
| 194 | func NewComponentTransferTable(NVar uint, ValuesVar []float32) *ComponentTransfer { | 204 | func NewComponentTransferTable(NVar uint, ValuesVar []float32) *ComponentTransfer { | ||
| 205 | + | core.LazyRegister(&xNewComponentTransferTable, "GSK", "gsk_component_transfer_new_table", false) | |||
| 206 | + | ||||
| 195 | cret := xNewComponentTransferTable(NVar, ValuesVar) | 207 | cret := xNewComponentTransferTable(NVar, ValuesVar) | ||
| 196 | if cret == 0 { | 208 | if cret == 0 { | ||
| 197 | return nil | 209 | return nil | ||
| @@ -203,6 +215,8 @@ var xComponentTransferCopy func(uintptr) uintptr | |||||
| 203 | 215 | ||||
| 204 | // Creates a copy of @other. | 216 | // Creates a copy of @other. | ||
| 205 | func (x *ComponentTransfer) Copy() *ComponentTransfer { | 217 | func (x *ComponentTransfer) Copy() *ComponentTransfer { | ||
| 218 | + | core.LazyRegister(&xComponentTransferCopy, "GSK", "gsk_component_transfer_copy", false) | |||
| 219 | + | ||||
| 206 | cret := xComponentTransferCopy(x.GoPointer()) | 220 | cret := xComponentTransferCopy(x.GoPointer()) | ||
| 207 | if cret == 0 { | 221 | if cret == 0 { | ||
| 208 | return nil | 222 | return nil | ||
| @@ -214,6 +228,8 @@ var xComponentTransferFree func(uintptr) | |||||
| 214 | 228 | ||||
| 215 | // Frees a component transfer. | 229 | // Frees a component transfer. | ||
| 216 | func (x *ComponentTransfer) Free() { | 230 | func (x *ComponentTransfer) Free() { | ||
| 231 | + | core.LazyRegister(&xComponentTransferFree, "GSK", "gsk_component_transfer_free", false) | |||
| 232 | + | ||||
| 217 | xComponentTransferFree(x.GoPointer()) | 233 | xComponentTransferFree(x.GoPointer()) | ||
| 218 | } | 234 | } | ||
| 219 | 235 | ||||
| @@ -244,6 +260,7 @@ type Path struct { | |||||
| 244 | var xPathGLibType func() types.GType | 260 | var xPathGLibType func() types.GType | ||
| 245 | 261 | ||||
| 246 | func PathGLibType() types.GType { | 262 | func PathGLibType() types.GType { | ||
| 263 | + | core.LazyRegister(&xPathGLibType, "GSK", "gsk_path_get_type", false) | |||
| 247 | return xPathGLibType() | 264 | return xPathGLibType() | ||
| 248 | } | 265 | } | ||
| 249 | 266 | ||||
| @@ -266,6 +283,8 @@ var xPathEqual func(uintptr, *Path) bool | |||||
| 266 | // Note that it is possible to construct paths that render | 283 | // Note that it is possible to construct paths that render | ||
| 267 | // identical even though they don't have the same structure. | 284 | // identical even though they don't have the same structure. | ||
| 268 | func (x *Path) Equal(Path2Var *Path) bool { | 285 | func (x *Path) Equal(Path2Var *Path) bool { | ||
| 286 | + | core.LazyRegister(&xPathEqual, "GSK", "gsk_path_equal", false) | |||
| 287 | + | ||||
| 269 | cret := xPathEqual(x.GoPointer(), Path2Var) | 288 | cret := xPathEqual(x.GoPointer(), Path2Var) | ||
| 270 | return cret | 289 | return cret | ||
| 271 | } | 290 | } | ||
| @@ -286,6 +305,8 @@ var xPathForeach func(uintptr, PathForeachFlags, uintptr, uintptr) bool | |||||
| 286 | // - When the @flags disallow certain operations, it provides | 305 | // - When the @flags disallow certain operations, it provides | ||
| 287 | // an approximation of the path using just the allowed operations. | 306 | // an approximation of the path using just the allowed operations. | ||
| 288 | func (x *Path) Foreach(FlagsVar PathForeachFlags, FuncVar *PathForeachFunc, UserDataVar uintptr) bool { | 307 | func (x *Path) Foreach(FlagsVar PathForeachFlags, FuncVar *PathForeachFunc, UserDataVar uintptr) bool { | ||
| 308 | + | core.LazyRegister(&xPathForeach, "GSK", "gsk_path_foreach", false) | |||
| 309 | + | ||||
| 289 | cret := xPathForeach(x.GoPointer(), FlagsVar, glib.NewCallback(FuncVar), UserDataVar) | 310 | cret := xPathForeach(x.GoPointer(), FlagsVar, glib.NewCallback(FuncVar), UserDataVar) | ||
| 290 | return cret | 311 | return cret | ||
| 291 | } | 312 | } | ||
| @@ -308,6 +329,8 @@ var xPathForeachIntersection func(uintptr, *Path, uintptr, uintptr) bool | |||||
| 308 | // | 329 | // | ||
| 309 | // If @func returns `FALSE`, the iteration is stopped. | 330 | // If @func returns `FALSE`, the iteration is stopped. | ||
| 310 | func (x *Path) ForeachIntersection(Path2Var *Path, FuncVar *PathIntersectionFunc, UserDataVar uintptr) bool { | 331 | func (x *Path) ForeachIntersection(Path2Var *Path, FuncVar *PathIntersectionFunc, UserDataVar uintptr) bool { | ||
| 332 | + | core.LazyRegister(&xPathForeachIntersection, "GSK", "gsk_path_foreach_intersection", false) | |||
| 333 | + | ||||
| 311 | cret := xPathForeachIntersection(x.GoPointer(), Path2Var, glib.NewCallback(FuncVar), UserDataVar) | 334 | cret := xPathForeachIntersection(x.GoPointer(), Path2Var, glib.NewCallback(FuncVar), UserDataVar) | ||
| 312 | return cret | 335 | return cret | ||
| 313 | } | 336 | } | ||
| @@ -330,6 +353,8 @@ var xPathGetBounds func(uintptr, *graphene.Rect) bool | |||||
| 330 | // is a single point at the origin, where the @bounds will also be set to | 353 | // is a single point at the origin, where the @bounds will also be set to | ||
| 331 | // the zero rectangle but true will be returned. | 354 | // the zero rectangle but true will be returned. | ||
| 332 | func (x *Path) GetBounds(BoundsVar *graphene.Rect) bool { | 355 | func (x *Path) GetBounds(BoundsVar *graphene.Rect) bool { | ||
| 356 | + | core.LazyRegister(&xPathGetBounds, "GSK", "gsk_path_get_bounds", false) | |||
| 357 | + | ||||
| 333 | cret := xPathGetBounds(x.GoPointer(), BoundsVar) | 358 | cret := xPathGetBounds(x.GoPointer(), BoundsVar) | ||
| 334 | return cret | 359 | return cret | ||
| 335 | } | 360 | } | ||
| @@ -341,6 +366,8 @@ var xPathGetClosestPoint func(uintptr, *graphene.Point, float32, *PathPoint, *fl | |||||
| 341 | // If there is no point closer than the given threshold, | 366 | // If there is no point closer than the given threshold, | ||
| 342 | // false is returned. | 367 | // false is returned. | ||
| 343 | func (x *Path) GetClosestPoint(PointVar *graphene.Point, ThresholdVar float32, ResultVar *PathPoint, DistanceVar *float32) bool { | 368 | func (x *Path) GetClosestPoint(PointVar *graphene.Point, ThresholdVar float32, ResultVar *PathPoint, DistanceVar *float32) bool { | ||
| 369 | + | core.LazyRegister(&xPathGetClosestPoint, "GSK", "gsk_path_get_closest_point", false) | |||
| 370 | + | ||||
| 344 | cret := xPathGetClosestPoint(x.GoPointer(), PointVar, ThresholdVar, ResultVar, DistanceVar) | 371 | cret := xPathGetClosestPoint(x.GoPointer(), PointVar, ThresholdVar, ResultVar, DistanceVar) | ||
| 345 | return cret | 372 | return cret | ||
| 346 | } | 373 | } | ||
| @@ -352,6 +379,8 @@ var xPathGetEndPoint func(uintptr, *PathPoint) bool | |||||
| 352 | // An empty path has no points, so false | 379 | // An empty path has no points, so false | ||
| 353 | // is returned in this case. | 380 | // is returned in this case. | ||
| 354 | func (x *Path) GetEndPoint(ResultVar *PathPoint) bool { | 381 | func (x *Path) GetEndPoint(ResultVar *PathPoint) bool { | ||
| 382 | + | core.LazyRegister(&xPathGetEndPoint, "GSK", "gsk_path_get_end_point", false) | |||
| 383 | + | ||||
| 355 | cret := xPathGetEndPoint(x.GoPointer(), ResultVar) | 384 | cret := xPathGetEndPoint(x.GoPointer(), ResultVar) | ||
| 356 | return cret | 385 | return cret | ||
| 357 | } | 386 | } | ||
| @@ -363,6 +392,8 @@ var xPathGetNext func(uintptr, *PathPoint) bool | |||||
| 363 | // An empty path has no points, so false | 392 | // An empty path has no points, so false | ||
| 364 | // is returned in this case. | 393 | // is returned in this case. | ||
| 365 | func (x *Path) GetNext(PointVar *PathPoint) bool { | 394 | func (x *Path) GetNext(PointVar *PathPoint) bool { | ||
| 395 | + | core.LazyRegister(&xPathGetNext, "GSK", "gsk_path_get_next", false) | |||
| 396 | + | ||||
| 366 | cret := xPathGetNext(x.GoPointer(), PointVar) | 397 | cret := xPathGetNext(x.GoPointer(), PointVar) | ||
| 367 | return cret | 398 | return cret | ||
| 368 | } | 399 | } | ||
| @@ -374,6 +405,8 @@ var xPathGetPrevious func(uintptr, *PathPoint) bool | |||||
| 374 | // An empty path has no points, so false | 405 | // An empty path has no points, so false | ||
| 375 | // is returned in this case. | 406 | // is returned in this case. | ||
| 376 | func (x *Path) GetPrevious(PointVar *PathPoint) bool { | 407 | func (x *Path) GetPrevious(PointVar *PathPoint) bool { | ||
| 408 | + | core.LazyRegister(&xPathGetPrevious, "GSK", "gsk_path_get_previous", false) | |||
| 409 | + | ||||
| 377 | cret := xPathGetPrevious(x.GoPointer(), PointVar) | 410 | cret := xPathGetPrevious(x.GoPointer(), PointVar) | ||
| 378 | return cret | 411 | return cret | ||
| 379 | } | 412 | } | ||
| @@ -385,6 +418,8 @@ var xPathGetStartPoint func(uintptr, *PathPoint) bool | |||||
| 385 | // An empty path has no points, so false | 418 | // An empty path has no points, so false | ||
| 386 | // is returned in this case. | 419 | // is returned in this case. | ||
| 387 | func (x *Path) GetStartPoint(ResultVar *PathPoint) bool { | 420 | func (x *Path) GetStartPoint(ResultVar *PathPoint) bool { | ||
| 421 | + | core.LazyRegister(&xPathGetStartPoint, "GSK", "gsk_path_get_start_point", false) | |||
| 422 | + | ||||
| 388 | cret := xPathGetStartPoint(x.GoPointer(), ResultVar) | 423 | cret := xPathGetStartPoint(x.GoPointer(), ResultVar) | ||
| 389 | return cret | 424 | return cret | ||
| 390 | } | 425 | } | ||
| @@ -399,6 +434,8 @@ var xPathGetStrokeBounds func(uintptr, *Stroke, *graphene.Rect) bool | |||||
| 399 | // to contain the area affected by the stroke, including protrusions | 434 | // to contain the area affected by the stroke, including protrusions | ||
| 400 | // like miters. | 435 | // like miters. | ||
| 401 | func (x *Path) GetStrokeBounds(StrokeVar *Stroke, BoundsVar *graphene.Rect) bool { | 436 | func (x *Path) GetStrokeBounds(StrokeVar *Stroke, BoundsVar *graphene.Rect) bool { | ||
| 437 | + | core.LazyRegister(&xPathGetStrokeBounds, "GSK", "gsk_path_get_stroke_bounds", false) | |||
| 438 | + | ||||
| 402 | cret := xPathGetStrokeBounds(x.GoPointer(), StrokeVar, BoundsVar) | 439 | cret := xPathGetStrokeBounds(x.GoPointer(), StrokeVar, BoundsVar) | ||
| 403 | return cret | 440 | return cret | ||
| 404 | } | 441 | } | ||
| @@ -410,6 +447,8 @@ var xPathGetTightBounds func(uintptr, *graphene.Rect) bool | |||||
| 410 | // This function works harder than [method@Gsk.Path.get_bounds] to | 447 | // This function works harder than [method@Gsk.Path.get_bounds] to | ||
| 411 | // produce the smallest possible bounds. | 448 | // produce the smallest possible bounds. | ||
| 412 | func (x *Path) GetTightBounds(BoundsVar *graphene.Rect) bool { | 449 | func (x *Path) GetTightBounds(BoundsVar *graphene.Rect) bool { | ||
| 450 | + | core.LazyRegister(&xPathGetTightBounds, "GSK", "gsk_path_get_tight_bounds", false) | |||
| 451 | + | ||||
| 413 | cret := xPathGetTightBounds(x.GoPointer(), BoundsVar) | 452 | cret := xPathGetTightBounds(x.GoPointer(), BoundsVar) | ||
| 414 | return cret | 453 | return cret | ||
| 415 | } | 454 | } | ||
| @@ -421,6 +460,8 @@ var xPathInFill func(uintptr, *graphene.Point, FillRule) bool | |||||
| 421 | // Note that this function assumes that filling a contour | 460 | // Note that this function assumes that filling a contour | ||
| 422 | // implicitly closes it. | 461 | // implicitly closes it. | ||
| 423 | func (x *Path) InFill(PointVar *graphene.Point, FillRuleVar FillRule) bool { | 462 | func (x *Path) InFill(PointVar *graphene.Point, FillRuleVar FillRule) bool { | ||
| 463 | + | core.LazyRegister(&xPathInFill, "GSK", "gsk_path_in_fill", false) | |||
| 464 | + | ||||
| 424 | cret := xPathInFill(x.GoPointer(), PointVar, FillRuleVar) | 465 | cret := xPathInFill(x.GoPointer(), PointVar, FillRuleVar) | ||
| 425 | return cret | 466 | return cret | ||
| 426 | } | 467 | } | ||
| @@ -429,6 +470,8 @@ var xPathIsClosed func(uintptr) bool | |||||
| 429 | 470 | ||||
| 430 | // Returns if the path represents a single closed contour. | 471 | // Returns if the path represents a single closed contour. | ||
| 431 | func (x *Path) IsClosed() bool { | 472 | func (x *Path) IsClosed() bool { | ||
| 473 | + | core.LazyRegister(&xPathIsClosed, "GSK", "gsk_path_is_closed", false) | |||
| 474 | + | ||||
| 432 | cret := xPathIsClosed(x.GoPointer()) | 475 | cret := xPathIsClosed(x.GoPointer()) | ||
| 433 | return cret | 476 | return cret | ||
| 434 | } | 477 | } | ||
| @@ -437,6 +480,8 @@ var xPathIsEmpty func(uintptr) bool | |||||
| 437 | 480 | ||||
| 438 | // Checks if the path is empty, i.e. contains no lines or curves. | 481 | // Checks if the path is empty, i.e. contains no lines or curves. | ||
| 439 | func (x *Path) IsEmpty() bool { | 482 | func (x *Path) IsEmpty() bool { | ||
| 483 | + | core.LazyRegister(&xPathIsEmpty, "GSK", "gsk_path_is_empty", false) | |||
| 484 | + | ||||
| 440 | cret := xPathIsEmpty(x.GoPointer()) | 485 | cret := xPathIsEmpty(x.GoPointer()) | ||
| 441 | return cret | 486 | return cret | ||
| 442 | } | 487 | } | ||
| @@ -449,6 +494,8 @@ var xPathPrint func(uintptr, *glib.String) | |||||
| 449 | // [SVG path syntax](https://www.w3.org/TR/SVG11/paths.html#PathData), | 494 | // [SVG path syntax](https://www.w3.org/TR/SVG11/paths.html#PathData), | ||
| 450 | // see [func@Gsk.Path.parse] for a summary of the syntax. | 495 | // see [func@Gsk.Path.parse] for a summary of the syntax. | ||
| 451 | func (x *Path) Print(StringVar *glib.String) { | 496 | func (x *Path) Print(StringVar *glib.String) { | ||
| 497 | + | core.LazyRegister(&xPathPrint, "GSK", "gsk_path_print", false) | |||
| 498 | + | ||||
| 452 | xPathPrint(x.GoPointer(), StringVar) | 499 | xPathPrint(x.GoPointer(), StringVar) | ||
| 453 | } | 500 | } | ||
| 454 | 501 | ||||
| @@ -456,6 +503,8 @@ var xPathRef func(uintptr) uintptr | |||||
| 456 | 503 | ||||
| 457 | // Increases the reference count of a path by one. | 504 | // Increases the reference count of a path by one. | ||
| 458 | func (x *Path) Ref() *Path { | 505 | func (x *Path) Ref() *Path { | ||
| 506 | + | core.LazyRegister(&xPathRef, "GSK", "gsk_path_ref", false) | |||
| 507 | + | ||||
| 459 | cret := xPathRef(x.GoPointer()) | 508 | cret := xPathRef(x.GoPointer()) | ||
| 460 | if cret == 0 { | 509 | if cret == 0 { | ||
| 461 | return nil | 510 | return nil | ||
| @@ -473,6 +522,8 @@ var xPathToCairo func(uintptr, *cairo.Context) | |||||
| 473 | // This function does not clear the existing Cairo path. Call | 522 | // This function does not clear the existing Cairo path. Call | ||
| 474 | // cairo_new_path() if you want this. | 523 | // cairo_new_path() if you want this. | ||
| 475 | func (x *Path) ToCairo(CrVar *cairo.Context) { | 524 | func (x *Path) ToCairo(CrVar *cairo.Context) { | ||
| 525 | + | core.LazyRegister(&xPathToCairo, "GSK", "gsk_path_to_cairo", false) | |||
| 526 | + | ||||
| 476 | xPathToCairo(x.GoPointer(), CrVar) | 527 | xPathToCairo(x.GoPointer(), CrVar) | ||
| 477 | } | 528 | } | ||
| 478 | 529 | ||||
| @@ -486,6 +537,8 @@ var xPathToString func(uintptr) string | |||||
| 486 | // This is a wrapper around [method@Gsk.Path.print], see that function | 537 | // This is a wrapper around [method@Gsk.Path.print], see that function | ||
| 487 | // for details. | 538 | // for details. | ||
| 488 | func (x *Path) ToString() string { | 539 | func (x *Path) ToString() string { | ||
| 540 | + | core.LazyRegister(&xPathToString, "GSK", "gsk_path_to_string", false) | |||
| 541 | + | ||||
| 489 | cret := xPathToString(x.GoPointer()) | 542 | cret := xPathToString(x.GoPointer()) | ||
| 490 | return cret | 543 | return cret | ||
| 491 | } | 544 | } | ||
| @@ -496,6 +549,8 @@ var xPathUnref func(uintptr) | |||||
| 496 | // | 549 | // | ||
| 497 | // If the resulting reference count is zero, frees the path. | 550 | // If the resulting reference count is zero, frees the path. | ||
| 498 | func (x *Path) Unref() { | 551 | func (x *Path) Unref() { | ||
| 552 | + | core.LazyRegister(&xPathUnref, "GSK", "gsk_path_unref", false) | |||
| 553 | + | ||||
| 499 | xPathUnref(x.GoPointer()) | 554 | xPathUnref(x.GoPointer()) | ||
| 500 | } | 555 | } | ||
| 501 | 556 | ||||
| @@ -546,6 +601,7 @@ type PathBuilder struct { | |||||
| 546 | var xPathBuilderGLibType func() types.GType | 601 | var xPathBuilderGLibType func() types.GType | ||
| 547 | 602 | ||||
| 548 | func PathBuilderGLibType() types.GType { | 603 | func PathBuilderGLibType() types.GType { | ||
| 604 | + | core.LazyRegister(&xPathBuilderGLibType, "GSK", "gsk_path_builder_get_type", false) | |||
| 549 | return xPathBuilderGLibType() | 605 | return xPathBuilderGLibType() | ||
| 550 | } | 606 | } | ||
| 551 | 607 | ||||
| @@ -568,6 +624,8 @@ var xNewPathBuilder func() uintptr | |||||
| 568 | // The resulting builder would create an empty `GskPath`. | 624 | // The resulting builder would create an empty `GskPath`. | ||
| 569 | // Use addition functions to add types to it. | 625 | // Use addition functions to add types to it. | ||
| 570 | func NewPathBuilder() *PathBuilder { | 626 | func NewPathBuilder() *PathBuilder { | ||
| 627 | + | core.LazyRegister(&xNewPathBuilder, "GSK", "gsk_path_builder_new", false) | |||
| 628 | + | ||||
| 571 | cret := xNewPathBuilder() | 629 | cret := xNewPathBuilder() | ||
| 572 | if cret == 0 { | 630 | if cret == 0 { | ||
| 573 | return nil | 631 | return nil | ||
| @@ -582,6 +640,8 @@ var xPathBuilderAddCairoPath func(uintptr, *cairo.Path) | |||||
| 582 | // You can use cairo_copy_path() to access the path | 640 | // You can use cairo_copy_path() to access the path | ||
| 583 | // from a Cairo context. | 641 | // from a Cairo context. | ||
| 584 | func (x *PathBuilder) AddCairoPath(PathVar *cairo.Path) { | 642 | func (x *PathBuilder) AddCairoPath(PathVar *cairo.Path) { | ||
| 643 | + | core.LazyRegister(&xPathBuilderAddCairoPath, "GSK", "gsk_path_builder_add_cairo_path", false) | |||
| 644 | + | ||||
| 585 | xPathBuilderAddCairoPath(x.GoPointer(), PathVar) | 645 | xPathBuilderAddCairoPath(x.GoPointer(), PathVar) | ||
| 586 | } | 646 | } | ||
| 587 | 647 | ||||
| @@ -593,6 +653,8 @@ var xPathBuilderAddCircle func(uintptr, *graphene.Point, float32) | |||||
| 593 | // | 653 | // | ||
| 594 | // If @radius is zero, the contour will be a closed point. | 654 | // If @radius is zero, the contour will be a closed point. | ||
| 595 | func (x *PathBuilder) AddCircle(CenterVar *graphene.Point, RadiusVar float32) { | 655 | func (x *PathBuilder) AddCircle(CenterVar *graphene.Point, RadiusVar float32) { | ||
| 656 | + | core.LazyRegister(&xPathBuilderAddCircle, "GSK", "gsk_path_builder_add_circle", false) | |||
| 657 | + | ||||
| 596 | xPathBuilderAddCircle(x.GoPointer(), CenterVar, RadiusVar) | 658 | xPathBuilderAddCircle(x.GoPointer(), CenterVar, RadiusVar) | ||
| 597 | } | 659 | } | ||
| 598 | 660 | ||||
| @@ -600,6 +662,8 @@ var xPathBuilderAddLayout func(uintptr, uintptr) | |||||
| 600 | 662 | ||||
| 601 | // Adds the outlines for the glyphs in @layout to the builder. | 663 | // Adds the outlines for the glyphs in @layout to the builder. | ||
| 602 | func (x *PathBuilder) AddLayout(LayoutVar *pango.Layout) { | 664 | func (x *PathBuilder) AddLayout(LayoutVar *pango.Layout) { | ||
| 665 | + | core.LazyRegister(&xPathBuilderAddLayout, "GSK", "gsk_path_builder_add_layout", false) | |||
| 666 | + | ||||
| 603 | xPathBuilderAddLayout(x.GoPointer(), LayoutVar.GoPointer()) | 667 | xPathBuilderAddLayout(x.GoPointer(), LayoutVar.GoPointer()) | ||
| 604 | } | 668 | } | ||
| 605 | 669 | ||||
| @@ -607,6 +671,8 @@ var xPathBuilderAddPath func(uintptr, *Path) | |||||
| 607 | 671 | ||||
| 608 | // Appends all of @path to the builder. | 672 | // Appends all of @path to the builder. | ||
| 609 | func (x *PathBuilder) AddPath(PathVar *Path) { | 673 | func (x *PathBuilder) AddPath(PathVar *Path) { | ||
| 674 | + | core.LazyRegister(&xPathBuilderAddPath, "GSK", "gsk_path_builder_add_path", false) | |||
| 675 | + | ||||
| 610 | xPathBuilderAddPath(x.GoPointer(), PathVar) | 676 | xPathBuilderAddPath(x.GoPointer(), PathVar) | ||
| 611 | } | 677 | } | ||
| 612 | 678 | ||||
| @@ -619,6 +685,8 @@ var xPathBuilderAddRect func(uintptr, *graphene.Rect) | |||||
| 619 | // If the the width or height are 0, the path will be a closed | 685 | // If the the width or height are 0, the path will be a closed | ||
| 620 | // horizontal or vertical line. If both are 0, it'll be a closed dot. | 686 | // horizontal or vertical line. If both are 0, it'll be a closed dot. | ||
| 621 | func (x *PathBuilder) AddRect(RectVar *graphene.Rect) { | 687 | func (x *PathBuilder) AddRect(RectVar *graphene.Rect) { | ||
| 688 | + | core.LazyRegister(&xPathBuilderAddRect, "GSK", "gsk_path_builder_add_rect", false) | |||
| 689 | + | ||||
| 622 | xPathBuilderAddRect(x.GoPointer(), RectVar) | 690 | xPathBuilderAddRect(x.GoPointer(), RectVar) | ||
| 623 | } | 691 | } | ||
| 624 | 692 | ||||
| @@ -626,6 +694,8 @@ var xPathBuilderAddReversePath func(uintptr, *Path) | |||||
| 626 | 694 | ||||
| 627 | // Appends all of @path to the builder, in reverse order. | 695 | // Appends all of @path to the builder, in reverse order. | ||
| 628 | func (x *PathBuilder) AddReversePath(PathVar *Path) { | 696 | func (x *PathBuilder) AddReversePath(PathVar *Path) { | ||
| 697 | + | core.LazyRegister(&xPathBuilderAddReversePath, "GSK", "gsk_path_builder_add_reverse_path", false) | |||
| 698 | + | ||||
| 629 | xPathBuilderAddReversePath(x.GoPointer(), PathVar) | 699 | xPathBuilderAddReversePath(x.GoPointer(), PathVar) | ||
| 630 | } | 700 | } | ||
| 631 | 701 | ||||
| @@ -635,6 +705,8 @@ var xPathBuilderAddRoundedRect func(uintptr, *RoundedRect) | |||||
| 635 | // | 705 | // | ||
| 636 | // The path is going around the rectangle in clockwise direction. | 706 | // The path is going around the rectangle in clockwise direction. | ||
| 637 | func (x *PathBuilder) AddRoundedRect(RectVar *RoundedRect) { | 707 | func (x *PathBuilder) AddRoundedRect(RectVar *RoundedRect) { | ||
| 708 | + | core.LazyRegister(&xPathBuilderAddRoundedRect, "GSK", "gsk_path_builder_add_rounded_rect", false) | |||
| 709 | + | ||||
| 638 | xPathBuilderAddRoundedRect(x.GoPointer(), RectVar) | 710 | xPathBuilderAddRoundedRect(x.GoPointer(), RectVar) | ||
| 639 | } | 711 | } | ||
| 640 | 712 | ||||
| @@ -650,6 +722,8 @@ var xPathBuilderAddSegment func(uintptr, *Path, *PathPoint, *PathPoint) | |||||
| 650 | // Note that this method always adds a path with the given start point | 722 | // Note that this method always adds a path with the given start point | ||
| 651 | // and end point. To add a closed path, use [method@Gsk.PathBuilder.add_path]. | 723 | // and end point. To add a closed path, use [method@Gsk.PathBuilder.add_path]. | ||
| 652 | func (x *PathBuilder) AddSegment(PathVar *Path, StartVar *PathPoint, EndVar *PathPoint) { | 724 | func (x *PathBuilder) AddSegment(PathVar *Path, StartVar *PathPoint, EndVar *PathPoint) { | ||
| 725 | + | core.LazyRegister(&xPathBuilderAddSegment, "GSK", "gsk_path_builder_add_segment", false) | |||
| 726 | + | ||||
| 653 | xPathBuilderAddSegment(x.GoPointer(), PathVar, StartVar, EndVar) | 727 | xPathBuilderAddSegment(x.GoPointer(), PathVar, StartVar, EndVar) | ||
| 654 | } | 728 | } | ||
| 655 | 729 | ||||
| @@ -672,6 +746,8 @@ var xPathBuilderArcTo func(uintptr, float32, float32, float32, float32) | |||||
| 672 | // | 746 | // | ||
| 673 | // </picture> | 747 | // </picture> | ||
| 674 | func (x *PathBuilder) ArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | 748 | func (x *PathBuilder) ArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | ||
| 749 | + | core.LazyRegister(&xPathBuilderArcTo, "GSK", "gsk_path_builder_arc_to", false) | |||
| 750 | + | ||||
| 675 | xPathBuilderArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | 751 | xPathBuilderArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | ||
| 676 | } | 752 | } | ||
| 677 | 753 | ||||
| @@ -685,6 +761,8 @@ var xPathBuilderClose func(uintptr) | |||||
| 685 | // start and end point are considered connected, so they will be | 761 | // start and end point are considered connected, so they will be | ||
| 686 | // joined via the line join, and not ended with line caps. | 762 | // joined via the line join, and not ended with line caps. | ||
| 687 | func (x *PathBuilder) Close() { | 763 | func (x *PathBuilder) Close() { | ||
| 764 | + | core.LazyRegister(&xPathBuilderClose, "GSK", "gsk_path_builder_close", false) | |||
| 765 | + | ||||
| 688 | xPathBuilderClose(x.GoPointer()) | 766 | xPathBuilderClose(x.GoPointer()) | ||
| 689 | } | 767 | } | ||
| 690 | 768 | ||||
| @@ -709,6 +787,8 @@ var xPathBuilderConicTo func(uintptr, float32, float32, float32, float32, float3 | |||||
| 709 | // | 787 | // | ||
| 710 | // </picture> | 788 | // </picture> | ||
| 711 | func (x *PathBuilder) ConicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, WeightVar float32) { | 789 | func (x *PathBuilder) ConicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, WeightVar float32) { | ||
| 790 | + | core.LazyRegister(&xPathBuilderConicTo, "GSK", "gsk_path_builder_conic_to", false) | |||
| 791 | + | ||||
| 712 | xPathBuilderConicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, WeightVar) | 792 | xPathBuilderConicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, WeightVar) | ||
| 713 | } | 793 | } | ||
| 714 | 794 | ||||
| @@ -727,6 +807,8 @@ var xPathBuilderCubicTo func(uintptr, float32, float32, float32, float32, float3 | |||||
| 727 | // | 807 | // | ||
| 728 | // </picture> | 808 | // </picture> | ||
| 729 | func (x *PathBuilder) CubicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, X3Var float32, Y3Var float32) { | 809 | func (x *PathBuilder) CubicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, X3Var float32, Y3Var float32) { | ||
| 810 | + | core.LazyRegister(&xPathBuilderCubicTo, "GSK", "gsk_path_builder_cubic_to", false) | |||
| 811 | + | ||||
| 730 | xPathBuilderCubicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, X3Var, Y3Var) | 812 | xPathBuilderCubicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, X3Var, Y3Var) | ||
| 731 | } | 813 | } | ||
| 732 | 814 | ||||
| @@ -735,6 +817,8 @@ var xPathBuilderFreeToPath func(uintptr) uintptr | |||||
| 735 | // Creates a new path from the current state of the | 817 | // Creates a new path from the current state of the | ||
| 736 | // builder, and unrefs the builder. | 818 | // builder, and unrefs the builder. | ||
| 737 | func (x *PathBuilder) FreeToPath() *Path { | 819 | func (x *PathBuilder) FreeToPath() *Path { | ||
| 820 | + | core.LazyRegister(&xPathBuilderFreeToPath, "GSK", "gsk_path_builder_free_to_path", false) | |||
| 821 | + | ||||
| 738 | cret := xPathBuilderFreeToPath(x.GoPointer()) | 822 | cret := xPathBuilderFreeToPath(x.GoPointer()) | ||
| 739 | if cret == 0 { | 823 | if cret == 0 { | ||
| 740 | return nil | 824 | return nil | ||
| @@ -753,6 +837,8 @@ var xPathBuilderGetCurrentPoint func(uintptr) uintptr | |||||
| 753 | // to `0, 0`. Note that this is different from cairo, which starts | 837 | // to `0, 0`. Note that this is different from cairo, which starts | ||
| 754 | // out without a current point. | 838 | // out without a current point. | ||
| 755 | func (x *PathBuilder) GetCurrentPoint() *graphene.Point { | 839 | func (x *PathBuilder) GetCurrentPoint() *graphene.Point { | ||
| 840 | + | core.LazyRegister(&xPathBuilderGetCurrentPoint, "GSK", "gsk_path_builder_get_current_point", false) | |||
| 841 | + | ||||
| 756 | cret := xPathBuilderGetCurrentPoint(x.GoPointer()) | 842 | cret := xPathBuilderGetCurrentPoint(x.GoPointer()) | ||
| 757 | if cret == 0 { | 843 | if cret == 0 { | ||
| 758 | return nil | 844 | return nil | ||
| @@ -772,6 +858,8 @@ var xPathBuilderHtmlArcTo func(uintptr, float32, float32, float32, float32, floa | |||||
| 772 | // the circle with the given radius touches the line from | 858 | // the circle with the given radius touches the line from | ||
| 773 | // @x1, @y1 to @x2, @y2. | 859 | // @x1, @y1 to @x2, @y2. | ||
| 774 | func (x *PathBuilder) HtmlArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, RadiusVar float32) { | 860 | func (x *PathBuilder) HtmlArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, RadiusVar float32) { | ||
| 861 | + | core.LazyRegister(&xPathBuilderHtmlArcTo, "GSK", "gsk_path_builder_html_arc_to", false) | |||
| 862 | + | ||||
| 775 | xPathBuilderHtmlArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, RadiusVar) | 863 | xPathBuilderHtmlArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, RadiusVar) | ||
| 776 | } | 864 | } | ||
| 777 | 865 | ||||
| @@ -787,6 +875,8 @@ var xPathBuilderLineTo func(uintptr, float32, float32) | |||||
| 787 | // | 875 | // | ||
| 788 | // </picture> | 876 | // </picture> | ||
| 789 | func (x *PathBuilder) LineTo(XVar float32, YVar float32) { | 877 | func (x *PathBuilder) LineTo(XVar float32, YVar float32) { | ||
| 878 | + | core.LazyRegister(&xPathBuilderLineTo, "GSK", "gsk_path_builder_line_to", false) | |||
| 879 | + | ||||
| 790 | xPathBuilderLineTo(x.GoPointer(), XVar, YVar) | 880 | xPathBuilderLineTo(x.GoPointer(), XVar, YVar) | ||
| 791 | } | 881 | } | ||
| 792 | 882 | ||||
| @@ -798,6 +888,8 @@ var xPathBuilderMoveTo func(uintptr, float32, float32) | |||||
| 798 | // call will result in a contour made up of a single point. | 888 | // call will result in a contour made up of a single point. | ||
| 799 | // The second call will start a new contour. | 889 | // The second call will start a new contour. | ||
| 800 | func (x *PathBuilder) MoveTo(XVar float32, YVar float32) { | 890 | func (x *PathBuilder) MoveTo(XVar float32, YVar float32) { | ||
| 891 | + | core.LazyRegister(&xPathBuilderMoveTo, "GSK", "gsk_path_builder_move_to", false) | |||
| 892 | + | ||||
| 801 | xPathBuilderMoveTo(x.GoPointer(), XVar, YVar) | 893 | xPathBuilderMoveTo(x.GoPointer(), XVar, YVar) | ||
| 802 | } | 894 | } | ||
| 803 | 895 | ||||
| @@ -815,6 +907,8 @@ var xPathBuilderQuadTo func(uintptr, float32, float32, float32, float32) | |||||
| 815 | // | 907 | // | ||
| 816 | // </picture> | 908 | // </picture> | ||
| 817 | func (x *PathBuilder) QuadTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | 909 | func (x *PathBuilder) QuadTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | ||
| 910 | + | core.LazyRegister(&xPathBuilderQuadTo, "GSK", "gsk_path_builder_quad_to", false) | |||
| 911 | + | ||||
| 818 | xPathBuilderQuadTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | 912 | xPathBuilderQuadTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | ||
| 819 | } | 913 | } | ||
| 820 | 914 | ||||
| @@ -825,6 +919,8 @@ var xPathBuilderRef func(uintptr) uintptr | |||||
| 825 | // This function is intended primarily for language bindings. | 919 | // This function is intended primarily for language bindings. | ||
| 826 | // `GskPathBuilder` objects should not be kept around. | 920 | // `GskPathBuilder` objects should not be kept around. | ||
| 827 | func (x *PathBuilder) Ref() *PathBuilder { | 921 | func (x *PathBuilder) Ref() *PathBuilder { | ||
| 922 | + | core.LazyRegister(&xPathBuilderRef, "GSK", "gsk_path_builder_ref", false) | |||
| 923 | + | ||||
| 828 | cret := xPathBuilderRef(x.GoPointer()) | 924 | cret := xPathBuilderRef(x.GoPointer()) | ||
| 829 | if cret == 0 { | 925 | if cret == 0 { | ||
| 830 | return nil | 926 | return nil | ||
| @@ -841,6 +937,8 @@ var xPathBuilderRelArcTo func(uintptr, float32, float32, float32, float32) | |||||
| 841 | // | 937 | // | ||
| 842 | // This is the relative version of [method@Gsk.PathBuilder.arc_to]. | 938 | // This is the relative version of [method@Gsk.PathBuilder.arc_to]. | ||
| 843 | func (x *PathBuilder) RelArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | 939 | func (x *PathBuilder) RelArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | ||
| 940 | + | core.LazyRegister(&xPathBuilderRelArcTo, "GSK", "gsk_path_builder_rel_arc_to", false) | |||
| 941 | + | ||||
| 844 | xPathBuilderRelArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | 942 | xPathBuilderRelArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | ||
| 845 | } | 943 | } | ||
| 846 | 944 | ||||
| @@ -854,6 +952,8 @@ var xPathBuilderRelConicTo func(uintptr, float32, float32, float32, float32, flo | |||||
| 854 | // | 952 | // | ||
| 855 | // This is the relative version of [method@Gsk.PathBuilder.conic_to]. | 953 | // This is the relative version of [method@Gsk.PathBuilder.conic_to]. | ||
| 856 | func (x *PathBuilder) RelConicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, WeightVar float32) { | 954 | func (x *PathBuilder) RelConicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, WeightVar float32) { | ||
| 955 | + | core.LazyRegister(&xPathBuilderRelConicTo, "GSK", "gsk_path_builder_rel_conic_to", false) | |||
| 956 | + | ||||
| 857 | xPathBuilderRelConicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, WeightVar) | 957 | xPathBuilderRelConicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, WeightVar) | ||
| 858 | } | 958 | } | ||
| 859 | 959 | ||||
| @@ -867,6 +967,8 @@ var xPathBuilderRelCubicTo func(uintptr, float32, float32, float32, float32, flo | |||||
| 867 | // | 967 | // | ||
| 868 | // This is the relative version of [method@Gsk.PathBuilder.cubic_to]. | 968 | // This is the relative version of [method@Gsk.PathBuilder.cubic_to]. | ||
| 869 | func (x *PathBuilder) RelCubicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, X3Var float32, Y3Var float32) { | 969 | func (x *PathBuilder) RelCubicTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, X3Var float32, Y3Var float32) { | ||
| 970 | + | core.LazyRegister(&xPathBuilderRelCubicTo, "GSK", "gsk_path_builder_rel_cubic_to", false) | |||
| 971 | + | ||||
| 870 | xPathBuilderRelCubicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, X3Var, Y3Var) | 972 | xPathBuilderRelCubicTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, X3Var, Y3Var) | ||
| 871 | } | 973 | } | ||
| 872 | 974 | ||||
| @@ -878,6 +980,8 @@ var xPathBuilderRelHtmlArcTo func(uintptr, float32, float32, float32, float32, f | |||||
| 878 | // | 980 | // | ||
| 879 | // This is the relative version of [method@Gsk.PathBuilder.html_arc_to]. | 981 | // This is the relative version of [method@Gsk.PathBuilder.html_arc_to]. | ||
| 880 | func (x *PathBuilder) RelHtmlArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, RadiusVar float32) { | 982 | func (x *PathBuilder) RelHtmlArcTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32, RadiusVar float32) { | ||
| 983 | + | core.LazyRegister(&xPathBuilderRelHtmlArcTo, "GSK", "gsk_path_builder_rel_html_arc_to", false) | |||
| 984 | + | ||||
| 881 | xPathBuilderRelHtmlArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, RadiusVar) | 985 | xPathBuilderRelHtmlArcTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var, RadiusVar) | ||
| 882 | } | 986 | } | ||
| 883 | 987 | ||||
| @@ -888,6 +992,8 @@ var xPathBuilderRelLineTo func(uintptr, float32, float32) | |||||
| 888 | // | 992 | // | ||
| 889 | // This is the relative version of [method@Gsk.PathBuilder.line_to]. | 993 | // This is the relative version of [method@Gsk.PathBuilder.line_to]. | ||
| 890 | func (x *PathBuilder) RelLineTo(XVar float32, YVar float32) { | 994 | func (x *PathBuilder) RelLineTo(XVar float32, YVar float32) { | ||
| 995 | + | core.LazyRegister(&xPathBuilderRelLineTo, "GSK", "gsk_path_builder_rel_line_to", false) | |||
| 996 | + | ||||
| 891 | xPathBuilderRelLineTo(x.GoPointer(), XVar, YVar) | 997 | xPathBuilderRelLineTo(x.GoPointer(), XVar, YVar) | ||
| 892 | } | 998 | } | ||
| 893 | 999 | ||||
| @@ -898,6 +1004,8 @@ var xPathBuilderRelMoveTo func(uintptr, float32, float32) | |||||
| 898 | // | 1004 | // | ||
| 899 | // This is the relative version of [method@Gsk.PathBuilder.move_to]. | 1005 | // This is the relative version of [method@Gsk.PathBuilder.move_to]. | ||
| 900 | func (x *PathBuilder) RelMoveTo(XVar float32, YVar float32) { | 1006 | func (x *PathBuilder) RelMoveTo(XVar float32, YVar float32) { | ||
| 1007 | + | core.LazyRegister(&xPathBuilderRelMoveTo, "GSK", "gsk_path_builder_rel_move_to", false) | |||
| 1008 | + | ||||
| 901 | xPathBuilderRelMoveTo(x.GoPointer(), XVar, YVar) | 1009 | xPathBuilderRelMoveTo(x.GoPointer(), XVar, YVar) | ||
| 902 | } | 1010 | } | ||
| 903 | 1011 | ||||
| @@ -910,6 +1018,8 @@ var xPathBuilderRelQuadTo func(uintptr, float32, float32, float32, float32) | |||||
| 910 | // | 1018 | // | ||
| 911 | // This is the relative version of [method@Gsk.PathBuilder.quad_to]. | 1019 | // This is the relative version of [method@Gsk.PathBuilder.quad_to]. | ||
| 912 | func (x *PathBuilder) RelQuadTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | 1020 | func (x *PathBuilder) RelQuadTo(X1Var float32, Y1Var float32, X2Var float32, Y2Var float32) { | ||
| 1021 | + | core.LazyRegister(&xPathBuilderRelQuadTo, "GSK", "gsk_path_builder_rel_quad_to", false) | |||
| 1022 | + | ||||
| 913 | xPathBuilderRelQuadTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | 1023 | xPathBuilderRelQuadTo(x.GoPointer(), X1Var, Y1Var, X2Var, Y2Var) | ||
| 914 | } | 1024 | } | ||
| 915 | 1025 | ||||
| @@ -921,6 +1031,8 @@ var xPathBuilderRelSvgArcTo func(uintptr, float32, float32, float32, bool, bool, | |||||
| 921 | // | 1031 | // | ||
| 922 | // This is the relative version of [method@Gsk.PathBuilder.svg_arc_to]. | 1032 | // This is the relative version of [method@Gsk.PathBuilder.svg_arc_to]. | ||
| 923 | func (x *PathBuilder) RelSvgArcTo(RxVar float32, RyVar float32, XAxisRotationVar float32, LargeArcVar bool, PositiveSweepVar bool, XVar float32, YVar float32) { | 1033 | func (x *PathBuilder) RelSvgArcTo(RxVar float32, RyVar float32, XAxisRotationVar float32, LargeArcVar bool, PositiveSweepVar bool, XVar float32, YVar float32) { | ||
| 1034 | + | core.LazyRegister(&xPathBuilderRelSvgArcTo, "GSK", "gsk_path_builder_rel_svg_arc_to", false) | |||
| 1035 | + | ||||
| 924 | xPathBuilderRelSvgArcTo(x.GoPointer(), RxVar, RyVar, XAxisRotationVar, LargeArcVar, PositiveSweepVar, XVar, YVar) | 1036 | xPathBuilderRelSvgArcTo(x.GoPointer(), RxVar, RyVar, XAxisRotationVar, LargeArcVar, PositiveSweepVar, XVar, YVar) | ||
| 925 | } | 1037 | } | ||
| 926 | 1038 | ||||
| @@ -934,6 +1046,8 @@ var xPathBuilderSvgArcTo func(uintptr, float32, float32, float32, bool, bool, fl | |||||
| 934 | // | 1046 | // | ||
| 935 | // After this, @x, @y will be the new current point. | 1047 | // After this, @x, @y will be the new current point. | ||
| 936 | func (x *PathBuilder) SvgArcTo(RxVar float32, RyVar float32, XAxisRotationVar float32, LargeArcVar bool, PositiveSweepVar bool, XVar float32, YVar float32) { | 1048 | func (x *PathBuilder) SvgArcTo(RxVar float32, RyVar float32, XAxisRotationVar float32, LargeArcVar bool, PositiveSweepVar bool, XVar float32, YVar float32) { | ||
| 1049 | + | core.LazyRegister(&xPathBuilderSvgArcTo, "GSK", "gsk_path_builder_svg_arc_to", false) | |||
| 1050 | + | ||||
| 937 | xPathBuilderSvgArcTo(x.GoPointer(), RxVar, RyVar, XAxisRotationVar, LargeArcVar, PositiveSweepVar, XVar, YVar) | 1051 | xPathBuilderSvgArcTo(x.GoPointer(), RxVar, RyVar, XAxisRotationVar, LargeArcVar, PositiveSweepVar, XVar, YVar) | ||
| 938 | } | 1052 | } | ||
| 939 | 1053 | ||||
| @@ -949,6 +1063,8 @@ var xPathBuilderToPath func(uintptr) uintptr | |||||
| 949 | // This function is intended primarily for language bindings. | 1063 | // This function is intended primarily for language bindings. | ||
| 950 | // C code should use [method@Gsk.PathBuilder.free_to_path]. | 1064 | // C code should use [method@Gsk.PathBuilder.free_to_path]. | ||
| 951 | func (x *PathBuilder) ToPath() *Path { | 1065 | func (x *PathBuilder) ToPath() *Path { | ||
| 1066 | + | core.LazyRegister(&xPathBuilderToPath, "GSK", "gsk_path_builder_to_path", false) | |||
| 1067 | + | ||||
| 952 | cret := xPathBuilderToPath(x.GoPointer()) | 1068 | cret := xPathBuilderToPath(x.GoPointer()) | ||
| 953 | if cret == 0 { | 1069 | if cret == 0 { | ||
| 954 | return nil | 1070 | return nil | ||
| @@ -960,6 +1076,8 @@ var xPathBuilderUnref func(uintptr) | |||||
| 960 | 1076 | ||||
| 961 | // Releases a reference on the given builder. | 1077 | // Releases a reference on the given builder. | ||
| 962 | func (x *PathBuilder) Unref() { | 1078 | func (x *PathBuilder) Unref() { | ||
| 1079 | + | core.LazyRegister(&xPathBuilderUnref, "GSK", "gsk_path_builder_unref", false) | |||
| 1080 | + | ||||
| 963 | xPathBuilderUnref(x.GoPointer()) | 1081 | xPathBuilderUnref(x.GoPointer()) | ||
| 964 | } | 1082 | } | ||
| 965 | 1083 | ||||
| @@ -979,6 +1097,7 @@ type PathMeasure struct { | |||||
| 979 | var xPathMeasureGLibType func() types.GType | 1097 | var xPathMeasureGLibType func() types.GType | ||
| 980 | 1098 | ||||
| 981 | func PathMeasureGLibType() types.GType { | 1099 | func PathMeasureGLibType() types.GType { | ||
| 1100 | + | core.LazyRegister(&xPathMeasureGLibType, "GSK", "gsk_path_measure_get_type", false) | |||
| 982 | return xPathMeasureGLibType() | 1101 | return xPathMeasureGLibType() | ||
| 983 | } | 1102 | } | ||
| 984 | 1103 | ||||
| @@ -999,6 +1118,8 @@ var xNewPathMeasure func(*Path) uintptr | |||||
| 999 | // Creates a measure object for the given @path with the | 1118 | // Creates a measure object for the given @path with the | ||
| 1000 | // default tolerance. | 1119 | // default tolerance. | ||
| 1001 | func NewPathMeasure(PathVar *Path) *PathMeasure { | 1120 | func NewPathMeasure(PathVar *Path) *PathMeasure { | ||
| 1121 | + | core.LazyRegister(&xNewPathMeasure, "GSK", "gsk_path_measure_new", false) | |||
| 1122 | + | ||||
| 1002 | cret := xNewPathMeasure(PathVar) | 1123 | cret := xNewPathMeasure(PathVar) | ||
| 1003 | if cret == 0 { | 1124 | if cret == 0 { | ||
| 1004 | return nil | 1125 | return nil | ||
| @@ -1010,6 +1131,8 @@ var xNewPathMeasureWithTolerance func(*Path, float32) uintptr | |||||
| 1010 | 1131 | ||||
| 1011 | // Creates a measure object for the given @path and @tolerance. | 1132 | // Creates a measure object for the given @path and @tolerance. | ||
| 1012 | func NewPathMeasureWithTolerance(PathVar *Path, ToleranceVar float32) *PathMeasure { | 1133 | func NewPathMeasureWithTolerance(PathVar *Path, ToleranceVar float32) *PathMeasure { | ||
| 1134 | + | core.LazyRegister(&xNewPathMeasureWithTolerance, "GSK", "gsk_path_measure_new_with_tolerance", false) | |||
| 1135 | + | ||||
| 1013 | cret := xNewPathMeasureWithTolerance(PathVar, ToleranceVar) | 1136 | cret := xNewPathMeasureWithTolerance(PathVar, ToleranceVar) | ||
| 1014 | if cret == 0 { | 1137 | if cret == 0 { | ||
| 1015 | return nil | 1138 | return nil | ||
| @@ -1023,6 +1146,8 @@ var xPathMeasureGetLength func(uintptr) float32 | |||||
| 1023 | // | 1146 | // | ||
| 1024 | // The length is cached, so this function does not do any work. | 1147 | // The length is cached, so this function does not do any work. | ||
| 1025 | func (x *PathMeasure) GetLength() float32 { | 1148 | func (x *PathMeasure) GetLength() float32 { | ||
| 1149 | + | core.LazyRegister(&xPathMeasureGetLength, "GSK", "gsk_path_measure_get_length", false) | |||
| 1150 | + | ||||
| 1026 | cret := xPathMeasureGetLength(x.GoPointer()) | 1151 | cret := xPathMeasureGetLength(x.GoPointer()) | ||
| 1027 | return cret | 1152 | return cret | ||
| 1028 | } | 1153 | } | ||
| @@ -1031,6 +1156,8 @@ var xPathMeasureGetPath func(uintptr) uintptr | |||||
| 1031 | 1156 | ||||
| 1032 | // Returns the path that the measure was created for. | 1157 | // Returns the path that the measure was created for. | ||
| 1033 | func (x *PathMeasure) GetPath() *Path { | 1158 | func (x *PathMeasure) GetPath() *Path { | ||
| 1159 | + | core.LazyRegister(&xPathMeasureGetPath, "GSK", "gsk_path_measure_get_path", false) | |||
| 1160 | + | ||||
| 1034 | cret := xPathMeasureGetPath(x.GoPointer()) | 1161 | cret := xPathMeasureGetPath(x.GoPointer()) | ||
| 1035 | if cret == 0 { | 1162 | if cret == 0 { | ||
| 1036 | return nil | 1163 | return nil | ||
| @@ -1044,6 +1171,8 @@ var xPathMeasureGetPoint func(uintptr, float32, *PathPoint) bool | |||||
| 1044 | // | 1171 | // | ||
| 1045 | // An empty path has no points, so false is returned in that case. | 1172 | // An empty path has no points, so false is returned in that case. | ||
| 1046 | func (x *PathMeasure) GetPoint(DistanceVar float32, ResultVar *PathPoint) bool { | 1173 | func (x *PathMeasure) GetPoint(DistanceVar float32, ResultVar *PathPoint) bool { | ||
| 1174 | + | core.LazyRegister(&xPathMeasureGetPoint, "GSK", "gsk_path_measure_get_point", false) | |||
| 1175 | + | ||||
| 1047 | cret := xPathMeasureGetPoint(x.GoPointer(), DistanceVar, ResultVar) | 1176 | cret := xPathMeasureGetPoint(x.GoPointer(), DistanceVar, ResultVar) | ||
| 1048 | return cret | 1177 | return cret | ||
| 1049 | } | 1178 | } | ||
| @@ -1052,6 +1181,8 @@ var xPathMeasureGetTolerance func(uintptr) float32 | |||||
| 1052 | 1181 | ||||
| 1053 | // Returns the tolerance that the measure was created with. | 1182 | // Returns the tolerance that the measure was created with. | ||
| 1054 | func (x *PathMeasure) GetTolerance() float32 { | 1183 | func (x *PathMeasure) GetTolerance() float32 { | ||
| 1184 | + | core.LazyRegister(&xPathMeasureGetTolerance, "GSK", "gsk_path_measure_get_tolerance", false) | |||
| 1185 | + | ||||
| 1055 | cret := xPathMeasureGetTolerance(x.GoPointer()) | 1186 | cret := xPathMeasureGetTolerance(x.GoPointer()) | ||
| 1056 | return cret | 1187 | return cret | ||
| 1057 | } | 1188 | } | ||
| @@ -1060,6 +1191,8 @@ var xPathMeasureRef func(uintptr) uintptr | |||||
| 1060 | 1191 | ||||
| 1061 | // Increases the reference count of a `GskPathMeasure` by one. | 1192 | // Increases the reference count of a `GskPathMeasure` by one. | ||
| 1062 | func (x *PathMeasure) Ref() *PathMeasure { | 1193 | func (x *PathMeasure) Ref() *PathMeasure { | ||
| 1194 | + | core.LazyRegister(&xPathMeasureRef, "GSK", "gsk_path_measure_ref", false) | |||
| 1195 | + | ||||
| 1063 | cret := xPathMeasureRef(x.GoPointer()) | 1196 | cret := xPathMeasureRef(x.GoPointer()) | ||
| 1064 | if cret == 0 { | 1197 | if cret == 0 { | ||
| 1065 | return nil | 1198 | return nil | ||
| @@ -1073,6 +1206,8 @@ var xPathMeasureUnref func(uintptr) | |||||
| 1073 | // | 1206 | // | ||
| 1074 | // If the resulting reference count is zero, frees the object. | 1207 | // If the resulting reference count is zero, frees the object. | ||
| 1075 | func (x *PathMeasure) Unref() { | 1208 | func (x *PathMeasure) Unref() { | ||
| 1209 | + | core.LazyRegister(&xPathMeasureUnref, "GSK", "gsk_path_measure_unref", false) | |||
| 1210 | + | ||||
| 1076 | xPathMeasureUnref(x.GoPointer()) | 1211 | xPathMeasureUnref(x.GoPointer()) | ||
| 1077 | } | 1212 | } | ||
| 1078 | 1213 | ||||
| @@ -1169,6 +1304,7 @@ type RenderReplay struct { | |||||
| 1169 | var xRenderReplayGLibType func() types.GType | 1304 | var xRenderReplayGLibType func() types.GType | ||
| 1170 | 1305 | ||||
| 1171 | func RenderReplayGLibType() types.GType { | 1306 | func RenderReplayGLibType() types.GType { | ||
| 1307 | + | core.LazyRegister(&xRenderReplayGLibType, "GSK", "gsk_render_replay_get_type", false) | |||
| 1172 | return xRenderReplayGLibType() | 1308 | return xRenderReplayGLibType() | ||
| 1173 | } | 1309 | } | ||
| 1174 | 1310 | ||||
| @@ -1188,6 +1324,8 @@ var xNewRenderReplay func() uintptr | |||||
| 1188 | 1324 | ||||
| 1189 | // Creates a new replay object to replay nodes. | 1325 | // Creates a new replay object to replay nodes. | ||
| 1190 | func NewRenderReplay() *RenderReplay { | 1326 | func NewRenderReplay() *RenderReplay { | ||
| 1327 | + | core.LazyRegister(&xNewRenderReplay, "GSK", "gsk_render_replay_new", false) | |||
| 1328 | + | ||||
| 1191 | cret := xNewRenderReplay() | 1329 | cret := xNewRenderReplay() | ||
| 1192 | if cret == 0 { | 1330 | if cret == 0 { | ||
| 1193 | return nil | 1331 | return nil | ||
| @@ -1209,6 +1347,7 @@ var xRenderReplayDefault func(uintptr, uintptr) uintptr | |||||
| 1209 | // callbacks return NULL. In that case, this function will return | 1347 | // callbacks return NULL. In that case, this function will return | ||
| 1210 | // NULL, too. | 1348 | // NULL, too. | ||
| 1211 | func (x *RenderReplay) Default(NodeVar *RenderNode) *RenderNode { | 1349 | func (x *RenderReplay) Default(NodeVar *RenderNode) *RenderNode { | ||
| 1350 | + | core.LazyRegister(&xRenderReplayDefault, "GSK", "gsk_render_replay_default", false) | |||
| 1212 | var cls *RenderNode | 1351 | var cls *RenderNode | ||
| 1213 | 1352 | ||||
| 1214 | cret := xRenderReplayDefault(x.GoPointer(), NodeVar.GoPointer()) | 1353 | cret := xRenderReplayDefault(x.GoPointer(), NodeVar.GoPointer()) | ||
| @@ -1225,6 +1364,7 @@ var xRenderReplayFilterFont func(uintptr, uintptr) uintptr | |||||
| 1225 | 1364 | ||||
| 1226 | // Filters a font using the current filter function. | 1365 | // Filters a font using the current filter function. | ||
| 1227 | func (x *RenderReplay) FilterFont(FontVar *pango.Font) *pango.Font { | 1366 | func (x *RenderReplay) FilterFont(FontVar *pango.Font) *pango.Font { | ||
| 1367 | + | core.LazyRegister(&xRenderReplayFilterFont, "GSK", "gsk_render_replay_filter_font", false) | |||
| 1228 | var cls *pango.Font | 1368 | var cls *pango.Font | ||
| 1229 | 1369 | ||||
| 1230 | cret := xRenderReplayFilterFont(x.GoPointer(), FontVar.GoPointer()) | 1370 | cret := xRenderReplayFilterFont(x.GoPointer(), FontVar.GoPointer()) | ||
| @@ -1247,6 +1387,7 @@ var xRenderReplayFilterNode func(uintptr, uintptr) uintptr | |||||
| 1247 | // If no filter node is set, [method@Gsk.RenderReplay.default] is | 1387 | // If no filter node is set, [method@Gsk.RenderReplay.default] is | ||
| 1248 | // called instead. | 1388 | // called instead. | ||
| 1249 | func (x *RenderReplay) FilterNode(NodeVar *RenderNode) *RenderNode { | 1389 | func (x *RenderReplay) FilterNode(NodeVar *RenderNode) *RenderNode { | ||
| 1390 | + | core.LazyRegister(&xRenderReplayFilterNode, "GSK", "gsk_render_replay_filter_node", false) | |||
| 1250 | var cls *RenderNode | 1391 | var cls *RenderNode | ||
| 1251 | 1392 | ||||
| 1252 | cret := xRenderReplayFilterNode(x.GoPointer(), NodeVar.GoPointer()) | 1393 | cret := xRenderReplayFilterNode(x.GoPointer(), NodeVar.GoPointer()) | ||
| @@ -1263,6 +1404,7 @@ var xRenderReplayFilterTexture func(uintptr, uintptr) uintptr | |||||
| 1263 | 1404 | ||||
| 1264 | // Filters a texture using the current filter function. | 1405 | // Filters a texture using the current filter function. | ||
| 1265 | func (x *RenderReplay) FilterTexture(TextureVar *gdk.Texture) *gdk.Texture { | 1406 | func (x *RenderReplay) FilterTexture(TextureVar *gdk.Texture) *gdk.Texture { | ||
| 1407 | + | core.LazyRegister(&xRenderReplayFilterTexture, "GSK", "gsk_render_replay_filter_texture", false) | |||
| 1266 | var cls *gdk.Texture | 1408 | var cls *gdk.Texture | ||
| 1267 | 1409 | ||||
| 1268 | cret := xRenderReplayFilterTexture(x.GoPointer(), TextureVar.GoPointer()) | 1410 | cret := xRenderReplayFilterTexture(x.GoPointer(), TextureVar.GoPointer()) | ||
| @@ -1279,6 +1421,8 @@ var xRenderReplayFree func(uintptr) | |||||
| 1279 | 1421 | ||||
| 1280 | // Frees a `GskRenderReplay`. | 1422 | // Frees a `GskRenderReplay`. | ||
| 1281 | func (x *RenderReplay) Free() { | 1423 | func (x *RenderReplay) Free() { | ||
| 1424 | + | core.LazyRegister(&xRenderReplayFree, "GSK", "gsk_render_replay_free", false) | |||
| 1425 | + | ||||
| 1282 | xRenderReplayFree(x.GoPointer()) | 1426 | xRenderReplayFree(x.GoPointer()) | ||
| 1283 | } | 1427 | } | ||
| 1284 | 1428 | ||||
| @@ -1290,6 +1434,8 @@ var xRenderReplaySetFontFilter func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1290 | // You can call [method@GskRenderReplay.filter_font] to filter | 1434 | // You can call [method@GskRenderReplay.filter_font] to filter | ||
| 1291 | // a font yourself. | 1435 | // a font yourself. | ||
| 1292 | func (x *RenderReplay) SetFontFilter(FilterVar *RenderReplayFontFilter, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | 1436 | func (x *RenderReplay) SetFontFilter(FilterVar *RenderReplayFontFilter, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | ||
| 1437 | + | core.LazyRegister(&xRenderReplaySetFontFilter, "GSK", "gsk_render_replay_set_font_filter", false) | |||
| 1438 | + | ||||
| 1293 | xRenderReplaySetFontFilter(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | 1439 | xRenderReplaySetFontFilter(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | ||
| 1294 | } | 1440 | } | ||
| 1295 | 1441 | ||||
| @@ -1309,6 +1455,8 @@ var xRenderReplaySetNodeFilter func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1309 | // - call [method@Gsk.RenderReplay.default] to have the default handler | 1455 | // - call [method@Gsk.RenderReplay.default] to have the default handler | ||
| 1310 | // run for this node, which calls your function on its children | 1456 | // run for this node, which calls your function on its children | ||
| 1311 | func (x *RenderReplay) SetNodeFilter(FilterVar *RenderReplayNodeFilter, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | 1457 | func (x *RenderReplay) SetNodeFilter(FilterVar *RenderReplayNodeFilter, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | ||
| 1458 | + | core.LazyRegister(&xRenderReplaySetNodeFilter, "GSK", "gsk_render_replay_set_node_filter", false) | |||
| 1459 | + | ||||
| 1312 | xRenderReplaySetNodeFilter(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | 1460 | xRenderReplaySetNodeFilter(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | ||
| 1313 | } | 1461 | } | ||
| 1314 | 1462 | ||||
| @@ -1320,6 +1468,8 @@ var xRenderReplaySetTextureFilter func(uintptr, uintptr, uintptr, uintptr) | |||||
| 1320 | // You can call [method@GskRenderReplay.filter_texture] to filter | 1468 | // You can call [method@GskRenderReplay.filter_texture] to filter | ||
| 1321 | // a texture yourself. | 1469 | // a texture yourself. | ||
| 1322 | func (x *RenderReplay) SetTextureFilter(FilterVar *RenderReplayTextureFilter, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | 1470 | func (x *RenderReplay) SetTextureFilter(FilterVar *RenderReplayTextureFilter, UserDataVar uintptr, UserDestroyVar *glib.DestroyNotify) { | ||
| 1471 | + | core.LazyRegister(&xRenderReplaySetTextureFilter, "GSK", "gsk_render_replay_set_texture_filter", false) | |||
| 1472 | + | ||||
| 1323 | xRenderReplaySetTextureFilter(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | 1473 | xRenderReplaySetTextureFilter(x.GoPointer(), glib.NewCallbackNullable(FilterVar), UserDataVar, glib.NewCallbackNullable(UserDestroyVar)) | ||
| 1324 | } | 1474 | } | ||
| 1325 | 1475 | ||||
| @@ -1331,6 +1481,7 @@ type Stroke struct { | |||||
| 1331 | var xStrokeGLibType func() types.GType | 1481 | var xStrokeGLibType func() types.GType | ||
| 1332 | 1482 | ||||
| 1333 | func StrokeGLibType() types.GType { | 1483 | func StrokeGLibType() types.GType { | ||
| 1484 | + | core.LazyRegister(&xStrokeGLibType, "GSK", "gsk_stroke_get_type", false) | |||
| 1334 | return xStrokeGLibType() | 1485 | return xStrokeGLibType() | ||
| 1335 | } | 1486 | } | ||
| 1336 | 1487 | ||||
| @@ -1350,6 +1501,8 @@ var xNewStroke func(float32) uintptr | |||||
| 1350 | 1501 | ||||
| 1351 | // Creates a new `GskStroke` with the given @line_width. | 1502 | // Creates a new `GskStroke` with the given @line_width. | ||
| 1352 | func NewStroke(LineWidthVar float32) *Stroke { | 1503 | func NewStroke(LineWidthVar float32) *Stroke { | ||
| 1504 | + | core.LazyRegister(&xNewStroke, "GSK", "gsk_stroke_new", false) | |||
| 1505 | + | ||||
| 1353 | cret := xNewStroke(LineWidthVar) | 1506 | cret := xNewStroke(LineWidthVar) | ||
| 1354 | if cret == 0 { | 1507 | if cret == 0 { | ||
| 1355 | return nil | 1508 | return nil | ||
| @@ -1361,6 +1514,8 @@ var xStrokeCopy func(uintptr) uintptr | |||||
| 1361 | 1514 | ||||
| 1362 | // Creates a copy of a `GskStroke`. | 1515 | // Creates a copy of a `GskStroke`. | ||
| 1363 | func (x *Stroke) Copy() *Stroke { | 1516 | func (x *Stroke) Copy() *Stroke { | ||
| 1517 | + | core.LazyRegister(&xStrokeCopy, "GSK", "gsk_stroke_copy", false) | |||
| 1518 | + | ||||
| 1364 | cret := xStrokeCopy(x.GoPointer()) | 1519 | cret := xStrokeCopy(x.GoPointer()) | ||
| 1365 | if cret == 0 { | 1520 | if cret == 0 { | ||
| 1366 | return nil | 1521 | return nil | ||
| @@ -1372,6 +1527,8 @@ var xStrokeFree func(uintptr) | |||||
| 1372 | 1527 | ||||
| 1373 | // Frees a `GskStroke`. | 1528 | // Frees a `GskStroke`. | ||
| 1374 | func (x *Stroke) Free() { | 1529 | func (x *Stroke) Free() { | ||
| 1530 | + | core.LazyRegister(&xStrokeFree, "GSK", "gsk_stroke_free", false) | |||
| 1531 | + | ||||
| 1375 | xStrokeFree(x.GoPointer()) | 1532 | xStrokeFree(x.GoPointer()) | ||
| 1376 | } | 1533 | } | ||
| 1377 | 1534 | ||||
| @@ -1379,6 +1536,8 @@ var xStrokeGetDash func(uintptr, *uint) uintptr | |||||
| 1379 | 1536 | ||||
| 1380 | // Gets the dash array in use. | 1537 | // Gets the dash array in use. | ||
| 1381 | func (x *Stroke) GetDash(NDashVar *uint) uintptr { | 1538 | func (x *Stroke) GetDash(NDashVar *uint) uintptr { | ||
| 1539 | + | core.LazyRegister(&xStrokeGetDash, "GSK", "gsk_stroke_get_dash", false) | |||
| 1540 | + | ||||
| 1382 | cret := xStrokeGetDash(x.GoPointer(), NDashVar) | 1541 | cret := xStrokeGetDash(x.GoPointer(), NDashVar) | ||
| 1383 | return cret | 1542 | return cret | ||
| 1384 | } | 1543 | } | ||
| @@ -1387,6 +1546,8 @@ var xStrokeGetDashOffset func(uintptr) float32 | |||||
| 1387 | 1546 | ||||
| 1388 | // Gets the dash offset. | 1547 | // Gets the dash offset. | ||
| 1389 | func (x *Stroke) GetDashOffset() float32 { | 1548 | func (x *Stroke) GetDashOffset() float32 { | ||
| 1549 | + | core.LazyRegister(&xStrokeGetDashOffset, "GSK", "gsk_stroke_get_dash_offset", false) | |||
| 1550 | + | ||||
| 1390 | cret := xStrokeGetDashOffset(x.GoPointer()) | 1551 | cret := xStrokeGetDashOffset(x.GoPointer()) | ||
| 1391 | return cret | 1552 | return cret | ||
| 1392 | } | 1553 | } | ||
| @@ -1397,6 +1558,8 @@ var xStrokeGetLineCap func(uintptr) LineCap | |||||
| 1397 | // | 1558 | // | ||
| 1398 | // See [enum@Gsk.LineCap] for details. | 1559 | // See [enum@Gsk.LineCap] for details. | ||
| 1399 | func (x *Stroke) GetLineCap() LineCap { | 1560 | func (x *Stroke) GetLineCap() LineCap { | ||
| 1561 | + | core.LazyRegister(&xStrokeGetLineCap, "GSK", "gsk_stroke_get_line_cap", false) | |||
| 1562 | + | ||||
| 1400 | cret := xStrokeGetLineCap(x.GoPointer()) | 1563 | cret := xStrokeGetLineCap(x.GoPointer()) | ||
| 1401 | return cret | 1564 | return cret | ||
| 1402 | } | 1565 | } | ||
| @@ -1407,6 +1570,8 @@ var xStrokeGetLineJoin func(uintptr) LineJoin | |||||
| 1407 | // | 1570 | // | ||
| 1408 | // See [enum@Gsk.LineJoin] for details. | 1571 | // See [enum@Gsk.LineJoin] for details. | ||
| 1409 | func (x *Stroke) GetLineJoin() LineJoin { | 1572 | func (x *Stroke) GetLineJoin() LineJoin { | ||
| 1573 | + | core.LazyRegister(&xStrokeGetLineJoin, "GSK", "gsk_stroke_get_line_join", false) | |||
| 1574 | + | ||||
| 1410 | cret := xStrokeGetLineJoin(x.GoPointer()) | 1575 | cret := xStrokeGetLineJoin(x.GoPointer()) | ||
| 1411 | return cret | 1576 | return cret | ||
| 1412 | } | 1577 | } | ||
| @@ -1415,6 +1580,8 @@ var xStrokeGetLineWidth func(uintptr) float32 | |||||
| 1415 | 1580 | ||||
| 1416 | // Gets the line width used. | 1581 | // Gets the line width used. | ||
| 1417 | func (x *Stroke) GetLineWidth() float32 { | 1582 | func (x *Stroke) GetLineWidth() float32 { | ||
| 1583 | + | core.LazyRegister(&xStrokeGetLineWidth, "GSK", "gsk_stroke_get_line_width", false) | |||
| 1584 | + | ||||
| 1418 | cret := xStrokeGetLineWidth(x.GoPointer()) | 1585 | cret := xStrokeGetLineWidth(x.GoPointer()) | ||
| 1419 | return cret | 1586 | return cret | ||
| 1420 | } | 1587 | } | ||
| @@ -1423,6 +1590,8 @@ var xStrokeGetMiterLimit func(uintptr) float32 | |||||
| 1423 | 1590 | ||||
| 1424 | // Gets the miter limit. | 1591 | // Gets the miter limit. | ||
| 1425 | func (x *Stroke) GetMiterLimit() float32 { | 1592 | func (x *Stroke) GetMiterLimit() float32 { | ||
| 1593 | + | core.LazyRegister(&xStrokeGetMiterLimit, "GSK", "gsk_stroke_get_miter_limit", false) | |||
| 1594 | + | ||||
| 1426 | cret := xStrokeGetMiterLimit(x.GoPointer()) | 1595 | cret := xStrokeGetMiterLimit(x.GoPointer()) | ||
| 1427 | return cret | 1596 | return cret | ||
| 1428 | } | 1597 | } | ||
| @@ -1453,6 +1622,8 @@ var xStrokeSetDash func(uintptr, []float32, uint) | |||||
| 1453 | // You can specify a starting offset into the dash with | 1622 | // You can specify a starting offset into the dash with | ||
| 1454 | // [method@Gsk.Stroke.set_dash_offset]. | 1623 | // [method@Gsk.Stroke.set_dash_offset]. | ||
| 1455 | func (x *Stroke) SetDash(DashVar []float32, NDashVar uint) { | 1624 | func (x *Stroke) SetDash(DashVar []float32, NDashVar uint) { | ||
| 1625 | + | core.LazyRegister(&xStrokeSetDash, "GSK", "gsk_stroke_set_dash", false) | |||
| 1626 | + | ||||
| 1456 | xStrokeSetDash(x.GoPointer(), DashVar, NDashVar) | 1627 | xStrokeSetDash(x.GoPointer(), DashVar, NDashVar) | ||
| 1457 | } | 1628 | } | ||
| 1458 | 1629 | ||||
| @@ -1465,6 +1636,8 @@ var xStrokeSetDashOffset func(uintptr, float32) | |||||
| 1465 | // | 1636 | // | ||
| 1466 | // See [method@Gsk.Stroke.set_dash] for more details on dashing. | 1637 | // See [method@Gsk.Stroke.set_dash] for more details on dashing. | ||
| 1467 | func (x *Stroke) SetDashOffset(OffsetVar float32) { | 1638 | func (x *Stroke) SetDashOffset(OffsetVar float32) { | ||
| 1639 | + | core.LazyRegister(&xStrokeSetDashOffset, "GSK", "gsk_stroke_set_dash_offset", false) | |||
| 1640 | + | ||||
| 1468 | xStrokeSetDashOffset(x.GoPointer(), OffsetVar) | 1641 | xStrokeSetDashOffset(x.GoPointer(), OffsetVar) | ||
| 1469 | } | 1642 | } | ||
| 1470 | 1643 | ||||
| @@ -1474,6 +1647,8 @@ var xStrokeSetLineCap func(uintptr, LineCap) | |||||
| 1474 | // | 1647 | // | ||
| 1475 | // See [enum@Gsk.LineCap] for details. | 1648 | // See [enum@Gsk.LineCap] for details. | ||
| 1476 | func (x *Stroke) SetLineCap(LineCapVar LineCap) { | 1649 | func (x *Stroke) SetLineCap(LineCapVar LineCap) { | ||
| 1650 | + | core.LazyRegister(&xStrokeSetLineCap, "GSK", "gsk_stroke_set_line_cap", false) | |||
| 1651 | + | ||||
| 1477 | xStrokeSetLineCap(x.GoPointer(), LineCapVar) | 1652 | xStrokeSetLineCap(x.GoPointer(), LineCapVar) | ||
| 1478 | } | 1653 | } | ||
| 1479 | 1654 | ||||
| @@ -1483,6 +1658,8 @@ var xStrokeSetLineJoin func(uintptr, LineJoin) | |||||
| 1483 | // | 1658 | // | ||
| 1484 | // See [enum@Gsk.LineJoin] for details. | 1659 | // See [enum@Gsk.LineJoin] for details. | ||
| 1485 | func (x *Stroke) SetLineJoin(LineJoinVar LineJoin) { | 1660 | func (x *Stroke) SetLineJoin(LineJoinVar LineJoin) { | ||
| 1661 | + | core.LazyRegister(&xStrokeSetLineJoin, "GSK", "gsk_stroke_set_line_join", false) | |||
| 1662 | + | ||||
| 1486 | xStrokeSetLineJoin(x.GoPointer(), LineJoinVar) | 1663 | xStrokeSetLineJoin(x.GoPointer(), LineJoinVar) | ||
| 1487 | } | 1664 | } | ||
| 1488 | 1665 | ||||
| @@ -1492,6 +1669,8 @@ var xStrokeSetLineWidth func(uintptr, float32) | |||||
| 1492 | // | 1669 | // | ||
| 1493 | // The line width must be >= 0. | 1670 | // The line width must be >= 0. | ||
| 1494 | func (x *Stroke) SetLineWidth(LineWidthVar float32) { | 1671 | func (x *Stroke) SetLineWidth(LineWidthVar float32) { | ||
| 1672 | + | core.LazyRegister(&xStrokeSetLineWidth, "GSK", "gsk_stroke_set_line_width", false) | |||
| 1673 | + | ||||
| 1495 | xStrokeSetLineWidth(x.GoPointer(), LineWidthVar) | 1674 | xStrokeSetLineWidth(x.GoPointer(), LineWidthVar) | ||
| 1496 | } | 1675 | } | ||
| 1497 | 1676 | ||||
| @@ -1507,6 +1686,8 @@ var xStrokeSetMiterLimit func(uintptr, float32) | |||||
| 1507 | // For joins of type [enum@Gsk.LineJoin.miter] that exceed the miter limit, | 1686 | // For joins of type [enum@Gsk.LineJoin.miter] that exceed the miter limit, | ||
| 1508 | // the join gets rendered as if it was of type [enum@Gsk.LineJoin.bevel]. | 1687 | // the join gets rendered as if it was of type [enum@Gsk.LineJoin.bevel]. | ||
| 1509 | func (x *Stroke) SetMiterLimit(LimitVar float32) { | 1688 | func (x *Stroke) SetMiterLimit(LimitVar float32) { | ||
| 1689 | + | core.LazyRegister(&xStrokeSetMiterLimit, "GSK", "gsk_stroke_set_miter_limit", false) | |||
| 1690 | + | ||||
| 1510 | xStrokeSetMiterLimit(x.GoPointer(), LimitVar) | 1691 | xStrokeSetMiterLimit(x.GoPointer(), LimitVar) | ||
| 1511 | } | 1692 | } | ||
| 1512 | 1693 | ||||
| @@ -1515,6 +1696,8 @@ var xStrokeToCairo func(uintptr, *cairo.Context) | |||||
| 1515 | // A helper function that sets the stroke parameters | 1696 | // A helper function that sets the stroke parameters | ||
| 1516 | // of a cairo context from a `GskStroke`. | 1697 | // of a cairo context from a `GskStroke`. | ||
| 1517 | func (x *Stroke) ToCairo(CrVar *cairo.Context) { | 1698 | func (x *Stroke) ToCairo(CrVar *cairo.Context) { | ||
| 1699 | + | core.LazyRegister(&xStrokeToCairo, "GSK", "gsk_stroke_to_cairo", false) | |||
| 1700 | + | ||||
| 1518 | xStrokeToCairo(x.GoPointer(), CrVar) | 1701 | xStrokeToCairo(x.GoPointer(), CrVar) | ||
| 1519 | } | 1702 | } | ||
| 1520 | 1703 | ||||
| @@ -1534,6 +1717,7 @@ type Transform struct { | |||||
| 1534 | var xTransformGLibType func() types.GType | 1717 | var xTransformGLibType func() types.GType | ||
| 1535 | 1718 | ||||
| 1536 | func TransformGLibType() types.GType { | 1719 | func TransformGLibType() types.GType { | ||
| 1720 | + | core.LazyRegister(&xTransformGLibType, "GSK", "gsk_transform_get_type", false) | |||
| 1537 | return xTransformGLibType() | 1721 | return xTransformGLibType() | ||
| 1538 | } | 1722 | } | ||
| 1539 | 1723 | ||||
| @@ -1556,6 +1740,8 @@ var xNewTransform func() uintptr | |||||
| 1556 | // This function is meant to be used by language | 1740 | // This function is meant to be used by language | ||
| 1557 | // bindings. For C code, this is equivalent to using `NULL`. | 1741 | // bindings. For C code, this is equivalent to using `NULL`. | ||
| 1558 | func NewTransform() *Transform { | 1742 | func NewTransform() *Transform { | ||
| 1743 | + | core.LazyRegister(&xNewTransform, "GSK", "gsk_transform_new", false) | |||
| 1744 | + | ||||
| 1559 | cret := xNewTransform() | 1745 | cret := xNewTransform() | ||
| 1560 | if cret == 0 { | 1746 | if cret == 0 { | ||
| 1561 | return nil | 1747 | return nil | ||
| @@ -1567,6 +1753,8 @@ var xTransformEqual func(uintptr, *Transform) bool | |||||
| 1567 | 1753 | ||||
| 1568 | // Checks two transforms for equality. | 1754 | // Checks two transforms for equality. | ||
| 1569 | func (x *Transform) Equal(SecondVar *Transform) bool { | 1755 | func (x *Transform) Equal(SecondVar *Transform) bool { | ||
| 1756 | + | core.LazyRegister(&xTransformEqual, "GSK", "gsk_transform_equal", false) | |||
| 1757 | + | ||||
| 1570 | cret := xTransformEqual(x.GoPointer(), SecondVar) | 1758 | cret := xTransformEqual(x.GoPointer(), SecondVar) | ||
| 1571 | return cret | 1759 | return cret | ||
| 1572 | } | 1760 | } | ||
| @@ -1575,6 +1763,8 @@ var xTransformGetCategory func(uintptr) TransformCategory | |||||
| 1575 | 1763 | ||||
| 1576 | // Returns the category this transform belongs to. | 1764 | // Returns the category this transform belongs to. | ||
| 1577 | func (x *Transform) GetCategory() TransformCategory { | 1765 | func (x *Transform) GetCategory() TransformCategory { | ||
| 1766 | + | core.LazyRegister(&xTransformGetCategory, "GSK", "gsk_transform_get_category", false) | |||
| 1767 | + | ||||
| 1578 | cret := xTransformGetCategory(x.GoPointer()) | 1768 | cret := xTransformGetCategory(x.GoPointer()) | ||
| 1579 | return cret | 1769 | return cret | ||
| 1580 | } | 1770 | } | ||
| @@ -1592,6 +1782,8 @@ var xTransformInvert func(uintptr) uintptr | |||||
| 1592 | // This function consumes @self. Use [method@Gsk.Transform.ref] first | 1782 | // This function consumes @self. Use [method@Gsk.Transform.ref] first | ||
| 1593 | // if you want to keep it around. | 1783 | // if you want to keep it around. | ||
| 1594 | func (x *Transform) Invert() *Transform { | 1784 | func (x *Transform) Invert() *Transform { | ||
| 1785 | + | core.LazyRegister(&xTransformInvert, "GSK", "gsk_transform_invert", false) | |||
| 1786 | + | ||||
| 1595 | cret := xTransformInvert(x.GoPointer()) | 1787 | cret := xTransformInvert(x.GoPointer()) | ||
| 1596 | if cret == 0 { | 1788 | if cret == 0 { | ||
| 1597 | return nil | 1789 | return nil | ||
| @@ -1606,6 +1798,8 @@ var xTransformMatrix func(uintptr, *graphene.Matrix) uintptr | |||||
| 1606 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 1798 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1607 | // if you want to keep it around. | 1799 | // if you want to keep it around. | ||
| 1608 | func (x *Transform) Matrix(MatrixVar *graphene.Matrix) *Transform { | 1800 | func (x *Transform) Matrix(MatrixVar *graphene.Matrix) *Transform { | ||
| 1801 | + | core.LazyRegister(&xTransformMatrix, "GSK", "gsk_transform_matrix", false) | |||
| 1802 | + | ||||
| 1609 | cret := xTransformMatrix(x.GoPointer(), MatrixVar) | 1803 | cret := xTransformMatrix(x.GoPointer(), MatrixVar) | ||
| 1610 | if cret == 0 { | 1804 | if cret == 0 { | ||
| 1611 | return nil | 1805 | return nil | ||
| @@ -1624,6 +1818,8 @@ var xTransformMatrix2d func(uintptr, float32, float32, float32, float32, float32 | |||||
| 1624 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 1818 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1625 | // if you want to keep it around. | 1819 | // if you want to keep it around. | ||
| 1626 | func (x *Transform) Matrix2d(XxVar float32, YxVar float32, XyVar float32, YyVar float32, DxVar float32, DyVar float32) *Transform { | 1820 | func (x *Transform) Matrix2d(XxVar float32, YxVar float32, XyVar float32, YyVar float32, DxVar float32, DyVar float32) *Transform { | ||
| 1821 | + | core.LazyRegister(&xTransformMatrix2d, "GSK", "gsk_transform_matrix_2d", false) | |||
| 1822 | + | ||||
| 1627 | cret := xTransformMatrix2d(x.GoPointer(), XxVar, YxVar, XyVar, YyVar, DxVar, DyVar) | 1823 | cret := xTransformMatrix2d(x.GoPointer(), XxVar, YxVar, XyVar, YyVar, DxVar, DyVar) | ||
| 1628 | if cret == 0 { | 1824 | if cret == 0 { | ||
| 1629 | return nil | 1825 | return nil | ||
| @@ -1643,6 +1839,8 @@ var xTransformPerspective func(uintptr, float32) uintptr | |||||
| 1643 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 1839 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1644 | // if you want to keep it around. | 1840 | // if you want to keep it around. | ||
| 1645 | func (x *Transform) Perspective(DepthVar float32) *Transform { | 1841 | func (x *Transform) Perspective(DepthVar float32) *Transform { | ||
| 1842 | + | core.LazyRegister(&xTransformPerspective, "GSK", "gsk_transform_perspective", false) | |||
| 1843 | + | ||||
| 1646 | cret := xTransformPerspective(x.GoPointer(), DepthVar) | 1844 | cret := xTransformPerspective(x.GoPointer(), DepthVar) | ||
| 1647 | if cret == 0 { | 1845 | if cret == 0 { | ||
| 1648 | return nil | 1846 | return nil | ||
| @@ -1657,6 +1855,8 @@ var xTransformPrint func(uintptr, *glib.String) | |||||
| 1657 | // The result of this function can later be parsed with | 1855 | // The result of this function can later be parsed with | ||
| 1658 | // [func@Gsk.Transform.parse]. | 1856 | // [func@Gsk.Transform.parse]. | ||
| 1659 | func (x *Transform) Print(StringVar *glib.String) { | 1857 | func (x *Transform) Print(StringVar *glib.String) { | ||
| 1858 | + | core.LazyRegister(&xTransformPrint, "GSK", "gsk_transform_print", false) | |||
| 1859 | + | ||||
| 1660 | xTransformPrint(x.GoPointer(), StringVar) | 1860 | xTransformPrint(x.GoPointer(), StringVar) | ||
| 1661 | } | 1861 | } | ||
| 1662 | 1862 | ||||
| @@ -1664,6 +1864,8 @@ var xTransformRef func(uintptr) uintptr | |||||
| 1664 | 1864 | ||||
| 1665 | // Acquires a reference on the given transform. | 1865 | // Acquires a reference on the given transform. | ||
| 1666 | func (x *Transform) Ref() *Transform { | 1866 | func (x *Transform) Ref() *Transform { | ||
| 1867 | + | core.LazyRegister(&xTransformRef, "GSK", "gsk_transform_ref", false) | |||
| 1868 | + | ||||
| 1667 | cret := xTransformRef(x.GoPointer()) | 1869 | cret := xTransformRef(x.GoPointer()) | ||
| 1668 | if cret == 0 { | 1870 | if cret == 0 { | ||
| 1669 | return nil | 1871 | return nil | ||
| @@ -1680,6 +1882,8 @@ var xTransformRotate func(uintptr, float32) uintptr | |||||
| 1680 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 1882 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1681 | // if you want to keep it around. | 1883 | // if you want to keep it around. | ||
| 1682 | func (x *Transform) Rotate(AngleVar float32) *Transform { | 1884 | func (x *Transform) Rotate(AngleVar float32) *Transform { | ||
| 1885 | + | core.LazyRegister(&xTransformRotate, "GSK", "gsk_transform_rotate", false) | |||
| 1886 | + | ||||
| 1683 | cret := xTransformRotate(x.GoPointer(), AngleVar) | 1887 | cret := xTransformRotate(x.GoPointer(), AngleVar) | ||
| 1684 | if cret == 0 { | 1888 | if cret == 0 { | ||
| 1685 | return nil | 1889 | return nil | ||
| @@ -1696,6 +1900,8 @@ var xTransformRotate3d func(uintptr, float32, *graphene.Vec3) uintptr | |||||
| 1696 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 1900 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1697 | // if you want to keep it around. | 1901 | // if you want to keep it around. | ||
| 1698 | func (x *Transform) Rotate3d(AngleVar float32, AxisVar *graphene.Vec3) *Transform { | 1902 | func (x *Transform) Rotate3d(AngleVar float32, AxisVar *graphene.Vec3) *Transform { | ||
| 1903 | + | core.LazyRegister(&xTransformRotate3d, "GSK", "gsk_transform_rotate_3d", false) | |||
| 1904 | + | ||||
| 1699 | cret := xTransformRotate3d(x.GoPointer(), AngleVar, AxisVar) | 1905 | cret := xTransformRotate3d(x.GoPointer(), AngleVar, AxisVar) | ||
| 1700 | if cret == 0 { | 1906 | if cret == 0 { | ||
| 1701 | return nil | 1907 | return nil | ||
| @@ -1712,6 +1918,8 @@ var xTransformScale func(uintptr, float32, float32) uintptr | |||||
| 1712 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 1918 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1713 | // if you want to keep it around. | 1919 | // if you want to keep it around. | ||
| 1714 | func (x *Transform) Scale(FactorXVar float32, FactorYVar float32) *Transform { | 1920 | func (x *Transform) Scale(FactorXVar float32, FactorYVar float32) *Transform { | ||
| 1921 | + | core.LazyRegister(&xTransformScale, "GSK", "gsk_transform_scale", false) | |||
| 1922 | + | ||||
| 1715 | cret := xTransformScale(x.GoPointer(), FactorXVar, FactorYVar) | 1923 | cret := xTransformScale(x.GoPointer(), FactorXVar, FactorYVar) | ||
| 1716 | if cret == 0 { | 1924 | if cret == 0 { | ||
| 1717 | return nil | 1925 | return nil | ||
| @@ -1726,6 +1934,8 @@ var xTransformScale3d func(uintptr, float32, float32, float32) uintptr | |||||
| 1726 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 1934 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1727 | // if you want to keep it around. | 1935 | // if you want to keep it around. | ||
| 1728 | func (x *Transform) Scale3d(FactorXVar float32, FactorYVar float32, FactorZVar float32) *Transform { | 1936 | func (x *Transform) Scale3d(FactorXVar float32, FactorYVar float32, FactorZVar float32) *Transform { | ||
| 1937 | + | core.LazyRegister(&xTransformScale3d, "GSK", "gsk_transform_scale_3d", false) | |||
| 1938 | + | ||||
| 1729 | cret := xTransformScale3d(x.GoPointer(), FactorXVar, FactorYVar, FactorZVar) | 1939 | cret := xTransformScale3d(x.GoPointer(), FactorXVar, FactorYVar, FactorZVar) | ||
| 1730 | if cret == 0 { | 1940 | if cret == 0 { | ||
| 1731 | return nil | 1941 | return nil | ||
| @@ -1740,6 +1950,8 @@ var xTransformSkew func(uintptr, float32, float32) uintptr | |||||
| 1740 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 1950 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1741 | // if you want to keep it around. | 1951 | // if you want to keep it around. | ||
| 1742 | func (x *Transform) Skew(SkewXVar float32, SkewYVar float32) *Transform { | 1952 | func (x *Transform) Skew(SkewXVar float32, SkewYVar float32) *Transform { | ||
| 1953 | + | core.LazyRegister(&xTransformSkew, "GSK", "gsk_transform_skew", false) | |||
| 1954 | + | ||||
| 1743 | cret := xTransformSkew(x.GoPointer(), SkewXVar, SkewYVar) | 1955 | cret := xTransformSkew(x.GoPointer(), SkewXVar, SkewYVar) | ||
| 1744 | if cret == 0 { | 1956 | if cret == 0 { | ||
| 1745 | return nil | 1957 | return nil | ||
| @@ -1774,6 +1986,8 @@ var xTransformTo2d func(uintptr, *float32, *float32, *float32, *float32, *float3 | |||||
| 1774 | // and a matrix type from other 2D drawing libraries, in particular | 1986 | // and a matrix type from other 2D drawing libraries, in particular | ||
| 1775 | // Cairo. | 1987 | // Cairo. | ||
| 1776 | func (x *Transform) To2d(OutXxVar *float32, OutYxVar *float32, OutXyVar *float32, OutYyVar *float32, OutDxVar *float32, OutDyVar *float32) { | 1988 | func (x *Transform) To2d(OutXxVar *float32, OutYxVar *float32, OutXyVar *float32, OutYyVar *float32, OutDxVar *float32, OutDyVar *float32) { | ||
| 1989 | + | core.LazyRegister(&xTransformTo2d, "GSK", "gsk_transform_to_2d", false) | |||
| 1990 | + | ||||
| 1777 | xTransformTo2d(x.GoPointer(), OutXxVar, OutYxVar, OutXyVar, OutYyVar, OutDxVar, OutDyVar) | 1991 | xTransformTo2d(x.GoPointer(), OutXxVar, OutYxVar, OutXyVar, OutYyVar, OutDxVar, OutDyVar) | ||
| 1778 | } | 1992 | } | ||
| 1779 | 1993 | ||||
| @@ -1798,6 +2012,8 @@ var xTransformTo2dComponents func(uintptr, *float32, *float32, *float32, *float3 | |||||
| 1798 | // | 2012 | // | ||
| 1799 | // to check. | 2013 | // to check. | ||
| 1800 | func (x *Transform) To2dComponents(OutSkewXVar *float32, OutSkewYVar *float32, OutScaleXVar *float32, OutScaleYVar *float32, OutAngleVar *float32, OutDxVar *float32, OutDyVar *float32) { | 2014 | func (x *Transform) To2dComponents(OutSkewXVar *float32, OutSkewYVar *float32, OutScaleXVar *float32, OutScaleYVar *float32, OutAngleVar *float32, OutDxVar *float32, OutDyVar *float32) { | ||
| 2015 | + | core.LazyRegister(&xTransformTo2dComponents, "GSK", "gsk_transform_to_2d_components", false) | |||
| 2016 | + | ||||
| 1801 | xTransformTo2dComponents(x.GoPointer(), OutSkewXVar, OutSkewYVar, OutScaleXVar, OutScaleYVar, OutAngleVar, OutDxVar, OutDyVar) | 2017 | xTransformTo2dComponents(x.GoPointer(), OutSkewXVar, OutSkewYVar, OutScaleXVar, OutScaleYVar, OutAngleVar, OutDxVar, OutDyVar) | ||
| 1802 | } | 2018 | } | ||
| 1803 | 2019 | ||||
| @@ -1821,6 +2037,8 @@ var xTransformToAffine func(uintptr, *float32, *float32, *float32, *float32) | |||||
| 1821 | // | 2037 | // | ||
| 1822 | // to check. | 2038 | // to check. | ||
| 1823 | func (x *Transform) ToAffine(OutScaleXVar *float32, OutScaleYVar *float32, OutDxVar *float32, OutDyVar *float32) { | 2039 | func (x *Transform) ToAffine(OutScaleXVar *float32, OutScaleYVar *float32, OutDxVar *float32, OutDyVar *float32) { | ||
| 2040 | + | core.LazyRegister(&xTransformToAffine, "GSK", "gsk_transform_to_affine", false) | |||
| 2041 | + | ||||
| 1824 | xTransformToAffine(x.GoPointer(), OutScaleXVar, OutScaleYVar, OutDxVar, OutDyVar) | 2042 | xTransformToAffine(x.GoPointer(), OutScaleXVar, OutScaleYVar, OutDxVar, OutDyVar) | ||
| 1825 | } | 2043 | } | ||
| 1826 | 2044 | ||||
| @@ -1830,6 +2048,8 @@ var xTransformToMatrix func(uintptr, *graphene.Matrix) | |||||
| 1830 | // | 2048 | // | ||
| 1831 | // The previous value of @out_matrix will be ignored. | 2049 | // The previous value of @out_matrix will be ignored. | ||
| 1832 | func (x *Transform) ToMatrix(OutMatrixVar *graphene.Matrix) { | 2050 | func (x *Transform) ToMatrix(OutMatrixVar *graphene.Matrix) { | ||
| 2051 | + | core.LazyRegister(&xTransformToMatrix, "GSK", "gsk_transform_to_matrix", false) | |||
| 2052 | + | ||||
| 1833 | xTransformToMatrix(x.GoPointer(), OutMatrixVar) | 2053 | xTransformToMatrix(x.GoPointer(), OutMatrixVar) | ||
| 1834 | } | 2054 | } | ||
| 1835 | 2055 | ||||
| @@ -1841,6 +2061,8 @@ var xTransformToString func(uintptr) string | |||||
| 1841 | // | 2061 | // | ||
| 1842 | // This is a wrapper around [method@Gsk.Transform.print]. | 2062 | // This is a wrapper around [method@Gsk.Transform.print]. | ||
| 1843 | func (x *Transform) ToString() string { | 2063 | func (x *Transform) ToString() string { | ||
| 2064 | + | core.LazyRegister(&xTransformToString, "GSK", "gsk_transform_to_string", false) | |||
| 2065 | + | ||||
| 1844 | cret := xTransformToString(x.GoPointer()) | 2066 | cret := xTransformToString(x.GoPointer()) | ||
| 1845 | return cret | 2067 | return cret | ||
| 1846 | } | 2068 | } | ||
| @@ -1856,6 +2078,8 @@ var xTransformToTranslate func(uintptr, *float32, *float32) | |||||
| 1856 | // | 2078 | // | ||
| 1857 | // to check. | 2079 | // to check. | ||
| 1858 | func (x *Transform) ToTranslate(OutDxVar *float32, OutDyVar *float32) { | 2080 | func (x *Transform) ToTranslate(OutDxVar *float32, OutDyVar *float32) { | ||
| 2081 | + | core.LazyRegister(&xTransformToTranslate, "GSK", "gsk_transform_to_translate", false) | |||
| 2082 | + | ||||
| 1859 | xTransformToTranslate(x.GoPointer(), OutDxVar, OutDyVar) | 2083 | xTransformToTranslate(x.GoPointer(), OutDxVar, OutDyVar) | ||
| 1860 | } | 2084 | } | ||
| 1861 | 2085 | ||||
| @@ -1866,6 +2090,8 @@ var xTransformTransform func(uintptr, *Transform) uintptr | |||||
| 1866 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 2090 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1867 | // if you want to keep it around. | 2091 | // if you want to keep it around. | ||
| 1868 | func (x *Transform) Transform(OtherVar *Transform) *Transform { | 2092 | func (x *Transform) Transform(OtherVar *Transform) *Transform { | ||
| 2093 | + | core.LazyRegister(&xTransformTransform, "GSK", "gsk_transform_transform", false) | |||
| 2094 | + | ||||
| 1869 | cret := xTransformTransform(x.GoPointer(), OtherVar) | 2095 | cret := xTransformTransform(x.GoPointer(), OtherVar) | ||
| 1870 | if cret == 0 { | 2096 | if cret == 0 { | ||
| 1871 | return nil | 2097 | return nil | ||
| @@ -1881,6 +2107,8 @@ var xTransformTransformBounds func(uintptr, *graphene.Rect, *graphene.Rect) | |||||
| 1881 | // | 2107 | // | ||
| 1882 | // The input and output rect may point to the same rectangle. | 2108 | // The input and output rect may point to the same rectangle. | ||
| 1883 | func (x *Transform) TransformBounds(RectVar *graphene.Rect, OutRectVar *graphene.Rect) { | 2109 | func (x *Transform) TransformBounds(RectVar *graphene.Rect, OutRectVar *graphene.Rect) { | ||
| 2110 | + | core.LazyRegister(&xTransformTransformBounds, "GSK", "gsk_transform_transform_bounds", false) | |||
| 2111 | + | ||||
| 1884 | xTransformTransformBounds(x.GoPointer(), RectVar, OutRectVar) | 2112 | xTransformTransformBounds(x.GoPointer(), RectVar, OutRectVar) | ||
| 1885 | } | 2113 | } | ||
| 1886 | 2114 | ||||
| @@ -1888,6 +2116,8 @@ var xTransformTransformPoint func(uintptr, *graphene.Point, *graphene.Point) | |||||
| 1888 | 2116 | ||||
| 1889 | // Transforms a point using the given transform. | 2117 | // Transforms a point using the given transform. | ||
| 1890 | func (x *Transform) TransformPoint(PointVar *graphene.Point, OutPointVar *graphene.Point) { | 2118 | func (x *Transform) TransformPoint(PointVar *graphene.Point, OutPointVar *graphene.Point) { | ||
| 2119 | + | core.LazyRegister(&xTransformTransformPoint, "GSK", "gsk_transform_transform_point", false) | |||
| 2120 | + | ||||
| 1891 | xTransformTransformPoint(x.GoPointer(), PointVar, OutPointVar) | 2121 | xTransformTransformPoint(x.GoPointer(), PointVar, OutPointVar) | ||
| 1892 | } | 2122 | } | ||
| 1893 | 2123 | ||||
| @@ -1898,6 +2128,8 @@ var xTransformTranslate func(uintptr, *graphene.Point) uintptr | |||||
| 1898 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 2128 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1899 | // if you want to keep it around. | 2129 | // if you want to keep it around. | ||
| 1900 | func (x *Transform) Translate(PointVar *graphene.Point) *Transform { | 2130 | func (x *Transform) Translate(PointVar *graphene.Point) *Transform { | ||
| 2131 | + | core.LazyRegister(&xTransformTranslate, "GSK", "gsk_transform_translate", false) | |||
| 2132 | + | ||||
| 1901 | cret := xTransformTranslate(x.GoPointer(), PointVar) | 2133 | cret := xTransformTranslate(x.GoPointer(), PointVar) | ||
| 1902 | if cret == 0 { | 2134 | if cret == 0 { | ||
| 1903 | return nil | 2135 | return nil | ||
| @@ -1912,6 +2144,8 @@ var xTransformTranslate3d func(uintptr, *graphene.Point3D) uintptr | |||||
| 1912 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | 2144 | // This function consumes @next. Use [method@Gsk.Transform.ref] first | ||
| 1913 | // if you want to keep it around. | 2145 | // if you want to keep it around. | ||
| 1914 | func (x *Transform) Translate3d(PointVar *graphene.Point3D) *Transform { | 2146 | func (x *Transform) Translate3d(PointVar *graphene.Point3D) *Transform { | ||
| 2147 | + | core.LazyRegister(&xTransformTranslate3d, "GSK", "gsk_transform_translate_3d", false) | |||
| 2148 | + | ||||
| 1915 | cret := xTransformTranslate3d(x.GoPointer(), PointVar) | 2149 | cret := xTransformTranslate3d(x.GoPointer(), PointVar) | ||
| 1916 | if cret == 0 { | 2150 | if cret == 0 { | ||
| 1917 | return nil | 2151 | return nil | ||
| @@ -1926,162 +2160,12 @@ var xTransformUnref func(uintptr) | |||||
| 1926 | // If the reference was the last, the resources associated to the @self are | 2160 | // If the reference was the last, the resources associated to the @self are | ||
| 1927 | // freed. | 2161 | // freed. | ||
| 1928 | func (x *Transform) Unref() { | 2162 | func (x *Transform) Unref() { | ||
| 2163 | + | core.LazyRegister(&xTransformUnref, "GSK", "gsk_transform_unref", false) | |||
| 2164 | + | ||||
| 1929 | xTransformUnref(x.GoPointer()) | 2165 | xTransformUnref(x.GoPointer()) | ||
| 1930 | } | 2166 | } | ||
| 1931 | 2167 | ||||
| 1932 | func init() { | 2168 | func init() { | ||
| 1933 | core.SetPackageName("GSK", "gtk4") | 2169 | core.SetPackageName("GSK", "gtk4") | ||
| 1934 | core.SetSharedLibraries("GSK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | 2170 | core.SetSharedLibraries("GSK", []string{"libgtk-4.so.1", "libgtk-4.1.dylib"}) | ||
| 1935 | - | var libs []uintptr | |||
| 1936 | - | for _, libPath := range core.GetPaths("GSK") { | |||
| 1937 | - | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1938 | - | if err != nil { | |||
| 1939 | - | panic(err) | |||
| 1940 | - | } | |||
| 1941 | - | libs = append(libs, lib) | |||
| 1942 | - | } | |||
| 1943 | - | ||||
| 1944 | - | core.PuregoSafeRegister(&xComponentTransferGLibType, libs, "gsk_component_transfer_get_type") | |||
| 1945 | - | ||||
| 1946 | - | core.PuregoSafeRegister(&xNewComponentTransferDiscrete, libs, "gsk_component_transfer_new_discrete") | |||
| 1947 | - | core.PuregoSafeRegister(&xNewComponentTransferGamma, libs, "gsk_component_transfer_new_gamma") | |||
| 1948 | - | core.PuregoSafeRegister(&xNewComponentTransferIdentity, libs, "gsk_component_transfer_new_identity") | |||
| 1949 | - | core.PuregoSafeRegister(&xNewComponentTransferLevels, libs, "gsk_component_transfer_new_levels") | |||
| 1950 | - | core.PuregoSafeRegister(&xNewComponentTransferLinear, libs, "gsk_component_transfer_new_linear") | |||
| 1951 | - | core.PuregoSafeRegister(&xNewComponentTransferTable, libs, "gsk_component_transfer_new_table") | |||
| 1952 | - | ||||
| 1953 | - | core.PuregoSafeRegister(&xComponentTransferCopy, libs, "gsk_component_transfer_copy") | |||
| 1954 | - | core.PuregoSafeRegister(&xComponentTransferFree, libs, "gsk_component_transfer_free") | |||
| 1955 | - | ||||
| 1956 | - | core.PuregoSafeRegister(&xPathGLibType, libs, "gsk_path_get_type") | |||
| 1957 | - | ||||
| 1958 | - | core.PuregoSafeRegister(&xPathEqual, libs, "gsk_path_equal") | |||
| 1959 | - | core.PuregoSafeRegister(&xPathForeach, libs, "gsk_path_foreach") | |||
| 1960 | - | core.PuregoSafeRegister(&xPathForeachIntersection, libs, "gsk_path_foreach_intersection") | |||
| 1961 | - | core.PuregoSafeRegister(&xPathGetBounds, libs, "gsk_path_get_bounds") | |||
| 1962 | - | core.PuregoSafeRegister(&xPathGetClosestPoint, libs, "gsk_path_get_closest_point") | |||
| 1963 | - | core.PuregoSafeRegister(&xPathGetEndPoint, libs, "gsk_path_get_end_point") | |||
| 1964 | - | core.PuregoSafeRegister(&xPathGetNext, libs, "gsk_path_get_next") | |||
| 1965 | - | core.PuregoSafeRegister(&xPathGetPrevious, libs, "gsk_path_get_previous") | |||
| 1966 | - | core.PuregoSafeRegister(&xPathGetStartPoint, libs, "gsk_path_get_start_point") | |||
| 1967 | - | core.PuregoSafeRegister(&xPathGetStrokeBounds, libs, "gsk_path_get_stroke_bounds") | |||
| 1968 | - | core.PuregoSafeRegister(&xPathGetTightBounds, libs, "gsk_path_get_tight_bounds") | |||
| 1969 | - | core.PuregoSafeRegister(&xPathInFill, libs, "gsk_path_in_fill") | |||
| 1970 | - | core.PuregoSafeRegister(&xPathIsClosed, libs, "gsk_path_is_closed") | |||
| 1971 | - | core.PuregoSafeRegister(&xPathIsEmpty, libs, "gsk_path_is_empty") | |||
| 1972 | - | core.PuregoSafeRegister(&xPathPrint, libs, "gsk_path_print") | |||
| 1973 | - | core.PuregoSafeRegister(&xPathRef, libs, "gsk_path_ref") | |||
| 1974 | - | core.PuregoSafeRegister(&xPathToCairo, libs, "gsk_path_to_cairo") | |||
| 1975 | - | core.PuregoSafeRegister(&xPathToString, libs, "gsk_path_to_string") | |||
| 1976 | - | core.PuregoSafeRegister(&xPathUnref, libs, "gsk_path_unref") | |||
| 1977 | - | ||||
| 1978 | - | core.PuregoSafeRegister(&xPathBuilderGLibType, libs, "gsk_path_builder_get_type") | |||
| 1979 | - | ||||
| 1980 | - | core.PuregoSafeRegister(&xNewPathBuilder, libs, "gsk_path_builder_new") | |||
| 1981 | - | ||||
| 1982 | - | core.PuregoSafeRegister(&xPathBuilderAddCairoPath, libs, "gsk_path_builder_add_cairo_path") | |||
| 1983 | - | core.PuregoSafeRegister(&xPathBuilderAddCircle, libs, "gsk_path_builder_add_circle") | |||
| 1984 | - | core.PuregoSafeRegister(&xPathBuilderAddLayout, libs, "gsk_path_builder_add_layout") | |||
| 1985 | - | core.PuregoSafeRegister(&xPathBuilderAddPath, libs, "gsk_path_builder_add_path") | |||
| 1986 | - | core.PuregoSafeRegister(&xPathBuilderAddRect, libs, "gsk_path_builder_add_rect") | |||
| 1987 | - | core.PuregoSafeRegister(&xPathBuilderAddReversePath, libs, "gsk_path_builder_add_reverse_path") | |||
| 1988 | - | core.PuregoSafeRegister(&xPathBuilderAddRoundedRect, libs, "gsk_path_builder_add_rounded_rect") | |||
| 1989 | - | core.PuregoSafeRegister(&xPathBuilderAddSegment, libs, "gsk_path_builder_add_segment") | |||
| 1990 | - | core.PuregoSafeRegister(&xPathBuilderArcTo, libs, "gsk_path_builder_arc_to") | |||
| 1991 | - | core.PuregoSafeRegister(&xPathBuilderClose, libs, "gsk_path_builder_close") | |||
| 1992 | - | core.PuregoSafeRegister(&xPathBuilderConicTo, libs, "gsk_path_builder_conic_to") | |||
| 1993 | - | core.PuregoSafeRegister(&xPathBuilderCubicTo, libs, "gsk_path_builder_cubic_to") | |||
| 1994 | - | core.PuregoSafeRegister(&xPathBuilderFreeToPath, libs, "gsk_path_builder_free_to_path") | |||
| 1995 | - | core.PuregoSafeRegister(&xPathBuilderGetCurrentPoint, libs, "gsk_path_builder_get_current_point") | |||
| 1996 | - | core.PuregoSafeRegister(&xPathBuilderHtmlArcTo, libs, "gsk_path_builder_html_arc_to") | |||
| 1997 | - | core.PuregoSafeRegister(&xPathBuilderLineTo, libs, "gsk_path_builder_line_to") | |||
| 1998 | - | core.PuregoSafeRegister(&xPathBuilderMoveTo, libs, "gsk_path_builder_move_to") | |||
| 1999 | - | core.PuregoSafeRegister(&xPathBuilderQuadTo, libs, "gsk_path_builder_quad_to") | |||
| 2000 | - | core.PuregoSafeRegister(&xPathBuilderRef, libs, "gsk_path_builder_ref") | |||
| 2001 | - | core.PuregoSafeRegister(&xPathBuilderRelArcTo, libs, "gsk_path_builder_rel_arc_to") | |||
| 2002 | - | core.PuregoSafeRegister(&xPathBuilderRelConicTo, libs, "gsk_path_builder_rel_conic_to") | |||
| 2003 | - | core.PuregoSafeRegister(&xPathBuilderRelCubicTo, libs, "gsk_path_builder_rel_cubic_to") | |||
| 2004 | - | core.PuregoSafeRegister(&xPathBuilderRelHtmlArcTo, libs, "gsk_path_builder_rel_html_arc_to") | |||
| 2005 | - | core.PuregoSafeRegister(&xPathBuilderRelLineTo, libs, "gsk_path_builder_rel_line_to") | |||
| 2006 | - | core.PuregoSafeRegister(&xPathBuilderRelMoveTo, libs, "gsk_path_builder_rel_move_to") | |||
| 2007 | - | core.PuregoSafeRegister(&xPathBuilderRelQuadTo, libs, "gsk_path_builder_rel_quad_to") | |||
| 2008 | - | core.PuregoSafeRegister(&xPathBuilderRelSvgArcTo, libs, "gsk_path_builder_rel_svg_arc_to") | |||
| 2009 | - | core.PuregoSafeRegister(&xPathBuilderSvgArcTo, libs, "gsk_path_builder_svg_arc_to") | |||
| 2010 | - | core.PuregoSafeRegister(&xPathBuilderToPath, libs, "gsk_path_builder_to_path") | |||
| 2011 | - | core.PuregoSafeRegister(&xPathBuilderUnref, libs, "gsk_path_builder_unref") | |||
| 2012 | - | ||||
| 2013 | - | core.PuregoSafeRegister(&xPathMeasureGLibType, libs, "gsk_path_measure_get_type") | |||
| 2014 | - | ||||
| 2015 | - | core.PuregoSafeRegister(&xNewPathMeasure, libs, "gsk_path_measure_new") | |||
| 2016 | - | core.PuregoSafeRegister(&xNewPathMeasureWithTolerance, libs, "gsk_path_measure_new_with_tolerance") | |||
| 2017 | - | ||||
| 2018 | - | core.PuregoSafeRegister(&xPathMeasureGetLength, libs, "gsk_path_measure_get_length") | |||
| 2019 | - | core.PuregoSafeRegister(&xPathMeasureGetPath, libs, "gsk_path_measure_get_path") | |||
| 2020 | - | core.PuregoSafeRegister(&xPathMeasureGetPoint, libs, "gsk_path_measure_get_point") | |||
| 2021 | - | core.PuregoSafeRegister(&xPathMeasureGetTolerance, libs, "gsk_path_measure_get_tolerance") | |||
| 2022 | - | core.PuregoSafeRegister(&xPathMeasureRef, libs, "gsk_path_measure_ref") | |||
| 2023 | - | core.PuregoSafeRegister(&xPathMeasureUnref, libs, "gsk_path_measure_unref") | |||
| 2024 | - | ||||
| 2025 | - | core.PuregoSafeRegister(&xRenderReplayGLibType, libs, "gsk_render_replay_get_type") | |||
| 2026 | - | ||||
| 2027 | - | core.PuregoSafeRegister(&xNewRenderReplay, libs, "gsk_render_replay_new") | |||
| 2028 | - | ||||
| 2029 | - | core.PuregoSafeRegister(&xRenderReplayDefault, libs, "gsk_render_replay_default") | |||
| 2030 | - | core.PuregoSafeRegister(&xRenderReplayFilterFont, libs, "gsk_render_replay_filter_font") | |||
| 2031 | - | core.PuregoSafeRegister(&xRenderReplayFilterNode, libs, "gsk_render_replay_filter_node") | |||
| 2032 | - | core.PuregoSafeRegister(&xRenderReplayFilterTexture, libs, "gsk_render_replay_filter_texture") | |||
| 2033 | - | core.PuregoSafeRegister(&xRenderReplayFree, libs, "gsk_render_replay_free") | |||
| 2034 | - | core.PuregoSafeRegister(&xRenderReplaySetFontFilter, libs, "gsk_render_replay_set_font_filter") | |||
| 2035 | - | core.PuregoSafeRegister(&xRenderReplaySetNodeFilter, libs, "gsk_render_replay_set_node_filter") | |||
| 2036 | - | core.PuregoSafeRegister(&xRenderReplaySetTextureFilter, libs, "gsk_render_replay_set_texture_filter") | |||
| 2037 | - | ||||
| 2038 | - | core.PuregoSafeRegister(&xStrokeGLibType, libs, "gsk_stroke_get_type") | |||
| 2039 | - | ||||
| 2040 | - | core.PuregoSafeRegister(&xNewStroke, libs, "gsk_stroke_new") | |||
| 2041 | - | ||||
| 2042 | - | core.PuregoSafeRegister(&xStrokeCopy, libs, "gsk_stroke_copy") | |||
| 2043 | - | core.PuregoSafeRegister(&xStrokeFree, libs, "gsk_stroke_free") | |||
| 2044 | - | core.PuregoSafeRegister(&xStrokeGetDash, libs, "gsk_stroke_get_dash") | |||
| 2045 | - | core.PuregoSafeRegister(&xStrokeGetDashOffset, libs, "gsk_stroke_get_dash_offset") | |||
| 2046 | - | core.PuregoSafeRegister(&xStrokeGetLineCap, libs, "gsk_stroke_get_line_cap") | |||
| 2047 | - | core.PuregoSafeRegister(&xStrokeGetLineJoin, libs, "gsk_stroke_get_line_join") | |||
| 2048 | - | core.PuregoSafeRegister(&xStrokeGetLineWidth, libs, "gsk_stroke_get_line_width") | |||
| 2049 | - | core.PuregoSafeRegister(&xStrokeGetMiterLimit, libs, "gsk_stroke_get_miter_limit") | |||
| 2050 | - | core.PuregoSafeRegister(&xStrokeSetDash, libs, "gsk_stroke_set_dash") | |||
| 2051 | - | core.PuregoSafeRegister(&xStrokeSetDashOffset, libs, "gsk_stroke_set_dash_offset") | |||
| 2052 | - | core.PuregoSafeRegister(&xStrokeSetLineCap, libs, "gsk_stroke_set_line_cap") | |||
| 2053 | - | core.PuregoSafeRegister(&xStrokeSetLineJoin, libs, "gsk_stroke_set_line_join") | |||
| 2054 | - | core.PuregoSafeRegister(&xStrokeSetLineWidth, libs, "gsk_stroke_set_line_width") | |||
| 2055 | - | core.PuregoSafeRegister(&xStrokeSetMiterLimit, libs, "gsk_stroke_set_miter_limit") | |||
| 2056 | - | core.PuregoSafeRegister(&xStrokeToCairo, libs, "gsk_stroke_to_cairo") | |||
| 2057 | - | ||||
| 2058 | - | core.PuregoSafeRegister(&xTransformGLibType, libs, "gsk_transform_get_type") | |||
| 2059 | - | ||||
| 2060 | - | core.PuregoSafeRegister(&xNewTransform, libs, "gsk_transform_new") | |||
| 2061 | - | ||||
| 2062 | - | core.PuregoSafeRegister(&xTransformEqual, libs, "gsk_transform_equal") | |||
| 2063 | - | core.PuregoSafeRegister(&xTransformGetCategory, libs, "gsk_transform_get_category") | |||
| 2064 | - | core.PuregoSafeRegister(&xTransformInvert, libs, "gsk_transform_invert") | |||
| 2065 | - | core.PuregoSafeRegister(&xTransformMatrix, libs, "gsk_transform_matrix") | |||
| 2066 | - | core.PuregoSafeRegister(&xTransformMatrix2d, libs, "gsk_transform_matrix_2d") | |||
| 2067 | - | core.PuregoSafeRegister(&xTransformPerspective, libs, "gsk_transform_perspective") | |||
| 2068 | - | core.PuregoSafeRegister(&xTransformPrint, libs, "gsk_transform_print") | |||
| 2069 | - | core.PuregoSafeRegister(&xTransformRef, libs, "gsk_transform_ref") | |||
| 2070 | - | core.PuregoSafeRegister(&xTransformRotate, libs, "gsk_transform_rotate") | |||
| 2071 | - | core.PuregoSafeRegister(&xTransformRotate3d, libs, "gsk_transform_rotate_3d") | |||
| 2072 | - | core.PuregoSafeRegister(&xTransformScale, libs, "gsk_transform_scale") | |||
| 2073 | - | core.PuregoSafeRegister(&xTransformScale3d, libs, "gsk_transform_scale_3d") | |||
| 2074 | - | core.PuregoSafeRegister(&xTransformSkew, libs, "gsk_transform_skew") | |||
| 2075 | - | core.PuregoSafeRegister(&xTransformTo2d, libs, "gsk_transform_to_2d") | |||
| 2076 | - | core.PuregoSafeRegister(&xTransformTo2dComponents, libs, "gsk_transform_to_2d_components") | |||
| 2077 | - | core.PuregoSafeRegister(&xTransformToAffine, libs, "gsk_transform_to_affine") | |||
| 2078 | - | core.PuregoSafeRegister(&xTransformToMatrix, libs, "gsk_transform_to_matrix") | |||
| 2079 | - | core.PuregoSafeRegister(&xTransformToString, libs, "gsk_transform_to_string") | |||
| 2080 | - | core.PuregoSafeRegister(&xTransformToTranslate, libs, "gsk_transform_to_translate") | |||
| 2081 | - | core.PuregoSafeRegister(&xTransformTransform, libs, "gsk_transform_transform") | |||
| 2082 | - | core.PuregoSafeRegister(&xTransformTransformBounds, libs, "gsk_transform_transform_bounds") | |||
| 2083 | - | core.PuregoSafeRegister(&xTransformTransformPoint, libs, "gsk_transform_transform_point") | |||
| 2084 | - | core.PuregoSafeRegister(&xTransformTranslate, libs, "gsk_transform_translate") | |||
| 2085 | - | core.PuregoSafeRegister(&xTransformTranslate3d, libs, "gsk_transform_translate_3d") | |||
| 2086 | - | core.PuregoSafeRegister(&xTransformUnref, libs, "gsk_transform_unref") | |||
| 2087 | } | 2171 | } | ||