diff --git a/.drone.jsonnet b/.drone.jsonnet new file mode 100644 index 00000000..1403a80e --- /dev/null +++ b/.drone.jsonnet @@ -0,0 +1,27 @@ +local Pipeline(os, arch, version) = { + kind: "pipeline", + name: os+" - "+arch+" - Julia "+version, + platform: { + os: os, + arch: arch + }, + steps: [ + { + name: "build", + image: "julia:"+version, + commands: [ + "apt-get update", + "apt-get install -y xvfb xauth", + "xvfb-run julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" + ] + } + ], + trigger: { + branch: ["master"] + } +}; + +[ + # Pipeline("linux", "arm", "1.6"), + Pipeline("linux", "arm64", "1.6"), +] diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 00000000..743c02fc --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +--- +kind: pipeline +name: linux - arm64 - Julia 1.6 + +platform: + os: linux + arch: arm64 + +steps: +- name: build + image: julia:1.6 + commands: + - apt-get update + - apt-get install -y xvfb xauth + - "xvfb-run julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" + +trigger: + branch: + - master + +... diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..8f2ca0ee --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.drone.jsonnet linguist-detectable=false diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml new file mode 100644 index 00000000..ac19d826 --- /dev/null +++ b/.github/workflows/CompatHelper.yml @@ -0,0 +1,15 @@ +name: CompatHelper +on: + schedule: + - cron: 0 0 * * * +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Pkg.add("CompatHelper") + run: julia -e 'using Pkg; Pkg.add("CompatHelper")' + - name: CompatHelper.main() + run: julia -e 'using CompatHelper; CompatHelper.main()' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml new file mode 100644 index 00000000..f49313b6 --- /dev/null +++ b/.github/workflows/TagBot.yml @@ -0,0 +1,15 @@ +name: TagBot +on: + issue_comment: + types: + - created + workflow_dispatch: +jobs: + TagBot: + if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' + runs-on: ubuntu-latest + steps: + - uses: JuliaRegistries/TagBot@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + ssh: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..4524589c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,101 @@ +name: CI + +on: + push: + branches: "master" + tags: ["*"] + pull_request: + release: + +jobs: + test: + name: Julia ${{ join(matrix.*, ' - ') }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + julia-version: + - "1.6" + - "1" + - "nightly" + os: + - ubuntu-latest + - macos-latest + - windows-latest + julia-arch: + - x64 + - x86 + include: + - os: ubuntu-latest + prefix: xvfb-run + # 32-bit Julia binaries are not available on macOS + exclude: + - os: macOS-latest + julia-arch: x86 + + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - name: Cache artifacts + uses: actions/cache@v2 + env: + cache-name: cache-artifacts + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-runtest@v1 + with: + prefix: ${{ matrix.prefix }} + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v1 + with: + file: lcov.info + - uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + path-to-lcov: lcov.info + flag-name: Julia ${{ join(matrix.*, ' - ') }} + parallel: true + + finish: + needs: test + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + parallel-finished: true + + Documentation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@latest + with: + version: 1 + - name: Cache artifacts + uses: actions/cache@v2 + env: + cache-name: cache-artifacts + with: + path: ~/.julia/artifacts + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/docs/Project.toml') }} + restore-keys: | + ${{ runner.os }}-test-${{ env.cache-name }}- + ${{ runner.os }}-test- + ${{ runner.os }}- + - uses: julia-actions/julia-docdeploy@v1 + with: + prefix: xvfb-run + env: + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a76b2b4e..00000000 --- a/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -# Documentation: http://docs.travis-ci.com/user/languages/julia/ -language: julia -sudo: required -os: - - linux - - osx - - windows -arch: - - x64 - - x86 - - arm64 -julia: - - 1.3 - - nightly -# uncomment the following lines to allow failures on nightly julia -# (tests will run but not make your overall status red) -matrix: - allow_failures: - - julia: nightly - - os: osx - - stage: "Documentation" # This shouldn't be necessary - exclude: - - os: osx - arch: x86 - - os: osx - arch: arm64 - - os: windows - arch: arm64 - - julia: nightly - arch: arm64 -notifications: - email: false -git: - depth: 99999999 -addons: - apt: - packages: - - xvfb - - xauth -script: - - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi - - if [[ `uname` = "Linux" ]]; then TESTCMD="xvfb-run julia"; else TESTCMD="julia"; fi - - travis_wait 30 $TESTCMD -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true)' - -## uncomment following lines to deploy documentation -jobs: - include: - - stage: Documentation - julia: 1.3 - os: linux - script: - - julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.add(PackageSpec(path=pwd()))' - - xvfb-run julia --project=docs docs/make.jl - after_success: skip - -after_success: - - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())' diff --git a/Project.toml b/Project.toml index b0bb2f29..fbb4ee7d 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Gtk" uuid = "4c0ca9eb-093a-5379-98c5-f87ac0bbbf44" -version = "1.1.1" +version = "1.3.0" [deps] Cairo = "159f3aea-2a34-519c-b102-8c37f9878175" @@ -9,9 +9,12 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" GTK3_jll = "77ec8976-b24b-556a-a1bf-49a033a670a6" Glib_jll = "7746bdde-850d-59dc-9ae8-88ece973131d" Graphics = "a2bd30eb-e257-5431-a919-1863eab51364" +JLLWrappers = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210" Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" +Librsvg_jll = "925c91fb-5dd6-59dd-8e8c-345e74382d89" Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" +Scratch = "6c6a2e73-6563-6170-7368-637461726353" Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" Xorg_xkeyboard_config_jll = "33bec58e-1273-512f-9401-5d533626f822" @@ -25,12 +28,14 @@ Cairo_jll = "1.16.0" GTK3_jll = "3.24.11" Glib_jll = "2.59.0" Graphics = "0.4, 1" -Reexport = "0.2" +JLLWrappers = "1.4.0" +Reexport = "0.2, 1.0" +Scratch = "1" Xorg_xkeyboard_config_jll = "2.27.0" adwaita_icon_theme_jll = "3.33.92" gdk_pixbuf_jll = "2.38.2" hicolor_icon_theme_jll = "0.17.0" -julia = "1.3" +julia = "1.6" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/README.md b/README.md index a8990101..b930f143 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ -# Julia interface to `Gtk+ 2` and `Gtk+ 3` GUI library +# Julia interface to `Gtk+ 3` GUI library -[![Build Status](https://travis-ci.org/JuliaGraphics/Gtk.jl.svg?branch=master)](https://travis-ci.org/JuliaGraphics/Gtk.jl) -[![Build status](https://ci.appveyor.com/api/projects/status/yup46w98wv672sag?svg=true)](https://ci.appveyor.com/project/tknopp/gtk-jl) +[![Project Status: Inactive – The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.](https://www.repostatus.org/badges/latest/inactive.svg)](https://www.repostatus.org/#inactive) +[![CI](https://github.com/JuliaGraphics/Gtk.jl/workflows/CI/badge.svg)](https://github.com/JuliaGraphics/Gtk.jl/actions?query=workflow%3ACI) [![Coverage Status](https://coveralls.io/repos/JuliaGraphics/Gtk.jl/badge.svg)](https://coveralls.io/r/JuliaGraphics/Gtk.jl) [![codecov.io](https://codecov.io/github/JuliaGraphics/Gtk.jl/coverage.svg?branch=master)](https://codecov.io/github/JuliaGraphics/Gtk.jl?branch=master) [![](https://img.shields.io/badge/docs-latest-blue.svg)](https://juliagraphics.github.io/Gtk.jl/latest) GUI building, using the Gtk library: [https://www.gtk.org/](https://www.gtk.org/) -Complete Gtk documentation is available at [https://developer.gnome.org/gtk/stable](https://developer.gnome.org/gtk/stable) +Complete Gtk documentation is available at [https://www.gtk.org/docs](https://www.gtk.org/docs) Documentation of this package can be found [here](https://juliagraphics.github.io/Gtk.jl/latest/). diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 9c2e691b..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,36 +0,0 @@ -environment: - matrix: - - julia_version: 1.3 - - julia_version: nightly - -platform: - #- x86 # 32-bit - - x64 # 64-bit - -## uncomment the following lines to allow failures on nightly julia -## (tests will run but not make your overall status red) -matrix: - allow_failures: - - julia_version: nightly - -branches: - only: - - master - - /release-.*/ - -notifications: - - provider: Email - on_build_success: false - on_build_failure: false - on_build_status_changed: false - -install: - - ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1")) - -build_script: - - echo "%JL_BUILD_SCRIPT%" - - C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%" - -test_script: - - echo "%JL_TEST_SCRIPT%" - - C:\julia\bin\julia -e "%JL_TEST_SCRIPT%" diff --git a/docs/make.jl b/docs/make.jl index 9d1ffcb2..c90485f9 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -1,7 +1,9 @@ using Documenter, Gtk makedocs( - format = Documenter.HTML(), + format = Documenter.HTML( + prettyurls = get(ENV, "CI", nothing) == "true" + ), modules = [Gtk], sitename = "Gtk.jl", authors = "...", @@ -19,12 +21,17 @@ makedocs( "manual/keyevents.md", "manual/canvas.md", "manual/customWidgets.md", + "manual/slider.md", "manual/async.md", "manual/nonreplusage.md", "manual/packages.md" ], + "Reference" => "doc/reference.md", ], ) -deploydocs(repo = "github.com/JuliaGraphics/Gtk.jl.git", - target = "build") +deploydocs( + repo = "github.com/JuliaGraphics/Gtk.jl.git", + target = "build", + push_preview = true +) diff --git a/docs/src/doc/installation.md b/docs/src/doc/installation.md deleted file mode 100644 index aec06f77..00000000 --- a/docs/src/doc/installation.md +++ /dev/null @@ -1,59 +0,0 @@ -# Installation troubleshooting - -Installation should be automatic on all platforms supported by Julia. -However, in case of trouble, these notes may help you diagnose or fix the problem. - -Prior to using this library, you must install a semi-recent version of `libgtk` on your computer. - -### Windows - -The necessary libraries will be downloaded and installed automatically when you run `Pkg.add("Gtk")`. - - -In case you run into some problem with the automatic installation, you can install manually -using `WinRPM.jl`: - - Pkg.add("WinRPM") - using WinRPM - WinRPM.install(["gtk2","gtk3", - "hicolor-icon-theme", - "tango-icon-theme", - "glib2-tools", - "glib2-devel", - "gnome-icon-theme", - "gnome-icon-theme-extras", - "gnome-icon-theme-symbolic", - "gtk3-devel", - "gtk2-devel", - "gtk3-tools", - "gtk2-tools", - "pango-tools", - "gdk-pixbuf-query-loaders", - "gtk2-lang", - "gtk3-lang"]) - RPMbindir = Pkg.dir("WinRPM","deps","usr","$(Sys.ARCH)-w64-mingw32","sys-root","mingw","bin") - ENV["PATH"]=ENV["PATH"]*";"*RPMbindir - -You may need to repeat the last two steps every time you restart julia, or put these two lines in your `$HOME/.juliarc.jl` file - -### OS X - -I use MacPorts: - -1. `port install gtk2 +quartz gtk3 +quartz` (this may require that you first remove Cairo and Pango via `sudo port deactivate active` for example, I like to put this in my `/opt/local/etc/macports/variants.conf` file as `+quartz` before installing anything, to minimize conflicts and maximize usage of the native Quartz) -2. `push!(DL_LOAD_PATH,"/opt/local/lib")` You will need to repeat this step every time you restart julia, or put this line in your `~/.juliarc.jl` file. - -If you want to use Homebrew, the built-in formula is deficient (it does not support the Quartz backend). See [Homebrew#27](https://github.com/JuliaLang/Homebrew.jl/issues/27) for possible eventual workarounds. - -If you see a warning such as `(:950): Gtk-WARNING **: Error loading theme icon 'go-next' for stock`, then chances are that you have to install the icon theme manually using `brew install gnome-icon-theme` (or `Homebrew.add("gnome-icon-theme")`). - -### Linux - -Try any of the following lines until something is successful: - - aptitude install libgtk2.0-0 libgtk-3-0 - apt-get install libgtk2.0-0 libgtk-3-0 - yum install gtk2 gtk3 - pkg install gtk2 gtk3 - -On some distributions you can also install a `devhelp` package to have a local copy of the Gtk documentation. diff --git a/docs/src/doc/more_signals.md b/docs/src/doc/more_signals.md index 5a329c36..a43ab262 100644 --- a/docs/src/doc/more_signals.md +++ b/docs/src/doc/more_signals.md @@ -16,7 +16,7 @@ where: (i.e., one defined as `function foo(x,y,z) ... end`), and the arguments and return type should match the GTK+ documentation for the widget and signal ([see - examples](https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-accel-closures-changed)). + examples](https://docs.gtk.org/gtk3/signal.Widget.accel-closures-changed.html)). **In contrast with the simpler interface, when writing these callbacks you must include the `user_data` argument**. See examples below. @@ -27,9 +27,9 @@ where: callback. Usually `Nothing` (for `void`) or `Cint` (for `gboolean`) - `parameter_type_tuple` specifies the types of the *middle* arguments to the callback function, omitting the first (the widget) and last - (`user_data`). For example, for [`"clicked"`](https://developer.gnome.org/gtk3/stable/GtkButton.html#GtkButton-clicked) we have + (`user_data`). For example, for [`"clicked"`](https://docs.gtk.org/gtk3/method.Button.clicked.html) we have `parameter_type_tuple = ()` (because there are no middle arguments) - and for [`"button-press-event"`](https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-button-press-event) we have `parameter_type_tuple = + and for [`"button-press-event"`](https://docs.gtk.org/gtk3/signal.Widget.button-press-event.html) we have `parameter_type_tuple = (Ptr{GdkEventButton},)`. - `after` is a boolean, `true` if you want your callback to run after the default handler for your signal. When in doubt, specify `false`. diff --git a/docs/src/doc/precompilation.md b/docs/src/doc/precompilation.md deleted file mode 100644 index c0ce37bd..00000000 --- a/docs/src/doc/precompilation.md +++ /dev/null @@ -1,19 +0,0 @@ -# Precompilation - -For this to work, you need to be building Julia from source, and you need to be using -at least Julia version 0.3. - -In your Julia `base/` directory, create (or append to) a file called `userimg.jl` the line - - require("Gtk") - -Then build Julia as you normally would; the Gtk module will be available when julia starts. - -In some cases, it might be necessary to add the path to the folder containing the Gtk shared libraries, for example: - - push!(DL_LOAD_PATH, "/usr/lib/x86_64-linux_gnu") - require("Gtk") - pop!(DL_LOAD_PATH) - -The `"/usr/lib/x86_64-linux_gnu"` needs to be replaced with the location of the GTK libraries on your system. -However, when the library is in a standard location -- such as `/usr/lib`, `/usr/local/lib`, or `/usr/lib/x86_64-linux_gnu` (on some systems) -- this step can be skipped. \ No newline at end of file diff --git a/docs/src/doc/reference.md b/docs/src/doc/reference.md new file mode 100644 index 00000000..7d074ffc --- /dev/null +++ b/docs/src/doc/reference.md @@ -0,0 +1,19 @@ +## API Reference + +### Public interface + +```@autodocs +Modules = [Gtk] +Order = [:module, :constant, :type, :function, :macro] +Public = true +Private = false +``` + +### Private methods + +```@autodocs +Modules = [Gtk] +Order = [:module, :constant, :type, :function, :macro] +Public = false +Private = true +``` diff --git a/docs/src/index.md b/docs/src/index.md index 18d5799b..54456483 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -6,7 +6,7 @@ Gtk.jl is a is a Julia package providing bindings for the Gtk library: [https://www.gtk.org/](https://www.gtk.org/) -Complete Gtk documentation is available at [https://developer.gnome.org/gtk/stable](https://developer.gnome.org/gtk/stable) +Complete Gtk documentation is available at [https://www.gtk.org/docs/](https://www.gtk.org/docs/) ## Installation @@ -17,27 +17,36 @@ using Pkg Pkg.add("Gtk") ``` -If this produces errors, please see [installation troubleshooting](doc/installation.md). +!!! tip + On some platforms, you may see messages like + + > Gtk-Message: 20:15:48.288: Failed to load module "canberra-gtk-module" + + These are harmless. If you want to suppress them, on Unix platforms you can add something like + + ```bash + export GTK_PATH=$GTK_PATH:/usr/lib/x86_64-linux-gnu/gtk-3.0 + ``` + + to your `.bashrc` file. (You may need to customize the path for your system; it should have a `modules` directory containing `libcanberra`.) ## Precompilation -Gtk is precompilable by normal mechanisms. For further reduction of startup time for applications that use Gtk, one can even [build it into your local installation of julia](doc/precompilation.md). +Gtk is precompilable by normal mechanisms. Julia 1.6 or higher is recommended as having much shorter load times than earlier Julia versions. + +On very old Julia versions, you can use [PackageCompiler](https://github.com/JuliaLang/PackageCompiler.jl). Be aware that this has [downsides](https://julialang.github.io/PackageCompiler.jl/dev/sysimages/#Drawbacks-to-custom-sysimages-1) and should not be necessary on modern versions of Julia. ## Usage * See [Getting Started](@ref) for an introduction to using the package -## Attribution -Gtk logo is made by Andreas Nilsson [[GFDL](https://www.gnu.org/copyleft/fdl.html) or [CC-BY-SA-3.0](https://creativecommons.org/licenses/by-sa/3.0/)], via Wikimedia Commons +## Related packages -## Common Issues +* [Gizmos/GtkObservables](https://github.com/JuliaGizmos/GtkObservables.jl) + is designed to simplify the creation of GUIs using Gtk and Julia. -If you are running Gtk on MacOS Mojave, it's likely that when you try one of te examples, a blank window will render. In order to fix this, you can run the following commands which will downgrade your version of `glib` to the compatible version for `Gtk.jl` -Command to run: -```julia -using Homebrew -Homebrew.brew(`unlink glib`) -Homebrew.brew(`install https://raw.githubusercontent.com/Homebrew/homebrew-core/b27a055812fe620e0d3dbe67f2a424ed3a846ecf/Formula/glib.rb`) -``` +## Attribution + +Gtk logo is made by Andreas Nilsson [[GFDL](https://www.gnu.org/copyleft/fdl.html) or [CC-BY-SA-3.0](https://creativecommons.org/licenses/by-sa/3.0/)], via Wikimedia Commons diff --git a/docs/src/manual/async.md b/docs/src/manual/async.md index c80bc908..9e1d3943 100644 --- a/docs/src/manual/async.md +++ b/docs/src/manual/async.md @@ -1,8 +1,13 @@ # Asynchronous UI -Here is an example of an asynchronous update of the user interface. Since -Julia has currently no possibility of multithreading we use a second process -to offload the work. The example is just a proof of principle. +It is possible to perform background computation without interfering with user interface +responsiveness either using multithreading or using separate processes. Use of a separate +process includes slightly more overhead but also ensures user interface responsiveness more +robustly. + +Here is an example using [threads](https://docs.julialang.org/en/v1/manual/multi-threading/). +Notice that this example will freeze the UI during computation unless Julia is run with two +or more threads (`julia -t2` on the command line). ```julia using Gtk @@ -16,26 +21,72 @@ grid[1,1] = btn grid[2,1] = sp grid[1:2,2] = ent +signal_connect(btn, "clicked") do widget + start(sp) + Threads.@spawn begin + + # Do work + stop_time = time() + 3 + counter = 0 + while time() < stop_time + counter += 1 + end + + # Interacting with GTK from a thread other than the main thread is + # generally not allowed, so we register an idle callback instead. + Gtk.GLib.g_idle_add(nothing) do user_data + stop(sp) + set_gtk_property!(ent, :text, "I counted to $counter in a thread!") + Cint(false) + end + end +end + +win = GtkWindow(grid, "Threads", 200, 200) +showall(win) +``` + + +Here is an example using a separate process to offload the work. This toy example is +fairly straightforward, but things can get more complex if the offloaded task is more +complex. See the [manual](https://docs.julialang.org/en/v1/manual/distributed-computing/) +for details. + +```julia +using Gtk, Distributed + +btn = GtkButton("Start") +sp = GtkSpinner() +ent = GtkEntry() + +grid = GtkGrid() +grid[1,1] = btn +grid[2,1] = sp +grid[1:2,2] = ent + id = addprocs(1)[1] signal_connect(btn, "clicked") do widget - start(sp) - @Gtk.sigatom begin - @async begin - s = @fetchfrom id begin - sleep(4) - return "I am back" - end - @Gtk.sigatom begin - stop(sp) - set_gtk_property!(ent,:text,s) + start(sp) + @async begin + + # Offload work to a separate process and block until it is done. + counter = @fetchfrom id begin + stop_time = time() + 3 + counter = 0 + while time() < stop_time + counter += 1 + end + counter + end + + # We are still in the main thread so it is okay to directly access widgets + stop(sp) + set_gtk_property!(ent, :text, "I counted to $counter in a separate process!") end - end - end end -win = GtkWindow(grid, "Progress Bar", 200, 200) +win = GtkWindow(grid, "Distributed", 200, 200) showall(win) ``` - diff --git a/docs/src/manual/builder.md b/docs/src/manual/builder.md index 088e9057..e9ac05ef 100644 --- a/docs/src/manual/builder.md +++ b/docs/src/manual/builder.md @@ -54,7 +54,7 @@ connector between the XML definition and our Julia code. ```julia b = GtkBuilder(filename="path/to/myapp.glade") ``` -Alternatively, if we would store above XML definition in a Julia string `myapp` we can initalize +Alternatively, if we would store above XML definition in a Julia string `myapp` we can initialize the builder by ```julia b = GtkBuilder(buffer=myapp) diff --git a/docs/src/manual/canvas.md b/docs/src/manual/canvas.md index b949b4d3..3fcbd729 100644 --- a/docs/src/manual/canvas.md +++ b/docs/src/manual/canvas.md @@ -25,8 +25,6 @@ This `draw` function will get called each time the window gets resized or otherw ![canvas](../doc/figures/canvas.png) -See Julia's standard-library documentation for more information on graphics. - Errors in the `draw` function can corrupt Gtk's internal state; if this happens, you have to quit julia and start a fresh session. To avoid this problem, the `@guarded` macro wraps your code in a diff --git a/docs/src/manual/gettingStarted.md b/docs/src/manual/gettingStarted.md index 89913733..7d7f8c16 100644 --- a/docs/src/manual/gettingStarted.md +++ b/docs/src/manual/gettingStarted.md @@ -1,6 +1,6 @@ # Getting Started -We start this tutorial with a very simple example that creats an empty window of size 400x200 pixels +We start this tutorial with a very simple example that creates an empty window of size 400x200 pixels and adds a button to it ```julia using Gtk @@ -18,8 +18,6 @@ push!(win,b) ``` Finally, `showall(win)` will render the entire application on the screen. -Note that if you run the above example and only a blank window renders, see the `Common Issues` section [here](../index.md#common-issues). - ## Extended Example We will now extend the example to let the button actually do something. To this end we first define a callback function that will be executed when the user clicks the button. Our callback function is supposed to change the window title of the application diff --git a/docs/src/manual/keyevents.md b/docs/src/manual/keyevents.md index ba27d295..66968cb8 100644 --- a/docs/src/manual/keyevents.md +++ b/docs/src/manual/keyevents.md @@ -1,14 +1,60 @@ # Key Events -In order to capture a keyboard event one can connect to the `key-press-event` from the active window. An example is given by -``` +### Key press events + +To capture a keyboard event, +one can connect to the `key-press-event` from the active window, +as given in the following example. + +```julia using Gtk win = GtkWindow("Key Press Example") signal_connect(win, "key-press-event") do widget, event - println("You pressed key ", event.keyval) + k = event.keyval + println("You pressed key ", k, " which is '", Char(k), "'.") end ``` -You can then check if `event.keyval` has a certain value and invoke an action in that case. +You can then check if `event.keyval` has a certain value +and invoke an action in that case. + + +### Key release events + +The following example captures the events +for both a key press and a key release +and reports the time duration between the two. +There some state handling here +because of the likely event +that your keyboard is set to "repeat" a pressed key +after some initial delay and because it is possible to +press multiple keys at once. +This version reports the time elapsed +between the _initial_ key press and the key release. + +```julia +using Gtk + +const start_times = Dict{UInt32, UInt32}() + +w = GtkWindow("Key Press/Release Example") + +id1 = signal_connect(w, "key-press-event") do widget, event + k = event.keyval + if k ∉ keys(start_times) + start_times[k] = event.time # save the initial key press time + println("You pressed key ", k, " which is '", Char(k), "'.") + else + println("repeating key ", k) + end +end + +id2 = signal_connect(w, "key-release-event") do widget, event + k = event.keyval + start_time = pop!(start_times, k) # remove the key from the dictionary + duration = event.time - start_time # key press duration in milliseconds + println("You released key ", k, " after time ", duration, " msec.") +end +``` diff --git a/docs/src/manual/layout.md b/docs/src/manual/layout.md index 7c563fe4..6082c8b6 100644 --- a/docs/src/manual/layout.md +++ b/docs/src/manual/layout.md @@ -1,6 +1,6 @@ # Layout -You will usually want to add more than one widget to you application. To this end, Gtk provides several layout widget. Instead of using a precise positioning, the Gtk layout widgets take an approach where widgets are aligned in boxes and tables. +You will usually want to add more than one widget to you application. To this end, Gtk provides several layout widgets. Instead of using a precise positioning, the Gtk layout widgets take an approach where widgets are aligned in boxes and tables. !!! note While doing the layout using Julia code is possible for small examples it is in general advised to instead create the layout using Glade in combination with GtkBuilder [Builder and Glade](@ref). @@ -48,6 +48,7 @@ hbox = GtkButtonBox(:h) push!(win, hbox) push!(hbox, cancel) push!(hbox, ok) +showall(win) ``` Now we get this: diff --git a/docs/src/manual/listtreeview.md b/docs/src/manual/listtreeview.md index 6284f3e3..09cbf21e 100644 --- a/docs/src/manual/listtreeview.md +++ b/docs/src/manual/listtreeview.md @@ -187,7 +187,7 @@ signal_connect(selection, "changed") do widget currentIt = selected(selection) println("Name: ", GtkTreeModel(tmFiltered)[currentIt,1], - " Age: ", GtkTreeModel(tmFiltered)[currentIt,1]) + " Age: ", GtkTreeModel(tmFiltered)[currentIt,2]) end end diff --git a/docs/src/manual/nonreplusage.md b/docs/src/manual/nonreplusage.md index c196f248..e484180d 100644 --- a/docs/src/manual/nonreplusage.md +++ b/docs/src/manual/nonreplusage.md @@ -12,13 +12,14 @@ if !isinteractive() signal_connect(win, :destroy) do widget notify(c) end + @async Gtk.gtk_main() wait(c) end ``` -By waiting on a `Condition`, you force Julia to keep running. However, when the window is closed, then the program can continue (which in this case would simply be to exit). This can be shortened by using the function waitforsignal: - +By waiting on a `Condition`, Julia will keep running. This pattern allows for multiple events to trigger the condition, such as a button press, or one of many windows to be closed. Program flow will resume at `wait` line, after which it would terminate in this example. +In the common case we simply wish to wait for a single window to be closed, this can be shortened by using `waitforsignal`: ```julia win = Window("gtkwait") @@ -26,6 +27,7 @@ win = Window("gtkwait") # Put your GUI code here if !isinteractive() - waitforsignal(win,:destroy) + @async Gtk.gtk_main() + Gtk.waitforsignal(win,:destroy) end ``` diff --git a/docs/src/manual/signals.md b/docs/src/manual/signals.md index d73fef4b..36227ce9 100644 --- a/docs/src/manual/signals.md +++ b/docs/src/manual/signals.md @@ -51,10 +51,10 @@ julia> GtkButton(action-name=NULL, action-target, related-action, use-action-app "Press me" was clicked! ``` Notice that _both_ of the callback functions executed! -Gtk+ allows you to define multiple signal handlers for a given object; even the execution order can be [specified](https://developer.gnome.org/gobject/stable/gobject-Signals.html#gobject-Signals.description). -Callbacks for some [signals](https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-accel-closures-changed) require that you return an `Int32`, with value 0 if you want the next handler to run or 1 if you want to prevent any other handlers from running on this event. +Gtk+ allows you to define multiple signal handlers for a given object; even the execution order can be [specified](https://docs.gtk.org/gobject/concepts.html#signals). +Callbacks for some [signals](https://docs.gtk.org/gtk3/signal.Widget.accel-closures-changed.html) require that you return an `Int32`, with value 0 if you want the next handler to run or 1 if you want to prevent any other handlers from running on this event. -The [`"clicked"` signal callback](https://developer.gnome.org/gtk3/stable/GtkButton.html#GtkButton-clicked) should return `nothing` (`void` in C parlance), so you can't prevent other callbacks from running. +The [`"clicked"` signal callback](https://docs.gtk.org/gtk3/method.Button.clicked.html) should return `nothing` (`void` in C parlance), so you can't prevent other callbacks from running. However, we can disconnect the first signal handler: ```julia signal_handler_disconnect(b, id) @@ -75,7 +75,7 @@ id = signal_connect(b, "button-press-event") do widget, event end ``` Note that this signal requires two arguments, here `widget` and `event`, and that `event` contained useful information. -Arguments and their meaning are described along with their corresponding [signals](https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget-accel-closures-changed). +Arguments and their meaning are described along with their corresponding [signals](https://docs.gtk.org/gtk3/signal.Widget.accel-closures-changed.html). **You should omit the final `user_data` argument described in the Gtk documentation**; keep in mind that you can always address other variables from inside your function block, or define the callback in terms of an anonymous function: ```julia @@ -83,9 +83,3 @@ id = signal_connect((widget, event) -> cb_buttonpressed(widget, event, guistate, ``` In some situations you may want or need to use an [approach that is more analogous to julia's `@cfunction` callback syntax](../doc/more_signals.md). One advantage of this alternative approach is that, in cases of error, the backtraces are much more informative. - -Warning: it is essential to avoid task switching inside Gtk callbacks, -as this corrupts the Gtk C-stack. For example, use `@async print` or queue a message for yourself. -You can also call `GLib.g_yield()` if you need to block. However, if you are still seeing segfaults in some random method due to there existing a callback that recursively calls the glib main loop (such as making a dialog box) or otherwise causes `g_yield` to be called, wrap the faulting code in `GLib.@sigatom`. This will postpone execution of that code block until it can be run on the proper stack (but will otherwise acts like normal control flow). - -These restrictions should be fixed once https://github.com/JuliaLang/julia/pull/13099 is merged. diff --git a/docs/src/manual/slider.md b/docs/src/manual/slider.md new file mode 100644 index 00000000..4422c404 --- /dev/null +++ b/docs/src/manual/slider.md @@ -0,0 +1,36 @@ +# Slider widgets (aka GtkScale) and dynamic adjustments + +The following example +creates two sliders using `GtkScale`. +The callback function for the 1st slider +dynamically changes the value of the 2nd slider +to force it to match, +and also dynamically changes the range of the 1st slider +if the value reaches 10. + +This example illustrates +that one can use `GAccessor.value` +both to _access_ a widget value and to _alter_ that value. + +```julia +using Gtk: GtkGrid, GtkScale, GtkWindow, GAccessor +using Gtk: signal_connect, set_gtk_property!, showall + +win = GtkWindow("Sliders", 500, 200) +slider1 = GtkScale(false, 0:10) +slider2 = GtkScale(false, 0:30) +signal_connect(slider1, "value-changed") do widget, others... + value = GAccessor.value(slider1) + GAccessor.value(slider2, value) # dynamic value adjustment + println("slider value is $value") + if value == 10 + GAccessor.range(slider1, 1, 20) # dynamic range adjustment + end +end +g = GtkGrid() +g[1,1] = slider1 +g[1,2] = slider2 +set_gtk_property!(g, :column_homogeneous, true) +push!(win, g) +showall(win) +``` diff --git a/docs/src/manual/textwidgets.md b/docs/src/manual/textwidgets.md index 7d703fc6..5e4973ae 100644 --- a/docs/src/manual/textwidgets.md +++ b/docs/src/manual/textwidgets.md @@ -22,7 +22,7 @@ GAccessor.markup(label,"""My bold text\n GTK+ website""") ``` -The syntax for this markup text is borrowed from html and explained [here](https://developer.gnome.org/pango/stable/PangoMarkupFormat.html). +The syntax for this markup text is borrowed from html and explained [here](https://docs.gtk.org/Pango/pango_markup.html). A label can be made selectable using ```julia diff --git a/example/calculator.jl b/example/calculator.jl new file mode 100644 index 00000000..8b76847d --- /dev/null +++ b/example/calculator.jl @@ -0,0 +1,157 @@ +# Simple calculator application that utilises Gtk.jl +# created by Nand Vinchhi for GCI 2019 + +using Gtk + +win = GtkWindow("Calculator") + +b1 = GtkButton("1") +b2 = GtkButton("2") +b3 = GtkButton("3") +b_plus = GtkButton("+") +b4 = GtkButton("4") +b5 = GtkButton("5") +b6 = GtkButton("6") +b_minus = GtkButton("-") +b7 = GtkButton("7") +b8 = GtkButton("8") +b9 = GtkButton("9") +b_multiply = GtkButton("x") +b_clear = GtkButton("C") +b0 = GtkButton("0") +b_equalto = GtkButton("=") +b_divide = GtkButton("÷") + + +hbox1 = GtkButtonBox(:h) +hbox2 = GtkButtonBox(:h) +hbox3 = GtkButtonBox(:h) +hbox4 = GtkButtonBox(:h) + +push!(hbox1, b1) +push!(hbox1, b2) +push!(hbox1, b3) +push!(hbox1, b_plus) +push!(hbox2, b4) +push!(hbox2, b5) +push!(hbox2, b6) +push!(hbox2, b_minus) +push!(hbox3, b7) +push!(hbox3, b8) +push!(hbox3, b9) +push!(hbox3, b_multiply) +push!(hbox4, b_clear) +push!(hbox4, b0) +push!(hbox4, b_equalto) +push!(hbox4, b_divide) + +vbox = GtkBox(:v) +label = GtkLabel("") +GAccessor.text(label,"") + +push!(vbox, GtkLabel("")) +push!(vbox, label) +push!(vbox, GtkLabel("")) +push!(vbox, hbox1) +push!(vbox, hbox2) +push!(vbox, hbox3) +push!(vbox, hbox4) +push!(win, vbox) + +text = "" + +function calculate(s) + x = "+ " * s + k = split(x) + final = 0 + + for i = 1:length(k) + + if k[i] == "+" + final += parse(Float64, k[i + 1]) + elseif k[i] == "-" + final -= parse(Float64, k[i + 1]) + elseif k[i] == "x" + final *= parse(Float64, k[i + 1]) + elseif k[i] == "÷" + final /= parse(Float64, k[i + 1]) + end + end + return string(final) +end + + +function button_clicked_callback(widget) + if widget == b1 + global text = text * "1" + GAccessor.text(label, text) + elseif widget == b2 + global text = text * "2" + GAccessor.text(label, text) + elseif widget == b3 + global text = text * "3" + GAccessor.text(label, text) + elseif widget == b4 + global text = text * "4" + GAccessor.text(label, text) + elseif widget == b5 + global text = text * "5" + GAccessor.text(label, text) + elseif widget == b6 + global text = text * "6" + GAccessor.text(label, text) + elseif widget == b7 + global text = text * "7" + GAccessor.text(label, text) + elseif widget == b8 + global text = text * "8" + GAccessor.text(label, text) + elseif widget == b9 + global text = text * "9" + GAccessor.text(label, text) + elseif widget == b_plus + global text = text * " + " + GAccessor.text(label, text) + elseif widget == b_minus + global text = text * " - " + GAccessor.text(label, text) + elseif widget == b_multiply + global text = text * " x " + GAccessor.text(label, text) + elseif widget == b_divide + global text = text * " ÷ " + GAccessor.text(label, text) + elseif widget == b0 + global text = text * "0" + GAccessor.text(label, text) + elseif widget == b_clear + global text = "" + GAccessor.text(label, text) + elseif widget == b_equalto + global text = calculate(text) + GAccessor.text(label, text) + end +end + +id1 = signal_connect(button_clicked_callback, b1, "clicked") +id2 = signal_connect(button_clicked_callback, b2, "clicked") +id3 = signal_connect(button_clicked_callback, b3, "clicked") +id4 = signal_connect(button_clicked_callback, b4, "clicked") +id5 = signal_connect(button_clicked_callback, b5, "clicked") +id6 = signal_connect(button_clicked_callback, b6, "clicked") +id7 = signal_connect(button_clicked_callback, b7, "clicked") +id8 = signal_connect(button_clicked_callback, b8, "clicked") +id9 = signal_connect(button_clicked_callback, b9, "clicked") +id10 = signal_connect(button_clicked_callback, b0, "clicked") +id11 = signal_connect(button_clicked_callback, b_plus, "clicked") +id12 = signal_connect(button_clicked_callback, b_minus, "clicked") +id13 = signal_connect(button_clicked_callback, b_multiply, "clicked") +id14 = signal_connect(button_clicked_callback, b_divide, "clicked") +id15 = signal_connect(button_clicked_callback, b_clear, "clicked") +id16 = signal_connect(button_clicked_callback, b_equalto, "clicked") + + + +showall(win) + + diff --git a/gen/gbox2 b/gen/gbox2 deleted file mode 100644 index ef175e5c..00000000 --- a/gen/gbox2 +++ /dev/null @@ -1,4396 +0,0 @@ -quote -$(Expr(:toplevel, :(module GAccessor - import ..Gtk - import ..Gtk.GObject - - export label_align, qdata, icon_activatable, width, buffer, pixbuf, preview_widget_active, iter_at_mark, arrow_tooltip, inner_border, markup_with_mnemonic, popup_single_match, has_selection, hover_expand, double_buffered, tooltips, extension_events, has_frame, tree_view, right_margin, artists, mime_type, child_requisition, use_preview_label, option_group, style, filenames, show_tips, background_area, mode, option, max_length, show_not_found, requisition, for_attach_widget, data_full, children, use_stock, sort_order, private_hint, tag_table, draw, use_markup, pixels_inside_wrap, can_focus, iter_location, upper, from_drawable, info_from_tip_window, logo_icon_name, max_width, icon_at_pos, select_function, website, add_source, markup_column, default_bottom_margin, response_sensitive, show_events, cursor_on_cell, popup_completion, limit, height, visible_horizontal, match_func, activatable, cell_area, screen, tooltip_markup, destroy_with_parent, resizable, icon_from_file, byte_length, icon_tooltip_text, level_indentation, flippable, upper_stepper_sensitivity, left_gravity, iter, resize_mode, round_digits, keep_below, from_pixmap, layout_offsets, left_margin, size_request, cells, row_separator_func, select_multiple, iter_at_line_index, tab_hborder, bounds, from_gicon, max_width_chars, editable, default_attributes, iter_at_child_anchor, single_line_mode, column_drag_function, range_rect, active, from_icon_set, message_area, has_alpha, action_area, depth, verbose, is_locked, current_icon_drag_source, is_important, tab_border, minimum_key_length, fixed_height_mode, sort_func, has_resize_grip, child, search_column, discrete_blocks, pixels_below_lines, ancestor, show_arrow, decorated, chars, mnemonic_widget, selection_bound, track_motion, default_sort_func, show_hidden, slider_size_fixed, accessible, show_numbers, inline_selection, show_icons, show_size, blinking, pulse_step, lower_stepper_sensitivity, width_chars, tooltip_item, arrow_tooltip_text, cell_data, enable_tree_lines, modal, tabs, proxy, attach_widget, receives_default, activates_default, preview_file, paper_sizes, background_color, icon_name, policy, toolbar_style, icon_from_gicon, icon_gicon, colorspace, image_position, visited, preview_widget, activity_blocks, icon_size, meta_marshal, from_animation, target_list, focus_vadjustment, size_wildcarded, icon_drag_source, range, text, display, version, pixel_size, clipboard, icon, alternative_button_order_from_array, focus_on_click, visible_range, search_entry, content_area, sizing, visible_column, hadjustment, create_folders, ellipsize_mode, menu, tab_detachable, animation, menu_label, copy_target_list, modify_func, widget, paste_target_list, no_show_all, selection_bounds, focus_hadjustment, unref, n_items, char_count, keep_above, step_increment, pattern, pixels_with_length, mime_types, urgency_hint, text_window, digits, local_only, accel_group, translation_domain, indices_with_depth, pixels, tooltip_row, uri, markup, events, property, documenters, type_from_name, stock_id, default_top_margin, bits_per_sample, render_icon, drag_dest_row, nth_page, fraction, focus, show_style, iter_at_offset, show_fill_level, icon_set, image, response_for_widget, visibility, line_wrap, cursor, fixed_size, icon_window, display_name, targets, dest_row_at_pos, visible_vertical, file, group_name, text_with_mnemonic, row_drag_data, from_stock, string_from_iter, pointer, data_type, track_visited_links, use_xshm, description, from_icon_name, tab_label_text, headers_clickable, numeric, use_font, expanded, allocation, label_widget, fixed_width, alternative_button_order, item_index, has_grab, position, headers_visible, child_packing, has_window, text_length, geometry, default_response, icon_list, expand, tooltip_column, action, mapped, realized, extensions, entry, inverted, text_size_group, column_type, line_count, border_window_size, accepts_tab, reallocate_redraws, column, program_name, alignment, scroll_adjustments, pango_context, label, text_alignment, path, current_folder_file, use_size, nth_item, iter_first, state, snap_to_ticks, min_width, page_increment, current_uri, columns, fill_level, default_icon_list, parent, submenu, gravity, mnemonic_keyval, frame_dimensions, ellipsize, selection, completion, target, visible_func, activity_step, preview_uri, sort_type, selected, opacity, shadow_type, visual, expander_column, child2, modified, default_size, vscrollbar, data, stock, cursor_hadjustment, mark, label_fill, type_hint, line_yrange, age, modifier_style, child_size, uposition, grid_lines, col_spacing, icon_storage_type, mnemonics_visible, show_border, copyright, increments, angle, fixed_height_from_font, group, deletable, website_label, page_size, current_page, x11_window_id, icon_stock, bin_window, marshal, hover_selection, wmclass, menu_label_text, homogeneous, icon_from_stock, search_equal_func, group_id, can_default, toplevel, reorderable, rules_hint, tab_vborder, iter_at_position, direction_wildcarded, draw_value, arrow_tooltip_markup, wrap_license, deserialize_formats, valuesv, deleted, icon_sensitive, user_data, monitor, model, title, focus_chain, size_of_row, update_policy, gicon, window, default_widget, right_justified, progress_pulse_step, filter, role, column_types, handle_window, slider_range, text_orientation, dest_item_at_pos, child_ipadding, path_at_pos, inconsistent, drop_highlight_item, item_row, border_width, value_as_int, files, preview_filename, slice, default_right_margin, icon_tooltip_markup, radio, sizes, n_channels, license, startup_id, relief_style, selection_mode, layout, qdata_full, from_image, tooltip_window, cell_data_func, text_column, state_wildcarded, item_at_pos, action_widget, debug_updates, geometry_hints, hscrollbar, length, value, use_underline, rubber_banding, child_secondary, indent, composite_name, internal_child, direction, iter_at_location, default_icon, settings, placement, has_tooltip, colormap, accept_focus, destroy_count_func, spacing, start_iter, justification, reserve_toggle_size, item_width, icon_widget, insert, adjustment, value_pos, usize, show_private, sort_indicator, cursor_visible, padding, bar_style, modifier_mask, visible_rect, item_column, ref, accel_path, column_spacing, attributes, from_pixbuf, current_folder, show_tabs, child_visible, priority, row_spacing, tooltip_cell, orientation, authors, show_expanders, homogeneous_tabs, uris, invisible_char, short_name, end_iter, root_window, font_name, sort_column_id, search_position_func, tab_label, line_at_y, app_paintable, proxy_menu_item, object, skip_pager_hint, justify, event_window, snapshot, widget_for_response, focus_child, size, rowstride, tearoff_state, margin, row_spacings, default_col_spacing, storage_type, do_overwrite_confirmation, default_left_margin, default, cell_renderers, visible, disabled, translator_credits, tab_label_packing, application_info, flags, mnemonic_modifier, format, tooltip, current_name, added, active_text, wrap_mode, redraw_on_allocate, completion_prefix, parent_window, enable_search, min_slider_size, item_orientation, ppd_name, inline_completion, auto_startup_notification, vadjustment, lower, n_columns, selectable, child1, pixels_above_lines, item_padding, selected_items, wrap, from_file, name, can_create_tags, filename, items, clickable, groups, skip_taskbar_hint, drop_index, extra_widget, current_item, relief, iter_at_line, tooltip_context, scrollable, progress_fraction, restrict_to_fill_level, tab_pos, copy, logo, context_id, objects, tooltip_text, sensitive, pixmap, iter_from_string, overwrite_mode, use_drag_window, default_row_spacing, serialize_formats, icon_from_icon_name, uri_display, transient_for, line_wrap_mode, comments, selected_rows, icon_pixbuf, tab_reorderable, icon_from_pixbuf, col_spacings, displayed_row, has_separator, buildable_property, install, focus_on_map, indices, current_folder_uri, new_from_pixbuf, n_pages, applications, pixbuf_column, iter_at_line_offset, overwrite, window_type, drag_dest_item - function marshal(closure::Gtk.GClosure,marshal_) - ccall((:g_closure_set_marshal,Gtk.GLib.libgobject),Nothing,(Ptr{Gtk.GClosure},Ptr{Nothing}),closure,marshal_) - return closure - end - function meta_marshal(closure::Gtk.GClosure,marshal_data,meta_marshal_) - ccall((:g_closure_set_meta_marshal,Gtk.GLib.libgobject),Nothing,(Ptr{Gtk.GClosure},Ptr{Nothing},Ptr{Nothing}),closure,marshal_data,meta_marshal_) - return closure - end - function property(object::Gtk.GObject,property_name,value) - ccall((:g_object_set_property,Gtk.GLib.libgobject),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Nothing}),object,property_name,value) - return object - end - function property(object::Gtk.GObject,property_name,value) - return ccall((:g_object_get_property,Gtk.GLib.libgobject),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Nothing}),object,property_name,value) - end - function qdata(object::Gtk.GObject,quark) - return ccall((:g_object_get_qdata,Gtk.GLib.libgobject),Ptr{Nothing},(Ptr{Gtk.GObject},UInt32),object,quark) - end - function qdata(object::Gtk.GObject,quark,data) - ccall((:g_object_set_qdata,Gtk.GLib.libgobject),Nothing,(Ptr{Gtk.GObject},UInt32,Ptr{Nothing}),object,quark,data) - return object - end - function qdata_full(object::Gtk.GObject,quark,data,destroy) - ccall((:g_object_set_qdata_full,Gtk.GLib.libgobject),Nothing,(Ptr{Gtk.GObject},UInt32,Ptr{Nothing},Ptr{Nothing}),object,quark,data,destroy) - return object - end - function data(object::Gtk.GObject,key) - return ccall((:g_object_get_data,Gtk.GLib.libgobject),Ptr{Nothing},(Ptr{Gtk.GObject},Ptr{UInt8}),object,key) - end - function data(object::Gtk.GObject,key,data_) - ccall((:g_object_set_data,Gtk.GLib.libgobject),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Nothing}),object,key,data_) - return object - end - function data_full(object::Gtk.GObject,key,data,destroy) - ccall((:g_object_set_data_full,Gtk.GLib.libgobject),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Nothing},Ptr{Nothing}),object,key,data,destroy) - return object - end - function show_events(show_events_::Bool) - ccall((:gdk_set_show_events,Gtk.libgdk),Nothing,(Cint,),show_events_) - return show_events_ - end - function verbose(verbose_::Bool) - ccall((:gdk_rgb_set_verbose,Gtk.libgdk),Nothing,(Cint,),verbose_) - return verbose_ - end - function install(install_::Bool) - ccall((:gdk_rgb_set_install,Gtk.libgdk),Nothing,(Cint,),install_) - return install_ - end - function colorspace(pixbuf::Gtk.GdkPixbuf) - return ccall((:gdk_pixbuf_get_colorspace,Gtk.libgdk_pixbuf),Cint,(Ptr{Gtk.GObject},),pixbuf) - end - function n_channels(pixbuf::Gtk.GdkPixbuf) - return ccall((:gdk_pixbuf_get_n_channels,Gtk.libgdk_pixbuf),Cint,(Ptr{Gtk.GObject},),pixbuf) - end - function has_alpha(pixbuf::Gtk.GdkPixbuf) - return convert(Bool,ccall((:gdk_pixbuf_get_has_alpha,Gtk.libgdk_pixbuf),Cint,(Ptr{Gtk.GObject},),pixbuf)) - end - function bits_per_sample(pixbuf::Gtk.GdkPixbuf) - return ccall((:gdk_pixbuf_get_bits_per_sample,Gtk.libgdk_pixbuf),Cint,(Ptr{Gtk.GObject},),pixbuf) - end - function pixels(pixbuf::Gtk.GdkPixbuf) - return ccall((:gdk_pixbuf_get_pixels,Gtk.libgdk_pixbuf),Ptr{Cuchar},(Ptr{Gtk.GObject},),pixbuf) - end - function width(pixbuf::Gtk.GdkPixbuf) - return ccall((:gdk_pixbuf_get_width,Gtk.libgdk_pixbuf),Cint,(Ptr{Gtk.GObject},),pixbuf) - end - function height(pixbuf::Gtk.GdkPixbuf) - return ccall((:gdk_pixbuf_get_height,Gtk.libgdk_pixbuf),Cint,(Ptr{Gtk.GObject},),pixbuf) - end - function rowstride(pixbuf::Gtk.GdkPixbuf) - return ccall((:gdk_pixbuf_get_rowstride,Gtk.libgdk_pixbuf),Cint,(Ptr{Gtk.GObject},),pixbuf) - end - function byte_length(pixbuf::Gtk.GdkPixbuf) - return ccall((:gdk_pixbuf_get_byte_length,Gtk.libgdk_pixbuf),Culong,(Ptr{Gtk.GObject},),pixbuf) - end - function pixels_with_length(pixbuf::Gtk.GdkPixbuf) - length = Gtk.mutable(UInt32) - return (ccall((:gdk_pixbuf_get_pixels_with_length,Gtk.libgdk_pixbuf),Ptr{Cuchar},(Ptr{Gtk.GObject},Ptr{UInt32}),pixbuf,length),length[]) - end - function option(pixbuf::Gtk.GdkPixbuf,key) - return ccall((:gdk_pixbuf_get_option,Gtk.libgdk_pixbuf),Ptr{UInt8},(Ptr{Gtk.GObject},Ptr{UInt8}),pixbuf,key) - end - function name(format::Gtk.GdkPixbufFormat) - return ccall((:gdk_pixbuf_format_get_name,Gtk.libgdk_pixbuf),Ptr{UInt8},(Ptr{Gtk.GdkPixbufFormat},),format) - end - function description(format::Gtk.GdkPixbufFormat) - return ccall((:gdk_pixbuf_format_get_description,Gtk.libgdk_pixbuf),Ptr{UInt8},(Ptr{Gtk.GdkPixbufFormat},),format) - end - function mime_types(format::Gtk.GdkPixbufFormat) - return ccall((:gdk_pixbuf_format_get_mime_types,Gtk.libgdk_pixbuf),Ptr{Ptr{UInt8}},(Ptr{Gtk.GdkPixbufFormat},),format) - end - function extensions(format::Gtk.GdkPixbufFormat) - return ccall((:gdk_pixbuf_format_get_extensions,Gtk.libgdk_pixbuf),Ptr{Ptr{UInt8}},(Ptr{Gtk.GdkPixbufFormat},),format) - end - function disabled(format::Gtk.GdkPixbufFormat,disabled_) - ccall((:gdk_pixbuf_format_set_disabled,Gtk.libgdk_pixbuf),Nothing,(Ptr{Gtk.GdkPixbufFormat},Cint),format,disabled_) - return format - end - function license(format::Gtk.GdkPixbufFormat) - return ccall((:gdk_pixbuf_format_get_license,Gtk.libgdk_pixbuf),Ptr{UInt8},(Ptr{Gtk.GdkPixbufFormat},),format) - end - function from_drawable(dest::Gtk.GdkPixbuf,src,cmap,src_x,src_y,dest_x,dest_y,width,height) - return convert(Gtk.GdkPixbuf,ccall((:gdk_pixbuf_get_from_drawable,Gtk.libgdk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Cint,Cint,Cint,Cint,Cint,Cint),dest,src,cmap,src_x,src_y,dest_x,dest_y,width,height)) - end - function from_image(dest::Gtk.GdkPixbuf,src,cmap,src_x,src_y,dest_x,dest_y,width,height) - return convert(Gtk.GdkPixbuf,ccall((:gdk_pixbuf_get_from_image,Gtk.libgdk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Cint,Cint,Cint,Cint,Cint,Cint),dest,src,cmap,src_x,src_y,dest_x,dest_y,width,height)) - end - function debug_updates(setting::Bool) - ccall((:gdk_window_set_debug_updates,Gtk.libgdk),Nothing,(Cint,),setting) - return setting - end - function use_xshm(use_xshm_::Bool) - ccall((:gdk_set_use_xshm,Gtk.libgdk),Nothing,(Cint,),use_xshm_) - return use_xshm_ - end - function is_locked(accel_group::Gtk.GtkAccelGroup) - return convert(Bool,ccall((:gtk_accel_group_get_is_locked,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),accel_group)) - end - function modifier_mask(accel_group::Gtk.GtkAccelGroup) - return ccall((:gtk_accel_group_get_modifier_mask,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),accel_group) - end - function value(adjustment::Gtk.GtkAdjustment) - return ccall((:gtk_adjustment_get_value,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),adjustment) - end - function value(adjustment::Gtk.GtkAdjustment,value_) - ccall((:gtk_adjustment_set_value,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),adjustment,value_) - return adjustment - end - function lower(adjustment::Gtk.GtkAdjustment) - return ccall((:gtk_adjustment_get_lower,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),adjustment) - end - function lower(adjustment::Gtk.GtkAdjustment,lower_) - ccall((:gtk_adjustment_set_lower,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),adjustment,lower_) - return adjustment - end - function upper(adjustment::Gtk.GtkAdjustment) - return ccall((:gtk_adjustment_get_upper,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),adjustment) - end - function upper(adjustment::Gtk.GtkAdjustment,upper_) - ccall((:gtk_adjustment_set_upper,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),adjustment,upper_) - return adjustment - end - function step_increment(adjustment::Gtk.GtkAdjustment) - return ccall((:gtk_adjustment_get_step_increment,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),adjustment) - end - function step_increment(adjustment::Gtk.GtkAdjustment,step_increment_) - ccall((:gtk_adjustment_set_step_increment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),adjustment,step_increment_) - return adjustment - end - function page_increment(adjustment::Gtk.GtkAdjustment) - return ccall((:gtk_adjustment_get_page_increment,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),adjustment) - end - function page_increment(adjustment::Gtk.GtkAdjustment,page_increment_) - ccall((:gtk_adjustment_set_page_increment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),adjustment,page_increment_) - return adjustment - end - function page_size(adjustment::Gtk.GtkAdjustment) - return ccall((:gtk_adjustment_get_page_size,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),adjustment) - end - function page_size(adjustment::Gtk.GtkAdjustment,page_size_) - ccall((:gtk_adjustment_set_page_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),adjustment,page_size_) - return adjustment - end - function style(widget::Gtk.GtkWidget) - return ccall((:gtk_rc_get_style,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function no_show_all(widget::Gtk.GtkWidget,no_show_all_) - ccall((:gtk_widget_set_no_show_all,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,no_show_all_) - return widget - end - function no_show_all(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_no_show_all,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function child_requisition(widget::Gtk.GtkWidget,requisition) - return ccall((:gtk_widget_get_child_requisition,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),widget,requisition) - end - function accel_path(widget::Gtk.GtkWidget,accel_path_,accel_group) - ccall((:gtk_widget_set_accel_path,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Gtk.GObject}),widget,accel_path_,accel_group) - return widget - end - function scroll_adjustments(widget::Gtk.GtkWidget,hadjustment,vadjustment) - ccall((:gtk_widget_set_scroll_adjustments,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{Gtk.GObject}),widget,hadjustment,vadjustment) - return widget - end - function can_focus(widget::Gtk.GtkWidget,can_focus_) - ccall((:gtk_widget_set_can_focus,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,can_focus_) - return widget - end - function can_focus(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_can_focus,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function can_default(widget::Gtk.GtkWidget,can_default_) - ccall((:gtk_widget_set_can_default,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,can_default_) - return widget - end - function can_default(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_can_default,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function receives_default(widget::Gtk.GtkWidget,receives_default_) - ccall((:gtk_widget_set_receives_default,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,receives_default_) - return widget - end - function receives_default(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_receives_default,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function name(widget::Gtk.GtkWidget,name_) - ccall((:gtk_widget_set_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),widget,name_) - return widget - end - function name(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),widget) - end - function state(widget::Gtk.GtkWidget,state_) - ccall((:gtk_widget_set_state,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,state_) - return widget - end - function state(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_state,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget) - end - function sensitive(widget::Gtk.GtkWidget,sensitive_) - ccall((:gtk_widget_set_sensitive,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,sensitive_) - return widget - end - function sensitive(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_sensitive,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function visible(widget::Gtk.GtkWidget,visible_) - ccall((:gtk_widget_set_visible,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,visible_) - return widget - end - function visible(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_visible,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function has_window(widget::Gtk.GtkWidget,has_window_) - ccall((:gtk_widget_set_has_window,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,has_window_) - return widget - end - function has_window(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_has_window,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function realized(widget::Gtk.GtkWidget,realized_) - ccall((:gtk_widget_set_realized,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,realized_) - return widget - end - function realized(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_realized,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function mapped(widget::Gtk.GtkWidget,mapped_) - ccall((:gtk_widget_set_mapped,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,mapped_) - return widget - end - function mapped(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_mapped,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function app_paintable(widget::Gtk.GtkWidget,app_paintable_) - ccall((:gtk_widget_set_app_paintable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,app_paintable_) - return widget - end - function app_paintable(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_app_paintable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function double_buffered(widget::Gtk.GtkWidget,double_buffered_) - ccall((:gtk_widget_set_double_buffered,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,double_buffered_) - return widget - end - function double_buffered(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_double_buffered,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function redraw_on_allocate(widget::Gtk.GtkWidget,redraw_on_allocate_) - ccall((:gtk_widget_set_redraw_on_allocate,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,redraw_on_allocate_) - return widget - end - function parent(widget::Gtk.GtkWidget,parent_) - ccall((:gtk_widget_set_parent,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),widget,parent_) - return widget - end - function parent(widget::Gtk.GtkWidget) - return convert(Gtk.GtkWidget,ccall((:gtk_widget_get_parent,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),widget)) - end - function parent_window(widget::Gtk.GtkWidget,parent_window_) - ccall((:gtk_widget_set_parent_window,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),widget,parent_window_) - return widget - end - function parent_window(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_parent_window,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function child_visible(widget::Gtk.GtkWidget,is_visible) - ccall((:gtk_widget_set_child_visible,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,is_visible) - return widget - end - function child_visible(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_child_visible,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function window(widget::Gtk.GtkWidget,window_) - ccall((:gtk_widget_set_window,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),widget,window_) - return widget - end - function window(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_window,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function allocation(widget::Gtk.GtkWidget) - allocation_ = Gtk.mutable(Gtk.GdkRectangle) - ccall((:gtk_widget_get_allocation,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GdkRectangle}),widget,allocation_) - return allocation_[] - end - function allocation(widget::Gtk.GtkWidget,allocation_) - ccall((:gtk_widget_set_allocation,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GdkRectangle}),widget,allocation_) - return widget - end - function requisition(widget::Gtk.GtkWidget,requisition_) - return ccall((:gtk_widget_get_requisition,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),widget,requisition_) - end - function size_request(widget::Gtk.GtkWidget,width,height) - ccall((:gtk_widget_set_size_request,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),widget,width,height) - return widget - end - function size_request(widget::Gtk.GtkWidget) - height = Gtk.mutable(Cint) - width = Gtk.mutable(Cint) - ccall((:gtk_widget_get_size_request,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),widget,width,height) - return (width[],height[]) - end - function uposition(widget::Gtk.GtkWidget,x,y) - ccall((:gtk_widget_set_uposition,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),widget,x,y) - return widget - end - function usize(widget::Gtk.GtkWidget,width,height) - ccall((:gtk_widget_set_usize,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),widget,width,height) - return widget - end - function events(widget::Gtk.GtkWidget,events_) - ccall((:gtk_widget_set_events,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,events_) - return widget - end - function extension_events(widget::Gtk.GtkWidget,mode) - ccall((:gtk_widget_set_extension_events,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,mode) - return widget - end - function extension_events(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_extension_events,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget) - end - function toplevel(widget::Gtk.GtkWidget) - return convert(Gtk.GtkWidget,ccall((:gtk_widget_get_toplevel,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),widget)) - end - function ancestor(widget::Gtk.GtkWidget,widget_type) - return convert(Gtk.GtkWidget,ccall((:gtk_widget_get_ancestor,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Culong),widget,widget_type)) - end - function colormap(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_colormap,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function visual(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_visual,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function screen(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_screen,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function display(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_display,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function root_window(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_root_window,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function settings(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_settings,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function clipboard(widget::Gtk.GtkWidget,selection) - return ccall((:gtk_widget_get_clipboard,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},Ptr{Nothing}),widget,selection) - end - function snapshot(widget::Gtk.GtkWidget) - clip_rect = Gtk.mutable(Gtk.GdkRectangle) - return (ccall((:gtk_widget_get_snapshot,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},Ptr{Gtk.GdkRectangle}),widget,clip_rect),clip_rect[]) - end - function accessible(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_accessible,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function colormap(widget::Gtk.GtkWidget,colormap_) - ccall((:gtk_widget_set_colormap,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),widget,colormap_) - return widget - end - function events(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_events,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget) - end - function pointer(widget::Gtk.GtkWidget) - y = Gtk.mutable(Cint) - x = Gtk.mutable(Cint) - ccall((:gtk_widget_get_pointer,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),widget,x,y) - return (x[],y[]) - end - function style(widget::Gtk.GtkWidget,style_) - ccall((:gtk_widget_set_style,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),widget,style_) - return widget - end - function style(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_style,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function modifier_style(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_modifier_style,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function pango_context(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_pango_context,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function composite_name(widget::Gtk.GtkWidget,name) - ccall((:gtk_widget_set_composite_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),widget,name) - return widget - end - function composite_name(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_composite_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),widget) - end - function property(widget::Gtk.GtkWidget,property_name,value) - return ccall((:gtk_widget_style_get_property,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Nothing}),widget,property_name,value) - end - function direction(widget::Gtk.GtkWidget,dir) - ccall((:gtk_widget_set_direction,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,dir) - return widget - end - function direction(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_direction,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget) - end - function tooltip_window(widget::Gtk.GtkWidget,custom_window) - ccall((:gtk_widget_set_tooltip_window,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),widget,custom_window) - return widget - end - function tooltip_window(widget::Gtk.GtkWidget) - return convert(Gtk.GtkWindow,ccall((:gtk_widget_get_tooltip_window,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),widget)) - end - function tooltip_text(widget::Gtk.GtkWidget,text) - ccall((:gtk_widget_set_tooltip_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),widget,text) - return widget - end - function tooltip_text(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_tooltip_text,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),widget) - end - function tooltip_markup(widget::Gtk.GtkWidget,markup) - ccall((:gtk_widget_set_tooltip_markup,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),widget,markup) - return widget - end - function tooltip_markup(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_tooltip_markup,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),widget) - end - function has_tooltip(widget::Gtk.GtkWidget,has_tooltip_) - ccall((:gtk_widget_set_has_tooltip,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,has_tooltip_) - return widget - end - function has_tooltip(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_widget_get_has_tooltip,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function has_grab(widget::Gtk.GtkWidget,has_grab_) - ccall((:ubuntu_gtk_widget_set_has_grab,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,has_grab_) - return widget - end - function border_width(container::Gtk.GtkContainer,border_width_) - ccall((:gtk_container_set_border_width,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),container,border_width_) - return container - end - function border_width(container::Gtk.GtkContainer) - return ccall((:gtk_container_get_border_width,Gtk.libgtk),UInt32,(Ptr{Gtk.GObject},),container) - end - function resize_mode(container::Gtk.GtkContainer,resize_mode_) - ccall((:gtk_container_set_resize_mode,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),container,resize_mode_) - return container - end - function resize_mode(container::Gtk.GtkContainer) - return ccall((:gtk_container_get_resize_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),container) - end - function children(container::Gtk.GtkContainer) - return ccall((:gtk_container_get_children,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Ptr{Gtk.GObject},),container) - end - function focus_chain(container::Gtk.GtkContainer,focusable_widgets) - ccall((:gtk_container_set_focus_chain,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk._GList{Nothing}}),container,focusable_widgets) - return container - end - function focus_chain(container::Gtk.GtkContainer) - focusable_widgets = Gtk.mutable(Ptr{Gtk._GList{Nothing}}) - return (convert(Bool,ccall((:gtk_container_get_focus_chain,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Ptr{Gtk._GList{Nothing}}}),container,focusable_widgets)),focusable_widgets[]) - end - function reallocate_redraws(container::Gtk.GtkContainer,needs_redraws) - ccall((:gtk_container_set_reallocate_redraws,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),container,needs_redraws) - return container - end - function focus_child(container::Gtk.GtkContainer,child) - ccall((:gtk_container_set_focus_child,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),container,child) - return container - end - function focus_child(container::Gtk.GtkContainer) - return convert(Gtk.GtkWidget,ccall((:gtk_container_get_focus_child,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),container)) - end - function focus_vadjustment(container::Gtk.GtkContainer,adjustment) - ccall((:gtk_container_set_focus_vadjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),container,adjustment) - return container - end - function focus_vadjustment(container::Gtk.GtkContainer) - return convert(Gtk.GtkAdjustment,ccall((:gtk_container_get_focus_vadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),container)) - end - function focus_hadjustment(container::Gtk.GtkContainer,adjustment) - ccall((:gtk_container_set_focus_hadjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),container,adjustment) - return container - end - function focus_hadjustment(container::Gtk.GtkContainer) - return convert(Gtk.GtkAdjustment,ccall((:gtk_container_get_focus_hadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),container)) - end - function property(container::Gtk.GtkContainer,child,property_name,value) - ccall((:gtk_container_child_set_property,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Nothing}),container,child,property_name,value) - return container - end - function property(container::Gtk.GtkContainer,child,property_name,value) - return ccall((:gtk_container_child_get_property,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Nothing}),container,child,property_name,value) - end - function child(bin::Gtk.GtkBin) - return convert(Gtk.GtkWidget,ccall((:gtk_bin_get_child,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),bin)) - end - function title(window::Gtk.GtkWindow,title_) - ccall((:gtk_window_set_title,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),window,title_) - return window - end - function title(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_title,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),window) - end - function wmclass(window::Gtk.GtkWindow,wmclass_name,wmclass_class) - ccall((:gtk_window_set_wmclass,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Ptr{UInt8}),window,wmclass_name,wmclass_class) - return window - end - function role(window::Gtk.GtkWindow,role_) - ccall((:gtk_window_set_role,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),window,role_) - return window - end - function startup_id(window::Gtk.GtkWindow,startup_id_) - ccall((:gtk_window_set_startup_id,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),window,startup_id_) - return window - end - function role(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_role,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),window) - end - function position(window::Gtk.GtkWindow,position_) - ccall((:gtk_window_set_position,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,position_) - return window - end - function focus(window::Gtk.GtkWindow,focus_) - ccall((:gtk_window_set_focus,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),window,focus_) - return window - end - function focus(window::Gtk.GtkWindow) - return convert(Gtk.GtkWidget,ccall((:gtk_window_get_focus,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),window)) - end - function default(window::Gtk.GtkWindow,default_widget) - ccall((:gtk_window_set_default,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),window,default_widget) - return window - end - function default_widget(window::Gtk.GtkWindow) - return convert(Gtk.GtkWidget,ccall((:gtk_window_get_default_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),window)) - end - function transient_for(window::Gtk.GtkWindow,parent) - ccall((:gtk_window_set_transient_for,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),window,parent) - return window - end - function transient_for(window::Gtk.GtkWindow) - return convert(Gtk.GtkWindow,ccall((:gtk_window_get_transient_for,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),window)) - end - function opacity(window::Gtk.GtkWindow,opacity_) - ccall((:gtk_window_set_opacity,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),window,opacity_) - return window - end - function opacity(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_opacity,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),window) - end - function type_hint(window::Gtk.GtkWindow,hint) - ccall((:gtk_window_set_type_hint,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,hint) - return window - end - function type_hint(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_type_hint,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window) - end - function skip_taskbar_hint(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_skip_taskbar_hint,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function skip_taskbar_hint(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_skip_taskbar_hint,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function skip_pager_hint(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_skip_pager_hint,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function skip_pager_hint(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_skip_pager_hint,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function urgency_hint(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_urgency_hint,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function urgency_hint(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_urgency_hint,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function accept_focus(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_accept_focus,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function accept_focus(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_accept_focus,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function focus_on_map(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_focus_on_map,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function focus_on_map(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_focus_on_map,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function destroy_with_parent(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_destroy_with_parent,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function destroy_with_parent(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_destroy_with_parent,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function mnemonics_visible(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_mnemonics_visible,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function mnemonics_visible(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_mnemonics_visible,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function resizable(window::Gtk.GtkWindow,resizable_) - ccall((:gtk_window_set_resizable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,resizable_) - return window - end - function resizable(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_resizable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function gravity(window::Gtk.GtkWindow,gravity_) - ccall((:gtk_window_set_gravity,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,gravity_) - return window - end - function gravity(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_gravity,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window) - end - function geometry_hints(window::Gtk.GtkWindow,geometry_widget,geometry,geom_mask) - ccall((:gtk_window_set_geometry_hints,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{Nothing},Cint),window,geometry_widget,geometry,geom_mask) - return window - end - function screen(window::Gtk.GtkWindow,screen_) - ccall((:gtk_window_set_screen,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),window,screen_) - return window - end - function screen(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_screen,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),window) - end - function has_frame(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_has_frame,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function has_frame(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_has_frame,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function frame_dimensions(window::Gtk.GtkWindow,left,top_,right,bottom) - ccall((:gtk_window_set_frame_dimensions,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint,Cint,Cint),window,left,top_,right,bottom) - return window - end - function frame_dimensions(window::Gtk.GtkWindow) - bottom = Gtk.mutable(Cint) - right = Gtk.mutable(Cint) - top_ = Gtk.mutable(Cint) - left = Gtk.mutable(Cint) - ccall((:gtk_window_get_frame_dimensions,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint},Ptr{Cint},Ptr{Cint}),window,left,top_,right,bottom) - return (left[],top_[],right[],bottom[]) - end - function decorated(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_decorated,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function decorated(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_decorated,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function deletable(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_deletable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function deletable(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_deletable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function icon_list(window::Gtk.GtkWindow,list) - ccall((:gtk_window_set_icon_list,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk._GList{Nothing}}),window,list) - return window - end - function icon_list(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_icon_list,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Ptr{Gtk.GObject},),window) - end - function icon(window::Gtk.GtkWindow,icon_) - ccall((:gtk_window_set_icon,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),window,icon_) - return window - end - function icon_name(window::Gtk.GtkWindow,name) - ccall((:gtk_window_set_icon_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),window,name) - return window - end - function icon_from_file(window::Gtk.GtkWindow,filename,err) - ccall((:gtk_window_set_icon_from_file,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Ptr{Gtk.GError}}),window,filename,err) - return window - end - function icon(window::Gtk.GtkWindow) - return convert(Gtk.GdkPixbuf,ccall((:gtk_window_get_icon,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),window)) - end - function icon_name(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_icon_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),window) - end - function default_icon(icon::Gtk.GdkPixbuf) - ccall((:gtk_window_set_default_icon,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},),icon) - return icon - end - function auto_startup_notification(setting::Bool) - ccall((:gtk_window_set_auto_startup_notification,Gtk.libgtk),Nothing,(Cint,),setting) - return setting - end - function modal(window::Gtk.GtkWindow,modal_) - ccall((:gtk_window_set_modal,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,modal_) - return window - end - function modal(window::Gtk.GtkWindow) - return convert(Bool,ccall((:gtk_window_get_modal,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window)) - end - function mnemonic_modifier(window::Gtk.GtkWindow,modifier) - ccall((:gtk_window_set_mnemonic_modifier,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,modifier) - return window - end - function mnemonic_modifier(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_mnemonic_modifier,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window) - end - function keep_above(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_keep_above,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function keep_below(window::Gtk.GtkWindow,setting) - ccall((:gtk_window_set_keep_below,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),window,setting) - return window - end - function policy(window::Gtk.GtkWindow,allow_shrink,allow_grow,auto_shrink) - ccall((:gtk_window_set_policy,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint,Cint),window,allow_shrink,allow_grow,auto_shrink) - return window - end - function default_size(window::Gtk.GtkWindow,width,height) - ccall((:gtk_window_set_default_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),window,width,height) - return window - end - function default_size(window::Gtk.GtkWindow) - height = Gtk.mutable(Cint) - width = Gtk.mutable(Cint) - ccall((:gtk_window_get_default_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),window,width,height) - return (width[],height[]) - end - function size(window::Gtk.GtkWindow) - height = Gtk.mutable(Cint) - width = Gtk.mutable(Cint) - ccall((:gtk_window_get_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),window,width,height) - return (width[],height[]) - end - function position(window::Gtk.GtkWindow) - root_y = Gtk.mutable(Cint) - root_x = Gtk.mutable(Cint) - ccall((:gtk_window_get_position,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),window,root_x,root_y) - return (root_x[],root_y[]) - end - function group(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_group,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),window) - end - function window_type(window::Gtk.GtkWindow) - return ccall((:gtk_window_get_window_type,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),window) - end - function response_sensitive(dialog::Gtk.GtkDialog,response_id,setting) - ccall((:gtk_dialog_set_response_sensitive,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),dialog,response_id,setting) - return dialog - end - function default_response(dialog::Gtk.GtkDialog,response_id) - ccall((:gtk_dialog_set_default_response,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),dialog,response_id) - return dialog - end - function widget_for_response(dialog::Gtk.GtkDialog,response_id) - return convert(Gtk.GtkWidget,ccall((:gtk_dialog_get_widget_for_response,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Cint),dialog,response_id)) - end - function response_for_widget(dialog::Gtk.GtkDialog,widget) - return ccall((:gtk_dialog_get_response_for_widget,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),dialog,widget) - end - function has_separator(dialog::Gtk.GtkDialog,setting) - ccall((:gtk_dialog_set_has_separator,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),dialog,setting) - return dialog - end - function has_separator(dialog::Gtk.GtkDialog) - return convert(Bool,ccall((:gtk_dialog_get_has_separator,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),dialog)) - end - function alternative_button_order(dialog::Gtk.GtkDialog,first_response_id) - ccall((:gtk_dialog_set_alternative_button_order,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),dialog,first_response_id) - return dialog - end - function alternative_button_order_from_array(dialog::Gtk.GtkDialog,n_params,new_order) - ccall((:gtk_dialog_set_alternative_button_order_from_array,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{Cint}),dialog,n_params,new_order) - return dialog - end - function action_area(dialog::Gtk.GtkDialog) - return convert(Gtk.GtkWidget,ccall((:gtk_dialog_get_action_area,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),dialog)) - end - function content_area(dialog::Gtk.GtkDialog) - return convert(Gtk.GtkWidget,ccall((:gtk_dialog_get_content_area,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),dialog)) - end - function name(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),about) - end - function name(about::Gtk.GtkAboutDialog,name_) - ccall((:gtk_about_dialog_set_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),about,name_) - return about - end - function program_name(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_program_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),about) - end - function program_name(about::Gtk.GtkAboutDialog,name) - ccall((:gtk_about_dialog_set_program_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),about,name) - return about - end - function version(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_version,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),about) - end - function version(about::Gtk.GtkAboutDialog,version_) - ccall((:gtk_about_dialog_set_version,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),about,version_) - return about - end - function copyright(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_copyright,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),about) - end - function copyright(about::Gtk.GtkAboutDialog,copyright_) - ccall((:gtk_about_dialog_set_copyright,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),about,copyright_) - return about - end - function comments(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_comments,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),about) - end - function comments(about::Gtk.GtkAboutDialog,comments_) - ccall((:gtk_about_dialog_set_comments,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),about,comments_) - return about - end - function license(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_license,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),about) - end - function license(about::Gtk.GtkAboutDialog,license_) - ccall((:gtk_about_dialog_set_license,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),about,license_) - return about - end - function wrap_license(about::Gtk.GtkAboutDialog) - return convert(Bool,ccall((:gtk_about_dialog_get_wrap_license,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),about)) - end - function wrap_license(about::Gtk.GtkAboutDialog,wrap_license_) - ccall((:gtk_about_dialog_set_wrap_license,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),about,wrap_license_) - return about - end - function website(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_website,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),about) - end - function website(about::Gtk.GtkAboutDialog,website_) - ccall((:gtk_about_dialog_set_website,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),about,website_) - return about - end - function website_label(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_website_label,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),about) - end - function website_label(about::Gtk.GtkAboutDialog,website_label_) - ccall((:gtk_about_dialog_set_website_label,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),about,website_label_) - return about - end - function authors(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_authors,Gtk.libgtk),Ptr{Ptr{UInt8}},(Ptr{Gtk.GObject},),about) - end - function authors(about::Gtk.GtkAboutDialog,authors_) - ccall((:gtk_about_dialog_set_authors,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{UInt8}}),about,authors_) - return about - end - function documenters(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_documenters,Gtk.libgtk),Ptr{Ptr{UInt8}},(Ptr{Gtk.GObject},),about) - end - function documenters(about::Gtk.GtkAboutDialog,documenters_) - ccall((:gtk_about_dialog_set_documenters,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{UInt8}}),about,documenters_) - return about - end - function artists(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_artists,Gtk.libgtk),Ptr{Ptr{UInt8}},(Ptr{Gtk.GObject},),about) - end - function artists(about::Gtk.GtkAboutDialog,artists_) - ccall((:gtk_about_dialog_set_artists,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{UInt8}}),about,artists_) - return about - end - function translator_credits(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_translator_credits,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),about) - end - function translator_credits(about::Gtk.GtkAboutDialog,translator_credits_) - ccall((:gtk_about_dialog_set_translator_credits,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),about,translator_credits_) - return about - end - function logo(about::Gtk.GtkAboutDialog) - return convert(Gtk.GdkPixbuf,ccall((:gtk_about_dialog_get_logo,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),about)) - end - function logo(about::Gtk.GtkAboutDialog,logo_) - ccall((:gtk_about_dialog_set_logo,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),about,logo_) - return about - end - function logo_icon_name(about::Gtk.GtkAboutDialog) - return ccall((:gtk_about_dialog_get_logo_icon_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),about) - end - function logo_icon_name(about::Gtk.GtkAboutDialog,icon_name) - ccall((:gtk_about_dialog_set_logo_icon_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),about,icon_name) - return about - end - function active(menu::Gtk.GtkMenu) - return convert(Gtk.GtkWidget,ccall((:gtk_menu_get_active,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),menu)) - end - function active(menu::Gtk.GtkMenu,index_) - ccall((:gtk_menu_set_active,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),menu,index_) - return menu - end - function accel_group(menu::Gtk.GtkMenu,accel_group_) - ccall((:gtk_menu_set_accel_group,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),menu,accel_group_) - return menu - end - function accel_group(menu::Gtk.GtkMenu) - return convert(Gtk.GtkAccelGroup,ccall((:gtk_menu_get_accel_group,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),menu)) - end - function accel_path(menu::Gtk.GtkMenu,accel_path_) - ccall((:gtk_menu_set_accel_path,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),menu,accel_path_) - return menu - end - function accel_path(menu::Gtk.GtkMenu) - return ccall((:gtk_menu_get_accel_path,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),menu) - end - function attach_widget(menu::Gtk.GtkMenu) - return convert(Gtk.GtkWidget,ccall((:gtk_menu_get_attach_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),menu)) - end - function tearoff_state(menu::Gtk.GtkMenu,torn_off) - ccall((:gtk_menu_set_tearoff_state,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),menu,torn_off) - return menu - end - function tearoff_state(menu::Gtk.GtkMenu) - return convert(Bool,ccall((:gtk_menu_get_tearoff_state,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),menu)) - end - function title(menu::Gtk.GtkMenu,title_) - ccall((:gtk_menu_set_title,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),menu,title_) - return menu - end - function title(menu::Gtk.GtkMenu) - return ccall((:gtk_menu_get_title,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),menu) - end - function screen(menu::Gtk.GtkMenu,screen_) - ccall((:gtk_menu_set_screen,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),menu,screen_) - return menu - end - function monitor(menu::Gtk.GtkMenu,monitor_num) - ccall((:gtk_menu_set_monitor,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),menu,monitor_num) - return menu - end - function monitor(menu::Gtk.GtkMenu) - return ccall((:gtk_menu_get_monitor,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),menu) - end - function for_attach_widget(widget::Gtk.GtkWidget) - return ccall((:gtk_menu_get_for_attach_widget,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Ptr{Gtk.GObject},),widget) - end - function reserve_toggle_size(menu::Gtk.GtkMenu,reserve_toggle_size_) - ccall((:gtk_menu_set_reserve_toggle_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),menu,reserve_toggle_size_) - return menu - end - function reserve_toggle_size(menu::Gtk.GtkMenu) - return convert(Bool,ccall((:gtk_menu_get_reserve_toggle_size,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),menu)) - end - function text(label::Gtk.GtkLabel,str) - ccall((:gtk_label_set_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),label,str) - return label - end - function text(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_text,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),label) - end - function attributes(label::Gtk.GtkLabel,attrs) - ccall((:gtk_label_set_attributes,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),label,attrs) - return label - end - function attributes(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_attributes,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),label) - end - function label(label_::Gtk.GtkLabel,str) - ccall((:gtk_label_set_label,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),label_,str) - return label_ - end - function label(label_::Gtk.GtkLabel) - return ccall((:gtk_label_get_label,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),label_) - end - function markup(label::Gtk.GtkLabel,str) - ccall((:gtk_label_set_markup,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),label,str) - return label - end - function use_markup(label::Gtk.GtkLabel,setting) - ccall((:gtk_label_set_use_markup,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,setting) - return label - end - function use_markup(label::Gtk.GtkLabel) - return convert(Bool,ccall((:gtk_label_get_use_markup,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label)) - end - function use_underline(label::Gtk.GtkLabel,setting) - ccall((:gtk_label_set_use_underline,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,setting) - return label - end - function use_underline(label::Gtk.GtkLabel) - return convert(Bool,ccall((:gtk_label_get_use_underline,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label)) - end - function markup_with_mnemonic(label::Gtk.GtkLabel,str) - ccall((:gtk_label_set_markup_with_mnemonic,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),label,str) - return label - end - function mnemonic_keyval(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_mnemonic_keyval,Gtk.libgtk),UInt32,(Ptr{Gtk.GObject},),label) - end - function mnemonic_widget(label::Gtk.GtkLabel,widget) - ccall((:gtk_label_set_mnemonic_widget,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),label,widget) - return label - end - function mnemonic_widget(label::Gtk.GtkLabel) - return convert(Gtk.GtkWidget,ccall((:gtk_label_get_mnemonic_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),label)) - end - function text_with_mnemonic(label::Gtk.GtkLabel,str) - ccall((:gtk_label_set_text_with_mnemonic,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),label,str) - return label - end - function justify(label::Gtk.GtkLabel,jtype) - ccall((:gtk_label_set_justify,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,jtype) - return label - end - function justify(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_justify,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label) - end - function ellipsize(label::Gtk.GtkLabel,mode) - ccall((:gtk_label_set_ellipsize,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,mode) - return label - end - function ellipsize(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_ellipsize,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label) - end - function width_chars(label::Gtk.GtkLabel,n_chars) - ccall((:gtk_label_set_width_chars,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,n_chars) - return label - end - function width_chars(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_width_chars,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label) - end - function max_width_chars(label::Gtk.GtkLabel,n_chars) - ccall((:gtk_label_set_max_width_chars,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,n_chars) - return label - end - function max_width_chars(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_max_width_chars,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label) - end - function pattern(label::Gtk.GtkLabel,pattern_) - ccall((:gtk_label_set_pattern,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),label,pattern_) - return label - end - function line_wrap(label::Gtk.GtkLabel,wrap) - ccall((:gtk_label_set_line_wrap,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,wrap) - return label - end - function line_wrap(label::Gtk.GtkLabel) - return convert(Bool,ccall((:gtk_label_get_line_wrap,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label)) - end - function line_wrap_mode(label::Gtk.GtkLabel,wrap_mode) - ccall((:gtk_label_set_line_wrap_mode,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,wrap_mode) - return label - end - function line_wrap_mode(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_line_wrap_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label) - end - function selectable(label::Gtk.GtkLabel,setting) - ccall((:gtk_label_set_selectable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,setting) - return label - end - function selectable(label::Gtk.GtkLabel) - return convert(Bool,ccall((:gtk_label_get_selectable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label)) - end - function angle(label::Gtk.GtkLabel,angle_) - ccall((:gtk_label_set_angle,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),label,angle_) - return label - end - function angle(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_angle,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),label) - end - function selection_bounds(label::Gtk.GtkLabel) - end_ = Gtk.mutable(Cint) - start_ = Gtk.mutable(Cint) - return (convert(Bool,ccall((:gtk_label_get_selection_bounds,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),label,start_,end_)),start_[],end_[]) - end - function layout(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_layout,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),label) - end - function layout_offsets(label::Gtk.GtkLabel) - y = Gtk.mutable(Cint) - x = Gtk.mutable(Cint) - ccall((:gtk_label_get_layout_offsets,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),label,x,y) - return (x[],y[]) - end - function single_line_mode(label::Gtk.GtkLabel,single_line_mode_) - ccall((:gtk_label_set_single_line_mode,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,single_line_mode_) - return label - end - function single_line_mode(label::Gtk.GtkLabel) - return convert(Bool,ccall((:gtk_label_get_single_line_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label)) - end - function current_uri(label::Gtk.GtkLabel) - return ccall((:gtk_label_get_current_uri,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),label) - end - function track_visited_links(label::Gtk.GtkLabel,track_links) - ccall((:gtk_label_set_track_visited_links,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),label,track_links) - return label - end - function track_visited_links(label::Gtk.GtkLabel) - return convert(Bool,ccall((:gtk_label_get_track_visited_links,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),label)) - end - function action(widget::Gtk.GtkWidget) - return ccall((:gtk_widget_get_action,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),widget) - end - function padding(alignment::Gtk.GtkAlignment,padding_top,padding_bottom,padding_left,padding_right) - ccall((:gtk_alignment_set_padding,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32,UInt32,UInt32,UInt32),alignment,padding_top,padding_bottom,padding_left,padding_right) - return alignment - end - function padding(alignment::Gtk.GtkAlignment) - padding_right = Gtk.mutable(UInt32) - padding_left = Gtk.mutable(UInt32) - padding_bottom = Gtk.mutable(UInt32) - padding_top = Gtk.mutable(UInt32) - ccall((:gtk_alignment_get_padding,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt32},Ptr{UInt32},Ptr{UInt32},Ptr{UInt32}),alignment,padding_top,padding_bottom,padding_left,padding_right) - return (padding_top[],padding_bottom[],padding_left[],padding_right[]) - end - function label(frame::Gtk.GtkFrame,label_) - ccall((:gtk_frame_set_label,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),frame,label_) - return frame - end - function label(frame::Gtk.GtkFrame) - return ccall((:gtk_frame_get_label,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),frame) - end - function label_widget(frame::Gtk.GtkFrame,label_widget_) - ccall((:gtk_frame_set_label_widget,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),frame,label_widget_) - return frame - end - function label_widget(frame::Gtk.GtkFrame) - return convert(Gtk.GtkWidget,ccall((:gtk_frame_get_label_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),frame)) - end - function label_align(frame::Gtk.GtkFrame,xalign,yalign) - ccall((:gtk_frame_set_label_align,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cfloat,Cfloat),frame,xalign,yalign) - return frame - end - function label_align(frame::Gtk.GtkFrame) - yalign = Gtk.mutable(Cfloat) - xalign = Gtk.mutable(Cfloat) - ccall((:gtk_frame_get_label_align,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cfloat},Ptr{Cfloat}),frame,xalign,yalign) - return (xalign[],yalign[]) - end - function shadow_type(frame::Gtk.GtkFrame,type_) - ccall((:gtk_frame_set_shadow_type,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),frame,type_) - return frame - end - function shadow_type(frame::Gtk.GtkFrame) - return ccall((:gtk_frame_get_shadow_type,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),frame) - end - function homogeneous(box::Gtk.GtkBox,homogeneous_) - ccall((:gtk_box_set_homogeneous,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),box,homogeneous_) - return box - end - function homogeneous(box::Gtk.GtkBox) - return convert(Bool,ccall((:gtk_box_get_homogeneous,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),box)) - end - function spacing(box::Gtk.GtkBox,spacing_) - ccall((:gtk_box_set_spacing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),box,spacing_) - return box - end - function spacing(box::Gtk.GtkBox) - return ccall((:gtk_box_get_spacing,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),box) - end - function child_packing(box::Gtk.GtkBox,child,expand,fill,padding,pack_type) - ccall((:gtk_box_set_child_packing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Cint,Cint,UInt32,Cint),box,child,expand,fill,padding,pack_type) - return box - end - function layout(widget::Gtk.GtkButtonBox) - return ccall((:gtk_button_box_get_layout,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget) - end - function layout(widget::Gtk.GtkButtonBox,layout_style) - ccall((:gtk_button_box_set_layout,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,layout_style) - return widget - end - function child_secondary(widget::Gtk.GtkButtonBox,child) - return convert(Bool,ccall((:gtk_button_box_get_child_secondary,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),widget,child)) - end - function child_secondary(widget::Gtk.GtkButtonBox,child,is_secondary) - ccall((:gtk_button_box_set_child_secondary,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Cint),widget,child,is_secondary) - return widget - end - function child_size(widget::Gtk.GtkButtonBox,min_width,min_height) - ccall((:gtk_button_box_set_child_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),widget,min_width,min_height) - return widget - end - function child_ipadding(widget::Gtk.GtkButtonBox,ipad_x,ipad_y) - ccall((:gtk_button_box_set_child_ipadding,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),widget,ipad_x,ipad_y) - return widget - end - function child_size(widget::Gtk.GtkButtonBox) - min_height = Gtk.mutable(Cint) - min_width = Gtk.mutable(Cint) - ccall((:gtk_button_box_get_child_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),widget,min_width,min_height) - return (min_width[],min_height[]) - end - function child_ipadding(widget::Gtk.GtkButtonBox) - ipad_y = Gtk.mutable(Cint) - ipad_x = Gtk.mutable(Cint) - ccall((:gtk_button_box_get_child_ipadding,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),widget,ipad_x,ipad_y) - return (ipad_x[],ipad_y[]) - end - function object(builder::Gtk.GtkBuilder,name) - return convert(Gtk.GObject,ccall((:gtk_builder_get_object,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Ptr{UInt8}),builder,name)) - end - function objects(builder::Gtk.GtkBuilder) - return ccall((:gtk_builder_get_objects,Gtk.libgtk),Ptr{Gtk._GSList{Nothing}},(Ptr{Gtk.GObject},),builder) - end - function translation_domain(builder::Gtk.GtkBuilder,domain) - ccall((:gtk_builder_set_translation_domain,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),builder,domain) - return builder - end - function translation_domain(builder::Gtk.GtkBuilder) - return ccall((:gtk_builder_get_translation_domain,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),builder) - end - function type_from_name(builder::Gtk.GtkBuilder) - type_name = Gtk.mutable(UInt8) - return (ccall((:gtk_builder_get_type_from_name,Gtk.libgtk),Culong,(Ptr{Gtk.GObject},Ptr{UInt8}),builder,type_name),type_name[]) - end - function name(buildable::Gtk.GtkBuildable,name_) - ccall((:gtk_buildable_set_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),buildable,name_) - return buildable - end - function name(buildable::Gtk.GtkBuildable) - return ccall((:gtk_buildable_get_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),buildable) - end - function buildable_property(buildable::Gtk.GtkBuildable,builder,name,value) - ccall((:gtk_buildable_set_buildable_property,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Nothing}),buildable,builder,name,value) - return buildable - end - function internal_child(buildable::Gtk.GtkBuildable,builder,childname) - return convert(Gtk.GObject,ccall((:gtk_buildable_get_internal_child,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{UInt8}),buildable,builder,childname)) - end - function from_pixmap(image::Gtk.GtkImage,pixmap,mask) - ccall((:gtk_image_set_from_pixmap,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing}),image,pixmap,mask) - return image - end - function from_image(image::Gtk.GtkImage,gdk_image,mask) - ccall((:gtk_image_set_from_image,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing}),image,gdk_image,mask) - return image - end - function from_file(image::Gtk.GtkImage,filename) - ccall((:gtk_image_set_from_file,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),image,filename) - return image - end - function from_pixbuf(image::Gtk.GtkImage,pixbuf) - ccall((:gtk_image_set_from_pixbuf,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),image,pixbuf) - return image - end - function from_stock(image::Gtk.GtkImage,stock_id,size) - ccall((:gtk_image_set_from_stock,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Cint),image,stock_id,size) - return image - end - function from_icon_set(image::Gtk.GtkImage,icon_set,size) - ccall((:gtk_image_set_from_icon_set,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkIconSet},Cint),image,icon_set,size) - return image - end - function from_animation(image::Gtk.GtkImage,animation) - ccall((:gtk_image_set_from_animation,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),image,animation) - return image - end - function from_icon_name(image::Gtk.GtkImage,icon_name,size) - ccall((:gtk_image_set_from_icon_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Cint),image,icon_name,size) - return image - end - function from_gicon(image::Gtk.GtkImage,icon,size) - ccall((:gtk_image_set_from_gicon,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Cint),image,icon,size) - return image - end - function pixel_size(image::Gtk.GtkImage,pixel_size_) - ccall((:gtk_image_set_pixel_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),image,pixel_size_) - return image - end - function storage_type(image::Gtk.GtkImage) - return ccall((:gtk_image_get_storage_type,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),image) - end - function pixmap(image::Gtk.GtkImage) - mask = Gtk.mutable(Ptr{Nothing}) - pixmap_ = Gtk.mutable(Ptr{Nothing}) - ccall((:gtk_image_get_pixmap,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{Nothing}},Ptr{Ptr{Nothing}}),image,pixmap_,mask) - return (pixmap_[],mask[]) - end - function image(image_::Gtk.GtkImage) - mask = Gtk.mutable(Ptr{Nothing}) - gdk_image = Gtk.mutable(Ptr{Nothing}) - ccall((:gtk_image_get_image,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{Nothing}},Ptr{Ptr{Nothing}}),image_,gdk_image,mask) - return (gdk_image[],mask[]) - end - function pixbuf(image::Gtk.GtkImage) - return convert(Gtk.GdkPixbuf,ccall((:gtk_image_get_pixbuf,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),image)) - end - function stock(image::Gtk.GtkImage) - size = Gtk.mutable(Cint) - stock_id = Gtk.mutable(Ptr{UInt8}) - ccall((:gtk_image_get_stock,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{UInt8}},Ptr{Cint}),image,stock_id,size) - return (stock_id[],size[]) - end - function icon_set(image::Gtk.GtkImage) - size = Gtk.mutable(Cint) - icon_set_ = Gtk.mutable(Ptr{Gtk.GtkIconSet}) - ccall((:gtk_image_get_icon_set,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{Gtk.GtkIconSet}},Ptr{Cint}),image,icon_set_,size) - return (convert(Gtk.GtkIconSet,icon_set_[]),size[]) - end - function animation(image::Gtk.GtkImage) - return ccall((:gtk_image_get_animation,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),image) - end - function icon_name(image::Gtk.GtkImage) - size = Gtk.mutable(Cint) - icon_name_ = Gtk.mutable(Ptr{UInt8}) - ccall((:gtk_image_get_icon_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{UInt8}},Ptr{Cint}),image,icon_name_,size) - return (icon_name_[],size[]) - end - function gicon(image::Gtk.GtkImage) - size = Gtk.mutable(Cint) - gicon_ = Gtk.mutable(Ptr{Nothing}) - ccall((:gtk_image_get_gicon,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{Nothing}},Ptr{Cint}),image,gicon_,size) - return (gicon_[],size[]) - end - function pixel_size(image::Gtk.GtkImage) - return ccall((:gtk_image_get_pixel_size,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),image) - end - function relief(button::Gtk.GtkButton,newstyle) - ccall((:gtk_button_set_relief,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),button,newstyle) - return button - end - function relief(button::Gtk.GtkButton) - return ccall((:gtk_button_get_relief,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),button) - end - function label(button::Gtk.GtkButton,label_) - ccall((:gtk_button_set_label,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),button,label_) - return button - end - function label(button::Gtk.GtkButton) - return ccall((:gtk_button_get_label,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),button) - end - function use_underline(button::Gtk.GtkButton,use_underline_) - ccall((:gtk_button_set_use_underline,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),button,use_underline_) - return button - end - function use_underline(button::Gtk.GtkButton) - return convert(Bool,ccall((:gtk_button_get_use_underline,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),button)) - end - function use_stock(button::Gtk.GtkButton,use_stock_) - ccall((:gtk_button_set_use_stock,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),button,use_stock_) - return button - end - function use_stock(button::Gtk.GtkButton) - return convert(Bool,ccall((:gtk_button_get_use_stock,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),button)) - end - function focus_on_click(button::Gtk.GtkButton,focus_on_click_) - ccall((:gtk_button_set_focus_on_click,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),button,focus_on_click_) - return button - end - function focus_on_click(button::Gtk.GtkButton) - return convert(Bool,ccall((:gtk_button_get_focus_on_click,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),button)) - end - function alignment(button::Gtk.GtkButton,xalign,yalign) - ccall((:gtk_button_set_alignment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cfloat,Cfloat),button,xalign,yalign) - return button - end - function alignment(button::Gtk.GtkButton) - yalign = Gtk.mutable(Cfloat) - xalign = Gtk.mutable(Cfloat) - ccall((:gtk_button_get_alignment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cfloat},Ptr{Cfloat}),button,xalign,yalign) - return (xalign[],yalign[]) - end - function image(button::Gtk.GtkButton,image_) - ccall((:gtk_button_set_image,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),button,image_) - return button - end - function image(button::Gtk.GtkButton) - return convert(Gtk.GtkWidget,ccall((:gtk_button_get_image,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),button)) - end - function image_position(button::Gtk.GtkButton,position) - ccall((:gtk_button_set_image_position,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),button,position) - return button - end - function image_position(button::Gtk.GtkButton) - return ccall((:gtk_button_get_image_position,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),button) - end - function event_window(button::Gtk.GtkButton) - return ccall((:gtk_button_get_event_window,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),button) - end - function size(cell::Gtk.GtkCellRenderer,widget) - height = Gtk.mutable(Cint) - width = Gtk.mutable(Cint) - y_offset = Gtk.mutable(Cint) - x_offset = Gtk.mutable(Cint) - cell_area = Gtk.mutable(Gtk.GdkRectangle) - ccall((:gtk_cell_renderer_get_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{Gtk.GdkRectangle},Ptr{Cint},Ptr{Cint},Ptr{Cint},Ptr{Cint}),cell,widget,cell_area,x_offset,y_offset,width,height) - return (cell_area[],x_offset[],y_offset[],width[],height[]) - end - function fixed_size(cell::Gtk.GtkCellRenderer,width,height) - ccall((:gtk_cell_renderer_set_fixed_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),cell,width,height) - return cell - end - function fixed_size(cell::Gtk.GtkCellRenderer) - height = Gtk.mutable(Cint) - width = Gtk.mutable(Cint) - ccall((:gtk_cell_renderer_get_fixed_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),cell,width,height) - return (width[],height[]) - end - function alignment(cell::Gtk.GtkCellRenderer,xalign,yalign) - ccall((:gtk_cell_renderer_set_alignment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cfloat,Cfloat),cell,xalign,yalign) - return cell - end - function alignment(cell::Gtk.GtkCellRenderer) - yalign = Gtk.mutable(Cfloat) - xalign = Gtk.mutable(Cfloat) - ccall((:gtk_cell_renderer_get_alignment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cfloat},Ptr{Cfloat}),cell,xalign,yalign) - return (xalign[],yalign[]) - end - function padding(cell::Gtk.GtkCellRenderer,xpad,ypad) - ccall((:gtk_cell_renderer_set_padding,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),cell,xpad,ypad) - return cell - end - function padding(cell::Gtk.GtkCellRenderer) - ypad = Gtk.mutable(Cint) - xpad = Gtk.mutable(Cint) - ccall((:gtk_cell_renderer_get_padding,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),cell,xpad,ypad) - return (xpad[],ypad[]) - end - function visible(cell::Gtk.GtkCellRenderer,visible_) - ccall((:gtk_cell_renderer_set_visible,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),cell,visible_) - return cell - end - function visible(cell::Gtk.GtkCellRenderer) - return convert(Bool,ccall((:gtk_cell_renderer_get_visible,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),cell)) - end - function sensitive(cell::Gtk.GtkCellRenderer,sensitive_) - ccall((:gtk_cell_renderer_set_sensitive,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),cell,sensitive_) - return cell - end - function sensitive(cell::Gtk.GtkCellRenderer) - return convert(Bool,ccall((:gtk_cell_renderer_get_sensitive,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),cell)) - end - function depth(path::Gtk.GtkTreePath) - return ccall((:gtk_tree_path_get_depth,Gtk.libgtk),Cint,(Ptr{Gtk.GtkTreePath},),path) - end - function indices(path::Gtk.GtkTreePath) - return ccall((:gtk_tree_path_get_indices,Gtk.libgtk),Ptr{Cint},(Ptr{Gtk.GtkTreePath},),path) - end - function indices_with_depth(path::Gtk.GtkTreePath) - depth = Gtk.mutable(Cint) - return (ccall((:gtk_tree_path_get_indices_with_depth,Gtk.libgtk),Ptr{Cint},(Ptr{Gtk.GtkTreePath},Ptr{Cint}),path,depth),depth[]) - end - function path(reference::Gtk.GtkTreeRowReference) - return convert(Gtk.GtkTreePath,ccall((:gtk_tree_row_reference_get_path,Gtk.libgtk),Ptr{Gtk.GtkTreePath},(Ptr{Gtk.GtkTreeRowReference},),reference)) - end - function model(reference::Gtk.GtkTreeRowReference) - return convert(Gtk.GtkTreeModel,ccall((:gtk_tree_row_reference_get_model,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GtkTreeRowReference},),reference)) - end - function flags(tree_model::Gtk.GtkTreeModel) - return ccall((:gtk_tree_model_get_flags,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_model) - end - function n_columns(tree_model::Gtk.GtkTreeModel) - return ccall((:gtk_tree_model_get_n_columns,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_model) - end - function column_type(tree_model::Gtk.GtkTreeModel,index_) - return ccall((:gtk_tree_model_get_column_type,Gtk.libgtk),Culong,(Ptr{Gtk.GObject},Cint),tree_model,index_) - end - function iter(tree_model::Gtk.GtkTreeModel) - path = Gtk.mutable(Gtk.GtkTreePath) - iter_ = Gtk.mutable(Gtk.GtkTreeIter) - return (convert(Bool,ccall((:gtk_tree_model_get_iter,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter},Ptr{Gtk.GtkTreePath}),tree_model,iter_,path)),iter_[],path[]) - end - function iter_from_string(tree_model::Gtk.GtkTreeModel,iter,path_string) - return convert(Bool,ccall((:gtk_tree_model_get_iter_from_string,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter},Ptr{UInt8}),tree_model,iter,path_string)) - end - function string_from_iter(tree_model::Gtk.GtkTreeModel) - iter = Gtk.mutable(Gtk.GtkTreeIter) - return (ccall((:gtk_tree_model_get_string_from_iter,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter}),tree_model,iter),iter[]) - end - function iter_first(tree_model::Gtk.GtkTreeModel) - iter = Gtk.mutable(Gtk.GtkTreeIter) - return (convert(Bool,ccall((:gtk_tree_model_get_iter_first,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter}),tree_model,iter)),iter[]) - end - function path(tree_model::Gtk.GtkTreeModel) - iter = Gtk.mutable(Gtk.GtkTreeIter) - return (convert(Gtk.GtkTreePath,ccall((:gtk_tree_model_get_path,Gtk.libgtk),Ptr{Gtk.GtkTreePath},(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter}),tree_model,iter)),iter[]) - end - function value(tree_model::Gtk.GtkTreeModel,iter,column,value_) - return ccall((:gtk_tree_model_get_value,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter},Cint,Ptr{Nothing}),tree_model,iter,column,value_) - end - function sort_column_id(sortable::Gtk.GtkTreeSortable) - order = Gtk.mutable(Cint) - sort_column_id_ = Gtk.mutable(Cint) - return (convert(Bool,ccall((:gtk_tree_sortable_get_sort_column_id,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),sortable,sort_column_id_,order)),sort_column_id_[],order[]) - end - function sort_column_id(sortable::Gtk.GtkTreeSortable,sort_column_id_,order) - ccall((:gtk_tree_sortable_set_sort_column_id,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),sortable,sort_column_id_,order) - return sortable - end - function sort_func(sortable::Gtk.GtkTreeSortable,sort_column_id,sort_func_,user_data,destroy) - ccall((:gtk_tree_sortable_set_sort_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),sortable,sort_column_id,sort_func_,user_data,destroy) - return sortable - end - function default_sort_func(sortable::Gtk.GtkTreeSortable,sort_func,user_data,destroy) - ccall((:gtk_tree_sortable_set_default_sort_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),sortable,sort_func,user_data,destroy) - return sortable - end - function cell_renderers(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_cell_renderers,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Ptr{Gtk.GObject},),tree_column) - end - function attributes(tree_column::Gtk.GtkTreeViewColumn,cell_renderer) - ccall((:gtk_tree_view_column_set_attributes,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),tree_column,cell_renderer) - return tree_column - end - function cell_data_func(tree_column::Gtk.GtkTreeViewColumn,cell_renderer,func,func_data,destroy) - ccall((:gtk_tree_view_column_set_cell_data_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),tree_column,cell_renderer,func,func_data,destroy) - return tree_column - end - function spacing(tree_column::Gtk.GtkTreeViewColumn,spacing_) - ccall((:gtk_tree_view_column_set_spacing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,spacing_) - return tree_column - end - function spacing(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_spacing,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column) - end - function visible(tree_column::Gtk.GtkTreeViewColumn,visible_) - ccall((:gtk_tree_view_column_set_visible,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,visible_) - return tree_column - end - function visible(tree_column::Gtk.GtkTreeViewColumn) - return convert(Bool,ccall((:gtk_tree_view_column_get_visible,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column)) - end - function resizable(tree_column::Gtk.GtkTreeViewColumn,resizable_) - ccall((:gtk_tree_view_column_set_resizable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,resizable_) - return tree_column - end - function resizable(tree_column::Gtk.GtkTreeViewColumn) - return convert(Bool,ccall((:gtk_tree_view_column_get_resizable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column)) - end - function sizing(tree_column::Gtk.GtkTreeViewColumn,type_) - ccall((:gtk_tree_view_column_set_sizing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,type_) - return tree_column - end - function sizing(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_sizing,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column) - end - function width(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_width,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column) - end - function fixed_width(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_fixed_width,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column) - end - function fixed_width(tree_column::Gtk.GtkTreeViewColumn,fixed_width_) - ccall((:gtk_tree_view_column_set_fixed_width,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,fixed_width_) - return tree_column - end - function min_width(tree_column::Gtk.GtkTreeViewColumn,min_width_) - ccall((:gtk_tree_view_column_set_min_width,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,min_width_) - return tree_column - end - function min_width(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_min_width,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column) - end - function max_width(tree_column::Gtk.GtkTreeViewColumn,max_width_) - ccall((:gtk_tree_view_column_set_max_width,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,max_width_) - return tree_column - end - function max_width(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_max_width,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column) - end - function title(tree_column::Gtk.GtkTreeViewColumn,title_) - ccall((:gtk_tree_view_column_set_title,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),tree_column,title_) - return tree_column - end - function title(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_title,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),tree_column) - end - function expand(tree_column::Gtk.GtkTreeViewColumn,expand_) - ccall((:gtk_tree_view_column_set_expand,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,expand_) - return tree_column - end - function expand(tree_column::Gtk.GtkTreeViewColumn) - return convert(Bool,ccall((:gtk_tree_view_column_get_expand,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column)) - end - function clickable(tree_column::Gtk.GtkTreeViewColumn,clickable_) - ccall((:gtk_tree_view_column_set_clickable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,clickable_) - return tree_column - end - function clickable(tree_column::Gtk.GtkTreeViewColumn) - return convert(Bool,ccall((:gtk_tree_view_column_get_clickable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column)) - end - function widget(tree_column::Gtk.GtkTreeViewColumn,widget_) - ccall((:gtk_tree_view_column_set_widget,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),tree_column,widget_) - return tree_column - end - function widget(tree_column::Gtk.GtkTreeViewColumn) - return convert(Gtk.GtkWidget,ccall((:gtk_tree_view_column_get_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),tree_column)) - end - function alignment(tree_column::Gtk.GtkTreeViewColumn,xalign) - ccall((:gtk_tree_view_column_set_alignment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cfloat),tree_column,xalign) - return tree_column - end - function alignment(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_alignment,Gtk.libgtk),Cfloat,(Ptr{Gtk.GObject},),tree_column) - end - function reorderable(tree_column::Gtk.GtkTreeViewColumn,reorderable_) - ccall((:gtk_tree_view_column_set_reorderable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,reorderable_) - return tree_column - end - function reorderable(tree_column::Gtk.GtkTreeViewColumn) - return convert(Bool,ccall((:gtk_tree_view_column_get_reorderable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column)) - end - function sort_column_id(tree_column::Gtk.GtkTreeViewColumn,sort_column_id_) - ccall((:gtk_tree_view_column_set_sort_column_id,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,sort_column_id_) - return tree_column - end - function sort_column_id(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_sort_column_id,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column) - end - function sort_indicator(tree_column::Gtk.GtkTreeViewColumn,setting) - ccall((:gtk_tree_view_column_set_sort_indicator,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,setting) - return tree_column - end - function sort_indicator(tree_column::Gtk.GtkTreeViewColumn) - return convert(Bool,ccall((:gtk_tree_view_column_get_sort_indicator,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column)) - end - function sort_order(tree_column::Gtk.GtkTreeViewColumn,order) - ccall((:gtk_tree_view_column_set_sort_order,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_column,order) - return tree_column - end - function sort_order(tree_column::Gtk.GtkTreeViewColumn) - return ccall((:gtk_tree_view_column_get_sort_order,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_column) - end - function cell_data(tree_column::Gtk.GtkTreeViewColumn,tree_model,iter,is_expander,is_expanded) - ccall((:gtk_tree_view_column_cell_set_cell_data,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter},Cint,Cint),tree_column,tree_model,iter,is_expander,is_expanded) - return tree_column - end - function size(tree_column::Gtk.GtkTreeViewColumn) - height = Gtk.mutable(Cint) - width = Gtk.mutable(Cint) - y_offset = Gtk.mutable(Cint) - x_offset = Gtk.mutable(Cint) - cell_area = Gtk.mutable(Gtk.GdkRectangle) - ccall((:gtk_tree_view_column_cell_get_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GdkRectangle},Ptr{Cint},Ptr{Cint},Ptr{Cint},Ptr{Cint}),tree_column,cell_area,x_offset,y_offset,width,height) - return (cell_area[],x_offset[],y_offset[],width[],height[]) - end - function position(tree_column::Gtk.GtkTreeViewColumn,cell_renderer) - width = Gtk.mutable(Cint) - start_pos = Gtk.mutable(Cint) - return (convert(Bool,ccall((:gtk_tree_view_column_cell_get_position,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),tree_column,cell_renderer,start_pos,width)),start_pos[],width[]) - end - function tree_view(tree_column::Gtk.GtkTreeViewColumn) - return convert(Gtk.GtkWidget,ccall((:gtk_tree_view_column_get_tree_view,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),tree_column)) - end - function cells(cell_layout::Gtk.GtkCellLayout) - return ccall((:gtk_cell_layout_get_cells,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Ptr{Gtk.GObject},),cell_layout) - end - function attributes(cell_layout::Gtk.GtkCellLayout,cell) - ccall((:gtk_cell_layout_set_attributes,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),cell_layout,cell) - return cell_layout - end - function cell_data_func(cell_layout::Gtk.GtkCellLayout,cell,func,func_data,destroy) - ccall((:gtk_cell_layout_set_cell_data_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),cell_layout,cell,func,func_data,destroy) - return cell_layout - end - function fixed_height_from_font(renderer::Gtk.GtkCellRendererText,number_of_rows) - ccall((:gtk_cell_renderer_text_set_fixed_height_from_font,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),renderer,number_of_rows) - return renderer - end - function radio(toggle::Gtk.GtkCellRendererToggle) - return convert(Bool,ccall((:gtk_cell_renderer_toggle_get_radio,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toggle)) - end - function radio(toggle::Gtk.GtkCellRendererToggle,radio_) - ccall((:gtk_cell_renderer_toggle_set_radio,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toggle,radio_) - return toggle - end - function active(toggle::Gtk.GtkCellRendererToggle) - return convert(Bool,ccall((:gtk_cell_renderer_toggle_get_active,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toggle)) - end - function active(toggle::Gtk.GtkCellRendererToggle,setting) - ccall((:gtk_cell_renderer_toggle_set_active,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toggle,setting) - return toggle - end - function activatable(toggle::Gtk.GtkCellRendererToggle) - return convert(Bool,ccall((:gtk_cell_renderer_toggle_get_activatable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toggle)) - end - function activatable(toggle::Gtk.GtkCellRendererToggle,setting) - ccall((:gtk_cell_renderer_toggle_set_activatable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toggle,setting) - return toggle - end - function model(cell_view::Gtk.GtkCellView,model_) - ccall((:gtk_cell_view_set_model,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),cell_view,model_) - return cell_view - end - function model(cell_view::Gtk.GtkCellView) - return convert(Gtk.GtkTreeModel,ccall((:gtk_cell_view_get_model,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),cell_view)) - end - function displayed_row(cell_view::Gtk.GtkCellView,path) - ccall((:gtk_cell_view_set_displayed_row,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath}),cell_view,path) - return cell_view - end - function displayed_row(cell_view::Gtk.GtkCellView) - return convert(Gtk.GtkTreePath,ccall((:gtk_cell_view_get_displayed_row,Gtk.libgtk),Ptr{Gtk.GtkTreePath},(Ptr{Gtk.GObject},),cell_view)) - end - function size_of_row(cell_view::Gtk.GtkCellView,requisition) - path = Gtk.mutable(Gtk.GtkTreePath) - return (convert(Bool,ccall((:gtk_cell_view_get_size_of_row,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath},Ptr{Nothing}),cell_view,path,requisition)),path[]) - end - function background_color(cell_view::Gtk.GtkCellView,color) - ccall((:gtk_cell_view_set_background_color,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),cell_view,color) - return cell_view - end - function cell_renderers(cell_view::Gtk.GtkCellView) - return ccall((:gtk_cell_view_get_cell_renderers,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Ptr{Gtk.GObject},),cell_view) - end - function mode(toggle_button::Gtk.GtkToggleButton,draw_indicator) - ccall((:gtk_toggle_button_set_mode,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toggle_button,draw_indicator) - return toggle_button - end - function mode(toggle_button::Gtk.GtkToggleButton) - return convert(Bool,ccall((:gtk_toggle_button_get_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toggle_button)) - end - function active(toggle_button::Gtk.GtkToggleButton,is_active) - ccall((:gtk_toggle_button_set_active,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toggle_button,is_active) - return toggle_button - end - function active(toggle_button::Gtk.GtkToggleButton) - return convert(Bool,ccall((:gtk_toggle_button_get_active,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toggle_button)) - end - function inconsistent(toggle_button::Gtk.GtkToggleButton,setting) - ccall((:gtk_toggle_button_set_inconsistent,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toggle_button,setting) - return toggle_button - end - function inconsistent(toggle_button::Gtk.GtkToggleButton) - return convert(Bool,ccall((:gtk_toggle_button_get_inconsistent,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toggle_button)) - end - function submenu(menu_item::Gtk.GtkMenuItem,submenu_) - ccall((:gtk_menu_item_set_submenu,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),menu_item,submenu_) - return menu_item - end - function submenu(menu_item::Gtk.GtkMenuItem) - return convert(Gtk.GtkWidget,ccall((:gtk_menu_item_get_submenu,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),menu_item)) - end - function right_justified(menu_item::Gtk.GtkMenuItem,right_justified_) - ccall((:gtk_menu_item_set_right_justified,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),menu_item,right_justified_) - return menu_item - end - function right_justified(menu_item::Gtk.GtkMenuItem) - return convert(Bool,ccall((:gtk_menu_item_get_right_justified,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),menu_item)) - end - function accel_path(menu_item::Gtk.GtkMenuItem,accel_path_) - ccall((:gtk_menu_item_set_accel_path,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),menu_item,accel_path_) - return menu_item - end - function accel_path(menu_item::Gtk.GtkMenuItem) - return ccall((:gtk_menu_item_get_accel_path,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),menu_item) - end - function label(menu_item::Gtk.GtkMenuItem,label_) - ccall((:gtk_menu_item_set_label,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),menu_item,label_) - return menu_item - end - function label(menu_item::Gtk.GtkMenuItem) - return ccall((:gtk_menu_item_get_label,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),menu_item) - end - function use_underline(menu_item::Gtk.GtkMenuItem,setting) - ccall((:gtk_menu_item_set_use_underline,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),menu_item,setting) - return menu_item - end - function use_underline(menu_item::Gtk.GtkMenuItem) - return convert(Bool,ccall((:gtk_menu_item_get_use_underline,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),menu_item)) - end - function priority(tag::Gtk.GtkTextTag) - return ccall((:gtk_text_tag_get_priority,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tag) - end - function priority(tag::Gtk.GtkTextTag,priority_) - ccall((:gtk_text_tag_set_priority,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tag,priority_) - return tag - end - function selection(selection_data::Gtk.GtkSelectionData) - return ccall((:gtk_selection_data_get_selection,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GtkSelectionData},),selection_data) - end - function target(selection_data::Gtk.GtkSelectionData) - return ccall((:gtk_selection_data_get_target,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GtkSelectionData},),selection_data) - end - function data_type(selection_data::Gtk.GtkSelectionData) - return ccall((:gtk_selection_data_get_data_type,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GtkSelectionData},),selection_data) - end - function format(selection_data::Gtk.GtkSelectionData) - return ccall((:gtk_selection_data_get_format,Gtk.libgtk),Cint,(Ptr{Gtk.GtkSelectionData},),selection_data) - end - function data(selection_data::Gtk.GtkSelectionData) - return ccall((:gtk_selection_data_get_data,Gtk.libgtk),Ptr{Cuchar},(Ptr{Gtk.GtkSelectionData},),selection_data) - end - function length(selection_data::Gtk.GtkSelectionData) - return ccall((:gtk_selection_data_get_length,Gtk.libgtk),Cint,(Ptr{Gtk.GtkSelectionData},),selection_data) - end - function display(selection_data::Gtk.GtkSelectionData) - return ccall((:gtk_selection_data_get_display,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GtkSelectionData},),selection_data) - end - function text(selection_data::Gtk.GtkSelectionData,str,len) - ccall((:gtk_selection_data_set_text,Gtk.libgtk),Cint,(Ptr{Gtk.GtkSelectionData},Ptr{UInt8},Cint),selection_data,str,len) - return selection_data - end - function text(selection_data::Gtk.GtkSelectionData) - return ccall((:gtk_selection_data_get_text,Gtk.libgtk),Ptr{Cuchar},(Ptr{Gtk.GtkSelectionData},),selection_data) - end - function pixbuf(selection_data::Gtk.GtkSelectionData,pixbuf_) - ccall((:gtk_selection_data_set_pixbuf,Gtk.libgtk),Cint,(Ptr{Gtk.GtkSelectionData},Ptr{Gtk.GObject}),selection_data,pixbuf_) - return selection_data - end - function pixbuf(selection_data::Gtk.GtkSelectionData) - return convert(Gtk.GdkPixbuf,ccall((:gtk_selection_data_get_pixbuf,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GtkSelectionData},),selection_data)) - end - function uris(selection_data::Gtk.GtkSelectionData,uris_) - ccall((:gtk_selection_data_set_uris,Gtk.libgtk),Cint,(Ptr{Gtk.GtkSelectionData},Ptr{Ptr{UInt8}}),selection_data,uris_) - return selection_data - end - function uris(selection_data::Gtk.GtkSelectionData) - return ccall((:gtk_selection_data_get_uris,Gtk.libgtk),Ptr{Ptr{UInt8}},(Ptr{Gtk.GtkSelectionData},),selection_data) - end - function targets(selection_data::Gtk.GtkSelectionData) - n_atoms = Gtk.mutable(Cint) - targets_ = Gtk.mutable(Ptr{Ptr{Nothing}}) - return (convert(Bool,ccall((:gtk_selection_data_get_targets,Gtk.libgtk),Cint,(Ptr{Gtk.GtkSelectionData},Ptr{Ptr{Ptr{Nothing}}},Ptr{Cint}),selection_data,targets_,n_atoms)),targets_[],n_atoms[]) - end - function data(widget::Gtk.GtkWidget,context,target,time_) - return ccall((:gtk_drag_get_data,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},UInt32),widget,context,target,time_) - end - function proxy(widget::Gtk.GtkWidget,proxy_window,protocol,use_coordinates) - ccall((:gtk_drag_dest_set_proxy,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Cint,Cint),widget,proxy_window,protocol,use_coordinates) - return widget - end - function target_list(widget::Gtk.GtkWidget) - return convert(Gtk.GtkTargetList,ccall((:gtk_drag_dest_get_target_list,Gtk.libgtk),Ptr{Gtk.GtkTargetList},(Ptr{Gtk.GObject},),widget)) - end - function target_list(widget::Gtk.GtkWidget,target_list_) - ccall((:gtk_drag_dest_set_target_list,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTargetList}),widget,target_list_) - return widget - end - function track_motion(widget::Gtk.GtkWidget,track_motion_) - ccall((:gtk_drag_dest_set_track_motion,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),widget,track_motion_) - return widget - end - function track_motion(widget::Gtk.GtkWidget) - return convert(Bool,ccall((:gtk_drag_dest_get_track_motion,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),widget)) - end - function target_list(widget::Gtk.GtkWidget) - return convert(Gtk.GtkTargetList,ccall((:gtk_drag_source_get_target_list,Gtk.libgtk),Ptr{Gtk.GtkTargetList},(Ptr{Gtk.GObject},),widget)) - end - function target_list(widget::Gtk.GtkWidget,target_list_) - ccall((:gtk_drag_source_set_target_list,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTargetList}),widget,target_list_) - return widget - end - function icon(widget::Gtk.GtkWidget,colormap,pixmap,mask) - ccall((:gtk_drag_source_set_icon,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),widget,colormap,pixmap,mask) - return widget - end - function icon_pixbuf(widget::Gtk.GtkWidget,pixbuf) - ccall((:gtk_drag_source_set_icon_pixbuf,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),widget,pixbuf) - return widget - end - function icon_stock(widget::Gtk.GtkWidget,stock_id) - ccall((:gtk_drag_source_set_icon_stock,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),widget,stock_id) - return widget - end - function icon_name(widget::Gtk.GtkWidget,icon_name_) - ccall((:gtk_drag_source_set_icon_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),widget,icon_name_) - return widget - end - function selection_bounds(editable::Gtk.GtkEditable) - end_pos = Gtk.mutable(Cint) - start_pos = Gtk.mutable(Cint) - return (convert(Bool,ccall((:gtk_editable_get_selection_bounds,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),editable,start_pos,end_pos)),start_pos[],end_pos[]) - end - function chars(editable::Gtk.GtkEditable,start_pos,end_pos) - return ccall((:gtk_editable_get_chars,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},Cint,Cint),editable,start_pos,end_pos) - end - function position(editable::Gtk.GtkEditable,position_) - ccall((:gtk_editable_set_position,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),editable,position_) - return editable - end - function position(editable::Gtk.GtkEditable) - return ccall((:gtk_editable_get_position,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),editable) - end - function editable(editable_::Gtk.GtkEditable,is_editable) - ccall((:gtk_editable_set_editable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),editable_,is_editable) - return editable_ - end - function editable(editable_::Gtk.GtkEditable) - return convert(Bool,ccall((:gtk_editable_get_editable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),editable_)) - end - function column_types(list_store::Gtk.GtkListStore,n_columns,types) - ccall((:gtk_list_store_set_column_types,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{Culong}),list_store,n_columns,types) - return list_store - end - function value(list_store::Gtk.GtkListStore,iter,column,value_) - ccall((:gtk_list_store_set_value,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter},Cint,Ptr{Nothing}),list_store,iter,column,value_) - return list_store - end - function valuesv(list_store::Gtk.GtkListStore,iter,columns,values,n_values) - ccall((:gtk_list_store_set_valuesv,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter},Ptr{Cint},Ptr{Nothing},Cint),list_store,iter,columns,values,n_values) - return list_store - end - function visible_func(filter::Gtk.GtkTreeModelFilter,func,data,destroy) - ccall((:gtk_tree_model_filter_set_visible_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),filter,func,data,destroy) - return filter - end - function modify_func(filter::Gtk.GtkTreeModelFilter,n_columns,types,func,data,destroy) - ccall((:gtk_tree_model_filter_set_modify_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{Culong},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),filter,n_columns,types,func,data,destroy) - return filter - end - function visible_column(filter::Gtk.GtkTreeModelFilter,column) - ccall((:gtk_tree_model_filter_set_visible_column,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),filter,column) - return filter - end - function model(filter::Gtk.GtkTreeModelFilter) - return convert(Gtk.GtkTreeModel,ccall((:gtk_tree_model_filter_get_model,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),filter)) - end - function entry(completion::Gtk.GtkEntryCompletion) - return convert(Gtk.GtkWidget,ccall((:gtk_entry_completion_get_entry,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),completion)) - end - function model(completion::Gtk.GtkEntryCompletion,model_) - ccall((:gtk_entry_completion_set_model,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),completion,model_) - return completion - end - function model(completion::Gtk.GtkEntryCompletion) - return convert(Gtk.GtkTreeModel,ccall((:gtk_entry_completion_get_model,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),completion)) - end - function match_func(completion::Gtk.GtkEntryCompletion,func,func_data,func_notify) - ccall((:gtk_entry_completion_set_match_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),completion,func,func_data,func_notify) - return completion - end - function minimum_key_length(completion::Gtk.GtkEntryCompletion,length) - ccall((:gtk_entry_completion_set_minimum_key_length,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),completion,length) - return completion - end - function minimum_key_length(completion::Gtk.GtkEntryCompletion) - return ccall((:gtk_entry_completion_get_minimum_key_length,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),completion) - end - function inline_completion(completion::Gtk.GtkEntryCompletion,inline_completion_) - ccall((:gtk_entry_completion_set_inline_completion,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),completion,inline_completion_) - return completion - end - function inline_completion(completion::Gtk.GtkEntryCompletion) - return convert(Bool,ccall((:gtk_entry_completion_get_inline_completion,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),completion)) - end - function inline_selection(completion::Gtk.GtkEntryCompletion,inline_selection_) - ccall((:gtk_entry_completion_set_inline_selection,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),completion,inline_selection_) - return completion - end - function inline_selection(completion::Gtk.GtkEntryCompletion) - return convert(Bool,ccall((:gtk_entry_completion_get_inline_selection,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),completion)) - end - function popup_completion(completion::Gtk.GtkEntryCompletion,popup_completion_) - ccall((:gtk_entry_completion_set_popup_completion,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),completion,popup_completion_) - return completion - end - function popup_completion(completion::Gtk.GtkEntryCompletion) - return convert(Bool,ccall((:gtk_entry_completion_get_popup_completion,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),completion)) - end - function width(completion::Gtk.GtkEntryCompletion,popup_set_width) - ccall((:gtk_entry_completion_set_popup_set_width,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),completion,popup_set_width) - return completion - end - function width(completion::Gtk.GtkEntryCompletion) - ccall((:gtk_entry_completion_get_popup_set_width,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),completion) - return completion - end - function popup_single_match(completion::Gtk.GtkEntryCompletion,popup_single_match_) - ccall((:gtk_entry_completion_set_popup_single_match,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),completion,popup_single_match_) - return completion - end - function popup_single_match(completion::Gtk.GtkEntryCompletion) - return convert(Bool,ccall((:gtk_entry_completion_get_popup_single_match,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),completion)) - end - function completion_prefix(completion::Gtk.GtkEntryCompletion) - return ccall((:gtk_entry_completion_get_completion_prefix,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),completion) - end - function text_column(completion::Gtk.GtkEntryCompletion,column) - ccall((:gtk_entry_completion_set_text_column,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),completion,column) - return completion - end - function text_column(completion::Gtk.GtkEntryCompletion) - return ccall((:gtk_entry_completion_get_text_column,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),completion) - end - function buffer(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_buffer,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),entry) - end - function buffer(entry::Gtk.GtkEntry,buffer_) - ccall((:gtk_entry_set_buffer,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),entry,buffer_) - return entry - end - function text_window(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_text_window,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),entry) - end - function visibility(entry::Gtk.GtkEntry,visible) - ccall((:gtk_entry_set_visibility,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),entry,visible) - return entry - end - function visibility(entry::Gtk.GtkEntry) - return convert(Bool,ccall((:gtk_entry_get_visibility,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),entry)) - end - function invisible_char(entry::Gtk.GtkEntry,ch) - ccall((:gtk_entry_set_invisible_char,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),entry,ch) - return entry - end - function invisible_char(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_invisible_char,Gtk.libgtk),UInt32,(Ptr{Gtk.GObject},),entry) - end - function has_frame(entry::Gtk.GtkEntry,setting) - ccall((:gtk_entry_set_has_frame,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),entry,setting) - return entry - end - function has_frame(entry::Gtk.GtkEntry) - return convert(Bool,ccall((:gtk_entry_get_has_frame,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),entry)) - end - function inner_border(entry::Gtk.GtkEntry,border) - ccall((:gtk_entry_set_inner_border,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),entry,border) - return entry - end - function inner_border(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_inner_border,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),entry) - end - function overwrite_mode(entry::Gtk.GtkEntry,overwrite) - ccall((:gtk_entry_set_overwrite_mode,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),entry,overwrite) - return entry - end - function overwrite_mode(entry::Gtk.GtkEntry) - return convert(Bool,ccall((:gtk_entry_get_overwrite_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),entry)) - end - function max_length(entry::Gtk.GtkEntry,max) - ccall((:gtk_entry_set_max_length,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),entry,max) - return entry - end - function max_length(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_max_length,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),entry) - end - function text_length(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_text_length,Gtk.libgtk),UInt16,(Ptr{Gtk.GObject},),entry) - end - function activates_default(entry::Gtk.GtkEntry,setting) - ccall((:gtk_entry_set_activates_default,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),entry,setting) - return entry - end - function activates_default(entry::Gtk.GtkEntry) - return convert(Bool,ccall((:gtk_entry_get_activates_default,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),entry)) - end - function width_chars(entry::Gtk.GtkEntry,n_chars) - ccall((:gtk_entry_set_width_chars,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),entry,n_chars) - return entry - end - function width_chars(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_width_chars,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),entry) - end - function text(entry::Gtk.GtkEntry,text_) - ccall((:gtk_entry_set_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),entry,text_) - return entry - end - function text(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_text,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),entry) - end - function layout(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_layout,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),entry) - end - function layout_offsets(entry::Gtk.GtkEntry) - y = Gtk.mutable(Cint) - x = Gtk.mutable(Cint) - ccall((:gtk_entry_get_layout_offsets,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),entry,x,y) - return (x[],y[]) - end - function alignment(entry::Gtk.GtkEntry,xalign) - ccall((:gtk_entry_set_alignment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cfloat),entry,xalign) - return entry - end - function alignment(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_alignment,Gtk.libgtk),Cfloat,(Ptr{Gtk.GObject},),entry) - end - function completion(entry::Gtk.GtkEntry,completion_) - ccall((:gtk_entry_set_completion,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),entry,completion_) - return entry - end - function completion(entry::Gtk.GtkEntry) - return convert(Gtk.GtkEntryCompletion,ccall((:gtk_entry_get_completion,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),entry)) - end - function cursor_hadjustment(entry::Gtk.GtkEntry,adjustment) - ccall((:gtk_entry_set_cursor_hadjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),entry,adjustment) - return entry - end - function cursor_hadjustment(entry::Gtk.GtkEntry) - return convert(Gtk.GtkAdjustment,ccall((:gtk_entry_get_cursor_hadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),entry)) - end - function progress_fraction(entry::Gtk.GtkEntry,fraction) - ccall((:gtk_entry_set_progress_fraction,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),entry,fraction) - return entry - end - function progress_fraction(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_progress_fraction,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),entry) - end - function progress_pulse_step(entry::Gtk.GtkEntry,fraction) - ccall((:gtk_entry_set_progress_pulse_step,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),entry,fraction) - return entry - end - function progress_pulse_step(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_progress_pulse_step,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),entry) - end - function icon_from_pixbuf(entry::Gtk.GtkEntry,icon_pos,pixbuf) - ccall((:gtk_entry_set_icon_from_pixbuf,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{Gtk.GObject}),entry,icon_pos,pixbuf) - return entry - end - function icon_from_stock(entry::Gtk.GtkEntry,icon_pos,stock_id) - ccall((:gtk_entry_set_icon_from_stock,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{UInt8}),entry,icon_pos,stock_id) - return entry - end - function icon_from_icon_name(entry::Gtk.GtkEntry,icon_pos,icon_name) - ccall((:gtk_entry_set_icon_from_icon_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{UInt8}),entry,icon_pos,icon_name) - return entry - end - function icon_from_gicon(entry::Gtk.GtkEntry,icon_pos,icon) - ccall((:gtk_entry_set_icon_from_gicon,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{Nothing}),entry,icon_pos,icon) - return entry - end - function icon_storage_type(entry::Gtk.GtkEntry,icon_pos) - return ccall((:gtk_entry_get_icon_storage_type,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Cint),entry,icon_pos) - end - function icon_pixbuf(entry::Gtk.GtkEntry,icon_pos) - return convert(Gtk.GdkPixbuf,ccall((:gtk_entry_get_icon_pixbuf,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Cint),entry,icon_pos)) - end - function icon_stock(entry::Gtk.GtkEntry,icon_pos) - return ccall((:gtk_entry_get_icon_stock,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},Cint),entry,icon_pos) - end - function icon_name(entry::Gtk.GtkEntry,icon_pos) - return ccall((:gtk_entry_get_icon_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},Cint),entry,icon_pos) - end - function icon_gicon(entry::Gtk.GtkEntry,icon_pos) - return ccall((:gtk_entry_get_icon_gicon,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},Cint),entry,icon_pos) - end - function icon_activatable(entry::Gtk.GtkEntry,icon_pos,activatable) - ccall((:gtk_entry_set_icon_activatable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),entry,icon_pos,activatable) - return entry - end - function icon_activatable(entry::Gtk.GtkEntry,icon_pos) - return convert(Bool,ccall((:gtk_entry_get_icon_activatable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Cint),entry,icon_pos)) - end - function icon_sensitive(entry::Gtk.GtkEntry,icon_pos,sensitive) - ccall((:gtk_entry_set_icon_sensitive,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),entry,icon_pos,sensitive) - return entry - end - function icon_sensitive(entry::Gtk.GtkEntry,icon_pos) - return convert(Bool,ccall((:gtk_entry_get_icon_sensitive,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Cint),entry,icon_pos)) - end - function icon_at_pos(entry::Gtk.GtkEntry,x,y) - return ccall((:gtk_entry_get_icon_at_pos,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Cint,Cint),entry,x,y) - end - function icon_tooltip_text(entry::Gtk.GtkEntry,icon_pos,tooltip) - ccall((:gtk_entry_set_icon_tooltip_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{UInt8}),entry,icon_pos,tooltip) - return entry - end - function icon_tooltip_text(entry::Gtk.GtkEntry,icon_pos) - return ccall((:gtk_entry_get_icon_tooltip_text,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},Cint),entry,icon_pos) - end - function icon_tooltip_markup(entry::Gtk.GtkEntry,icon_pos,tooltip) - ccall((:gtk_entry_set_icon_tooltip_markup,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{UInt8}),entry,icon_pos,tooltip) - return entry - end - function icon_tooltip_markup(entry::Gtk.GtkEntry,icon_pos) - return ccall((:gtk_entry_get_icon_tooltip_markup,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},Cint),entry,icon_pos) - end - function icon_drag_source(entry::Gtk.GtkEntry,icon_pos,target_list,actions) - ccall((:gtk_entry_set_icon_drag_source,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{Gtk.GtkTargetList},Cint),entry,icon_pos,target_list,actions) - return entry - end - function current_icon_drag_source(entry::Gtk.GtkEntry) - return ccall((:gtk_entry_get_current_icon_drag_source,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),entry) - end - function icon_window(entry::Gtk.GtkEntry,icon_pos) - return ccall((:gtk_entry_get_icon_window,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},Cint),entry,icon_pos) - end - function position(entry::Gtk.GtkEntry,position_) - ccall((:gtk_entry_set_position,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),entry,position_) - return entry - end - function editable(entry::Gtk.GtkEntry,editable_) - ccall((:gtk_entry_set_editable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),entry,editable_) - return entry - end - function model(tree_view::Gtk.GtkTreeView) - return convert(Gtk.GtkTreeModel,ccall((:gtk_tree_view_get_model,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),tree_view)) - end - function model(tree_view::Gtk.GtkTreeView,model_) - ccall((:gtk_tree_view_set_model,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),tree_view,model_) - return tree_view - end - function selection(tree_view::Gtk.GtkTreeView) - return convert(Gtk.GtkTreeSelection,ccall((:gtk_tree_view_get_selection,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),tree_view)) - end - function hadjustment(tree_view::Gtk.GtkTreeView) - return convert(Gtk.GtkAdjustment,ccall((:gtk_tree_view_get_hadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),tree_view)) - end - function hadjustment(tree_view::Gtk.GtkTreeView,adjustment) - ccall((:gtk_tree_view_set_hadjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),tree_view,adjustment) - return tree_view - end - function vadjustment(tree_view::Gtk.GtkTreeView) - return convert(Gtk.GtkAdjustment,ccall((:gtk_tree_view_get_vadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),tree_view)) - end - function vadjustment(tree_view::Gtk.GtkTreeView,adjustment) - ccall((:gtk_tree_view_set_vadjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),tree_view,adjustment) - return tree_view - end - function headers_visible(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_headers_visible,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function headers_visible(tree_view::Gtk.GtkTreeView,headers_visible_) - ccall((:gtk_tree_view_set_headers_visible,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,headers_visible_) - return tree_view - end - function headers_clickable(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_headers_clickable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function headers_clickable(tree_view::Gtk.GtkTreeView,setting) - ccall((:gtk_tree_view_set_headers_clickable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,setting) - return tree_view - end - function rules_hint(tree_view::Gtk.GtkTreeView,setting) - ccall((:gtk_tree_view_set_rules_hint,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,setting) - return tree_view - end - function rules_hint(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_rules_hint,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function column(tree_view::Gtk.GtkTreeView,n) - return convert(Gtk.GtkTreeViewColumn,ccall((:gtk_tree_view_get_column,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Cint),tree_view,n)) - end - function columns(tree_view::Gtk.GtkTreeView) - return ccall((:gtk_tree_view_get_columns,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Ptr{Gtk.GObject},),tree_view) - end - function expander_column(tree_view::Gtk.GtkTreeView,column) - ccall((:gtk_tree_view_set_expander_column,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),tree_view,column) - return tree_view - end - function expander_column(tree_view::Gtk.GtkTreeView) - return convert(Gtk.GtkTreeViewColumn,ccall((:gtk_tree_view_get_expander_column,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),tree_view)) - end - function column_drag_function(tree_view::Gtk.GtkTreeView,func,user_data,destroy) - ccall((:gtk_tree_view_set_column_drag_function,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),tree_view,func,user_data,destroy) - return tree_view - end - function reorderable(tree_view::Gtk.GtkTreeView,reorderable_) - ccall((:gtk_tree_view_set_reorderable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,reorderable_) - return tree_view - end - function reorderable(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_reorderable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function cursor(tree_view::Gtk.GtkTreeView,path,focus_column,start_editing) - ccall((:gtk_tree_view_set_cursor,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath},Ptr{Gtk.GObject},Cint),tree_view,path,focus_column,start_editing) - return tree_view - end - function cursor_on_cell(tree_view::Gtk.GtkTreeView,path,focus_column,focus_cell,start_editing) - ccall((:gtk_tree_view_set_cursor_on_cell,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath},Ptr{Gtk.GObject},Ptr{Gtk.GObject},Cint),tree_view,path,focus_column,focus_cell,start_editing) - return tree_view - end - function cursor(tree_view::Gtk.GtkTreeView) - focus_column = Gtk.mutable(Ptr{Gtk.GObject}) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - ccall((:gtk_tree_view_get_cursor,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Ptr{Gtk.GObject}}),tree_view,path,focus_column) - return (convert(Gtk.GtkTreePath,path[]),convert(Gtk.GtkTreeViewColumn,focus_column[])) - end - function bin_window(tree_view::Gtk.GtkTreeView) - return ccall((:gtk_tree_view_get_bin_window,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),tree_view) - end - function path_at_pos(tree_view::Gtk.GtkTreeView,x,y) - cell_y = Gtk.mutable(Cint) - cell_x = Gtk.mutable(Cint) - column = Gtk.mutable(Ptr{Gtk.GObject}) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - return (convert(Bool,ccall((:gtk_tree_view_get_path_at_pos,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Cint,Cint,Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Ptr{Gtk.GObject}},Ptr{Cint},Ptr{Cint}),tree_view,x,y,path,column,cell_x,cell_y)),convert(Gtk.GtkTreePath,path[]),convert(Gtk.GtkTreeViewColumn,column[]),cell_x[],cell_y[]) - end - function cell_area(tree_view::Gtk.GtkTreeView,column) - rect = Gtk.mutable(Gtk.GdkRectangle) - path = Gtk.mutable(Gtk.GtkTreePath) - ccall((:gtk_tree_view_get_cell_area,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath},Ptr{Gtk.GObject},Ptr{Gtk.GdkRectangle}),tree_view,path,column,rect) - return (path[],rect[]) - end - function background_area(tree_view::Gtk.GtkTreeView,column) - rect = Gtk.mutable(Gtk.GdkRectangle) - path = Gtk.mutable(Gtk.GtkTreePath) - ccall((:gtk_tree_view_get_background_area,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath},Ptr{Gtk.GObject},Ptr{Gtk.GdkRectangle}),tree_view,path,column,rect) - return (path[],rect[]) - end - function visible_rect(tree_view::Gtk.GtkTreeView) - visible_rect_ = Gtk.mutable(Gtk.GdkRectangle) - ccall((:gtk_tree_view_get_visible_rect,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GdkRectangle}),tree_view,visible_rect_) - return visible_rect_[] - end - function visible_range(tree_view::Gtk.GtkTreeView) - end_path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - start_path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - return (convert(Bool,ccall((:gtk_tree_view_get_visible_range,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Ptr{Gtk.GtkTreePath}}),tree_view,start_path,end_path)),convert(Gtk.GtkTreePath,start_path[]),convert(Gtk.GtkTreePath,end_path[])) - end - function drag_dest_row(tree_view::Gtk.GtkTreeView,path,pos) - ccall((:gtk_tree_view_set_drag_dest_row,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath},Cint),tree_view,path,pos) - return tree_view - end - function drag_dest_row(tree_view::Gtk.GtkTreeView) - pos = Gtk.mutable(Cint) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - ccall((:gtk_tree_view_get_drag_dest_row,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Cint}),tree_view,path,pos) - return (convert(Gtk.GtkTreePath,path[]),pos[]) - end - function dest_row_at_pos(tree_view::Gtk.GtkTreeView,drag_x,drag_y) - pos = Gtk.mutable(Cint) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - return (convert(Bool,ccall((:gtk_tree_view_get_dest_row_at_pos,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Cint,Cint,Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Cint}),tree_view,drag_x,drag_y,path,pos)),convert(Gtk.GtkTreePath,path[]),pos[]) - end - function enable_search(tree_view::Gtk.GtkTreeView,enable_search_) - ccall((:gtk_tree_view_set_enable_search,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,enable_search_) - return tree_view - end - function enable_search(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_enable_search,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function search_column(tree_view::Gtk.GtkTreeView) - return ccall((:gtk_tree_view_get_search_column,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view) - end - function search_column(tree_view::Gtk.GtkTreeView,column) - ccall((:gtk_tree_view_set_search_column,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,column) - return tree_view - end - function search_equal_func(tree_view::Gtk.GtkTreeView) - return ccall((:gtk_tree_view_get_search_equal_func,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),tree_view) - end - function search_equal_func(tree_view::Gtk.GtkTreeView,search_equal_func_,search_user_data,search_destroy) - ccall((:gtk_tree_view_set_search_equal_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),tree_view,search_equal_func_,search_user_data,search_destroy) - return tree_view - end - function search_entry(tree_view::Gtk.GtkTreeView) - return convert(Gtk.GtkEntry,ccall((:gtk_tree_view_get_search_entry,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),tree_view)) - end - function search_entry(tree_view::Gtk.GtkTreeView,entry) - ccall((:gtk_tree_view_set_search_entry,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),tree_view,entry) - return tree_view - end - function search_position_func(tree_view::Gtk.GtkTreeView) - return ccall((:gtk_tree_view_get_search_position_func,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),tree_view) - end - function search_position_func(tree_view::Gtk.GtkTreeView,func,data,destroy) - ccall((:gtk_tree_view_set_search_position_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),tree_view,func,data,destroy) - return tree_view - end - function destroy_count_func(tree_view::Gtk.GtkTreeView,func,data,destroy) - ccall((:gtk_tree_view_set_destroy_count_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),tree_view,func,data,destroy) - return tree_view - end - function fixed_height_mode(tree_view::Gtk.GtkTreeView,enable) - ccall((:gtk_tree_view_set_fixed_height_mode,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,enable) - return tree_view - end - function fixed_height_mode(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_fixed_height_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function hover_selection(tree_view::Gtk.GtkTreeView,hover) - ccall((:gtk_tree_view_set_hover_selection,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,hover) - return tree_view - end - function hover_selection(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_hover_selection,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function hover_expand(tree_view::Gtk.GtkTreeView,expand) - ccall((:gtk_tree_view_set_hover_expand,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,expand) - return tree_view - end - function hover_expand(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_hover_expand,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function rubber_banding(tree_view::Gtk.GtkTreeView,enable) - ccall((:gtk_tree_view_set_rubber_banding,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,enable) - return tree_view - end - function rubber_banding(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_rubber_banding,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function row_separator_func(tree_view::Gtk.GtkTreeView) - return ccall((:gtk_tree_view_get_row_separator_func,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),tree_view) - end - function row_separator_func(tree_view::Gtk.GtkTreeView,func,data,destroy) - ccall((:gtk_tree_view_set_row_separator_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),tree_view,func,data,destroy) - return tree_view - end - function grid_lines(tree_view::Gtk.GtkTreeView) - return ccall((:gtk_tree_view_get_grid_lines,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view) - end - function grid_lines(tree_view::Gtk.GtkTreeView,grid_lines_) - ccall((:gtk_tree_view_set_grid_lines,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,grid_lines_) - return tree_view - end - function enable_tree_lines(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_enable_tree_lines,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function enable_tree_lines(tree_view::Gtk.GtkTreeView,enabled) - ccall((:gtk_tree_view_set_enable_tree_lines,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,enabled) - return tree_view - end - function show_expanders(tree_view::Gtk.GtkTreeView,enabled) - ccall((:gtk_tree_view_set_show_expanders,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,enabled) - return tree_view - end - function show_expanders(tree_view::Gtk.GtkTreeView) - return convert(Bool,ccall((:gtk_tree_view_get_show_expanders,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view)) - end - function level_indentation(tree_view::Gtk.GtkTreeView,indentation) - ccall((:gtk_tree_view_set_level_indentation,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,indentation) - return tree_view - end - function level_indentation(tree_view::Gtk.GtkTreeView) - return ccall((:gtk_tree_view_get_level_indentation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view) - end - function tooltip_row(tree_view::Gtk.GtkTreeView,tooltip,path) - ccall((:gtk_tree_view_set_tooltip_row,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Gtk.GtkTreePath}),tree_view,tooltip,path) - return tree_view - end - function tooltip_cell(tree_view::Gtk.GtkTreeView,tooltip,path,column,cell) - ccall((:gtk_tree_view_set_tooltip_cell,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Gtk.GtkTreePath},Ptr{Gtk.GObject},Ptr{Gtk.GObject}),tree_view,tooltip,path,column,cell) - return tree_view - end - function tooltip_context(tree_view::Gtk.GtkTreeView,x,y,keyboard_tip) - iter = Gtk.mutable(Gtk.GtkTreeIter) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - model = Gtk.mutable(Ptr{Gtk.GObject}) - return (convert(Bool,ccall((:gtk_tree_view_get_tooltip_context,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint},Cint,Ptr{Ptr{Gtk.GObject}},Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Gtk.GtkTreeIter}),tree_view,x,y,keyboard_tip,model,path,iter)),convert(Gtk.GtkTreeModel,model[]),convert(Gtk.GtkTreePath,path[]),iter[]) - end - function tooltip_column(tree_view::Gtk.GtkTreeView,column) - ccall((:gtk_tree_view_set_tooltip_column,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tree_view,column) - return tree_view - end - function tooltip_column(tree_view::Gtk.GtkTreeView) - return ccall((:gtk_tree_view_get_tooltip_column,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tree_view) - end - function active_text(combo_box::Gtk.GtkComboBoxText) - return ccall((:gtk_combo_box_text_get_active_text,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),combo_box) - end - function expanded(expander::Gtk.GtkExpander,expanded_) - ccall((:gtk_expander_set_expanded,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),expander,expanded_) - return expander - end - function expanded(expander::Gtk.GtkExpander) - return convert(Bool,ccall((:gtk_expander_get_expanded,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),expander)) - end - function spacing(expander::Gtk.GtkExpander,spacing_) - ccall((:gtk_expander_set_spacing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),expander,spacing_) - return expander - end - function spacing(expander::Gtk.GtkExpander) - return ccall((:gtk_expander_get_spacing,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),expander) - end - function label(expander::Gtk.GtkExpander,label_) - ccall((:gtk_expander_set_label,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),expander,label_) - return expander - end - function label(expander::Gtk.GtkExpander) - return ccall((:gtk_expander_get_label,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),expander) - end - function use_underline(expander::Gtk.GtkExpander,use_underline_) - ccall((:gtk_expander_set_use_underline,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),expander,use_underline_) - return expander - end - function use_underline(expander::Gtk.GtkExpander) - return convert(Bool,ccall((:gtk_expander_get_use_underline,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),expander)) - end - function use_markup(expander::Gtk.GtkExpander,use_markup_) - ccall((:gtk_expander_set_use_markup,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),expander,use_markup_) - return expander - end - function use_markup(expander::Gtk.GtkExpander) - return convert(Bool,ccall((:gtk_expander_get_use_markup,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),expander)) - end - function label_widget(expander::Gtk.GtkExpander,label_widget_) - ccall((:gtk_expander_set_label_widget,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),expander,label_widget_) - return expander - end - function label_widget(expander::Gtk.GtkExpander) - return convert(Gtk.GtkWidget,ccall((:gtk_expander_get_label_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),expander)) - end - function label_fill(expander::Gtk.GtkExpander,label_fill_) - ccall((:gtk_expander_set_label_fill,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),expander,label_fill_) - return expander - end - function label_fill(expander::Gtk.GtkExpander) - return convert(Bool,ccall((:gtk_expander_get_label_fill,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),expander)) - end - function action(chooser::Gtk.GtkFileChooser,action_) - ccall((:gtk_file_chooser_set_action,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,action_) - return chooser - end - function action(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_action,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser) - end - function local_only(chooser::Gtk.GtkFileChooser,local_only_) - ccall((:gtk_file_chooser_set_local_only,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,local_only_) - return chooser - end - function local_only(chooser::Gtk.GtkFileChooser) - return convert(Bool,ccall((:gtk_file_chooser_get_local_only,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function select_multiple(chooser::Gtk.GtkFileChooser,select_multiple_) - ccall((:gtk_file_chooser_set_select_multiple,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,select_multiple_) - return chooser - end - function select_multiple(chooser::Gtk.GtkFileChooser) - return convert(Bool,ccall((:gtk_file_chooser_get_select_multiple,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function show_hidden(chooser::Gtk.GtkFileChooser,show_hidden_) - ccall((:gtk_file_chooser_set_show_hidden,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,show_hidden_) - return chooser - end - function show_hidden(chooser::Gtk.GtkFileChooser) - return convert(Bool,ccall((:gtk_file_chooser_get_show_hidden,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function do_overwrite_confirmation(chooser::Gtk.GtkFileChooser,do_overwrite_confirmation_) - ccall((:gtk_file_chooser_set_do_overwrite_confirmation,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,do_overwrite_confirmation_) - return chooser - end - function do_overwrite_confirmation(chooser::Gtk.GtkFileChooser) - return convert(Bool,ccall((:gtk_file_chooser_get_do_overwrite_confirmation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function create_folders(chooser::Gtk.GtkFileChooser,create_folders_) - ccall((:gtk_file_chooser_set_create_folders,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,create_folders_) - return chooser - end - function create_folders(chooser::Gtk.GtkFileChooser) - return convert(Bool,ccall((:gtk_file_chooser_get_create_folders,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function current_name(chooser::Gtk.GtkFileChooser,name) - ccall((:gtk_file_chooser_set_current_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),chooser,name) - return chooser - end - function filename(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_filename,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),chooser) - end - function filename(chooser::Gtk.GtkFileChooser,filename_) - ccall((:gtk_file_chooser_set_filename,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{UInt8}),chooser,filename_) - return chooser - end - function filenames(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_filenames,Gtk.libgtk),Ptr{Gtk._GSList{Nothing}},(Ptr{Gtk.GObject},),chooser) - end - function current_folder(chooser::Gtk.GtkFileChooser,filename) - ccall((:gtk_file_chooser_set_current_folder,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{UInt8}),chooser,filename) - return chooser - end - function current_folder(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_current_folder,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),chooser) - end - function uri(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_uri,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),chooser) - end - function uri(chooser::Gtk.GtkFileChooser,uri_) - ccall((:gtk_file_chooser_set_uri,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{UInt8}),chooser,uri_) - return chooser - end - function uris(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_uris,Gtk.libgtk),Ptr{Gtk._GSList{Nothing}},(Ptr{Gtk.GObject},),chooser) - end - function current_folder_uri(chooser::Gtk.GtkFileChooser,uri) - ccall((:gtk_file_chooser_set_current_folder_uri,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{UInt8}),chooser,uri) - return chooser - end - function current_folder_uri(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_current_folder_uri,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),chooser) - end - function file(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_file,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),chooser) - end - function file(chooser::Gtk.GtkFileChooser,file_,error) - ccall((:gtk_file_chooser_set_file,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Ptr{Gtk.GError}}),chooser,file_,error) - return chooser - end - function files(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_files,Gtk.libgtk),Ptr{Gtk._GSList{Nothing}},(Ptr{Gtk.GObject},),chooser) - end - function current_folder_file(chooser::Gtk.GtkFileChooser,file,error) - ccall((:gtk_file_chooser_set_current_folder_file,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Ptr{Gtk.GError}}),chooser,file,error) - return chooser - end - function current_folder_file(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_current_folder_file,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),chooser) - end - function preview_widget(chooser::Gtk.GtkFileChooser,preview_widget_) - ccall((:gtk_file_chooser_set_preview_widget,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),chooser,preview_widget_) - return chooser - end - function preview_widget(chooser::Gtk.GtkFileChooser) - return convert(Gtk.GtkWidget,ccall((:gtk_file_chooser_get_preview_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),chooser)) - end - function preview_widget_active(chooser::Gtk.GtkFileChooser,active) - ccall((:gtk_file_chooser_set_preview_widget_active,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,active) - return chooser - end - function preview_widget_active(chooser::Gtk.GtkFileChooser) - return convert(Bool,ccall((:gtk_file_chooser_get_preview_widget_active,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function use_preview_label(chooser::Gtk.GtkFileChooser,use_label) - ccall((:gtk_file_chooser_set_use_preview_label,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,use_label) - return chooser - end - function use_preview_label(chooser::Gtk.GtkFileChooser) - return convert(Bool,ccall((:gtk_file_chooser_get_use_preview_label,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function preview_filename(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_preview_filename,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),chooser) - end - function preview_uri(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_preview_uri,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),chooser) - end - function preview_file(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_preview_file,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),chooser) - end - function extra_widget(chooser::Gtk.GtkFileChooser,extra_widget_) - ccall((:gtk_file_chooser_set_extra_widget,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),chooser,extra_widget_) - return chooser - end - function extra_widget(chooser::Gtk.GtkFileChooser) - return convert(Gtk.GtkWidget,ccall((:gtk_file_chooser_get_extra_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),chooser)) - end - function filter(chooser::Gtk.GtkFileChooser,filter_) - ccall((:gtk_file_chooser_set_filter,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),chooser,filter_) - return chooser - end - function filter(chooser::Gtk.GtkFileChooser) - return ccall((:gtk_file_chooser_get_filter,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),chooser) - end - function title(font_button::Gtk.GtkFontButton) - return ccall((:gtk_font_button_get_title,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),font_button) - end - function title(font_button::Gtk.GtkFontButton,title_) - ccall((:gtk_font_button_set_title,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),font_button,title_) - return font_button - end - function use_font(font_button::Gtk.GtkFontButton) - return convert(Bool,ccall((:gtk_font_button_get_use_font,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),font_button)) - end - function use_font(font_button::Gtk.GtkFontButton,use_font_) - ccall((:gtk_font_button_set_use_font,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),font_button,use_font_) - return font_button - end - function use_size(font_button::Gtk.GtkFontButton) - return convert(Bool,ccall((:gtk_font_button_get_use_size,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),font_button)) - end - function use_size(font_button::Gtk.GtkFontButton,use_size_) - ccall((:gtk_font_button_set_use_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),font_button,use_size_) - return font_button - end - function font_name(font_button::Gtk.GtkFontButton) - return ccall((:gtk_font_button_get_font_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),font_button) - end - function font_name(font_button::Gtk.GtkFontButton,fontname) - ccall((:gtk_font_button_set_font_name,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{UInt8}),font_button,fontname) - return font_button - end - function show_style(font_button::Gtk.GtkFontButton) - return convert(Bool,ccall((:gtk_font_button_get_show_style,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),font_button)) - end - function show_style(font_button::Gtk.GtkFontButton,show_style_) - ccall((:gtk_font_button_set_show_style,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),font_button,show_style_) - return font_button - end - function show_size(font_button::Gtk.GtkFontButton) - return convert(Bool,ccall((:gtk_font_button_get_show_size,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),font_button)) - end - function show_size(font_button::Gtk.GtkFontButton,show_size_) - ccall((:gtk_font_button_set_show_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),font_button,show_size_) - return font_button - end - function position(paned::Gtk.GtkPaned) - return ccall((:gtk_paned_get_position,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),paned) - end - function position(paned::Gtk.GtkPaned,position_) - ccall((:gtk_paned_set_position,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),paned,position_) - return paned - end - function child1(paned::Gtk.GtkPaned) - return convert(Gtk.GtkWidget,ccall((:gtk_paned_get_child1,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),paned)) - end - function child2(paned::Gtk.GtkPaned) - return convert(Gtk.GtkWidget,ccall((:gtk_paned_get_child2,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),paned)) - end - function handle_window(paned::Gtk.GtkPaned) - return ccall((:gtk_paned_get_handle_window,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),paned) - end - function update_policy(range::Gtk.GtkRange,policy) - ccall((:gtk_range_set_update_policy,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),range,policy) - return range - end - function update_policy(range::Gtk.GtkRange) - return ccall((:gtk_range_get_update_policy,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),range) - end - function adjustment(range::Gtk.GtkRange,adjustment_) - ccall((:gtk_range_set_adjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),range,adjustment_) - return range - end - function adjustment(range::Gtk.GtkRange) - return convert(Gtk.GtkAdjustment,ccall((:gtk_range_get_adjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),range)) - end - function inverted(range::Gtk.GtkRange,setting) - ccall((:gtk_range_set_inverted,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),range,setting) - return range - end - function inverted(range::Gtk.GtkRange) - return convert(Bool,ccall((:gtk_range_get_inverted,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),range)) - end - function flippable(range::Gtk.GtkRange,flippable_) - ccall((:gtk_range_set_flippable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),range,flippable_) - return range - end - function flippable(range::Gtk.GtkRange) - return convert(Bool,ccall((:gtk_range_get_flippable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),range)) - end - function slider_size_fixed(range::Gtk.GtkRange,size_fixed) - ccall((:gtk_range_set_slider_size_fixed,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),range,size_fixed) - return range - end - function slider_size_fixed(range::Gtk.GtkRange) - return convert(Bool,ccall((:gtk_range_get_slider_size_fixed,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),range)) - end - function min_slider_size(range::Gtk.GtkRange,min_size) - ccall((:gtk_range_set_min_slider_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),range,min_size) - return range - end - function min_slider_size(range::Gtk.GtkRange) - return ccall((:gtk_range_get_min_slider_size,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),range) - end - function range_rect(range::Gtk.GtkRange) - range_rect_ = Gtk.mutable(Gtk.GdkRectangle) - ccall((:gtk_range_get_range_rect,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GdkRectangle}),range,range_rect_) - return range_rect_[] - end - function slider_range(range::Gtk.GtkRange) - slider_end = Gtk.mutable(Cint) - slider_start = Gtk.mutable(Cint) - ccall((:gtk_range_get_slider_range,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),range,slider_start,slider_end) - return (slider_start[],slider_end[]) - end - function lower_stepper_sensitivity(range::Gtk.GtkRange,sensitivity) - ccall((:gtk_range_set_lower_stepper_sensitivity,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),range,sensitivity) - return range - end - function lower_stepper_sensitivity(range::Gtk.GtkRange) - return ccall((:gtk_range_get_lower_stepper_sensitivity,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),range) - end - function upper_stepper_sensitivity(range::Gtk.GtkRange,sensitivity) - ccall((:gtk_range_set_upper_stepper_sensitivity,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),range,sensitivity) - return range - end - function upper_stepper_sensitivity(range::Gtk.GtkRange) - return ccall((:gtk_range_get_upper_stepper_sensitivity,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),range) - end - function increments(range::Gtk.GtkRange,step,page) - ccall((:gtk_range_set_increments,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble,Cdouble),range,step,page) - return range - end - function range(range_::Gtk.GtkRange,min,max) - ccall((:gtk_range_set_range,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble,Cdouble),range_,min,max) - return range_ - end - function value(range::Gtk.GtkRange,value_) - ccall((:gtk_range_set_value,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),range,value_) - return range - end - function value(range::Gtk.GtkRange) - return ccall((:gtk_range_get_value,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),range) - end - function show_fill_level(range::Gtk.GtkRange,show_fill_level_) - ccall((:gtk_range_set_show_fill_level,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),range,show_fill_level_) - return range - end - function show_fill_level(range::Gtk.GtkRange) - return convert(Bool,ccall((:gtk_range_get_show_fill_level,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),range)) - end - function restrict_to_fill_level(range::Gtk.GtkRange,restrict_to_fill_level_) - ccall((:gtk_range_set_restrict_to_fill_level,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),range,restrict_to_fill_level_) - return range - end - function restrict_to_fill_level(range::Gtk.GtkRange) - return convert(Bool,ccall((:gtk_range_get_restrict_to_fill_level,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),range)) - end - function fill_level(range::Gtk.GtkRange,fill_level_) - ccall((:gtk_range_set_fill_level,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),range,fill_level_) - return range - end - function fill_level(range::Gtk.GtkRange) - return ccall((:gtk_range_get_fill_level,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),range) - end - function round_digits(range::Gtk.GtkRange,round_digits_) - ccall((:gtk_range_set_round_digits,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),range,round_digits_) - return range - end - function round_digits(range::Gtk.GtkRange) - return ccall((:gtk_range_get_round_digits,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),range) - end - function digits(scale::Gtk.GtkScale,digits_) - ccall((:gtk_scale_set_digits,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),scale,digits_) - return scale - end - function digits(scale::Gtk.GtkScale) - return ccall((:gtk_scale_get_digits,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),scale) - end - function draw_value(scale::Gtk.GtkScale,draw_value_) - ccall((:gtk_scale_set_draw_value,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),scale,draw_value_) - return scale - end - function draw_value(scale::Gtk.GtkScale) - return convert(Bool,ccall((:gtk_scale_get_draw_value,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),scale)) - end - function value_pos(scale::Gtk.GtkScale,pos) - ccall((:gtk_scale_set_value_pos,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),scale,pos) - return scale - end - function value_pos(scale::Gtk.GtkScale) - return ccall((:gtk_scale_get_value_pos,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),scale) - end - function layout(scale::Gtk.GtkScale) - return ccall((:gtk_scale_get_layout,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),scale) - end - function layout_offsets(scale::Gtk.GtkScale) - y = Gtk.mutable(Cint) - x = Gtk.mutable(Cint) - ccall((:gtk_scale_get_layout_offsets,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),scale,x,y) - return (x[],y[]) - end - function new_from_pixbuf(pixbuf::Gtk.GdkPixbuf) - ccall((:gtk_icon_set_new_from_pixbuf,Gtk.libgtk),Ptr{Gtk.GtkIconSet},(Ptr{Gtk.GObject},),pixbuf) - return pixbuf - end - function ref(icon_set::Gtk.GtkIconSet) - ccall((:gtk_icon_set_ref,Gtk.libgtk),Ptr{Gtk.GtkIconSet},(Ptr{Gtk.GtkIconSet},),icon_set) - return icon_set - end - function unref(icon_set::Gtk.GtkIconSet) - ccall((:gtk_icon_set_unref,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSet},),icon_set) - return icon_set - end - function copy(icon_set::Gtk.GtkIconSet) - ccall((:gtk_icon_set_copy,Gtk.libgtk),Ptr{Gtk.GtkIconSet},(Ptr{Gtk.GtkIconSet},),icon_set) - return icon_set - end - function render_icon(icon_set::Gtk.GtkIconSet,style,direction,state,size,widget,detail) - ccall((:gtk_icon_set_render_icon,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GtkIconSet},Ptr{Nothing},Cint,Cint,Cint,Ptr{Gtk.GObject},Ptr{UInt8}),icon_set,style,direction,state,size,widget,detail) - return icon_set - end - function add_source(icon_set::Gtk.GtkIconSet,source) - ccall((:gtk_icon_set_add_source,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSet},Ptr{Gtk.GtkIconSource}),icon_set,source) - return icon_set - end - function sizes(icon_set::Gtk.GtkIconSet) - n_sizes = Gtk.mutable(Cint) - sizes_ = Gtk.mutable(Ptr{Cint}) - ccall((:gtk_icon_set_get_sizes,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSet},Ptr{Ptr{Cint}},Ptr{Cint}),icon_set,sizes_,n_sizes) - return (sizes_[],n_sizes[]) - end - function filename(source::Gtk.GtkIconSource,filename_) - ccall((:gtk_icon_source_set_filename,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSource},Ptr{UInt8}),source,filename_) - return source - end - function icon_name(source::Gtk.GtkIconSource,icon_name_) - ccall((:gtk_icon_source_set_icon_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSource},Ptr{UInt8}),source,icon_name_) - return source - end - function pixbuf(source::Gtk.GtkIconSource,pixbuf_) - ccall((:gtk_icon_source_set_pixbuf,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSource},Ptr{Gtk.GObject}),source,pixbuf_) - return source - end - function filename(source::Gtk.GtkIconSource) - return ccall((:gtk_icon_source_get_filename,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkIconSource},),source) - end - function icon_name(source::Gtk.GtkIconSource) - return ccall((:gtk_icon_source_get_icon_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkIconSource},),source) - end - function pixbuf(source::Gtk.GtkIconSource) - return convert(Gtk.GdkPixbuf,ccall((:gtk_icon_source_get_pixbuf,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GtkIconSource},),source)) - end - function direction_wildcarded(source::Gtk.GtkIconSource,setting) - ccall((:gtk_icon_source_set_direction_wildcarded,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSource},Cint),source,setting) - return source - end - function state_wildcarded(source::Gtk.GtkIconSource,setting) - ccall((:gtk_icon_source_set_state_wildcarded,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSource},Cint),source,setting) - return source - end - function size_wildcarded(source::Gtk.GtkIconSource,setting) - ccall((:gtk_icon_source_set_size_wildcarded,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSource},Cint),source,setting) - return source - end - function size_wildcarded(source::Gtk.GtkIconSource) - return convert(Bool,ccall((:gtk_icon_source_get_size_wildcarded,Gtk.libgtk),Cint,(Ptr{Gtk.GtkIconSource},),source)) - end - function state_wildcarded(source::Gtk.GtkIconSource) - return convert(Bool,ccall((:gtk_icon_source_get_state_wildcarded,Gtk.libgtk),Cint,(Ptr{Gtk.GtkIconSource},),source)) - end - function direction_wildcarded(source::Gtk.GtkIconSource) - return convert(Bool,ccall((:gtk_icon_source_get_direction_wildcarded,Gtk.libgtk),Cint,(Ptr{Gtk.GtkIconSource},),source)) - end - function direction(source::Gtk.GtkIconSource,direction_) - ccall((:gtk_icon_source_set_direction,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSource},Cint),source,direction_) - return source - end - function state(source::Gtk.GtkIconSource,state_) - ccall((:gtk_icon_source_set_state,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSource},Cint),source,state_) - return source - end - function size(source::Gtk.GtkIconSource,size_) - ccall((:gtk_icon_source_set_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkIconSource},Cint),source,size_) - return source - end - function direction(source::Gtk.GtkIconSource) - return ccall((:gtk_icon_source_get_direction,Gtk.libgtk),Cint,(Ptr{Gtk.GtkIconSource},),source) - end - function state(source::Gtk.GtkIconSource) - return ccall((:gtk_icon_source_get_state,Gtk.libgtk),Cint,(Ptr{Gtk.GtkIconSource},),source) - end - function size(source::Gtk.GtkIconSource) - return ccall((:gtk_icon_source_get_size,Gtk.libgtk),Cint,(Ptr{Gtk.GtkIconSource},),source) - end - function model(icon_view::Gtk.GtkIconView,model_) - ccall((:gtk_icon_view_set_model,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),icon_view,model_) - return icon_view - end - function model(icon_view::Gtk.GtkIconView) - return convert(Gtk.GtkTreeModel,ccall((:gtk_icon_view_get_model,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),icon_view)) - end - function text_column(icon_view::Gtk.GtkIconView,column) - ccall((:gtk_icon_view_set_text_column,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,column) - return icon_view - end - function text_column(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_text_column,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function markup_column(icon_view::Gtk.GtkIconView,column) - ccall((:gtk_icon_view_set_markup_column,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,column) - return icon_view - end - function markup_column(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_markup_column,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function pixbuf_column(icon_view::Gtk.GtkIconView,column) - ccall((:gtk_icon_view_set_pixbuf_column,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,column) - return icon_view - end - function pixbuf_column(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_pixbuf_column,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function orientation(icon_view::Gtk.GtkIconView,orientation_) - ccall((:gtk_icon_view_set_orientation,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,orientation_) - return icon_view - end - function orientation(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_orientation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function item_orientation(icon_view::Gtk.GtkIconView,orientation) - ccall((:gtk_icon_view_set_item_orientation,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,orientation) - return icon_view - end - function item_orientation(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_item_orientation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function columns(icon_view::Gtk.GtkIconView,columns_) - ccall((:gtk_icon_view_set_columns,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,columns_) - return icon_view - end - function columns(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_columns,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function item_width(icon_view::Gtk.GtkIconView,item_width_) - ccall((:gtk_icon_view_set_item_width,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,item_width_) - return icon_view - end - function item_width(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_item_width,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function spacing(icon_view::Gtk.GtkIconView,spacing_) - ccall((:gtk_icon_view_set_spacing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,spacing_) - return icon_view - end - function spacing(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_spacing,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function row_spacing(icon_view::Gtk.GtkIconView,row_spacing_) - ccall((:gtk_icon_view_set_row_spacing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,row_spacing_) - return icon_view - end - function row_spacing(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_row_spacing,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function column_spacing(icon_view::Gtk.GtkIconView,column_spacing_) - ccall((:gtk_icon_view_set_column_spacing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,column_spacing_) - return icon_view - end - function column_spacing(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_column_spacing,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function margin(icon_view::Gtk.GtkIconView,margin_) - ccall((:gtk_icon_view_set_margin,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,margin_) - return icon_view - end - function margin(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_margin,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function item_padding(icon_view::Gtk.GtkIconView,item_padding_) - ccall((:gtk_icon_view_set_item_padding,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,item_padding_) - return icon_view - end - function item_padding(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_item_padding,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function path_at_pos(icon_view::Gtk.GtkIconView,x,y) - return convert(Gtk.GtkTreePath,ccall((:gtk_icon_view_get_path_at_pos,Gtk.libgtk),Ptr{Gtk.GtkTreePath},(Ptr{Gtk.GObject},Cint,Cint),icon_view,x,y)) - end - function item_at_pos(icon_view::Gtk.GtkIconView,x,y) - cell = Gtk.mutable(Ptr{Gtk.GObject}) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - return (convert(Bool,ccall((:gtk_icon_view_get_item_at_pos,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Cint,Cint,Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Ptr{Gtk.GObject}}),icon_view,x,y,path,cell)),convert(Gtk.GtkTreePath,path[]),convert(Gtk.GtkCellRenderer,cell[])) - end - function visible_range(icon_view::Gtk.GtkIconView) - end_path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - start_path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - return (convert(Bool,ccall((:gtk_icon_view_get_visible_range,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Ptr{Gtk.GtkTreePath}}),icon_view,start_path,end_path)),convert(Gtk.GtkTreePath,start_path[]),convert(Gtk.GtkTreePath,end_path[])) - end - function selection_mode(icon_view::Gtk.GtkIconView,mode) - ccall((:gtk_icon_view_set_selection_mode,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,mode) - return icon_view - end - function selection_mode(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_selection_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function item_row(icon_view::Gtk.GtkIconView) - path = Gtk.mutable(Gtk.GtkTreePath) - return (ccall((:gtk_icon_view_get_item_row,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath}),icon_view,path),path[]) - end - function item_column(icon_view::Gtk.GtkIconView) - path = Gtk.mutable(Gtk.GtkTreePath) - return (ccall((:gtk_icon_view_get_item_column,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath}),icon_view,path),path[]) - end - function selected_items(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_selected_items,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Ptr{Gtk.GObject},),icon_view) - end - function cursor(icon_view::Gtk.GtkIconView,path,cell,start_editing) - ccall((:gtk_icon_view_set_cursor,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath},Ptr{Gtk.GObject},Cint),icon_view,path,cell,start_editing) - return icon_view - end - function cursor(icon_view::Gtk.GtkIconView) - cell = Gtk.mutable(Ptr{Gtk.GObject}) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - return (convert(Bool,ccall((:gtk_icon_view_get_cursor,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Ptr{Gtk.GObject}}),icon_view,path,cell)),convert(Gtk.GtkTreePath,path[]),convert(Gtk.GtkCellRenderer,cell[])) - end - function reorderable(icon_view::Gtk.GtkIconView,reorderable_) - ccall((:gtk_icon_view_set_reorderable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,reorderable_) - return icon_view - end - function reorderable(icon_view::Gtk.GtkIconView) - return convert(Bool,ccall((:gtk_icon_view_get_reorderable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view)) - end - function drag_dest_item(icon_view::Gtk.GtkIconView,path,pos) - ccall((:gtk_icon_view_set_drag_dest_item,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath},Cint),icon_view,path,pos) - return icon_view - end - function drag_dest_item(icon_view::Gtk.GtkIconView) - pos = Gtk.mutable(Cint) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - ccall((:gtk_icon_view_get_drag_dest_item,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Cint}),icon_view,path,pos) - return (convert(Gtk.GtkTreePath,path[]),pos[]) - end - function dest_item_at_pos(icon_view::Gtk.GtkIconView,drag_x,drag_y) - pos = Gtk.mutable(Cint) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - return (convert(Bool,ccall((:gtk_icon_view_get_dest_item_at_pos,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Cint,Cint,Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Cint}),icon_view,drag_x,drag_y,path,pos)),convert(Gtk.GtkTreePath,path[]),pos[]) - end - function tooltip_item(icon_view::Gtk.GtkIconView,tooltip,path) - ccall((:gtk_icon_view_set_tooltip_item,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Gtk.GtkTreePath}),icon_view,tooltip,path) - return icon_view - end - function tooltip_cell(icon_view::Gtk.GtkIconView,tooltip,path,cell) - ccall((:gtk_icon_view_set_tooltip_cell,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Gtk.GtkTreePath},Ptr{Gtk.GObject}),icon_view,tooltip,path,cell) - return icon_view - end - function tooltip_context(icon_view::Gtk.GtkIconView,x,y,keyboard_tip) - iter = Gtk.mutable(Gtk.GtkTreeIter) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - model = Gtk.mutable(Ptr{Gtk.GObject}) - return (convert(Bool,ccall((:gtk_icon_view_get_tooltip_context,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint},Cint,Ptr{Ptr{Gtk.GObject}},Ptr{Ptr{Gtk.GtkTreePath}},Ptr{Gtk.GtkTreeIter}),icon_view,x,y,keyboard_tip,model,path,iter)),convert(Gtk.GtkTreeModel,model[]),convert(Gtk.GtkTreePath,path[]),iter[]) - end - function tooltip_column(icon_view::Gtk.GtkIconView,column) - ccall((:gtk_icon_view_set_tooltip_column,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),icon_view,column) - return icon_view - end - function tooltip_column(icon_view::Gtk.GtkIconView) - return ccall((:gtk_icon_view_get_tooltip_column,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),icon_view) - end - function bin_window(layout::Gtk.GtkLayout) - return ccall((:gtk_layout_get_bin_window,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),layout) - end - function size(layout::Gtk.GtkLayout,width,height) - ccall((:gtk_layout_set_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32,UInt32),layout,width,height) - return layout - end - function size(layout::Gtk.GtkLayout) - height = Gtk.mutable(UInt32) - width = Gtk.mutable(UInt32) - ccall((:gtk_layout_get_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt32},Ptr{UInt32}),layout,width,height) - return (width[],height[]) - end - function hadjustment(layout::Gtk.GtkLayout) - return convert(Gtk.GtkAdjustment,ccall((:gtk_layout_get_hadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),layout)) - end - function vadjustment(layout::Gtk.GtkLayout) - return convert(Gtk.GtkAdjustment,ccall((:gtk_layout_get_vadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),layout)) - end - function hadjustment(layout::Gtk.GtkLayout,adjustment) - ccall((:gtk_layout_set_hadjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),layout,adjustment) - return layout - end - function vadjustment(layout::Gtk.GtkLayout,adjustment) - ccall((:gtk_layout_set_vadjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),layout,adjustment) - return layout - end - function uri(link_button::Gtk.GtkLinkButton) - return ccall((:gtk_link_button_get_uri,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),link_button) - end - function uri(link_button::Gtk.GtkLinkButton,uri_) - ccall((:gtk_link_button_set_uri,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),link_button,uri_) - return link_button - end - function visited(link_button::Gtk.GtkLinkButton) - return convert(Bool,ccall((:gtk_link_button_get_visited,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),link_button)) - end - function visited(link_button::Gtk.GtkLinkButton,visited_) - ccall((:gtk_link_button_set_visited,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),link_button,visited_) - return link_button - end - function option_group(open_default_display::Bool) - return ccall((:gtk_get_option_group,Gtk.libgtk),Ptr{Nothing},(Cint,),open_default_display) - end - function info_from_tip_window(tip_window::Gtk.GtkWindow) - current_widget = Gtk.mutable(Ptr{Gtk.GObject}) - tooltips = Gtk.mutable(Ptr{Nothing}) - return (convert(Bool,ccall((:gtk_tooltips_get_info_from_tip_window,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Ptr{Nothing}},Ptr{Ptr{Gtk.GObject}}),tip_window,tooltips,current_widget)),tooltips[],convert(Gtk.GtkWidget,current_widget[])) - end - function homogeneous(tool_item::Gtk.GtkToolItem,homogeneous_) - ccall((:gtk_tool_item_set_homogeneous,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tool_item,homogeneous_) - return tool_item - end - function homogeneous(tool_item::Gtk.GtkToolItem) - return convert(Bool,ccall((:gtk_tool_item_get_homogeneous,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item)) - end - function expand(tool_item::Gtk.GtkToolItem,expand_) - ccall((:gtk_tool_item_set_expand,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tool_item,expand_) - return tool_item - end - function expand(tool_item::Gtk.GtkToolItem) - return convert(Bool,ccall((:gtk_tool_item_get_expand,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item)) - end - function tooltip(tool_item::Gtk.GtkToolItem,tooltips,tip_text,tip_private) - ccall((:gtk_tool_item_set_tooltip,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{UInt8},Ptr{UInt8}),tool_item,tooltips,tip_text,tip_private) - return tool_item - end - function tooltip_text(tool_item::Gtk.GtkToolItem,text) - ccall((:gtk_tool_item_set_tooltip_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),tool_item,text) - return tool_item - end - function tooltip_markup(tool_item::Gtk.GtkToolItem,markup) - ccall((:gtk_tool_item_set_tooltip_markup,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),tool_item,markup) - return tool_item - end - function use_drag_window(tool_item::Gtk.GtkToolItem,use_drag_window_) - ccall((:gtk_tool_item_set_use_drag_window,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tool_item,use_drag_window_) - return tool_item - end - function use_drag_window(tool_item::Gtk.GtkToolItem) - return convert(Bool,ccall((:gtk_tool_item_get_use_drag_window,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item)) - end - function visible_horizontal(tool_item::Gtk.GtkToolItem,visible_horizontal_) - ccall((:gtk_tool_item_set_visible_horizontal,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tool_item,visible_horizontal_) - return tool_item - end - function visible_horizontal(tool_item::Gtk.GtkToolItem) - return convert(Bool,ccall((:gtk_tool_item_get_visible_horizontal,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item)) - end - function visible_vertical(tool_item::Gtk.GtkToolItem,visible_vertical_) - ccall((:gtk_tool_item_set_visible_vertical,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tool_item,visible_vertical_) - return tool_item - end - function visible_vertical(tool_item::Gtk.GtkToolItem) - return convert(Bool,ccall((:gtk_tool_item_get_visible_vertical,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item)) - end - function is_important(tool_item::Gtk.GtkToolItem) - return convert(Bool,ccall((:gtk_tool_item_get_is_important,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item)) - end - function is_important(tool_item::Gtk.GtkToolItem,is_important_) - ccall((:gtk_tool_item_set_is_important,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),tool_item,is_important_) - return tool_item - end - function ellipsize_mode(tool_item::Gtk.GtkToolItem) - return ccall((:gtk_tool_item_get_ellipsize_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item) - end - function icon_size(tool_item::Gtk.GtkToolItem) - return ccall((:gtk_tool_item_get_icon_size,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item) - end - function orientation(tool_item::Gtk.GtkToolItem) - return ccall((:gtk_tool_item_get_orientation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item) - end - function toolbar_style(tool_item::Gtk.GtkToolItem) - return ccall((:gtk_tool_item_get_toolbar_style,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item) - end - function relief_style(tool_item::Gtk.GtkToolItem) - return ccall((:gtk_tool_item_get_relief_style,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item) - end - function text_alignment(tool_item::Gtk.GtkToolItem) - return ccall((:gtk_tool_item_get_text_alignment,Gtk.libgtk),Cfloat,(Ptr{Gtk.GObject},),tool_item) - end - function text_orientation(tool_item::Gtk.GtkToolItem) - return ccall((:gtk_tool_item_get_text_orientation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),tool_item) - end - function text_size_group(tool_item::Gtk.GtkToolItem) - return ccall((:gtk_tool_item_get_text_size_group,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),tool_item) - end - function proxy_menu_item(tool_item::Gtk.GtkToolItem,menu_item_id) - return convert(Gtk.GtkWidget,ccall((:gtk_tool_item_get_proxy_menu_item,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Ptr{UInt8}),tool_item,menu_item_id)) - end - function proxy_menu_item(tool_item::Gtk.GtkToolItem,menu_item_id,menu_item) - ccall((:gtk_tool_item_set_proxy_menu_item,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Gtk.GObject}),tool_item,menu_item_id,menu_item) - return tool_item - end - function label(button::Gtk.GtkToolButton,label_) - ccall((:gtk_tool_button_set_label,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),button,label_) - return button - end - function label(button::Gtk.GtkToolButton) - return ccall((:gtk_tool_button_get_label,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),button) - end - function use_underline(button::Gtk.GtkToolButton,use_underline_) - ccall((:gtk_tool_button_set_use_underline,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),button,use_underline_) - return button - end - function use_underline(button::Gtk.GtkToolButton) - return convert(Bool,ccall((:gtk_tool_button_get_use_underline,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),button)) - end - function stock_id(button::Gtk.GtkToolButton,stock_id_) - ccall((:gtk_tool_button_set_stock_id,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),button,stock_id_) - return button - end - function stock_id(button::Gtk.GtkToolButton) - return ccall((:gtk_tool_button_get_stock_id,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),button) - end - function icon_name(button::Gtk.GtkToolButton,icon_name_) - ccall((:gtk_tool_button_set_icon_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),button,icon_name_) - return button - end - function icon_name(button::Gtk.GtkToolButton) - return ccall((:gtk_tool_button_get_icon_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),button) - end - function icon_widget(button::Gtk.GtkToolButton,icon_widget_) - ccall((:gtk_tool_button_set_icon_widget,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),button,icon_widget_) - return button - end - function icon_widget(button::Gtk.GtkToolButton) - return convert(Gtk.GtkWidget,ccall((:gtk_tool_button_get_icon_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),button)) - end - function label_widget(button::Gtk.GtkToolButton,label_widget_) - ccall((:gtk_tool_button_set_label_widget,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),button,label_widget_) - return button - end - function label_widget(button::Gtk.GtkToolButton) - return convert(Gtk.GtkWidget,ccall((:gtk_tool_button_get_label_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),button)) - end - function menu(button::Gtk.GtkMenuToolButton,menu_) - ccall((:gtk_menu_tool_button_set_menu,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),button,menu_) - return button - end - function menu(button::Gtk.GtkMenuToolButton) - return convert(Gtk.GtkWidget,ccall((:gtk_menu_tool_button_get_menu,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),button)) - end - function arrow_tooltip(button::Gtk.GtkMenuToolButton,tooltips,tip_text,tip_private) - ccall((:gtk_menu_tool_button_set_arrow_tooltip,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{UInt8},Ptr{UInt8}),button,tooltips,tip_text,tip_private) - return button - end - function arrow_tooltip_text(button::Gtk.GtkMenuToolButton,text) - ccall((:gtk_menu_tool_button_set_arrow_tooltip_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),button,text) - return button - end - function arrow_tooltip_markup(button::Gtk.GtkMenuToolButton,markup) - ccall((:gtk_menu_tool_button_set_arrow_tooltip_markup,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),button,markup) - return button - end - function image(dialog::Gtk.GtkMessageDialog,image_) - ccall((:gtk_message_dialog_set_image,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),dialog,image_) - return dialog - end - function image(dialog::Gtk.GtkMessageDialog) - return convert(Gtk.GtkWidget,ccall((:gtk_message_dialog_get_image,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),dialog)) - end - function markup(message_dialog::Gtk.GtkMessageDialog,str) - ccall((:gtk_message_dialog_set_markup,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),message_dialog,str) - return message_dialog - end - function message_area(message_dialog::Gtk.GtkMessageDialog) - return convert(Gtk.GtkWidget,ccall((:gtk_message_dialog_get_message_area,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),message_dialog)) - end - function group_id(notebook::Gtk.GtkNotebook,group_id_) - ccall((:gtk_notebook_set_group_id,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),notebook,group_id_) - return notebook - end - function group_id(notebook::Gtk.GtkNotebook) - return ccall((:gtk_notebook_get_group_id,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),notebook) - end - function group(notebook::Gtk.GtkNotebook,group_) - ccall((:gtk_notebook_set_group,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),notebook,group_) - return notebook - end - function group(notebook::Gtk.GtkNotebook) - return ccall((:gtk_notebook_get_group,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),notebook) - end - function group_name(notebook::Gtk.GtkNotebook,group_name_) - ccall((:gtk_notebook_set_group_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),notebook,group_name_) - return notebook - end - function group_name(notebook::Gtk.GtkNotebook) - return ccall((:gtk_notebook_get_group_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),notebook) - end - function current_page(notebook::Gtk.GtkNotebook) - return ccall((:gtk_notebook_get_current_page,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),notebook) - end - function nth_page(notebook::Gtk.GtkNotebook,page_num) - return convert(Gtk.GtkWidget,ccall((:gtk_notebook_get_nth_page,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Cint),notebook,page_num)) - end - function n_pages(notebook::Gtk.GtkNotebook) - return ccall((:gtk_notebook_get_n_pages,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),notebook) - end - function current_page(notebook::Gtk.GtkNotebook,page_num) - ccall((:gtk_notebook_set_current_page,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),notebook,page_num) - return notebook - end - function show_border(notebook::Gtk.GtkNotebook,show_border_) - ccall((:gtk_notebook_set_show_border,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),notebook,show_border_) - return notebook - end - function show_border(notebook::Gtk.GtkNotebook) - return convert(Bool,ccall((:gtk_notebook_get_show_border,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),notebook)) - end - function show_tabs(notebook::Gtk.GtkNotebook,show_tabs_) - ccall((:gtk_notebook_set_show_tabs,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),notebook,show_tabs_) - return notebook - end - function show_tabs(notebook::Gtk.GtkNotebook) - return convert(Bool,ccall((:gtk_notebook_get_show_tabs,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),notebook)) - end - function tab_pos(notebook::Gtk.GtkNotebook,pos) - ccall((:gtk_notebook_set_tab_pos,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),notebook,pos) - return notebook - end - function tab_pos(notebook::Gtk.GtkNotebook) - return ccall((:gtk_notebook_get_tab_pos,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),notebook) - end - function homogeneous_tabs(notebook::Gtk.GtkNotebook,homogeneous) - ccall((:gtk_notebook_set_homogeneous_tabs,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),notebook,homogeneous) - return notebook - end - function tab_border(notebook::Gtk.GtkNotebook,border_width) - ccall((:gtk_notebook_set_tab_border,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),notebook,border_width) - return notebook - end - function tab_hborder(notebook::Gtk.GtkNotebook,tab_hborder_) - ccall((:gtk_notebook_set_tab_hborder,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),notebook,tab_hborder_) - return notebook - end - function tab_vborder(notebook::Gtk.GtkNotebook,tab_vborder_) - ccall((:gtk_notebook_set_tab_vborder,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),notebook,tab_vborder_) - return notebook - end - function scrollable(notebook::Gtk.GtkNotebook,scrollable_) - ccall((:gtk_notebook_set_scrollable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),notebook,scrollable_) - return notebook - end - function scrollable(notebook::Gtk.GtkNotebook) - return convert(Bool,ccall((:gtk_notebook_get_scrollable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),notebook)) - end - function tab_hborder(notebook::Gtk.GtkNotebook) - return ccall((:gtk_notebook_get_tab_hborder,Gtk.libgtk),UInt16,(Ptr{Gtk.GObject},),notebook) - end - function tab_vborder(notebook::Gtk.GtkNotebook) - return ccall((:gtk_notebook_get_tab_vborder,Gtk.libgtk),UInt16,(Ptr{Gtk.GObject},),notebook) - end - function tab_label(notebook::Gtk.GtkNotebook,child) - return convert(Gtk.GtkWidget,ccall((:gtk_notebook_get_tab_label,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),notebook,child)) - end - function tab_label(notebook::Gtk.GtkNotebook,child,tab_label_) - ccall((:gtk_notebook_set_tab_label,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{Gtk.GObject}),notebook,child,tab_label_) - return notebook - end - function tab_label_text(notebook::Gtk.GtkNotebook,child,tab_text) - ccall((:gtk_notebook_set_tab_label_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{UInt8}),notebook,child,tab_text) - return notebook - end - function tab_label_text(notebook::Gtk.GtkNotebook,child) - return ccall((:gtk_notebook_get_tab_label_text,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),notebook,child) - end - function menu_label(notebook::Gtk.GtkNotebook,child) - return convert(Gtk.GtkWidget,ccall((:gtk_notebook_get_menu_label,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),notebook,child)) - end - function menu_label(notebook::Gtk.GtkNotebook,child,menu_label_) - ccall((:gtk_notebook_set_menu_label,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{Gtk.GObject}),notebook,child,menu_label_) - return notebook - end - function menu_label_text(notebook::Gtk.GtkNotebook,child,menu_text) - ccall((:gtk_notebook_set_menu_label_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Ptr{UInt8}),notebook,child,menu_text) - return notebook - end - function menu_label_text(notebook::Gtk.GtkNotebook,child) - return ccall((:gtk_notebook_get_menu_label_text,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),notebook,child) - end - function tab_label_packing(notebook::Gtk.GtkNotebook,child,expand,fill,pack_type) - ccall((:gtk_notebook_set_tab_label_packing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Cint,Cint,Cint),notebook,child,expand,fill,pack_type) - return notebook - end - function tab_reorderable(notebook::Gtk.GtkNotebook,child) - return convert(Bool,ccall((:gtk_notebook_get_tab_reorderable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),notebook,child)) - end - function tab_reorderable(notebook::Gtk.GtkNotebook,child,reorderable) - ccall((:gtk_notebook_set_tab_reorderable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Cint),notebook,child,reorderable) - return notebook - end - function tab_detachable(notebook::Gtk.GtkNotebook,child) - return convert(Bool,ccall((:gtk_notebook_get_tab_detachable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),notebook,child)) - end - function tab_detachable(notebook::Gtk.GtkNotebook,child,detachable) - ccall((:gtk_notebook_set_tab_detachable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Cint),notebook,child,detachable) - return notebook - end - function action_widget(notebook::Gtk.GtkNotebook,pack_type) - return convert(Gtk.GtkWidget,ccall((:gtk_notebook_get_action_widget,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Cint),notebook,pack_type)) - end - function action_widget(notebook::Gtk.GtkNotebook,widget,pack_type) - ccall((:gtk_notebook_set_action_widget,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Cint),notebook,widget,pack_type) - return notebook - end - function orientation(orientable::Gtk.GtkOrientable,orientation_) - ccall((:gtk_orientable_set_orientation,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),orientable,orientation_) - return orientable - end - function orientation(orientable::Gtk.GtkOrientable) - return ccall((:gtk_orientable_get_orientation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),orientable) - end - function paper_sizes(include_custom::Bool) - return ccall((:gtk_paper_size_get_paper_sizes,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Cint,),include_custom) - end - function name(size::Gtk.GtkPaperSize) - return ccall((:gtk_paper_size_get_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkPaperSize},),size) - end - function display_name(size::Gtk.GtkPaperSize) - return ccall((:gtk_paper_size_get_display_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkPaperSize},),size) - end - function ppd_name(size::Gtk.GtkPaperSize) - return ccall((:gtk_paper_size_get_ppd_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkPaperSize},),size) - end - function width(size::Gtk.GtkPaperSize,unit) - return ccall((:gtk_paper_size_get_width,Gtk.libgtk),Cdouble,(Ptr{Gtk.GtkPaperSize},Cint),size,unit) - end - function height(size::Gtk.GtkPaperSize,unit) - return ccall((:gtk_paper_size_get_height,Gtk.libgtk),Cdouble,(Ptr{Gtk.GtkPaperSize},Cint),size,unit) - end - function size(size_::Gtk.GtkPaperSize,width,height,unit) - ccall((:gtk_paper_size_set_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GtkPaperSize},Cdouble,Cdouble,Cint),size_,width,height,unit) - return size_ - end - function default_top_margin(size::Gtk.GtkPaperSize,unit) - return ccall((:gtk_paper_size_get_default_top_margin,Gtk.libgtk),Cdouble,(Ptr{Gtk.GtkPaperSize},Cint),size,unit) - end - function default_bottom_margin(size::Gtk.GtkPaperSize,unit) - return ccall((:gtk_paper_size_get_default_bottom_margin,Gtk.libgtk),Cdouble,(Ptr{Gtk.GtkPaperSize},Cint),size,unit) - end - function default_left_margin(size::Gtk.GtkPaperSize,unit) - return ccall((:gtk_paper_size_get_default_left_margin,Gtk.libgtk),Cdouble,(Ptr{Gtk.GtkPaperSize},Cint),size,unit) - end - function default_right_margin(size::Gtk.GtkPaperSize,unit) - return ccall((:gtk_paper_size_get_default_right_margin,Gtk.libgtk),Cdouble,(Ptr{Gtk.GtkPaperSize},Cint),size,unit) - end - function text(pbar::Gtk.GtkProgressBar,text_) - ccall((:gtk_progress_bar_set_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),pbar,text_) - return pbar - end - function fraction(pbar::Gtk.GtkProgressBar,fraction_) - ccall((:gtk_progress_bar_set_fraction,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),pbar,fraction_) - return pbar - end - function pulse_step(pbar::Gtk.GtkProgressBar,fraction) - ccall((:gtk_progress_bar_set_pulse_step,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),pbar,fraction) - return pbar - end - function orientation(pbar::Gtk.GtkProgressBar,orientation_) - ccall((:gtk_progress_bar_set_orientation,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),pbar,orientation_) - return pbar - end - function text(pbar::Gtk.GtkProgressBar) - return ccall((:gtk_progress_bar_get_text,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),pbar) - end - function fraction(pbar::Gtk.GtkProgressBar) - return ccall((:gtk_progress_bar_get_fraction,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),pbar) - end - function pulse_step(pbar::Gtk.GtkProgressBar) - return ccall((:gtk_progress_bar_get_pulse_step,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),pbar) - end - function orientation(pbar::Gtk.GtkProgressBar) - return ccall((:gtk_progress_bar_get_orientation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),pbar) - end - function ellipsize(pbar::Gtk.GtkProgressBar,mode) - ccall((:gtk_progress_bar_set_ellipsize,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),pbar,mode) - return pbar - end - function ellipsize(pbar::Gtk.GtkProgressBar) - return ccall((:gtk_progress_bar_get_ellipsize,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),pbar) - end - function bar_style(pbar::Gtk.GtkProgressBar,style) - ccall((:gtk_progress_bar_set_bar_style,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),pbar,style) - return pbar - end - function discrete_blocks(pbar::Gtk.GtkProgressBar,blocks) - ccall((:gtk_progress_bar_set_discrete_blocks,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),pbar,blocks) - return pbar - end - function activity_step(pbar::Gtk.GtkProgressBar,step) - ccall((:gtk_progress_bar_set_activity_step,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),pbar,step) - return pbar - end - function activity_blocks(pbar::Gtk.GtkProgressBar,blocks) - ccall((:gtk_progress_bar_set_activity_blocks,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),pbar,blocks) - return pbar - end - function group(radio_button::Gtk.GtkRadioButton) - return ccall((:gtk_radio_button_get_group,Gtk.libgtk),Ptr{Gtk._GSList{Nothing}},(Ptr{Gtk.GObject},),radio_button) - end - function group(radio_button::Gtk.GtkRadioButton,group_) - ccall((:gtk_radio_button_set_group,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk._GSList{Nothing}}),radio_button,group_) - return radio_button - end - function active(button::Gtk.GtkToggleToolButton,is_active) - ccall((:gtk_toggle_tool_button_set_active,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),button,is_active) - return button - end - function active(button::Gtk.GtkToggleToolButton) - return convert(Bool,ccall((:gtk_toggle_tool_button_get_active,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),button)) - end - function uri(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_uri,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkRecentInfo},),info) - end - function display_name(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_display_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkRecentInfo},),info) - end - function description(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_description,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkRecentInfo},),info) - end - function mime_type(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_mime_type,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkRecentInfo},),info) - end - function added(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_added,Gtk.libgtk),Clong,(Ptr{Gtk.GtkRecentInfo},),info) - end - function modified(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_modified,Gtk.libgtk),Clong,(Ptr{Gtk.GtkRecentInfo},),info) - end - function visited(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_visited,Gtk.libgtk),Clong,(Ptr{Gtk.GtkRecentInfo},),info) - end - function private_hint(info::Gtk.GtkRecentInfo) - return convert(Bool,ccall((:gtk_recent_info_get_private_hint,Gtk.libgtk),Cint,(Ptr{Gtk.GtkRecentInfo},),info)) - end - function application_info(info::Gtk.GtkRecentInfo,app_name) - time_ = Gtk.mutable(Clong) - count = Gtk.mutable(UInt32) - app_exec = Gtk.mutable(Ptr{UInt8}) - return (convert(Bool,ccall((:gtk_recent_info_get_application_info,Gtk.libgtk),Cint,(Ptr{Gtk.GtkRecentInfo},Ptr{UInt8},Ptr{Ptr{UInt8}},Ptr{UInt32},Ptr{Clong}),info,app_name,app_exec,count,time_)),app_exec[],count[],time_[]) - end - function applications(info::Gtk.GtkRecentInfo) - length = Gtk.mutable(Culong) - return (ccall((:gtk_recent_info_get_applications,Gtk.libgtk),Ptr{Ptr{UInt8}},(Ptr{Gtk.GtkRecentInfo},Ptr{Culong}),info,length),length[]) - end - function groups(info::Gtk.GtkRecentInfo) - length = Gtk.mutable(Culong) - return (ccall((:gtk_recent_info_get_groups,Gtk.libgtk),Ptr{Ptr{UInt8}},(Ptr{Gtk.GtkRecentInfo},Ptr{Culong}),info,length),length[]) - end - function icon(info::Gtk.GtkRecentInfo,size) - return convert(Gtk.GdkPixbuf,ccall((:gtk_recent_info_get_icon,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GtkRecentInfo},Cint),info,size)) - end - function short_name(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_short_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkRecentInfo},),info) - end - function uri_display(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_uri_display,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GtkRecentInfo},),info) - end - function age(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_age,Gtk.libgtk),Cint,(Ptr{Gtk.GtkRecentInfo},),info) - end - function show_private(chooser::Gtk.GtkRecentChooser,show_private_) - ccall((:gtk_recent_chooser_set_show_private,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,show_private_) - return chooser - end - function show_private(chooser::Gtk.GtkRecentChooser) - return convert(Bool,ccall((:gtk_recent_chooser_get_show_private,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function show_not_found(chooser::Gtk.GtkRecentChooser,show_not_found_) - ccall((:gtk_recent_chooser_set_show_not_found,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,show_not_found_) - return chooser - end - function show_not_found(chooser::Gtk.GtkRecentChooser) - return convert(Bool,ccall((:gtk_recent_chooser_get_show_not_found,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function select_multiple(chooser::Gtk.GtkRecentChooser,select_multiple_) - ccall((:gtk_recent_chooser_set_select_multiple,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,select_multiple_) - return chooser - end - function select_multiple(chooser::Gtk.GtkRecentChooser) - return convert(Bool,ccall((:gtk_recent_chooser_get_select_multiple,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function limit(chooser::Gtk.GtkRecentChooser,limit_) - ccall((:gtk_recent_chooser_set_limit,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,limit_) - return chooser - end - function limit(chooser::Gtk.GtkRecentChooser) - return ccall((:gtk_recent_chooser_get_limit,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser) - end - function local_only(chooser::Gtk.GtkRecentChooser,local_only_) - ccall((:gtk_recent_chooser_set_local_only,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,local_only_) - return chooser - end - function local_only(chooser::Gtk.GtkRecentChooser) - return convert(Bool,ccall((:gtk_recent_chooser_get_local_only,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function show_tips(chooser::Gtk.GtkRecentChooser,show_tips_) - ccall((:gtk_recent_chooser_set_show_tips,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,show_tips_) - return chooser - end - function show_tips(chooser::Gtk.GtkRecentChooser) - return convert(Bool,ccall((:gtk_recent_chooser_get_show_tips,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function show_numbers(chooser::Gtk.GtkRecentChooser,show_numbers_) - ccall((:gtk_recent_chooser_set_show_numbers,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,show_numbers_) - return chooser - end - function show_numbers(chooser::Gtk.GtkRecentChooser) - return convert(Bool,ccall((:gtk_recent_chooser_get_show_numbers,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function show_icons(chooser::Gtk.GtkRecentChooser,show_icons_) - ccall((:gtk_recent_chooser_set_show_icons,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,show_icons_) - return chooser - end - function show_icons(chooser::Gtk.GtkRecentChooser) - return convert(Bool,ccall((:gtk_recent_chooser_get_show_icons,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser)) - end - function sort_type(chooser::Gtk.GtkRecentChooser,sort_type_) - ccall((:gtk_recent_chooser_set_sort_type,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),chooser,sort_type_) - return chooser - end - function sort_type(chooser::Gtk.GtkRecentChooser) - return ccall((:gtk_recent_chooser_get_sort_type,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),chooser) - end - function sort_func(chooser::Gtk.GtkRecentChooser,sort_func_,sort_data,data_destroy) - ccall((:gtk_recent_chooser_set_sort_func,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),chooser,sort_func_,sort_data,data_destroy) - return chooser - end - function current_uri(chooser::Gtk.GtkRecentChooser,uri,error) - ccall((:gtk_recent_chooser_set_current_uri,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{UInt8},Ptr{Ptr{Gtk.GError}}),chooser,uri,error) - return chooser - end - function current_uri(chooser::Gtk.GtkRecentChooser) - return ccall((:gtk_recent_chooser_get_current_uri,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),chooser) - end - function current_item(chooser::Gtk.GtkRecentChooser) - return convert(Gtk.GtkRecentInfo,ccall((:gtk_recent_chooser_get_current_item,Gtk.libgtk),Ptr{Gtk.GtkRecentInfo},(Ptr{Gtk.GObject},),chooser)) - end - function items(chooser::Gtk.GtkRecentChooser) - return ccall((:gtk_recent_chooser_get_items,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Ptr{Gtk.GObject},),chooser) - end - function uris(chooser::Gtk.GtkRecentChooser) - length = Gtk.mutable(Culong) - return (ccall((:gtk_recent_chooser_get_uris,Gtk.libgtk),Ptr{Ptr{UInt8}},(Ptr{Gtk.GObject},Ptr{Culong}),chooser,length),length[]) - end - function filter(chooser::Gtk.GtkRecentChooser,filter_) - ccall((:gtk_recent_chooser_set_filter,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),chooser,filter_) - return chooser - end - function filter(chooser::Gtk.GtkRecentChooser) - return ccall((:gtk_recent_chooser_get_filter,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),chooser) - end - function hadjustment(scrolled_window::Gtk.GtkScrolledWindow,hadjustment_) - ccall((:gtk_scrolled_window_set_hadjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),scrolled_window,hadjustment_) - return scrolled_window - end - function vadjustment(scrolled_window::Gtk.GtkScrolledWindow,vadjustment_) - ccall((:gtk_scrolled_window_set_vadjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),scrolled_window,vadjustment_) - return scrolled_window - end - function hadjustment(scrolled_window::Gtk.GtkScrolledWindow) - return convert(Gtk.GtkAdjustment,ccall((:gtk_scrolled_window_get_hadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),scrolled_window)) - end - function vadjustment(scrolled_window::Gtk.GtkScrolledWindow) - return convert(Gtk.GtkAdjustment,ccall((:gtk_scrolled_window_get_vadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),scrolled_window)) - end - function hscrollbar(scrolled_window::Gtk.GtkScrolledWindow) - return convert(Gtk.GtkWidget,ccall((:gtk_scrolled_window_get_hscrollbar,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),scrolled_window)) - end - function vscrollbar(scrolled_window::Gtk.GtkScrolledWindow) - return convert(Gtk.GtkWidget,ccall((:gtk_scrolled_window_get_vscrollbar,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),scrolled_window)) - end - function policy(scrolled_window::Gtk.GtkScrolledWindow,hscrollbar_policy,vscrollbar_policy) - ccall((:gtk_scrolled_window_set_policy,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),scrolled_window,hscrollbar_policy,vscrollbar_policy) - return scrolled_window - end - function policy(scrolled_window::Gtk.GtkScrolledWindow) - vscrollbar_policy = Gtk.mutable(Cint) - hscrollbar_policy = Gtk.mutable(Cint) - ccall((:gtk_scrolled_window_get_policy,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cint},Ptr{Cint}),scrolled_window,hscrollbar_policy,vscrollbar_policy) - return (hscrollbar_policy[],vscrollbar_policy[]) - end - function placement(scrolled_window::Gtk.GtkScrolledWindow,window_placement) - ccall((:gtk_scrolled_window_set_placement,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),scrolled_window,window_placement) - return scrolled_window - end - function placement(scrolled_window::Gtk.GtkScrolledWindow) - return ccall((:gtk_scrolled_window_get_placement,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),scrolled_window) - end - function shadow_type(scrolled_window::Gtk.GtkScrolledWindow,type_) - ccall((:gtk_scrolled_window_set_shadow_type,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),scrolled_window,type_) - return scrolled_window - end - function shadow_type(scrolled_window::Gtk.GtkScrolledWindow) - return ccall((:gtk_scrolled_window_get_shadow_type,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),scrolled_window) - end - function draw(item::Gtk.GtkSeparatorToolItem) - return convert(Bool,ccall((:gtk_separator_tool_item_get_draw,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),item)) - end - function draw(item::Gtk.GtkSeparatorToolItem,draw_) - ccall((:gtk_separator_tool_item_set_draw,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),item,draw_) - return item - end - function adjustment(spin_button::Gtk.GtkSpinButton,adjustment_) - ccall((:gtk_spin_button_set_adjustment,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),spin_button,adjustment_) - return spin_button - end - function adjustment(spin_button::Gtk.GtkSpinButton) - return convert(Gtk.GtkAdjustment,ccall((:gtk_spin_button_get_adjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),spin_button)) - end - function digits(spin_button::Gtk.GtkSpinButton,digits_) - ccall((:gtk_spin_button_set_digits,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),spin_button,digits_) - return spin_button - end - function digits(spin_button::Gtk.GtkSpinButton) - return ccall((:gtk_spin_button_get_digits,Gtk.libgtk),UInt32,(Ptr{Gtk.GObject},),spin_button) - end - function increments(spin_button::Gtk.GtkSpinButton,step,page) - ccall((:gtk_spin_button_set_increments,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble,Cdouble),spin_button,step,page) - return spin_button - end - function increments(spin_button::Gtk.GtkSpinButton) - page = Gtk.mutable(Cdouble) - step = Gtk.mutable(Cdouble) - ccall((:gtk_spin_button_get_increments,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cdouble},Ptr{Cdouble}),spin_button,step,page) - return (step[],page[]) - end - function range(spin_button::Gtk.GtkSpinButton,min,max) - ccall((:gtk_spin_button_set_range,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble,Cdouble),spin_button,min,max) - return spin_button - end - function range(spin_button::Gtk.GtkSpinButton) - max = Gtk.mutable(Cdouble) - min = Gtk.mutable(Cdouble) - ccall((:gtk_spin_button_get_range,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Cdouble},Ptr{Cdouble}),spin_button,min,max) - return (min[],max[]) - end - function value(spin_button::Gtk.GtkSpinButton) - return ccall((:gtk_spin_button_get_value,Gtk.libgtk),Cdouble,(Ptr{Gtk.GObject},),spin_button) - end - function value_as_int(spin_button::Gtk.GtkSpinButton) - return ccall((:gtk_spin_button_get_value_as_int,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),spin_button) - end - function value(spin_button::Gtk.GtkSpinButton,value_) - ccall((:gtk_spin_button_set_value,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cdouble),spin_button,value_) - return spin_button - end - function update_policy(spin_button::Gtk.GtkSpinButton,policy) - ccall((:gtk_spin_button_set_update_policy,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),spin_button,policy) - return spin_button - end - function update_policy(spin_button::Gtk.GtkSpinButton) - return ccall((:gtk_spin_button_get_update_policy,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),spin_button) - end - function numeric(spin_button::Gtk.GtkSpinButton,numeric_) - ccall((:gtk_spin_button_set_numeric,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),spin_button,numeric_) - return spin_button - end - function numeric(spin_button::Gtk.GtkSpinButton) - return convert(Bool,ccall((:gtk_spin_button_get_numeric,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),spin_button)) - end - function wrap(spin_button::Gtk.GtkSpinButton,wrap_) - ccall((:gtk_spin_button_set_wrap,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),spin_button,wrap_) - return spin_button - end - function wrap(spin_button::Gtk.GtkSpinButton) - return convert(Bool,ccall((:gtk_spin_button_get_wrap,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),spin_button)) - end - function snap_to_ticks(spin_button::Gtk.GtkSpinButton,snap_to_ticks_) - ccall((:gtk_spin_button_set_snap_to_ticks,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),spin_button,snap_to_ticks_) - return spin_button - end - function snap_to_ticks(spin_button::Gtk.GtkSpinButton) - return convert(Bool,ccall((:gtk_spin_button_get_snap_to_ticks,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),spin_button)) - end - function context_id(statusbar::Gtk.GtkStatusbar,context_description) - return ccall((:gtk_statusbar_get_context_id,Gtk.libgtk),UInt32,(Ptr{Gtk.GObject},Ptr{UInt8}),statusbar,context_description) - end - function has_resize_grip(statusbar::Gtk.GtkStatusbar,setting) - ccall((:gtk_statusbar_set_has_resize_grip,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),statusbar,setting) - return statusbar - end - function has_resize_grip(statusbar::Gtk.GtkStatusbar) - return convert(Bool,ccall((:gtk_statusbar_get_has_resize_grip,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),statusbar)) - end - function message_area(statusbar::Gtk.GtkStatusbar) - return convert(Gtk.GtkWidget,ccall((:gtk_statusbar_get_message_area,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),statusbar)) - end - function from_pixbuf(status_icon::Gtk.GtkStatusIcon,pixbuf) - ccall((:gtk_status_icon_set_from_pixbuf,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),status_icon,pixbuf) - return status_icon - end - function from_file(status_icon::Gtk.GtkStatusIcon,filename) - ccall((:gtk_status_icon_set_from_file,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),status_icon,filename) - return status_icon - end - function from_stock(status_icon::Gtk.GtkStatusIcon,stock_id) - ccall((:gtk_status_icon_set_from_stock,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),status_icon,stock_id) - return status_icon - end - function from_icon_name(status_icon::Gtk.GtkStatusIcon,icon_name) - ccall((:gtk_status_icon_set_from_icon_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),status_icon,icon_name) - return status_icon - end - function from_gicon(status_icon::Gtk.GtkStatusIcon,icon) - ccall((:gtk_status_icon_set_from_gicon,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),status_icon,icon) - return status_icon - end - function storage_type(status_icon::Gtk.GtkStatusIcon) - return ccall((:gtk_status_icon_get_storage_type,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),status_icon) - end - function pixbuf(status_icon::Gtk.GtkStatusIcon) - return convert(Gtk.GdkPixbuf,ccall((:gtk_status_icon_get_pixbuf,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),status_icon)) - end - function stock(status_icon::Gtk.GtkStatusIcon) - return ccall((:gtk_status_icon_get_stock,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),status_icon) - end - function icon_name(status_icon::Gtk.GtkStatusIcon) - return ccall((:gtk_status_icon_get_icon_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),status_icon) - end - function gicon(status_icon::Gtk.GtkStatusIcon) - return ccall((:gtk_status_icon_get_gicon,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),status_icon) - end - function size(status_icon::Gtk.GtkStatusIcon) - return ccall((:gtk_status_icon_get_size,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),status_icon) - end - function screen(status_icon::Gtk.GtkStatusIcon,screen_) - ccall((:gtk_status_icon_set_screen,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),status_icon,screen_) - return status_icon - end - function screen(status_icon::Gtk.GtkStatusIcon) - return ccall((:gtk_status_icon_get_screen,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),status_icon) - end - function tooltip(status_icon::Gtk.GtkStatusIcon,tooltip_text) - ccall((:gtk_status_icon_set_tooltip,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),status_icon,tooltip_text) - return status_icon - end - function has_tooltip(status_icon::Gtk.GtkStatusIcon,has_tooltip_) - ccall((:gtk_status_icon_set_has_tooltip,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),status_icon,has_tooltip_) - return status_icon - end - function tooltip_text(status_icon::Gtk.GtkStatusIcon,text) - ccall((:gtk_status_icon_set_tooltip_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),status_icon,text) - return status_icon - end - function tooltip_markup(status_icon::Gtk.GtkStatusIcon,markup) - ccall((:gtk_status_icon_set_tooltip_markup,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),status_icon,markup) - return status_icon - end - function title(status_icon::Gtk.GtkStatusIcon,title_) - ccall((:gtk_status_icon_set_title,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),status_icon,title_) - return status_icon - end - function title(status_icon::Gtk.GtkStatusIcon) - return ccall((:gtk_status_icon_get_title,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),status_icon) - end - function name(status_icon::Gtk.GtkStatusIcon,name_) - ccall((:gtk_status_icon_set_name,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8}),status_icon,name_) - return status_icon - end - function visible(status_icon::Gtk.GtkStatusIcon,visible_) - ccall((:gtk_status_icon_set_visible,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),status_icon,visible_) - return status_icon - end - function visible(status_icon::Gtk.GtkStatusIcon) - return convert(Bool,ccall((:gtk_status_icon_get_visible,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),status_icon)) - end - function blinking(status_icon::Gtk.GtkStatusIcon,blinking_) - ccall((:gtk_status_icon_set_blinking,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),status_icon,blinking_) - return status_icon - end - function blinking(status_icon::Gtk.GtkStatusIcon) - return convert(Bool,ccall((:gtk_status_icon_get_blinking,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),status_icon)) - end - function geometry(status_icon::Gtk.GtkStatusIcon) - orientation = Gtk.mutable(Cint) - area = Gtk.mutable(Gtk.GdkRectangle) - screen = Gtk.mutable(Ptr{Nothing}) - return (convert(Bool,ccall((:gtk_status_icon_get_geometry,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Ptr{Nothing}},Ptr{Gtk.GdkRectangle},Ptr{Cint}),status_icon,screen,area,orientation)),screen[],area[],orientation[]) - end - function has_tooltip(status_icon::Gtk.GtkStatusIcon) - return convert(Bool,ccall((:gtk_status_icon_get_has_tooltip,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),status_icon)) - end - function tooltip_text(status_icon::Gtk.GtkStatusIcon) - return ccall((:gtk_status_icon_get_tooltip_text,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),status_icon) - end - function tooltip_markup(status_icon::Gtk.GtkStatusIcon) - return ccall((:gtk_status_icon_get_tooltip_markup,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),status_icon) - end - function x11_window_id(status_icon::Gtk.GtkStatusIcon) - return ccall((:gtk_status_icon_get_x11_window_id,Gtk.libgtk),UInt32,(Ptr{Gtk.GObject},),status_icon) - end - function row_spacing(table::Gtk.GtkTable,row,spacing) - ccall((:gtk_table_set_row_spacing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32,UInt32),table,row,spacing) - return table - end - function row_spacing(table::Gtk.GtkTable,row) - return ccall((:gtk_table_get_row_spacing,Gtk.libgtk),UInt32,(Ptr{Gtk.GObject},UInt32),table,row) - end - function col_spacing(table::Gtk.GtkTable,column,spacing) - ccall((:gtk_table_set_col_spacing,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32,UInt32),table,column,spacing) - return table - end - function col_spacing(table::Gtk.GtkTable,column) - return ccall((:gtk_table_get_col_spacing,Gtk.libgtk),UInt32,(Ptr{Gtk.GObject},UInt32),table,column) - end - function row_spacings(table::Gtk.GtkTable,spacing) - ccall((:gtk_table_set_row_spacings,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),table,spacing) - return table - end - function default_row_spacing(table::Gtk.GtkTable) - return ccall((:gtk_table_get_default_row_spacing,Gtk.libgtk),UInt32,(Ptr{Gtk.GObject},),table) - end - function col_spacings(table::Gtk.GtkTable,spacing) - ccall((:gtk_table_set_col_spacings,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},UInt32),table,spacing) - return table - end - function default_col_spacing(table::Gtk.GtkTable) - return ccall((:gtk_table_get_default_col_spacing,Gtk.libgtk),UInt32,(Ptr{Gtk.GObject},),table) - end - function homogeneous(table::Gtk.GtkTable,homogeneous_) - ccall((:gtk_table_set_homogeneous,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),table,homogeneous_) - return table - end - function homogeneous(table::Gtk.GtkTable) - return convert(Bool,ccall((:gtk_table_get_homogeneous,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),table)) - end - function size(table::Gtk.GtkTable) - columns = Gtk.mutable(UInt32) - rows = Gtk.mutable(UInt32) - ccall((:gtk_table_get_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt32},Ptr{UInt32}),table,rows,columns) - return (rows[],columns[]) - end - function visible(mark::Gtk.GtkTextMark,setting) - ccall((:gtk_text_mark_set_visible,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),mark,setting) - return mark - end - function visible(mark::Gtk.GtkTextMark) - return convert(Bool,ccall((:gtk_text_mark_get_visible,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),mark)) - end - function name(mark::Gtk.GtkTextMark) - return ccall((:gtk_text_mark_get_name,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},),mark) - end - function deleted(mark::Gtk.GtkTextMark) - return convert(Bool,ccall((:gtk_text_mark_get_deleted,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),mark)) - end - function buffer(mark::Gtk.GtkTextMark) - return convert(Gtk.GtkTextBuffer,ccall((:gtk_text_mark_get_buffer,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),mark)) - end - function left_gravity(mark::Gtk.GtkTextMark) - return convert(Bool,ccall((:gtk_text_mark_get_left_gravity,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),mark)) - end - function line_count(buffer::Gtk.GtkTextBuffer) - return ccall((:gtk_text_buffer_get_line_count,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),buffer) - end - function char_count(buffer::Gtk.GtkTextBuffer) - return ccall((:gtk_text_buffer_get_char_count,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),buffer) - end - function tag_table(buffer::Gtk.GtkTextBuffer) - return ccall((:gtk_text_buffer_get_tag_table,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),buffer) - end - function text(buffer::Gtk.GtkTextBuffer,text_,len) - ccall((:gtk_text_buffer_set_text,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{UInt8},Cint),buffer,text_,len) - return buffer - end - function text(buffer::Gtk.GtkTextBuffer,start_,end_,include_hidden_chars) - return ccall((:gtk_text_buffer_get_text,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Ptr{Gtk.GtkTextIter},Cint),buffer,start_,end_,include_hidden_chars) - end - function slice(buffer::Gtk.GtkTextBuffer,start_,end_,include_hidden_chars) - return ccall((:gtk_text_buffer_get_slice,Gtk.libgtk),Ptr{UInt8},(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Ptr{Gtk.GtkTextIter},Cint),buffer,start_,end_,include_hidden_chars) - end - function mark(buffer::Gtk.GtkTextBuffer,name) - return convert(Gtk.GtkTextMark,ccall((:gtk_text_buffer_get_mark,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Ptr{UInt8}),buffer,name)) - end - function insert(buffer::Gtk.GtkTextBuffer) - return convert(Gtk.GtkTextMark,ccall((:gtk_text_buffer_get_insert,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),buffer)) - end - function selection_bound(buffer::Gtk.GtkTextBuffer) - return convert(Gtk.GtkTextMark,ccall((:gtk_text_buffer_get_selection_bound,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),buffer)) - end - function iter_at_line_offset(buffer::Gtk.GtkTextBuffer,iter,line_number,char_offset) - return ccall((:gtk_text_buffer_get_iter_at_line_offset,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Cint,Cint),buffer,iter,line_number,char_offset) - end - function iter_at_line_index(buffer::Gtk.GtkTextBuffer,iter,line_number,byte_index) - return ccall((:gtk_text_buffer_get_iter_at_line_index,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Cint,Cint),buffer,iter,line_number,byte_index) - end - function iter_at_offset(buffer::Gtk.GtkTextBuffer,iter,char_offset) - return ccall((:gtk_text_buffer_get_iter_at_offset,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Cint),buffer,iter,char_offset) - end - function iter_at_line(buffer::Gtk.GtkTextBuffer,iter,line_number) - return ccall((:gtk_text_buffer_get_iter_at_line,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Cint),buffer,iter,line_number) - end - function start_iter(buffer::Gtk.GtkTextBuffer) - iter = Gtk.mutable(Gtk.GtkTextIter) - ccall((:gtk_text_buffer_get_start_iter,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter}),buffer,iter) - return iter[] - end - function end_iter(buffer::Gtk.GtkTextBuffer) - iter = Gtk.mutable(Gtk.GtkTextIter) - ccall((:gtk_text_buffer_get_end_iter,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter}),buffer,iter) - return iter[] - end - function bounds(buffer::Gtk.GtkTextBuffer) - end_ = Gtk.mutable(Gtk.GtkTextIter) - start_ = Gtk.mutable(Gtk.GtkTextIter) - ccall((:gtk_text_buffer_get_bounds,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Ptr{Gtk.GtkTextIter}),buffer,start_,end_) - return (start_[],end_[]) - end - function iter_at_mark(buffer::Gtk.GtkTextBuffer,mark) - iter = Gtk.mutable(Gtk.GtkTextIter) - ccall((:gtk_text_buffer_get_iter_at_mark,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Ptr{Gtk.GObject}),buffer,iter,mark) - return iter[] - end - function iter_at_child_anchor(buffer::Gtk.GtkTextBuffer,anchor) - iter = Gtk.mutable(Gtk.GtkTextIter) - ccall((:gtk_text_buffer_get_iter_at_child_anchor,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Ptr{Nothing}),buffer,iter,anchor) - return iter[] - end - function modified(buffer::Gtk.GtkTextBuffer) - return convert(Bool,ccall((:gtk_text_buffer_get_modified,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),buffer)) - end - function modified(buffer::Gtk.GtkTextBuffer,setting) - ccall((:gtk_text_buffer_set_modified,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),buffer,setting) - return buffer - end - function has_selection(buffer::Gtk.GtkTextBuffer) - return convert(Bool,ccall((:gtk_text_buffer_get_has_selection,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),buffer)) - end - function selection_bounds(buffer::Gtk.GtkTextBuffer) - end_ = Gtk.mutable(Gtk.GtkTextIter) - start_ = Gtk.mutable(Gtk.GtkTextIter) - return (convert(Bool,ccall((:gtk_text_buffer_get_selection_bounds,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Ptr{Gtk.GtkTextIter}),buffer,start_,end_)),start_[],end_[]) - end - function copy_target_list(buffer::Gtk.GtkTextBuffer) - return convert(Gtk.GtkTargetList,ccall((:gtk_text_buffer_get_copy_target_list,Gtk.libgtk),Ptr{Gtk.GtkTargetList},(Ptr{Gtk.GObject},),buffer)) - end - function paste_target_list(buffer::Gtk.GtkTextBuffer) - return convert(Gtk.GtkTargetList,ccall((:gtk_text_buffer_get_paste_target_list,Gtk.libgtk),Ptr{Gtk.GtkTargetList},(Ptr{Gtk.GObject},),buffer)) - end - function can_create_tags(buffer::Gtk.GtkTextBuffer,format,can_create_tags_) - ccall((:gtk_text_buffer_deserialize_set_can_create_tags,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Cint),buffer,format,can_create_tags_) - return buffer - end - function can_create_tags(buffer::Gtk.GtkTextBuffer,format) - return convert(Bool,ccall((:gtk_text_buffer_deserialize_get_can_create_tags,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Nothing}),buffer,format)) - end - function serialize_formats(buffer::Gtk.GtkTextBuffer) - n_formats = Gtk.mutable(Cint) - return (ccall((:gtk_text_buffer_get_serialize_formats,Gtk.libgtk),Ptr{Ptr{Nothing}},(Ptr{Gtk.GObject},Ptr{Cint}),buffer,n_formats),n_formats[]) - end - function deserialize_formats(buffer::Gtk.GtkTextBuffer) - n_formats = Gtk.mutable(Cint) - return (ccall((:gtk_text_buffer_get_deserialize_formats,Gtk.libgtk),Ptr{Ptr{Nothing}},(Ptr{Gtk.GObject},Ptr{Cint}),buffer,n_formats),n_formats[]) - end - function buffer(text_view::Gtk.GtkTextView,buffer_) - ccall((:gtk_text_view_set_buffer,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),text_view,buffer_) - return text_view - end - function buffer(text_view::Gtk.GtkTextView) - return convert(Gtk.GtkTextBuffer,ccall((:gtk_text_view_get_buffer,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),text_view)) - end - function visible_rect(text_view::Gtk.GtkTextView) - visible_rect_ = Gtk.mutable(Gtk.GdkRectangle) - ccall((:gtk_text_view_get_visible_rect,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GdkRectangle}),text_view,visible_rect_) - return visible_rect_[] - end - function cursor_visible(text_view::Gtk.GtkTextView,setting) - ccall((:gtk_text_view_set_cursor_visible,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,setting) - return text_view - end - function cursor_visible(text_view::Gtk.GtkTextView) - return convert(Bool,ccall((:gtk_text_view_get_cursor_visible,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view)) - end - function iter_location(text_view::Gtk.GtkTextView) - location = Gtk.mutable(Gtk.GdkRectangle) - iter = Gtk.mutable(Gtk.GtkTextIter) - ccall((:gtk_text_view_get_iter_location,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Ptr{Gtk.GdkRectangle}),text_view,iter,location) - return (iter[],location[]) - end - function iter_at_location(text_view::Gtk.GtkTextView,iter,x,y) - return ccall((:gtk_text_view_get_iter_at_location,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Cint,Cint),text_view,iter,x,y) - end - function iter_at_position(text_view::Gtk.GtkTextView,iter,trailing,x,y) - return ccall((:gtk_text_view_get_iter_at_position,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Ptr{Cint},Cint,Cint),text_view,iter,trailing,x,y) - end - function line_yrange(text_view::Gtk.GtkTextView) - height = Gtk.mutable(Cint) - y = Gtk.mutable(Cint) - iter = Gtk.mutable(Gtk.GtkTextIter) - ccall((:gtk_text_view_get_line_yrange,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Ptr{Cint},Ptr{Cint}),text_view,iter,y,height) - return (iter[],y[],height[]) - end - function line_at_y(text_view::Gtk.GtkTextView,target_iter,y) - line_top = Gtk.mutable(Cint) - ccall((:gtk_text_view_get_line_at_y,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTextIter},Cint,Ptr{Cint}),text_view,target_iter,y,line_top) - return line_top[] - end - function hadjustment(text_view::Gtk.GtkTextView) - return convert(Gtk.GtkAdjustment,ccall((:gtk_text_view_get_hadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),text_view)) - end - function vadjustment(text_view::Gtk.GtkTextView) - return convert(Gtk.GtkAdjustment,ccall((:gtk_text_view_get_vadjustment,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),text_view)) - end - function window(text_view::Gtk.GtkTextView,win) - return ccall((:gtk_text_view_get_window,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},Cint),text_view,win) - end - function window_type(text_view::Gtk.GtkTextView,window) - return ccall((:gtk_text_view_get_window_type,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Nothing}),text_view,window) - end - function border_window_size(text_view::Gtk.GtkTextView,type_,size) - ccall((:gtk_text_view_set_border_window_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),text_view,type_,size) - return text_view - end - function border_window_size(text_view::Gtk.GtkTextView,type_) - return ccall((:gtk_text_view_get_border_window_size,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Cint),text_view,type_) - end - function wrap_mode(text_view::Gtk.GtkTextView,wrap_mode_) - ccall((:gtk_text_view_set_wrap_mode,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,wrap_mode_) - return text_view - end - function wrap_mode(text_view::Gtk.GtkTextView) - return ccall((:gtk_text_view_get_wrap_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view) - end - function editable(text_view::Gtk.GtkTextView,setting) - ccall((:gtk_text_view_set_editable,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,setting) - return text_view - end - function editable(text_view::Gtk.GtkTextView) - return convert(Bool,ccall((:gtk_text_view_get_editable,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view)) - end - function overwrite(text_view::Gtk.GtkTextView,overwrite_) - ccall((:gtk_text_view_set_overwrite,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,overwrite_) - return text_view - end - function overwrite(text_view::Gtk.GtkTextView) - return convert(Bool,ccall((:gtk_text_view_get_overwrite,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view)) - end - function accepts_tab(text_view::Gtk.GtkTextView,accepts_tab_) - ccall((:gtk_text_view_set_accepts_tab,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,accepts_tab_) - return text_view - end - function accepts_tab(text_view::Gtk.GtkTextView) - return convert(Bool,ccall((:gtk_text_view_get_accepts_tab,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view)) - end - function pixels_above_lines(text_view::Gtk.GtkTextView,pixels_above_lines_) - ccall((:gtk_text_view_set_pixels_above_lines,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,pixels_above_lines_) - return text_view - end - function pixels_above_lines(text_view::Gtk.GtkTextView) - return ccall((:gtk_text_view_get_pixels_above_lines,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view) - end - function pixels_below_lines(text_view::Gtk.GtkTextView,pixels_below_lines_) - ccall((:gtk_text_view_set_pixels_below_lines,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,pixels_below_lines_) - return text_view - end - function pixels_below_lines(text_view::Gtk.GtkTextView) - return ccall((:gtk_text_view_get_pixels_below_lines,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view) - end - function pixels_inside_wrap(text_view::Gtk.GtkTextView,pixels_inside_wrap_) - ccall((:gtk_text_view_set_pixels_inside_wrap,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,pixels_inside_wrap_) - return text_view - end - function pixels_inside_wrap(text_view::Gtk.GtkTextView) - return ccall((:gtk_text_view_get_pixels_inside_wrap,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view) - end - function justification(text_view::Gtk.GtkTextView,justification_) - ccall((:gtk_text_view_set_justification,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,justification_) - return text_view - end - function justification(text_view::Gtk.GtkTextView) - return ccall((:gtk_text_view_get_justification,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view) - end - function left_margin(text_view::Gtk.GtkTextView,left_margin_) - ccall((:gtk_text_view_set_left_margin,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,left_margin_) - return text_view - end - function left_margin(text_view::Gtk.GtkTextView) - return ccall((:gtk_text_view_get_left_margin,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view) - end - function right_margin(text_view::Gtk.GtkTextView,right_margin_) - ccall((:gtk_text_view_set_right_margin,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,right_margin_) - return text_view - end - function right_margin(text_view::Gtk.GtkTextView) - return ccall((:gtk_text_view_get_right_margin,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view) - end - function indent(text_view::Gtk.GtkTextView,indent_) - ccall((:gtk_text_view_set_indent,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),text_view,indent_) - return text_view - end - function indent(text_view::Gtk.GtkTextView) - return ccall((:gtk_text_view_get_indent,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),text_view) - end - function tabs(text_view::Gtk.GtkTextView,tabs_) - ccall((:gtk_text_view_set_tabs,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing}),text_view,tabs_) - return text_view - end - function tabs(text_view::Gtk.GtkTextView) - return ccall((:gtk_text_view_get_tabs,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),text_view) - end - function default_attributes(text_view::Gtk.GtkTextView) - return convert(Gtk.GtkTextAttributes,ccall((:gtk_text_view_get_default_attributes,Gtk.libgtk),Ptr{Gtk.GtkTextAttributes},(Ptr{Gtk.GObject},),text_view)) - end - function item_index(toolbar::Gtk.GtkToolbar,item) - return ccall((:gtk_toolbar_get_item_index,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Gtk.GObject}),toolbar,item) - end - function n_items(toolbar::Gtk.GtkToolbar) - return ccall((:gtk_toolbar_get_n_items,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toolbar) - end - function nth_item(toolbar::Gtk.GtkToolbar,n) - return convert(Gtk.GtkToolItem,ccall((:gtk_toolbar_get_nth_item,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},Cint),toolbar,n)) - end - function show_arrow(toolbar::Gtk.GtkToolbar) - return convert(Bool,ccall((:gtk_toolbar_get_show_arrow,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toolbar)) - end - function show_arrow(toolbar::Gtk.GtkToolbar,show_arrow_) - ccall((:gtk_toolbar_set_show_arrow,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toolbar,show_arrow_) - return toolbar - end - function style(toolbar::Gtk.GtkToolbar) - return ccall((:gtk_toolbar_get_style,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toolbar) - end - function style(toolbar::Gtk.GtkToolbar,style_) - ccall((:gtk_toolbar_set_style,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toolbar,style_) - return toolbar - end - function icon_size(toolbar::Gtk.GtkToolbar) - return ccall((:gtk_toolbar_get_icon_size,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toolbar) - end - function icon_size(toolbar::Gtk.GtkToolbar,icon_size_) - ccall((:gtk_toolbar_set_icon_size,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toolbar,icon_size_) - return toolbar - end - function relief_style(toolbar::Gtk.GtkToolbar) - return ccall((:gtk_toolbar_get_relief_style,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toolbar) - end - function drop_index(toolbar::Gtk.GtkToolbar,x,y) - return ccall((:gtk_toolbar_get_drop_index,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Cint,Cint),toolbar,x,y) - end - function drop_highlight_item(toolbar::Gtk.GtkToolbar,tool_item,index_) - ccall((:gtk_toolbar_set_drop_highlight_item,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GObject},Cint),toolbar,tool_item,index_) - return toolbar - end - function orientation(toolbar::Gtk.GtkToolbar) - return ccall((:gtk_toolbar_get_orientation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toolbar) - end - function orientation(toolbar::Gtk.GtkToolbar,orientation_) - ccall((:gtk_toolbar_set_orientation,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toolbar,orientation_) - return toolbar - end - function tooltips(toolbar::Gtk.GtkToolbar) - return convert(Bool,ccall((:gtk_toolbar_get_tooltips,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),toolbar)) - end - function tooltips(toolbar::Gtk.GtkToolbar,enable) - ccall((:gtk_toolbar_set_tooltips,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),toolbar,enable) - return toolbar - end - function icon_size(shell::Gtk.GtkToolShell) - return ccall((:gtk_tool_shell_get_icon_size,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),shell) - end - function orientation(shell::Gtk.GtkToolShell) - return ccall((:gtk_tool_shell_get_orientation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),shell) - end - function style(shell::Gtk.GtkToolShell) - return ccall((:gtk_tool_shell_get_style,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),shell) - end - function relief_style(shell::Gtk.GtkToolShell) - return ccall((:gtk_tool_shell_get_relief_style,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),shell) - end - function text_orientation(shell::Gtk.GtkToolShell) - return ccall((:gtk_tool_shell_get_text_orientation,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),shell) - end - function text_alignment(shell::Gtk.GtkToolShell) - return ccall((:gtk_tool_shell_get_text_alignment,Gtk.libgtk),Cfloat,(Ptr{Gtk.GObject},),shell) - end - function ellipsize_mode(shell::Gtk.GtkToolShell) - return ccall((:gtk_tool_shell_get_ellipsize_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),shell) - end - function text_size_group(shell::Gtk.GtkToolShell) - return ccall((:gtk_tool_shell_get_text_size_group,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),shell) - end - function row_drag_data(selection_data::Gtk.GtkSelectionData,tree_model,path) - ccall((:gtk_tree_set_row_drag_data,Gtk.libgtk),Cint,(Ptr{Gtk.GtkSelectionData},Ptr{Gtk.GObject},Ptr{Gtk.GtkTreePath}),selection_data,tree_model,path) - return selection_data - end - function row_drag_data(selection_data::Gtk.GtkSelectionData) - path = Gtk.mutable(Ptr{Gtk.GtkTreePath}) - tree_model = Gtk.mutable(Ptr{Gtk.GObject}) - return (convert(Bool,ccall((:gtk_tree_get_row_drag_data,Gtk.libgtk),Cint,(Ptr{Gtk.GtkSelectionData},Ptr{Ptr{Gtk.GObject}},Ptr{Ptr{Gtk.GtkTreePath}}),selection_data,tree_model,path)),convert(Gtk.GtkTreeModel,tree_model[]),convert(Gtk.GtkTreePath,path[])) - end - function model(tree_model::Gtk.GtkTreeModelSort) - return convert(Gtk.GtkTreeModel,ccall((:gtk_tree_model_sort_get_model,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),tree_model)) - end - function mode(selection::Gtk.GtkTreeSelection,type_) - ccall((:gtk_tree_selection_set_mode,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint),selection,type_) - return selection - end - function mode(selection::Gtk.GtkTreeSelection) - return ccall((:gtk_tree_selection_get_mode,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},),selection) - end - function select_function(selection::Gtk.GtkTreeSelection,func,data,destroy) - ccall((:gtk_tree_selection_set_select_function,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Nothing},Ptr{Nothing},Ptr{Nothing}),selection,func,data,destroy) - return selection - end - function user_data(selection::Gtk.GtkTreeSelection) - return ccall((:gtk_tree_selection_get_user_data,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),selection) - end - function tree_view(selection::Gtk.GtkTreeSelection) - return convert(Gtk.GtkTreeView,ccall((:gtk_tree_selection_get_tree_view,Gtk.libgtk),Ptr{Gtk.GObject},(Ptr{Gtk.GObject},),selection)) - end - function select_function(selection::Gtk.GtkTreeSelection) - return ccall((:gtk_tree_selection_get_select_function,Gtk.libgtk),Ptr{Nothing},(Ptr{Gtk.GObject},),selection) - end - function selected(selection::Gtk.GtkTreeSelection) - iter = Gtk.mutable(Gtk.GtkTreeIter) - model = Gtk.mutable(Ptr{Gtk.GObject}) - return (convert(Bool,ccall((:gtk_tree_selection_get_selected,Gtk.libgtk),Cint,(Ptr{Gtk.GObject},Ptr{Ptr{Gtk.GObject}},Ptr{Gtk.GtkTreeIter}),selection,model,iter)),convert(Gtk.GtkTreeModel,model[]),iter[]) - end - function selected_rows(selection::Gtk.GtkTreeSelection) - model = Gtk.mutable(Ptr{Gtk.GObject}) - return (ccall((:gtk_tree_selection_get_selected_rows,Gtk.libgtk),Ptr{Gtk._GList{Nothing}},(Ptr{Gtk.GObject},Ptr{Ptr{Gtk.GObject}}),selection,model),convert(Gtk.GtkTreeModel,model[])) - end - function column_types(tree_store::Gtk.GtkTreeStore,n_columns,types) - ccall((:gtk_tree_store_set_column_types,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Ptr{Culong}),tree_store,n_columns,types) - return tree_store - end - function value(tree_store::Gtk.GtkTreeStore,iter,column,value_) - ccall((:gtk_tree_store_set_value,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter},Cint,Ptr{Nothing}),tree_store,iter,column,value_) - return tree_store - end - function valuesv(tree_store::Gtk.GtkTreeStore,iter,columns,values,n_values) - ccall((:gtk_tree_store_set_valuesv,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Ptr{Gtk.GtkTreeIter},Ptr{Cint},Ptr{Nothing},Cint),tree_store,iter,columns,values,n_values) - return tree_store - end - begin - function default_icon_list() - ccall((:gtk_window_get_default_icon_list,Gtk.libgtk),Ptr{Gtk._GList{Gtk.GdkPixbuf}},()) - return list - end - function default_icon_list(list::Gtk.GList) - ccall((:gtk_window_set_default_icon_list,Gtk.libgtk),Nothing,(Ptr{Gtk._GList{Nothing}},),list) - return list - end - function position(w::Gtk.GtkWindow,x::Integer,y::Integer) - ccall((:gtk_window_move,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},Cint,Cint),w,x,y) - w - end - end - end))) -end diff --git a/gen/gbox3 b/gen/gbox3 index 17f7b9e2..d85d01e1 100644 --- a/gen/gbox3 +++ b/gen/gbox3 @@ -2,8 +2,7 @@ quote $(Expr(:toplevel, :(module GAccessor import ..Gtk import ..Gtk.GObject - - export group, icon_pixbuf, iter_at_position, from_icon_name, path_at_pos, style_property, use_stock, scale_factor, minimum_key_length, pulse_step, buildable_property, mark, show_preview_entry, start_position, pango_context, object_name, child_visible, preferred_size, max_content_width, level_indentation, transient_for, pixels_with_length, cursor_on_cell, line_count, request_mode, monospace, from_pixbuf, current_item, section_type, has_origin, active, cell_at_position, orientation, tab_label_text, sort_indicator, documenters, sort_func, display_name, activatable, child_secondary, tab_vborder, options, inline_completion, activate_on_single_click, background, ellipsize, has_resize_grip, digits, junction_sides, icon_gicon, create_folders, size_of_row, tab_pos, attributes, show_arrow, path, qdata_full, shadow_type, event_window, font_family, realized, row_separator_func, default_left_margin, has_tooltip, sort_order, nth_page, tooltip_row, complete, accept_label, program_name, kinetic_scrolling, device_enabled, description, hover_expand, max_content_height, invisible_char, drop_index, width_chars, startup_id, upper_stepper_sensitivity, item_column, tooltip_window, preferred_width, image_position, action_widget, capture_button_press, menu_label, default_bottom_margin, track_motion, property, data_full, justify, inner_border, progress_pulse_step, focus_on_map, iter_at_line_offset, halign, background_rgba, destroy_count_func, icon_tooltip_markup, window_type, serialize_formats, use_alpha, inconsistent, tab_hborder, file, homogeneous, max_width_chars, modal, extra_widget, baseline_position, ellipsize_mode, default_icon, targets, font_name, item_at_pos, byte_length, iter_at_mark, vadjustment, value_as_int, focus_visible, deletable, parent, direction, width, tooltip_context, predicted_presentation_time, from_animation, inline_selection, indices, application_info, sensitive, margin_top, flags, data_with_length, text_orientation, attached_to, tearoff_state, current_folder_file, license, size_request, left_margin, hscroll_policy, draw_value, for_attach_widget, opacity, ancestor, single_line_mode, toplevel, selection, modified, preferred_height, column, numeric, bits_per_sample, title, submenu, progress_fraction, fixed_size, fixed_width, label_widget, deserialize_formats, render_icon_surface, label_fill, current_icon_drag_source, search_position_func, meta_marshal, cursor_visible, focus_siblings, do_overwrite_confirmation, step_increment, focus_hadjustment, is_important, top_margin, placeholder_text, toolbar_style, show_tips, line_wrap, flippable, child_non_homogeneous, border_color, font_face, stock_id, website, end_line, preferred_width_for_height, preferred_height_for_width, default_widget, receives_default, font_size, resize_toplevel, visible_rect, uri, pixels_below_lines, urgency_hint, icon_name, yalign, mnemonic_widget, cursor_locations, keep_below, justification, focus_from_sibling, attach_widget, alignment, uri_display, pixels_above_lines, current_page, valign, destroy_with_parent, margin_right, text_column, child_packing, text_alignment, popup_single_match, presentation_time, items, uris, button, search_equal_func, char_count, completion, bin_window, end_position, aligned_area, expanded, row_spacing, select_function, siblings, style_context, range_rect, placement, icon_tooltip_text, resizable, slider_size_fixed, min_content_height, image, n_pages, stock, margin_bottom, vscroll_policy, default, type_hint, gravity, alternative_button_order, default_response, iter_at_line, background_area, model, accel_group, added, cursor, parent_window, default_right_margin, is_locked, font, adjustment, option, max_length, center_widget, layout, menu, can_default, right_margin, area, translator_credits, filename, visual, current_uri, state, storage_type, short_name, from_resource, header_bar, selected_rows, iter_location, show_not_found, accept_focus, target, expander_column, depth, preview_text, child1, slice, clipboard, action_area, default_sort_func, cell_data_func, show_border, website_label, cell_area, lines, bounds, can_create_tags, from_stock, response_sensitive, user_data, pixbuf, lower_stepper_sensitivity, allocation, headers_clickable, sizing, logo_icon_name, n_items, handle_window, from_file, slider_range, min_slider_size, hscrollbar, accel_path, action_target, sort_type, icon_from_gicon, copy_target_list, rules_hint, application, line_wrap_mode, window, icon_size, double_buffered, priority, hide_titlebar_when_maximized, icon_activatable, iter_at_child_anchor, bottom_margin, icon_from_file, visible_func, show_hidden, internal_child, deleted, reserve_toggle_size, no_show_all, vscrollbar, markup_column, visibility, input_purpose, hexpand_set, upper, preview_file, monitor, use_underline, rowstride, accessible, choice, tooltip_item, text_area, wide_handle, markup_with_mnemonic, valuesv, tooltip_cell, groups, icon_from_icon_name, frame_clock, label, objects, action, from_surface, reorderable, proxy, sibling_index, xalign, row_drag_data, sort_column_id, hexpand, data, indices_with_depth, arrow_tooltip_markup, default_icon_list, vexpand, nth_item, string_from_iter, drag_dest_row, interactive_debugging, use_size, propagate_natural_width, default_size, has_user_ref_count, update_policy, hover_selection, support_multidevice, proxy_menu_item, length, overwrite_mode, format, resize_mode, action_name, type_from_name, use_preview_label, tooltip_markup, events, wrap_mode, start_iter, text_size_group, page_increment, wrap, item_width, iter_at_line_index, margin_left, settings, filenames, copyright, version, height, text, filter, detailed_action_name, mode, wmclass, child, object_type, icon_drag_source, columns, layout_offsets, start_line, fill_level, allocated_width, focus_vadjustment, iter_first, relief, snap_to_ticks, fraction, mapped, radio, preview_widget, resize_grip_area, editable, show_expanders, item_orientation, enable_search, debug_updates, font_options, composite_name, gicon, match_func, select_multiple, show_style, input_hints, chars, inverted, icon_from_pixbuf, pixbuf_column, context_id, role, reserve_indicator, child_requisition, clickable, tab_reorderable, qdata, icon_at_pos, alternative_button_order_from_array, restrict_to_fill_level, tabs, keep_above, icon, children, current_name, hadjustment, action_target_value, has_alpha, authors, filter_func, icon_set, pixels, device_events, expand, wrap_license, decorated, requisition, policy, cell_allocation, widget, max_width, selectable, visible_vertical, n_channels, current_path_string, drag_dest_item, increments, overwrite, skip_taskbar_hint, item_row, rgba, frame_counter, limit, cursor_hadjustment, relief_style, current_folder, preview_uri, value, headers_visible, show_private, edit_widget, icon_widget, use_markup, pointer, show_size, marshal, has_selection, position, visible, scale, accepts_tab, buffer, text_length, drop_highlight_item, private_hint, response_for_widget, cell_rect, column_drag_function, applications, min_content_width, style, visible_column, popup_completion, use_font, refresh_interval, margin_end, label_align, column_spacing, allocated_baseline, has_window, left_gravity, x_offset, icon_from_stock, titlebar, value_pos, vexpand_set, fit_model, dest_row_at_pos, app_paintable, cancel_label, search_column, background_color, range, menu_label_text, focus_cell, completion_prefix, border_width, allocated_size, draw_sensitive, default_geometry, valign_with_baseline, column_types, insert, data_type, option_group, selected_items, color, scrollable, path_for_child, iter_from_string, logo, indent, round_digits, action_group, border_window_size, state_flags, visible_range, selection_mode, text_with_mnemonic, overlay_scrolling, spacing, edited_cell, cells, local_only, grid_lines, files, active_text, mnemonic_keyval, object, icon_list, default_attributes, auto_startup_notification, use_drag_window, line_yrange, iter_at_offset, section, modifier_mask, modify_func, rubber_banding, always_show_image, artists, item_index, margin, fixed_height_from_font, activates_default, column_type, lower, clip, message_area, item_padding, from_gicon, selected, has_frame, geometry_hints, screen, animation, comments, show_tabs, child2, minimum_increment, tag_table, search_entry, mime_type, disabled, cell_data, focus_chain, icon_factory, tooltip_column, preview_widget_active, dest_item_at_pos, colorspace, frame_time, from_icon_set, end_iter, name, icon_stock, focus_on_click, widget_for_response, extensions, license_type, show_events, line_at_y, ppd_name, icon_storage_type, track_visited_links, target_list, can_focus, iter, visible_horizontal, tab_label, font_map, page_size, min_width, reallocate_redraws, font_desc, mime_types, group_name, display, padding, content_area, size, propagate_natural_height, paste_target_list, template_child, skip_pager_hint, n_columns, margin_start, allocated_height, default_top_margin, preview_filename, icon_area, enable_tree_lines, app_info, translation_domain, selection_bound, render_icon_pixbuf, mnemonic_modifier, iter_at_location, age, mnemonics_visible, pixels_inside_wrap, redraw_on_allocate, show_icons, displayed_row, icon_sensitive, tooltip_text, angle, fixed_height_mode, focus, paper_sizes, preferred_height_and_baseline_for_width, pixel_size, root_window, pattern, content_type, current_folder_uri, show_fill_level, draw, show_text, selection_bounds, tree_view, entry, visited, arrow_tooltip_text, tab_detachable, right_justified, focus_child, markup, border + export group, icon_pixbuf, iter_at_position, from_icon_name, path_at_pos, style_property, use_stock, scale_factor, minimum_key_length, pulse_step, buildable_property, mark, show_preview_entry, start_position, pango_context, object_name, child_visible, preferred_size, max_content_width, level_indentation, transient_for, pixels_with_length, cursor_on_cell, line_count, request_mode, monospace, language, from_pixbuf, current_item, section_type, has_origin, active, cell_at_position, orientation, tab_label_text, sort_indicator, documenters, sort_func, display_name, activatable, child_secondary, tab_vborder, options, inline_completion, activate_on_single_click, background, ellipsize, has_resize_grip, digits, junction_sides, icon_gicon, create_folders, size_of_row, tab_pos, attributes, show_arrow, path, qdata_full, shadow_type, event_window, font_family, realized, row_separator_func, default_left_margin, has_tooltip, sort_order, nth_page, tooltip_row, complete, accept_label, program_name, kinetic_scrolling, device_enabled, description, hover_expand, max_content_height, invisible_char, drop_index, width_chars, startup_id, upper_stepper_sensitivity, item_column, tooltip_window, preferred_width, image_position, action_widget, capture_button_press, menu_label, default_bottom_margin, track_motion, property, data_full, justify, inner_border, progress_pulse_step, focus_on_map, iter_at_line_offset, halign, background_rgba, destroy_count_func, icon_tooltip_markup, window_type, serialize_formats, use_alpha, inconsistent, tab_hborder, file, homogeneous, max_width_chars, modal, extra_widget, baseline_position, ellipsize_mode, default_icon, targets, font_name, item_at_pos, byte_length, iter_at_mark, vadjustment, value_as_int, focus_visible, font_features, deletable, parent, direction, width, tooltip_context, predicted_presentation_time, from_animation, inline_selection, indices, application_info, sensitive, margin_top, flags, data_with_length, text_orientation, attached_to, tearoff_state, current_folder_file, license, size_request, left_margin, hscroll_policy, draw_value, for_attach_widget, opacity, ancestor, single_line_mode, toplevel, selection, modified, preferred_height, column, numeric, bits_per_sample, title, submenu, progress_fraction, fixed_size, fixed_width, label_widget, deserialize_formats, render_icon_surface, label_fill, current_icon_drag_source, search_position_func, meta_marshal, cursor_visible, focus_siblings, do_overwrite_confirmation, step_increment, focus_hadjustment, is_important, top_margin, placeholder_text, toolbar_style, show_tips, line_wrap, flippable, child_non_homogeneous, border_color, font_face, stock_id, website, end_line, preferred_width_for_height, preferred_height_for_width, default_widget, receives_default, font_size, resize_toplevel, visible_rect, uri, pixels_below_lines, urgency_hint, icon_name, yalign, mnemonic_widget, cursor_locations, keep_below, justification, focus_from_sibling, attach_widget, alignment, uri_display, pixels_above_lines, current_page, valign, destroy_with_parent, margin_right, text_column, child_packing, text_alignment, popup_single_match, presentation_time, items, uris, button, search_equal_func, char_count, completion, bin_window, end_position, aligned_area, expanded, row_spacing, select_function, siblings, style_context, range_rect, placement, icon_tooltip_text, resizable, slider_size_fixed, min_content_height, image, n_pages, stock, margin_bottom, vscroll_policy, default, type_hint, gravity, alternative_button_order, default_response, iter_at_line, background_area, model, accel_group, added, cursor, parent_window, default_right_margin, is_locked, font, adjustment, option, max_length, center_widget, layout, menu, can_default, right_margin, area, translator_credits, filename, visual, current_uri, state, storage_type, short_name, from_resource, header_bar, selected_rows, iter_location, show_not_found, accept_focus, target, expander_column, depth, preview_text, child1, slice, clipboard, action_area, default_sort_func, cell_data_func, show_border, website_label, cell_area, lines, bounds, can_create_tags, from_stock, response_sensitive, user_data, pixbuf, lower_stepper_sensitivity, allocation, headers_clickable, sizing, logo_icon_name, n_items, handle_window, from_file, slider_range, min_slider_size, hscrollbar, accel_path, action_target, sort_type, icon_from_gicon, copy_target_list, rules_hint, application, line_wrap_mode, window, icon_size, double_buffered, priority, hide_titlebar_when_maximized, icon_activatable, iter_at_child_anchor, bottom_margin, icon_from_file, visible_func, show_hidden, internal_child, deleted, reserve_toggle_size, no_show_all, vscrollbar, markup_column, visibility, input_purpose, hexpand_set, upper, preview_file, monitor, use_underline, rowstride, accessible, choice, tooltip_item, text_area, wide_handle, markup_with_mnemonic, valuesv, tooltip_cell, groups, icon_from_icon_name, frame_clock, label, objects, action, from_surface, reorderable, proxy, sibling_index, xalign, row_drag_data, sort_column_id, hexpand, data, indices_with_depth, arrow_tooltip_markup, level, default_icon_list, vexpand, nth_item, string_from_iter, drag_dest_row, interactive_debugging, use_size, propagate_natural_width, default_size, has_user_ref_count, update_policy, hover_selection, support_multidevice, proxy_menu_item, length, overwrite_mode, format, resize_mode, action_name, type_from_name, use_preview_label, tooltip_markup, events, wrap_mode, start_iter, text_size_group, page_increment, wrap, item_width, iter_at_line_index, margin_left, settings, filenames, copyright, version, height, text, filter, detailed_action_name, mode, wmclass, child, object_type, icon_drag_source, columns, layout_offsets, start_line, fill_level, allocated_width, focus_vadjustment, iter_first, relief, snap_to_ticks, fraction, mapped, radio, preview_widget, resize_grip_area, editable, show_expanders, item_orientation, enable_search, debug_updates, font_options, composite_name, gicon, match_func, select_multiple, show_style, input_hints, chars, inverted, icon_from_pixbuf, pixbuf_column, context_id, role, reserve_indicator, child_requisition, clickable, tab_reorderable, qdata, icon_at_pos, alternative_button_order_from_array, restrict_to_fill_level, tabs, keep_above, icon, children, current_name, hadjustment, action_target_value, has_alpha, authors, filter_func, icon_set, pixels, device_events, expand, wrap_license, decorated, requisition, policy, cell_allocation, widget, max_width, selectable, visible_vertical, n_channels, current_path_string, drag_dest_item, increments, overwrite, skip_taskbar_hint, item_row, rgba, frame_counter, limit, cursor_hadjustment, relief_style, current_folder, preview_uri, value, headers_visible, show_private, edit_widget, icon_widget, use_markup, pointer, show_size, marshal, has_selection, position, visible, scale, accepts_tab, buffer, text_length, drop_highlight_item, private_hint, response_for_widget, cell_rect, column_drag_function, applications, min_content_width, style, visible_column, popup_completion, use_font, refresh_interval, margin_end, label_align, column_spacing, allocated_baseline, has_window, left_gravity, x_offset, icon_from_stock, titlebar, value_pos, vexpand_set, fit_model, dest_row_at_pos, app_paintable, cancel_label, search_column, background_color, range, menu_label_text, focus_cell, completion_prefix, border_width, allocated_size, draw_sensitive, default_geometry, valign_with_baseline, column_types, insert, data_type, option_group, selected_items, color, scrollable, path_for_child, iter_from_string, logo, indent, round_digits, action_group, border_window_size, state_flags, visible_range, selection_mode, text_with_mnemonic, overlay_scrolling, spacing, edited_cell, cells, local_only, grid_lines, files, active_text, mnemonic_keyval, object, icon_list, default_attributes, auto_startup_notification, use_drag_window, line_yrange, iter_at_offset, section, modifier_mask, modify_func, rubber_banding, always_show_image, artists, item_index, margin, fixed_height_from_font, activates_default, column_type, lower, clip, message_area, item_padding, from_gicon, selected, has_frame, geometry_hints, screen, animation, comments, show_tabs, child2, minimum_increment, tag_table, search_entry, mime_type, disabled, cell_data, focus_chain, icon_factory, tooltip_column, preview_widget_active, dest_item_at_pos, colorspace, frame_time, from_icon_set, end_iter, name, icon_stock, focus_on_click, widget_for_response, extensions, license_type, show_events, line_at_y, ppd_name, icon_storage_type, track_visited_links, target_list, can_focus, iter, visible_horizontal, tab_label, font_map, page_size, min_width, reallocate_redraws, font_desc, mime_types, group_name, display, padding, content_area, size, propagate_natural_height, paste_target_list, template_child, skip_pager_hint, n_columns, margin_start, allocated_height, default_top_margin, preview_filename, icon_area, enable_tree_lines, app_info, translation_domain, selection_bound, render_icon_pixbuf, mnemonic_modifier, iter_at_location, age, mnemonics_visible, pixels_inside_wrap, redraw_on_allocate, show_icons, displayed_row, icon_sensitive, tooltip_text, angle, fixed_height_mode, focus, paper_sizes, preferred_height_and_baseline_for_width, pixel_size, root_window, pattern, content_type, current_folder_uri, show_fill_level, draw, show_text, selection_bounds, tree_view, entry, visited, arrow_tooltip_text, tab_detachable, right_justified, focus_child, markup, border function marshal(closure::Gtk.GClosure, marshal_) ccall((:g_closure_set_marshal, Gtk.GLib.libgobject), Nothing, (Ptr{Gtk.GClosure}, Ptr{Nothing}), closure, marshal_) return closure @@ -43,22 +42,22 @@ $(Expr(:toplevel, :(module GAccessor return show_events_ end function frame_counter(timings::Gtk.GdkFrameTimings) - return ccall((:gdk_frame_timings_get_frame_counter, Gtk.libgdk), Clong, (Ptr{Gtk.GdkFrameTimings},), timings) + return ccall((:gdk_frame_timings_get_frame_counter, Gtk.libgdk), Clonglong, (Ptr{Gtk.GdkFrameTimings},), timings) end function complete(timings::Gtk.GdkFrameTimings) return convert(Bool, ccall((:gdk_frame_timings_get_complete, Gtk.libgdk), Cint, (Ptr{Gtk.GdkFrameTimings},), timings)) end function frame_time(timings::Gtk.GdkFrameTimings) - return ccall((:gdk_frame_timings_get_frame_time, Gtk.libgdk), Clong, (Ptr{Gtk.GdkFrameTimings},), timings) + return ccall((:gdk_frame_timings_get_frame_time, Gtk.libgdk), Clonglong, (Ptr{Gtk.GdkFrameTimings},), timings) end function presentation_time(timings::Gtk.GdkFrameTimings) - return ccall((:gdk_frame_timings_get_presentation_time, Gtk.libgdk), Clong, (Ptr{Gtk.GdkFrameTimings},), timings) + return ccall((:gdk_frame_timings_get_presentation_time, Gtk.libgdk), Clonglong, (Ptr{Gtk.GdkFrameTimings},), timings) end function refresh_interval(timings::Gtk.GdkFrameTimings) - return ccall((:gdk_frame_timings_get_refresh_interval, Gtk.libgdk), Clong, (Ptr{Gtk.GdkFrameTimings},), timings) + return ccall((:gdk_frame_timings_get_refresh_interval, Gtk.libgdk), Clonglong, (Ptr{Gtk.GdkFrameTimings},), timings) end function predicted_presentation_time(timings::Gtk.GdkFrameTimings) - return ccall((:gdk_frame_timings_get_predicted_presentation_time, Gtk.libgdk), Clong, (Ptr{Gtk.GdkFrameTimings},), timings) + return ccall((:gdk_frame_timings_get_predicted_presentation_time, Gtk.libgdk), Clonglong, (Ptr{Gtk.GdkFrameTimings},), timings) end function debug_updates(setting::Bool) ccall((:gdk_window_set_debug_updates, Gtk.libgdk), Nothing, (Cint,), setting) @@ -89,7 +88,7 @@ $(Expr(:toplevel, :(module GAccessor return ccall((:gdk_pixbuf_get_rowstride, Gtk.libgdk_pixbuf), Cint, (Ptr{Gtk.GObject},), pixbuf) end function byte_length(pixbuf::Gtk.GdkPixbuf) - return ccall((:gdk_pixbuf_get_byte_length, Gtk.libgdk_pixbuf), Culong, (Ptr{Gtk.GObject},), pixbuf) + return ccall((:gdk_pixbuf_get_byte_length, Gtk.libgdk_pixbuf), Culonglong, (Ptr{Gtk.GObject},), pixbuf) end function pixels_with_length(pixbuf::Gtk.GdkPixbuf) length = Gtk.mutable(UInt32) @@ -175,11 +174,16 @@ $(Expr(:toplevel, :(module GAccessor ccall((:gtk_widget_get_preferred_height_and_baseline_for_width, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cint}), widget, width, minimum_height, natural_height, minimum_baseline, natural_baseline) return (minimum_height[], natural_height[], minimum_baseline[], natural_baseline[]) end - function preferred_size(widget::Gtk.GtkWidget, minimum_size, natural_size) - return ccall((:gtk_widget_get_preferred_size, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}, Ptr{Nothing}), widget, minimum_size, natural_size) + function preferred_size(widget::Gtk.GtkWidget) + natural_size = Gtk.mutable(Gtk.GtkRequisition) + minimum_size = Gtk.mutable(Gtk.GtkRequisition) + ccall((:gtk_widget_get_preferred_size, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkRequisition}, Ptr{Gtk.GtkRequisition}), widget, minimum_size, natural_size) + return (minimum_size[], natural_size[]) end - function child_requisition(widget::Gtk.GtkWidget, requisition) - return ccall((:gtk_widget_get_child_requisition, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), widget, requisition) + function child_requisition(widget::Gtk.GtkWidget) + requisition = Gtk.mutable(Gtk.GtkRequisition) + ccall((:gtk_widget_get_child_requisition, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkRequisition}), widget, requisition) + return requisition[] end function accel_path(widget::Gtk.GtkWidget, accel_path_, accel_group) ccall((:gtk_widget_set_accel_path, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}, Ptr{Gtk.GObject}), widget, accel_path_, accel_group) @@ -348,8 +352,10 @@ $(Expr(:toplevel, :(module GAccessor ccall((:gtk_widget_get_clip, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GdkRectangle}), widget, clip_) return clip_[] end - function requisition(widget::Gtk.GtkWidget, requisition_) - return ccall((:gtk_widget_get_requisition, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), widget, requisition_) + function requisition(widget::Gtk.GtkWidget) + requisition_ = Gtk.mutable(Gtk.GtkRequisition) + ccall((:gtk_widget_get_requisition, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkRequisition}), widget, requisition_) + return requisition_[] end function size_request(widget::Gtk.GtkWidget, width, height) ccall((:gtk_widget_set_size_request, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Cint), widget, width, height) @@ -387,7 +393,7 @@ $(Expr(:toplevel, :(module GAccessor return convert(Gtk.GtkWidget, ccall((:gtk_widget_get_toplevel, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject},), widget)) end function ancestor(widget::Gtk.GtkWidget, widget_type) - return convert(Gtk.GtkWidget, ccall((:gtk_widget_get_ancestor, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject}, Culong), widget, widget_type)) + return convert(Gtk.GtkWidget, ccall((:gtk_widget_get_ancestor, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject}, Culonglong), widget, widget_type)) end function visual(widget::Gtk.GtkWidget) return ccall((:gtk_widget_get_visual, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), widget) @@ -588,7 +594,7 @@ $(Expr(:toplevel, :(module GAccessor return ccall((:gtk_widget_get_modifier_mask, Gtk.libgtk), Cint, (Ptr{Gtk.GObject}, Cint), widget, intent) end function template_child(widget::Gtk.GtkWidget, widget_type, name) - return convert(Gtk.GObject, ccall((:gtk_widget_get_template_child, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject}, Culong, Ptr{UInt8}), widget, widget_type, name)) + return convert(Gtk.GObject, ccall((:gtk_widget_get_template_child, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GObject}, Culonglong, Ptr{UInt8}), widget, widget_type, name)) end function action_group(widget::Gtk.GtkWidget, prefix) return ccall((:gtk_widget_get_action_group, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject}, Ptr{UInt8}), widget, prefix) @@ -1442,7 +1448,7 @@ $(Expr(:toplevel, :(module GAccessor return ccall((:gtk_tree_model_get_n_columns, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), tree_model) end function column_type(tree_model::Gtk.GtkTreeModel, index_) - return ccall((:gtk_tree_model_get_column_type, Gtk.libgtk), Culong, (Ptr{Gtk.GObject}, Cint), tree_model, index_) + return ccall((:gtk_tree_model_get_column_type, Gtk.libgtk), Culonglong, (Ptr{Gtk.GObject}, Cint), tree_model, index_) end function iter(tree_model::Gtk.GtkTreeModel) path = Gtk.mutable(Gtk.GtkTreePath) @@ -1465,7 +1471,7 @@ $(Expr(:toplevel, :(module GAccessor return (convert(Gtk.GtkTreePath, ccall((:gtk_tree_model_get_path, Gtk.libgtk), Ptr{Gtk.GtkTreePath}, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkTreeIter}), tree_model, iter)), iter[]) end function value(tree_model::Gtk.GtkTreeModel, iter, column, value_) - return ccall((:gtk_tree_model_get_value, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ref{Gtk.GtkTreeIter}, Cint, Ptr{Nothing}), tree_model, iter, column, value_) + return ccall((:gtk_tree_model_get_value, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkTreeIter}, Cint, Ptr{Nothing}), tree_model, iter, column, value_) end function request_mode(cell::Gtk.GtkCellRenderer) return ccall((:gtk_cell_renderer_get_request_mode, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), cell) @@ -1494,8 +1500,11 @@ $(Expr(:toplevel, :(module GAccessor ccall((:gtk_cell_renderer_get_preferred_width_for_height, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}, Cint, Ptr{Cint}, Ptr{Cint}), cell, widget, height, minimum_width, natural_width) return (minimum_width[], natural_width[]) end - function preferred_size(cell::Gtk.GtkCellRenderer, widget, minimum_size, natural_size) - return ccall((:gtk_cell_renderer_get_preferred_size, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}, Ptr{Nothing}, Ptr{Nothing}), cell, widget, minimum_size, natural_size) + function preferred_size(cell::Gtk.GtkCellRenderer, widget) + natural_size = Gtk.mutable(Gtk.GtkRequisition) + minimum_size = Gtk.mutable(Gtk.GtkRequisition) + ccall((:gtk_cell_renderer_get_preferred_size, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GObject}, Ptr{Gtk.GtkRequisition}, Ptr{Gtk.GtkRequisition}), cell, widget, minimum_size, natural_size) + return (minimum_size[], natural_size[]) end function aligned_area(cell::Gtk.GtkCellRenderer, widget, flags) aligned_area_ = Gtk.mutable(Gtk.GdkRectangle) @@ -1876,7 +1885,7 @@ $(Expr(:toplevel, :(module GAccessor return convert(Bool, ccall((:gtk_editable_get_editable, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), editable_)) end function column_types(list_store::Gtk.GtkListStore, n_columns, types) - ccall((:gtk_list_store_set_column_types, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Culong}), list_store, n_columns, types) + ccall((:gtk_list_store_set_column_types, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Culonglong}), list_store, n_columns, types) return list_store end function value(list_store::Gtk.GtkListStore, iter, column, value_) @@ -1892,7 +1901,7 @@ $(Expr(:toplevel, :(module GAccessor return filter end function modify_func(filter::Gtk.GtkTreeModelFilter, n_columns, types, func, data, destroy) - ccall((:gtk_tree_model_filter_set_modify_func, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Culong}, Ptr{Nothing}, Ptr{Nothing}, Ptr{Nothing}), filter, n_columns, types, func, data, destroy) + ccall((:gtk_tree_model_filter_set_modify_func, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Culonglong}, Ptr{Nothing}, Ptr{Nothing}, Ptr{Nothing}), filter, n_columns, types, func, data, destroy) return filter end function visible_column(filter::Gtk.GtkTreeModelFilter, column) @@ -2613,7 +2622,7 @@ $(Expr(:toplevel, :(module GAccessor end function type_from_name(builder::Gtk.GtkBuilder) type_name = Gtk.mutable(UInt8) - return (ccall((:gtk_builder_get_type_from_name, Gtk.libgtk), Culong, (Ptr{Gtk.GObject}, Ptr{UInt8}), builder, type_name), type_name[]) + return (ccall((:gtk_builder_get_type_from_name, Gtk.libgtk), Culonglong, (Ptr{Gtk.GObject}, Ptr{UInt8}), builder, type_name), type_name[]) end function application(builder::Gtk.GtkBuilder, application_) ccall((:gtk_builder_set_application, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), builder, application_) @@ -2799,7 +2808,7 @@ $(Expr(:toplevel, :(module GAccessor return convert(Gtk.GtkTreePath, ccall((:gtk_cell_view_get_displayed_row, Gtk.libgtk), Ptr{Gtk.GtkTreePath}, (Ptr{Gtk.GObject},), cell_view)) end function background_rgba(cell_view::Gtk.GtkCellView, rgba) - ccall((:gtk_cell_view_set_background_rgba, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), cell_view, rgba) + ccall((:gtk_cell_view_set_background_rgba, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GdkRGBA}), cell_view, rgba) return cell_view end function draw_sensitive(cell_view::Gtk.GtkCellView) @@ -2816,9 +2825,10 @@ $(Expr(:toplevel, :(module GAccessor ccall((:gtk_cell_view_set_fit_model, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), cell_view, fit_model_) return cell_view end - function size_of_row(cell_view::Gtk.GtkCellView, requisition) + function size_of_row(cell_view::Gtk.GtkCellView) + requisition = Gtk.mutable(Gtk.GtkRequisition) path = Gtk.mutable(Gtk.GtkTreePath) - return (convert(Bool, ccall((:gtk_cell_view_get_size_of_row, Gtk.libgtk), Cint, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkTreePath}, Ptr{Nothing}), cell_view, path, requisition)), path[]) + return (convert(Bool, ccall((:gtk_cell_view_get_size_of_row, Gtk.libgtk), Cint, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkTreePath}, Ptr{Gtk.GtkRequisition}), cell_view, path, requisition)), path[], requisition[]) end function background_color(cell_view::Gtk.GtkCellView, color) ccall((:gtk_cell_view_set_background_color, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), cell_view, color) @@ -2887,8 +2897,14 @@ $(Expr(:toplevel, :(module GAccessor function reserve_indicator(menu_item::Gtk.GtkMenuItem) return convert(Bool, ccall((:gtk_menu_item_get_reserve_indicator, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), menu_item)) end + function rgba(chooser::Gtk.GtkColorChooser) + color = Gtk.mutable(Gtk.GdkRGBA) + ccall((:gtk_color_chooser_get_rgba, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GdkRGBA}), chooser, color) + return color[] + end function rgba(chooser::Gtk.GtkColorChooser, color) - return ccall((:gtk_color_chooser_get_rgba, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), chooser, color) + ccall((:gtk_color_chooser_set_rgba, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Gtk.GdkRGBA}), chooser, color) + return chooser end function use_alpha(chooser::Gtk.GtkColorChooser) return convert(Bool, ccall((:gtk_color_chooser_get_use_alpha, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), chooser)) @@ -3291,6 +3307,23 @@ $(Expr(:toplevel, :(module GAccessor function font_map(fontchooser::Gtk.GtkFontChooser) return ccall((:gtk_font_chooser_get_font_map, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject},), fontchooser) end + function level(fontchooser::Gtk.GtkFontChooser, level_) + ccall((:gtk_font_chooser_set_level, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint), fontchooser, level_) + return fontchooser + end + function level(fontchooser::Gtk.GtkFontChooser) + return ccall((:gtk_font_chooser_get_level, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), fontchooser) + end + function font_features(fontchooser::Gtk.GtkFontChooser) + return ccall((:gtk_font_chooser_get_font_features, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), fontchooser) + end + function language(fontchooser::Gtk.GtkFontChooser) + return ccall((:gtk_font_chooser_get_language, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GObject},), fontchooser) + end + function language(fontchooser::Gtk.GtkFontChooser, language_) + ccall((:gtk_font_chooser_set_language, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}), fontchooser, language_) + return fontchooser + end function style(provider::Gtk.GtkStyleProvider) path = Gtk.mutable(Gtk.GtkWidgetPath) return (ccall((:gtk_style_provider_get_style, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject}, Ptr{Gtk.GtkWidgetPath}), provider, path), path[]) @@ -3378,14 +3411,20 @@ $(Expr(:toplevel, :(module GAccessor function junction_sides(context::Gtk.GtkStyleContext) return ccall((:gtk_style_context_get_junction_sides, Gtk.libgtk), Cint, (Ptr{Gtk.GObject},), context) end - function color(context::Gtk.GtkStyleContext, state, color_) - return ccall((:gtk_style_context_get_color, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Nothing}), context, state, color_) + function color(context::Gtk.GtkStyleContext, state) + color_ = Gtk.mutable(Gtk.GdkRGBA) + ccall((:gtk_style_context_get_color, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Gtk.GdkRGBA}), context, state, color_) + return color_[] end - function background_color(context::Gtk.GtkStyleContext, state, color) - return ccall((:gtk_style_context_get_background_color, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Nothing}), context, state, color) + function background_color(context::Gtk.GtkStyleContext, state) + color = Gtk.mutable(Gtk.GdkRGBA) + ccall((:gtk_style_context_get_background_color, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Gtk.GdkRGBA}), context, state, color) + return color[] end - function border_color(context::Gtk.GtkStyleContext, state, color) - return ccall((:gtk_style_context_get_border_color, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Nothing}), context, state, color) + function border_color(context::Gtk.GtkStyleContext, state) + color = Gtk.mutable(Gtk.GdkRGBA) + ccall((:gtk_style_context_get_border_color, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Gtk.GdkRGBA}), context, state, color) + return color[] end function font(context::Gtk.GtkStyleContext, state) return ccall((:gtk_style_context_get_font, Gtk.libgtk), Ptr{Nothing}, (Ptr{Gtk.GObject}, Cint), context, state) @@ -4117,30 +4156,30 @@ $(Expr(:toplevel, :(module GAccessor return ccall((:gtk_recent_info_get_mime_type, Gtk.libgtk), Ptr{UInt8}, (Ptr{Gtk.GtkRecentInfo},), info) end function added(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_added, Gtk.libgtk), Clong, (Ptr{Gtk.GtkRecentInfo},), info) + return ccall((:gtk_recent_info_get_added, Gtk.libgtk), Clonglong, (Ptr{Gtk.GtkRecentInfo},), info) end function modified(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_modified, Gtk.libgtk), Clong, (Ptr{Gtk.GtkRecentInfo},), info) + return ccall((:gtk_recent_info_get_modified, Gtk.libgtk), Clonglong, (Ptr{Gtk.GtkRecentInfo},), info) end function visited(info::Gtk.GtkRecentInfo) - return ccall((:gtk_recent_info_get_visited, Gtk.libgtk), Clong, (Ptr{Gtk.GtkRecentInfo},), info) + return ccall((:gtk_recent_info_get_visited, Gtk.libgtk), Clonglong, (Ptr{Gtk.GtkRecentInfo},), info) end function private_hint(info::Gtk.GtkRecentInfo) return convert(Bool, ccall((:gtk_recent_info_get_private_hint, Gtk.libgtk), Cint, (Ptr{Gtk.GtkRecentInfo},), info)) end function application_info(info::Gtk.GtkRecentInfo, app_name) - time_ = Gtk.mutable(Clong) + time_ = Gtk.mutable(Clonglong) count = Gtk.mutable(UInt32) app_exec = Gtk.mutable(Ptr{UInt8}) - return (convert(Bool, ccall((:gtk_recent_info_get_application_info, Gtk.libgtk), Cint, (Ptr{Gtk.GtkRecentInfo}, Ptr{UInt8}, Ptr{Ptr{UInt8}}, Ptr{UInt32}, Ptr{Clong}), info, app_name, app_exec, count, time_)), app_exec[], count[], time_[]) + return (convert(Bool, ccall((:gtk_recent_info_get_application_info, Gtk.libgtk), Cint, (Ptr{Gtk.GtkRecentInfo}, Ptr{UInt8}, Ptr{Ptr{UInt8}}, Ptr{UInt32}, Ptr{Clonglong}), info, app_name, app_exec, count, time_)), app_exec[], count[], time_[]) end function applications(info::Gtk.GtkRecentInfo) - length = Gtk.mutable(Culong) - return (ccall((:gtk_recent_info_get_applications, Gtk.libgtk), Ptr{Ptr{UInt8}}, (Ptr{Gtk.GtkRecentInfo}, Ptr{Culong}), info, length), length[]) + length = Gtk.mutable(Culonglong) + return (ccall((:gtk_recent_info_get_applications, Gtk.libgtk), Ptr{Ptr{UInt8}}, (Ptr{Gtk.GtkRecentInfo}, Ptr{Culonglong}), info, length), length[]) end function groups(info::Gtk.GtkRecentInfo) - length = Gtk.mutable(Culong) - return (ccall((:gtk_recent_info_get_groups, Gtk.libgtk), Ptr{Ptr{UInt8}}, (Ptr{Gtk.GtkRecentInfo}, Ptr{Culong}), info, length), length[]) + length = Gtk.mutable(Culonglong) + return (ccall((:gtk_recent_info_get_groups, Gtk.libgtk), Ptr{Ptr{UInt8}}, (Ptr{Gtk.GtkRecentInfo}, Ptr{Culonglong}), info, length), length[]) end function icon(info::Gtk.GtkRecentInfo, size) return convert(Gtk.GdkPixbuf, ccall((:gtk_recent_info_get_icon, Gtk.libgtk), Ptr{Gtk.GObject}, (Ptr{Gtk.GtkRecentInfo}, Cint), info, size)) @@ -4231,8 +4270,8 @@ $(Expr(:toplevel, :(module GAccessor return ccall((:gtk_recent_chooser_get_items, Gtk.libgtk), Ptr{Gtk._GList{Nothing}}, (Ptr{Gtk.GObject},), chooser) end function uris(chooser::Gtk.GtkRecentChooser) - length = Gtk.mutable(Culong) - return (ccall((:gtk_recent_chooser_get_uris, Gtk.libgtk), Ptr{Ptr{UInt8}}, (Ptr{Gtk.GObject}, Ptr{Culong}), chooser, length), length[]) + length = Gtk.mutable(Culonglong) + return (ccall((:gtk_recent_chooser_get_uris, Gtk.libgtk), Ptr{Ptr{UInt8}}, (Ptr{Gtk.GObject}, Ptr{Culonglong}), chooser, length), length[]) end function filter(chooser::Gtk.GtkRecentChooser, filter_) ccall((:gtk_recent_chooser_set_filter, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{Nothing}), chooser, filter_) @@ -4924,7 +4963,7 @@ $(Expr(:toplevel, :(module GAccessor return (ccall((:gtk_tree_selection_get_selected_rows, Gtk.libgtk), Ptr{Gtk._GList{Nothing}}, (Ptr{Gtk.GObject}, Ptr{Ptr{Gtk.GObject}}), selection, model), convert(Gtk.GtkTreeModel, model[])) end function column_types(tree_store::Gtk.GtkTreeStore, n_columns, types) - ccall((:gtk_tree_store_set_column_types, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Culong}), tree_store, n_columns, types) + ccall((:gtk_tree_store_set_column_types, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Cint, Ptr{Culonglong}), tree_store, n_columns, types) return tree_store end function value(tree_store::Gtk.GtkTreeStore, iter, column, value_) @@ -4936,10 +4975,10 @@ $(Expr(:toplevel, :(module GAccessor return tree_store end function object_type(path::Gtk.GtkWidgetPath, pos) - return ccall((:gtk_widget_path_iter_get_object_type, Gtk.libgtk), Culong, (Ptr{Gtk.GtkWidgetPath}, Cint), path, pos) + return ccall((:gtk_widget_path_iter_get_object_type, Gtk.libgtk), Culonglong, (Ptr{Gtk.GtkWidgetPath}, Cint), path, pos) end function object_type(path::Gtk.GtkWidgetPath, pos, type_) - ccall((:gtk_widget_path_iter_set_object_type, Gtk.libgtk), Nothing, (Ptr{Gtk.GtkWidgetPath}, Cint, Culong), path, pos, type_) + ccall((:gtk_widget_path_iter_set_object_type, Gtk.libgtk), Nothing, (Ptr{Gtk.GtkWidgetPath}, Cint, Culonglong), path, pos, type_) return path end function object_name(path::Gtk.GtkWidgetPath, pos) @@ -4970,7 +5009,7 @@ $(Expr(:toplevel, :(module GAccessor return path end function object_type(path::Gtk.GtkWidgetPath) - return ccall((:gtk_widget_path_get_object_type, Gtk.libgtk), Culong, (Ptr{Gtk.GtkWidgetPath},), path) + return ccall((:gtk_widget_path_get_object_type, Gtk.libgtk), Culonglong, (Ptr{Gtk.GtkWidgetPath},), path) end begin function default_icon_list() diff --git a/gen/gconsts2 b/gen/gconsts2 deleted file mode 100644 index 26c394fc..00000000 --- a/gen/gconsts2 +++ /dev/null @@ -1,2945 +0,0 @@ -quote -$(Expr(:toplevel, :(module GConstants - export GThreadError, GOnceStatus, GBookmarkFileError, GChecksumType, GConvertError, GDateDMY, GDateWeekday, GDateMonth, GTimeType, GFileError, GFileTest, GTraverseFlags, GTraverseType, GHookFlagMask, GIOCondition, GUnicodeType, GUnicodeBreakType, GUnicodeScript, GNormalizeMode, GUserDirectory, GFormatSizeFlags, GIOError, GIOChannelError, GIOStatus, GSeekType, GIOFlags, GKeyFileError, GKeyFileFlags, GMarkupError, GMarkupParseFlags, GMarkupCollectType, GLogLevelFlags, GOptionFlags, GOptionArg, GOptionError, GRegexError, GRegexCompileFlags, GRegexMatchFlags, GErrorType, GTokenType, GShellError, GSliceConfig, GSpawnError, GSpawnFlags, GAsciiType, GTestTrapFlags, GTestSubprocessFlags, GTestLogType, GTestFileType, GVariantClass, GVariantParseError, GThreadPriority, GTypeDebugFlags, GTypeFundamentalFlags, GTypeFlags, GParamFlags, GSignalFlags, GConnectFlags, GSignalMatchType, GBindingFlags, GAppInfoCreateFlags, GConverterFlags, GConverterResult, GDataStreamByteOrder, GDataStreamNewlineType, GFileAttributeType, GFileAttributeInfoFlags, GFileAttributeStatus, GFileQueryInfoFlags, GFileCreateFlags, GFileMeasureFlags, GMountMountFlags, GMountUnmountFlags, GDriveStartFlags, GDriveStartStopType, GFileCopyFlags, GFileMonitorFlags, GFileType, GFilesystemPreviewType, GFileMonitorEvent, GIOErrorEnum, GAskPasswordFlags, GPasswordSave, GMountOperationResult, GOutputStreamSpliceFlags, GIOStreamSpliceFlags, GEmblemOrigin, GResolverError, GResolverRecordType, GResourceError, GResourceFlags, GResourceLookupFlags, GSocketFamily, GSocketType, GSocketMsgFlags, GSocketProtocol, GZlibCompressorFormat, GUnixSocketAddressType, GBusType, GBusNameOwnerFlags, GBusNameWatcherFlags, GDBusProxyFlags, GDBusError, GDBusConnectionFlags, GDBusCapabilityFlags, GDBusCallFlags, GDBusMessageType, GDBusMessageFlags, GDBusMessageHeaderField, GDBusPropertyInfoFlags, GDBusSubtreeFlags, GDBusServerFlags, GDBusSignalFlags, GDBusSendMessageFlags, GCredentialsType, GDBusMessageByteOrder, GApplicationFlags, GTlsError, GTlsCertificateFlags, GTlsAuthenticationMode, GTlsRehandshakeMode, GTlsPasswordFlags, GTlsInteractionResult, GDBusInterfaceSkeletonFlags, GDBusObjectManagerClientFlags, GTlsDatabaseVerifyFlags, GTlsDatabaseLookupFlags, GTlsCertificateRequestFlags, GIOModuleScopeFlags, GSocketClientEvent, GTestDBusFlags, GSubprocessFlags, GModuleFlags, GSettingsBindFlags, GdkByteOrder, GdkModifierType, GdkInputCondition, GdkStatus, GdkGrabStatus, GdkDragAction, GdkDragProtocol, GdkExtensionMode, GdkInputSource, GdkInputMode, GdkAxisUse, GdkFilterReturn, GdkEventType, GdkEventMask, GdkVisibilityState, GdkScrollDirection, GdkNotifyType, GdkCrossingMode, GdkPropertyState, GdkWindowState, GdkSettingAction, GdkOwnerChange, GdkRgbDither, GdkPixbufAlphaMode, GdkColorspace, GdkPixbufError, GdkInterpType, GdkPixbufRotation, GdkCursorType, GdkCapStyle, GdkFill, GdkFunction, GdkJoinStyle, GdkLineStyle, GdkSubwindowMode, GdkGCValuesMask, GdkFontType, GdkImageType, GdkPropMode, GdkFillRule, GdkOverlapType, GdkWindowClass, GdkWindowType, GdkWindowAttributesType, GdkWindowHints, GdkWindowTypeHint, GdkWMDecoration, GdkWMFunction, GdkGravity, GdkWindowEdge, GdkVisualType, GtkAnchorType, GtkArrowPlacement, GtkArrowType, GtkAttachOptions, GtkButtonBoxStyle, GtkCurveType, GtkDeleteType, GtkDirectionType, GtkExpanderStyle, GtkIconSize, GtkSensitivityType, GtkSideType, GtkTextDirection, GtkJustification, GtkMatchType, GtkMenuDirectionType, GtkMessageType, GtkMetricType, GtkMovementStep, GtkScrollStep, GtkOrientation, GtkCornerType, GtkPackType, GtkPathPriorityType, GtkPathType, GtkPolicyType, GtkPositionType, GtkPreviewType, GtkReliefStyle, GtkResizeMode, GtkSignalRunType, GtkScrollType, GtkSelectionMode, GtkShadowType, GtkStateType, GtkSubmenuDirection, GtkSubmenuPlacement, GtkToolbarStyle, GtkUpdateType, GtkVisibility, GtkWindowPosition, GtkWindowType, GtkWrapMode, GtkSortType, GtkIMPreeditStyle, GtkIMStatusStyle, GtkPackDirection, GtkPrintPages, GtkPageSet, GtkNumberUpLayout, GtkPageOrientation, GtkPrintQuality, GtkPrintDuplex, GtkUnit, GtkTreeViewGridLines, GtkDragResult, GtkAccelFlags, GtkDebugFlag, GtkObjectFlags, GtkArgFlags, GtkRcFlags, GtkRcTokenType, GtkWidgetFlags, GtkWidgetHelpType, GtkDialogFlags, GtkResponseType, GtkAssistantPageType, GtkBuilderError, GtkImageType, GtkCalendarDisplayOptions, GtkCellRendererState, GtkCellRendererMode, GtkTreeModelFlags, GtkTreeViewColumnSizing, GtkCellRendererAccelMode, GtkTextSearchFlags, GtkDestDefaults, GtkTargetFlags, GtkEntryIconPosition, GtkTreeViewDropPosition, GtkFileFilterFlags, GtkFileChooserAction, GtkFileChooserConfirmation, GtkFileChooserError, GtkIconLookupFlags, GtkIconThemeError, GtkIconViewDropPosition, GtkSizeGroupMode, GtkButtonsType, GtkNotebookTab, GtkPrintStatus, GtkPrintOperationResult, GtkPrintOperationAction, GtkPrintError, GtkProgressBarStyle, GtkProgressBarOrientation, GtkRecentManagerError, GtkRecentFilterFlags, GtkRecentSortType, GtkRecentChooserError, GtkSpinButtonUpdatePolicy, GtkSpinType, GtkTextBufferTargetInfo, GtkTextWindowType, GtkToolbarChildType, GtkToolbarSpaceStyle, GtkToolPaletteDragTargets, GtkUIManagerItemType, GtkCellType, GtkCListDragPos, GtkButtonAction, GtkCTreePos, GtkCTreeLineStyle, GtkCTreeExpanderStyle, GtkCTreeExpansionType - $(Expr(:toplevel, :(baremodule GThreadError - const AGAIN = const G_THREAD_ERROR_AGAIN = Main.Base.convert(Main.Base.Int32,0) - end))) - $(Expr(:toplevel, :(baremodule GOnceStatus - const NOTCALLED = const G_ONCE_STATUS_NOTCALLED = Main.Base.convert(Main.Base.Int32,0) - const PROGRESS = const G_ONCE_STATUS_PROGRESS = Main.Base.convert(Main.Base.Int32,1) - const READY = const G_ONCE_STATUS_READY = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GBookmarkFileError - const INVALID_URI = const G_BOOKMARK_FILE_ERROR_INVALID_URI = Main.Base.convert(Main.Base.Int32,0) - const INVALID_VALUE = const G_BOOKMARK_FILE_ERROR_INVALID_VALUE = Main.Base.convert(Main.Base.Int32,1) - const APP_NOT_REGISTERED = const G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED = Main.Base.convert(Main.Base.Int32,2) - const URI_NOT_FOUND = const G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND = Main.Base.convert(Main.Base.Int32,3) - const READ = const G_BOOKMARK_FILE_ERROR_READ = Main.Base.convert(Main.Base.Int32,4) - const UNKNOWN_ENCODING = const G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING = Main.Base.convert(Main.Base.Int32,5) - const WRITE = const G_BOOKMARK_FILE_ERROR_WRITE = Main.Base.convert(Main.Base.Int32,6) - const FILE_NOT_FOUND = const G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND = Main.Base.convert(Main.Base.Int32,7) - end))) - $(Expr(:toplevel, :(baremodule GChecksumType - const MD5 = const G_CHECKSUM_MD5 = Main.Base.convert(Main.Base.Int32,0) - const SHA1 = const G_CHECKSUM_SHA1 = Main.Base.convert(Main.Base.Int32,1) - const SHA256 = const G_CHECKSUM_SHA256 = Main.Base.convert(Main.Base.Int32,2) - const SHA512 = const G_CHECKSUM_SHA512 = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GConvertError - const NO_CONVERSION = const G_CONVERT_ERROR_NO_CONVERSION = Main.Base.convert(Main.Base.Int32,0) - const ILLEGAL_SEQUENCE = const G_CONVERT_ERROR_ILLEGAL_SEQUENCE = Main.Base.convert(Main.Base.Int32,1) - const FAILED = const G_CONVERT_ERROR_FAILED = Main.Base.convert(Main.Base.Int32,2) - const PARTIAL_INPUT = const G_CONVERT_ERROR_PARTIAL_INPUT = Main.Base.convert(Main.Base.Int32,3) - const BAD_URI = const G_CONVERT_ERROR_BAD_URI = Main.Base.convert(Main.Base.Int32,4) - const NOT_ABSOLUTE_PATH = const G_CONVERT_ERROR_NOT_ABSOLUTE_PATH = Main.Base.convert(Main.Base.Int32,5) - const NO_MEMORY = const G_CONVERT_ERROR_NO_MEMORY = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GDateDMY - const DAY = const G_DATE_DAY = Main.Base.convert(Main.Base.Int32,0) - const MONTH = const G_DATE_MONTH = Main.Base.convert(Main.Base.Int32,1) - const YEAR = const G_DATE_YEAR = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GDateWeekday - const BAD_WEEKDAY = const G_DATE_BAD_WEEKDAY = Main.Base.convert(Main.Base.Int32,0) - const MONDAY = const G_DATE_MONDAY = Main.Base.convert(Main.Base.Int32,1) - const TUESDAY = const G_DATE_TUESDAY = Main.Base.convert(Main.Base.Int32,2) - const WEDNESDAY = const G_DATE_WEDNESDAY = Main.Base.convert(Main.Base.Int32,3) - const THURSDAY = const G_DATE_THURSDAY = Main.Base.convert(Main.Base.Int32,4) - const FRIDAY = const G_DATE_FRIDAY = Main.Base.convert(Main.Base.Int32,5) - const SATURDAY = const G_DATE_SATURDAY = Main.Base.convert(Main.Base.Int32,6) - const SUNDAY = const G_DATE_SUNDAY = Main.Base.convert(Main.Base.Int32,7) - end))) - $(Expr(:toplevel, :(baremodule GDateMonth - const BAD_MONTH = const G_DATE_BAD_MONTH = Main.Base.convert(Main.Base.Int32,0) - const JANUARY = const G_DATE_JANUARY = Main.Base.convert(Main.Base.Int32,1) - const FEBRUARY = const G_DATE_FEBRUARY = Main.Base.convert(Main.Base.Int32,2) - const MARCH = const G_DATE_MARCH = Main.Base.convert(Main.Base.Int32,3) - const APRIL = const G_DATE_APRIL = Main.Base.convert(Main.Base.Int32,4) - const MAY = const G_DATE_MAY = Main.Base.convert(Main.Base.Int32,5) - const JUNE = const G_DATE_JUNE = Main.Base.convert(Main.Base.Int32,6) - const JULY = const G_DATE_JULY = Main.Base.convert(Main.Base.Int32,7) - const AUGUST = const G_DATE_AUGUST = Main.Base.convert(Main.Base.Int32,8) - const SEPTEMBER = const G_DATE_SEPTEMBER = Main.Base.convert(Main.Base.Int32,9) - const OCTOBER = const G_DATE_OCTOBER = Main.Base.convert(Main.Base.Int32,10) - const NOVEMBER = const G_DATE_NOVEMBER = Main.Base.convert(Main.Base.Int32,11) - const DECEMBER = const G_DATE_DECEMBER = Main.Base.convert(Main.Base.Int32,12) - end))) - $(Expr(:toplevel, :(baremodule GTimeType - const STANDARD = const G_TIME_TYPE_STANDARD = Main.Base.convert(Main.Base.Int32,0) - const DAYLIGHT = const G_TIME_TYPE_DAYLIGHT = Main.Base.convert(Main.Base.Int32,1) - const UNIVERSAL = const G_TIME_TYPE_UNIVERSAL = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GFileError - const EXIST = const G_FILE_ERROR_EXIST = Main.Base.convert(Main.Base.Int32,0) - const ISDIR = const G_FILE_ERROR_ISDIR = Main.Base.convert(Main.Base.Int32,1) - const ACCES = const G_FILE_ERROR_ACCES = Main.Base.convert(Main.Base.Int32,2) - const NAMETOOLONG = const G_FILE_ERROR_NAMETOOLONG = Main.Base.convert(Main.Base.Int32,3) - const NOENT = const G_FILE_ERROR_NOENT = Main.Base.convert(Main.Base.Int32,4) - const NOTDIR = const G_FILE_ERROR_NOTDIR = Main.Base.convert(Main.Base.Int32,5) - const NXIO = const G_FILE_ERROR_NXIO = Main.Base.convert(Main.Base.Int32,6) - const NODEV = const G_FILE_ERROR_NODEV = Main.Base.convert(Main.Base.Int32,7) - const ROFS = const G_FILE_ERROR_ROFS = Main.Base.convert(Main.Base.Int32,8) - const TXTBSY = const G_FILE_ERROR_TXTBSY = Main.Base.convert(Main.Base.Int32,9) - const FAULT = const G_FILE_ERROR_FAULT = Main.Base.convert(Main.Base.Int32,10) - const LOOP = const G_FILE_ERROR_LOOP = Main.Base.convert(Main.Base.Int32,11) - const NOSPC = const G_FILE_ERROR_NOSPC = Main.Base.convert(Main.Base.Int32,12) - const NOMEM = const G_FILE_ERROR_NOMEM = Main.Base.convert(Main.Base.Int32,13) - const MFILE = const G_FILE_ERROR_MFILE = Main.Base.convert(Main.Base.Int32,14) - const NFILE = const G_FILE_ERROR_NFILE = Main.Base.convert(Main.Base.Int32,15) - const BADF = const G_FILE_ERROR_BADF = Main.Base.convert(Main.Base.Int32,16) - const INVAL = const G_FILE_ERROR_INVAL = Main.Base.convert(Main.Base.Int32,17) - const PIPE = const G_FILE_ERROR_PIPE = Main.Base.convert(Main.Base.Int32,18) - const AGAIN = const G_FILE_ERROR_AGAIN = Main.Base.convert(Main.Base.Int32,19) - const INTR = const G_FILE_ERROR_INTR = Main.Base.convert(Main.Base.Int32,20) - const IO = const G_FILE_ERROR_IO = Main.Base.convert(Main.Base.Int32,21) - const PERM = const G_FILE_ERROR_PERM = Main.Base.convert(Main.Base.Int32,22) - const NOSYS = const G_FILE_ERROR_NOSYS = Main.Base.convert(Main.Base.Int32,23) - const FAILED = const G_FILE_ERROR_FAILED = Main.Base.convert(Main.Base.Int32,24) - end))) - $(Expr(:toplevel, :(baremodule GFileTest - const IS_REGULAR = const G_FILE_TEST_IS_REGULAR = Main.Base.convert(Main.Base.Int32,1) - const IS_SYMLINK = const G_FILE_TEST_IS_SYMLINK = Main.Base.convert(Main.Base.Int32,2) - const IS_DIR = const G_FILE_TEST_IS_DIR = Main.Base.convert(Main.Base.Int32,4) - const IS_EXECUTABLE = const G_FILE_TEST_IS_EXECUTABLE = Main.Base.convert(Main.Base.Int32,8) - const EXISTS = const G_FILE_TEST_EXISTS = Main.Base.convert(Main.Base.Int32,16) - end))) - $(Expr(:toplevel, :(baremodule GTraverseFlags - const LEAVES = const G_TRAVERSE_LEAVES = Main.Base.convert(Main.Base.Int32,1) - const NON_LEAVES = const G_TRAVERSE_NON_LEAVES = Main.Base.convert(Main.Base.Int32,2) - const ALL = const G_TRAVERSE_ALL = Main.Base.convert(Main.Base.Int32,3) - const MASK = const G_TRAVERSE_MASK = Main.Base.convert(Main.Base.Int32,3) - const LEAFS = const G_TRAVERSE_LEAFS = Main.Base.convert(Main.Base.Int32,1) - const NON_LEAFS = const G_TRAVERSE_NON_LEAFS = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GTraverseType - const IN_ORDER = const G_IN_ORDER = Main.Base.convert(Main.Base.Int32,0) - const PRE_ORDER = const G_PRE_ORDER = Main.Base.convert(Main.Base.Int32,1) - const POST_ORDER = const G_POST_ORDER = Main.Base.convert(Main.Base.Int32,2) - const LEVEL_ORDER = const G_LEVEL_ORDER = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GHookFlagMask - const ACTIVE = const G_HOOK_FLAG_ACTIVE = Main.Base.convert(Main.Base.Int32,1) - const IN_CALL = const G_HOOK_FLAG_IN_CALL = Main.Base.convert(Main.Base.Int32,2) - const MASK = const G_HOOK_FLAG_MASK = Main.Base.convert(Main.Base.Int32,15) - end))) - $(Expr(:toplevel, :(baremodule GIOCondition - const IN = const G_IO_IN = Main.Base.convert(Main.Base.Int32,1) - const OUT = const G_IO_OUT = Main.Base.convert(Main.Base.Int32,4) - const PRI = const G_IO_PRI = Main.Base.convert(Main.Base.Int32,2) - const ERR = const G_IO_ERR = Main.Base.convert(Main.Base.Int32,8) - const HUP = const G_IO_HUP = Main.Base.convert(Main.Base.Int32,16) - const NVAL = const G_IO_NVAL = Main.Base.convert(Main.Base.Int32,32) - end))) - $(Expr(:toplevel, :(baremodule GUnicodeType - const CONTROL = const G_UNICODE_CONTROL = Main.Base.convert(Main.Base.Int32,0) - const FORMAT = const G_UNICODE_FORMAT = Main.Base.convert(Main.Base.Int32,1) - const UNASSIGNED = const G_UNICODE_UNASSIGNED = Main.Base.convert(Main.Base.Int32,2) - const PRIVATE_USE = const G_UNICODE_PRIVATE_USE = Main.Base.convert(Main.Base.Int32,3) - const SURROGATE = const G_UNICODE_SURROGATE = Main.Base.convert(Main.Base.Int32,4) - const LOWERCASE_LETTER = const G_UNICODE_LOWERCASE_LETTER = Main.Base.convert(Main.Base.Int32,5) - const MODIFIER_LETTER = const G_UNICODE_MODIFIER_LETTER = Main.Base.convert(Main.Base.Int32,6) - const OTHER_LETTER = const G_UNICODE_OTHER_LETTER = Main.Base.convert(Main.Base.Int32,7) - const TITLECASE_LETTER = const G_UNICODE_TITLECASE_LETTER = Main.Base.convert(Main.Base.Int32,8) - const UPPERCASE_LETTER = const G_UNICODE_UPPERCASE_LETTER = Main.Base.convert(Main.Base.Int32,9) - const SPACING_MARK = const G_UNICODE_SPACING_MARK = Main.Base.convert(Main.Base.Int32,10) - const ENCLOSING_MARK = const G_UNICODE_ENCLOSING_MARK = Main.Base.convert(Main.Base.Int32,11) - const NON_SPACING_MARK = const G_UNICODE_NON_SPACING_MARK = Main.Base.convert(Main.Base.Int32,12) - const DECIMAL_NUMBER = const G_UNICODE_DECIMAL_NUMBER = Main.Base.convert(Main.Base.Int32,13) - const LETTER_NUMBER = const G_UNICODE_LETTER_NUMBER = Main.Base.convert(Main.Base.Int32,14) - const OTHER_NUMBER = const G_UNICODE_OTHER_NUMBER = Main.Base.convert(Main.Base.Int32,15) - const CONNECT_PUNCTUATION = const G_UNICODE_CONNECT_PUNCTUATION = Main.Base.convert(Main.Base.Int32,16) - const DASH_PUNCTUATION = const G_UNICODE_DASH_PUNCTUATION = Main.Base.convert(Main.Base.Int32,17) - const CLOSE_PUNCTUATION = const G_UNICODE_CLOSE_PUNCTUATION = Main.Base.convert(Main.Base.Int32,18) - const FINAL_PUNCTUATION = const G_UNICODE_FINAL_PUNCTUATION = Main.Base.convert(Main.Base.Int32,19) - const INITIAL_PUNCTUATION = const G_UNICODE_INITIAL_PUNCTUATION = Main.Base.convert(Main.Base.Int32,20) - const OTHER_PUNCTUATION = const G_UNICODE_OTHER_PUNCTUATION = Main.Base.convert(Main.Base.Int32,21) - const OPEN_PUNCTUATION = const G_UNICODE_OPEN_PUNCTUATION = Main.Base.convert(Main.Base.Int32,22) - const CURRENCY_SYMBOL = const G_UNICODE_CURRENCY_SYMBOL = Main.Base.convert(Main.Base.Int32,23) - const MODIFIER_SYMBOL = const G_UNICODE_MODIFIER_SYMBOL = Main.Base.convert(Main.Base.Int32,24) - const MATH_SYMBOL = const G_UNICODE_MATH_SYMBOL = Main.Base.convert(Main.Base.Int32,25) - const OTHER_SYMBOL = const G_UNICODE_OTHER_SYMBOL = Main.Base.convert(Main.Base.Int32,26) - const LINE_SEPARATOR = const G_UNICODE_LINE_SEPARATOR = Main.Base.convert(Main.Base.Int32,27) - const PARAGRAPH_SEPARATOR = const G_UNICODE_PARAGRAPH_SEPARATOR = Main.Base.convert(Main.Base.Int32,28) - const SPACE_SEPARATOR = const G_UNICODE_SPACE_SEPARATOR = Main.Base.convert(Main.Base.Int32,29) - end))) - $(Expr(:toplevel, :(baremodule GUnicodeBreakType - const MANDATORY = const G_UNICODE_BREAK_MANDATORY = Main.Base.convert(Main.Base.Int32,0) - const CARRIAGE_RETURN = const G_UNICODE_BREAK_CARRIAGE_RETURN = Main.Base.convert(Main.Base.Int32,1) - const LINE_FEED = const G_UNICODE_BREAK_LINE_FEED = Main.Base.convert(Main.Base.Int32,2) - const COMBINING_MARK = const G_UNICODE_BREAK_COMBINING_MARK = Main.Base.convert(Main.Base.Int32,3) - const SURROGATE = const G_UNICODE_BREAK_SURROGATE = Main.Base.convert(Main.Base.Int32,4) - const ZERO_WIDTH_SPACE = const G_UNICODE_BREAK_ZERO_WIDTH_SPACE = Main.Base.convert(Main.Base.Int32,5) - const INSEPARABLE = const G_UNICODE_BREAK_INSEPARABLE = Main.Base.convert(Main.Base.Int32,6) - const NON_BREAKING_GLUE = const G_UNICODE_BREAK_NON_BREAKING_GLUE = Main.Base.convert(Main.Base.Int32,7) - const CONTINGENT = const G_UNICODE_BREAK_CONTINGENT = Main.Base.convert(Main.Base.Int32,8) - const SPACE = const G_UNICODE_BREAK_SPACE = Main.Base.convert(Main.Base.Int32,9) - const AFTER = const G_UNICODE_BREAK_AFTER = Main.Base.convert(Main.Base.Int32,10) - const BEFORE = const G_UNICODE_BREAK_BEFORE = Main.Base.convert(Main.Base.Int32,11) - const BEFORE_AND_AFTER = const G_UNICODE_BREAK_BEFORE_AND_AFTER = Main.Base.convert(Main.Base.Int32,12) - const HYPHEN = const G_UNICODE_BREAK_HYPHEN = Main.Base.convert(Main.Base.Int32,13) - const NON_STARTER = const G_UNICODE_BREAK_NON_STARTER = Main.Base.convert(Main.Base.Int32,14) - const OPEN_PUNCTUATION = const G_UNICODE_BREAK_OPEN_PUNCTUATION = Main.Base.convert(Main.Base.Int32,15) - const CLOSE_PUNCTUATION = const G_UNICODE_BREAK_CLOSE_PUNCTUATION = Main.Base.convert(Main.Base.Int32,16) - const QUOTATION = const G_UNICODE_BREAK_QUOTATION = Main.Base.convert(Main.Base.Int32,17) - const EXCLAMATION = const G_UNICODE_BREAK_EXCLAMATION = Main.Base.convert(Main.Base.Int32,18) - const IDEOGRAPHIC = const G_UNICODE_BREAK_IDEOGRAPHIC = Main.Base.convert(Main.Base.Int32,19) - const NUMERIC = const G_UNICODE_BREAK_NUMERIC = Main.Base.convert(Main.Base.Int32,20) - const INFIX_SEPARATOR = const G_UNICODE_BREAK_INFIX_SEPARATOR = Main.Base.convert(Main.Base.Int32,21) - const SYMBOL = const G_UNICODE_BREAK_SYMBOL = Main.Base.convert(Main.Base.Int32,22) - const ALPHABETIC = const G_UNICODE_BREAK_ALPHABETIC = Main.Base.convert(Main.Base.Int32,23) - const PREFIX = const G_UNICODE_BREAK_PREFIX = Main.Base.convert(Main.Base.Int32,24) - const POSTFIX = const G_UNICODE_BREAK_POSTFIX = Main.Base.convert(Main.Base.Int32,25) - const COMPLEX_CONTEXT = const G_UNICODE_BREAK_COMPLEX_CONTEXT = Main.Base.convert(Main.Base.Int32,26) - const AMBIGUOUS = const G_UNICODE_BREAK_AMBIGUOUS = Main.Base.convert(Main.Base.Int32,27) - const UNKNOWN = const G_UNICODE_BREAK_UNKNOWN = Main.Base.convert(Main.Base.Int32,28) - const NEXT_LINE = const G_UNICODE_BREAK_NEXT_LINE = Main.Base.convert(Main.Base.Int32,29) - const WORD_JOINER = const G_UNICODE_BREAK_WORD_JOINER = Main.Base.convert(Main.Base.Int32,30) - const HANGUL_L_JAMO = const G_UNICODE_BREAK_HANGUL_L_JAMO = Main.Base.convert(Main.Base.Int32,31) - const HANGUL_V_JAMO = const G_UNICODE_BREAK_HANGUL_V_JAMO = Main.Base.convert(Main.Base.Int32,32) - const HANGUL_T_JAMO = const G_UNICODE_BREAK_HANGUL_T_JAMO = Main.Base.convert(Main.Base.Int32,33) - const HANGUL_LV_SYLLABLE = const G_UNICODE_BREAK_HANGUL_LV_SYLLABLE = Main.Base.convert(Main.Base.Int32,34) - const HANGUL_LVT_SYLLABLE = const G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE = Main.Base.convert(Main.Base.Int32,35) - const CLOSE_PARANTHESIS = const G_UNICODE_BREAK_CLOSE_PARANTHESIS = Main.Base.convert(Main.Base.Int32,36) - const CONDITIONAL_JAPANESE_STARTER = const G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER = Main.Base.convert(Main.Base.Int32,37) - const HEBREW_LETTER = const G_UNICODE_BREAK_HEBREW_LETTER = Main.Base.convert(Main.Base.Int32,38) - const REGIONAL_INDICATOR = const G_UNICODE_BREAK_REGIONAL_INDICATOR = Main.Base.convert(Main.Base.Int32,39) - end))) - $(Expr(:toplevel, :(baremodule GUnicodeScript - const INVALID_CODE = const G_UNICODE_SCRIPT_INVALID_CODE = Main.Base.convert(Main.Base.Int32,-1) - const COMMON = const G_UNICODE_SCRIPT_COMMON = Main.Base.convert(Main.Base.Int32,0) - const INHERITED = const G_UNICODE_SCRIPT_INHERITED = Main.Base.convert(Main.Base.Int32,1) - const ARABIC = const G_UNICODE_SCRIPT_ARABIC = Main.Base.convert(Main.Base.Int32,2) - const ARMENIAN = const G_UNICODE_SCRIPT_ARMENIAN = Main.Base.convert(Main.Base.Int32,3) - const BENGALI = const G_UNICODE_SCRIPT_BENGALI = Main.Base.convert(Main.Base.Int32,4) - const BOPOMOFO = const G_UNICODE_SCRIPT_BOPOMOFO = Main.Base.convert(Main.Base.Int32,5) - const CHEROKEE = const G_UNICODE_SCRIPT_CHEROKEE = Main.Base.convert(Main.Base.Int32,6) - const COPTIC = const G_UNICODE_SCRIPT_COPTIC = Main.Base.convert(Main.Base.Int32,7) - const CYRILLIC = const G_UNICODE_SCRIPT_CYRILLIC = Main.Base.convert(Main.Base.Int32,8) - const DESERET = const G_UNICODE_SCRIPT_DESERET = Main.Base.convert(Main.Base.Int32,9) - const DEVANAGARI = const G_UNICODE_SCRIPT_DEVANAGARI = Main.Base.convert(Main.Base.Int32,10) - const ETHIOPIC = const G_UNICODE_SCRIPT_ETHIOPIC = Main.Base.convert(Main.Base.Int32,11) - const GEORGIAN = const G_UNICODE_SCRIPT_GEORGIAN = Main.Base.convert(Main.Base.Int32,12) - const GOTHIC = const G_UNICODE_SCRIPT_GOTHIC = Main.Base.convert(Main.Base.Int32,13) - const GREEK = const G_UNICODE_SCRIPT_GREEK = Main.Base.convert(Main.Base.Int32,14) - const GUJARATI = const G_UNICODE_SCRIPT_GUJARATI = Main.Base.convert(Main.Base.Int32,15) - const GURMUKHI = const G_UNICODE_SCRIPT_GURMUKHI = Main.Base.convert(Main.Base.Int32,16) - const HAN = const G_UNICODE_SCRIPT_HAN = Main.Base.convert(Main.Base.Int32,17) - const HANGUL = const G_UNICODE_SCRIPT_HANGUL = Main.Base.convert(Main.Base.Int32,18) - const HEBREW = const G_UNICODE_SCRIPT_HEBREW = Main.Base.convert(Main.Base.Int32,19) - const HIRAGANA = const G_UNICODE_SCRIPT_HIRAGANA = Main.Base.convert(Main.Base.Int32,20) - const KANNADA = const G_UNICODE_SCRIPT_KANNADA = Main.Base.convert(Main.Base.Int32,21) - const KATAKANA = const G_UNICODE_SCRIPT_KATAKANA = Main.Base.convert(Main.Base.Int32,22) - const KHMER = const G_UNICODE_SCRIPT_KHMER = Main.Base.convert(Main.Base.Int32,23) - const LAO = const G_UNICODE_SCRIPT_LAO = Main.Base.convert(Main.Base.Int32,24) - const LATIN = const G_UNICODE_SCRIPT_LATIN = Main.Base.convert(Main.Base.Int32,25) - const MALAYALAM = const G_UNICODE_SCRIPT_MALAYALAM = Main.Base.convert(Main.Base.Int32,26) - const MONGOLIAN = const G_UNICODE_SCRIPT_MONGOLIAN = Main.Base.convert(Main.Base.Int32,27) - const MYANMAR = const G_UNICODE_SCRIPT_MYANMAR = Main.Base.convert(Main.Base.Int32,28) - const OGHAM = const G_UNICODE_SCRIPT_OGHAM = Main.Base.convert(Main.Base.Int32,29) - const OLD_ITALIC = const G_UNICODE_SCRIPT_OLD_ITALIC = Main.Base.convert(Main.Base.Int32,30) - const ORIYA = const G_UNICODE_SCRIPT_ORIYA = Main.Base.convert(Main.Base.Int32,31) - const RUNIC = const G_UNICODE_SCRIPT_RUNIC = Main.Base.convert(Main.Base.Int32,32) - const SINHALA = const G_UNICODE_SCRIPT_SINHALA = Main.Base.convert(Main.Base.Int32,33) - const SYRIAC = const G_UNICODE_SCRIPT_SYRIAC = Main.Base.convert(Main.Base.Int32,34) - const TAMIL = const G_UNICODE_SCRIPT_TAMIL = Main.Base.convert(Main.Base.Int32,35) - const TELUGU = const G_UNICODE_SCRIPT_TELUGU = Main.Base.convert(Main.Base.Int32,36) - const THAANA = const G_UNICODE_SCRIPT_THAANA = Main.Base.convert(Main.Base.Int32,37) - const THAI = const G_UNICODE_SCRIPT_THAI = Main.Base.convert(Main.Base.Int32,38) - const TIBETAN = const G_UNICODE_SCRIPT_TIBETAN = Main.Base.convert(Main.Base.Int32,39) - const CANADIAN_ABORIGINAL = const G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL = Main.Base.convert(Main.Base.Int32,40) - const YI = const G_UNICODE_SCRIPT_YI = Main.Base.convert(Main.Base.Int32,41) - const TAGALOG = const G_UNICODE_SCRIPT_TAGALOG = Main.Base.convert(Main.Base.Int32,42) - const HANUNOO = const G_UNICODE_SCRIPT_HANUNOO = Main.Base.convert(Main.Base.Int32,43) - const BUHID = const G_UNICODE_SCRIPT_BUHID = Main.Base.convert(Main.Base.Int32,44) - const TAGBANWA = const G_UNICODE_SCRIPT_TAGBANWA = Main.Base.convert(Main.Base.Int32,45) - const BRAILLE = const G_UNICODE_SCRIPT_BRAILLE = Main.Base.convert(Main.Base.Int32,46) - const CYPRIOT = const G_UNICODE_SCRIPT_CYPRIOT = Main.Base.convert(Main.Base.Int32,47) - const LIMBU = const G_UNICODE_SCRIPT_LIMBU = Main.Base.convert(Main.Base.Int32,48) - const OSMANYA = const G_UNICODE_SCRIPT_OSMANYA = Main.Base.convert(Main.Base.Int32,49) - const SHAVIAN = const G_UNICODE_SCRIPT_SHAVIAN = Main.Base.convert(Main.Base.Int32,50) - const LINEAR_B = const G_UNICODE_SCRIPT_LINEAR_B = Main.Base.convert(Main.Base.Int32,51) - const TAI_LE = const G_UNICODE_SCRIPT_TAI_LE = Main.Base.convert(Main.Base.Int32,52) - const UGARITIC = const G_UNICODE_SCRIPT_UGARITIC = Main.Base.convert(Main.Base.Int32,53) - const NEW_TAI_LUE = const G_UNICODE_SCRIPT_NEW_TAI_LUE = Main.Base.convert(Main.Base.Int32,54) - const BUGINESE = const G_UNICODE_SCRIPT_BUGINESE = Main.Base.convert(Main.Base.Int32,55) - const GLAGOLITIC = const G_UNICODE_SCRIPT_GLAGOLITIC = Main.Base.convert(Main.Base.Int32,56) - const TIFINAGH = const G_UNICODE_SCRIPT_TIFINAGH = Main.Base.convert(Main.Base.Int32,57) - const SYLOTI_NAGRI = const G_UNICODE_SCRIPT_SYLOTI_NAGRI = Main.Base.convert(Main.Base.Int32,58) - const OLD_PERSIAN = const G_UNICODE_SCRIPT_OLD_PERSIAN = Main.Base.convert(Main.Base.Int32,59) - const KHAROSHTHI = const G_UNICODE_SCRIPT_KHAROSHTHI = Main.Base.convert(Main.Base.Int32,60) - const UNKNOWN = const G_UNICODE_SCRIPT_UNKNOWN = Main.Base.convert(Main.Base.Int32,61) - const BALINESE = const G_UNICODE_SCRIPT_BALINESE = Main.Base.convert(Main.Base.Int32,62) - const CUNEIFORM = const G_UNICODE_SCRIPT_CUNEIFORM = Main.Base.convert(Main.Base.Int32,63) - const PHOENICIAN = const G_UNICODE_SCRIPT_PHOENICIAN = Main.Base.convert(Main.Base.Int32,64) - const PHAGS_PA = const G_UNICODE_SCRIPT_PHAGS_PA = Main.Base.convert(Main.Base.Int32,65) - const NKO = const G_UNICODE_SCRIPT_NKO = Main.Base.convert(Main.Base.Int32,66) - const KAYAH_LI = const G_UNICODE_SCRIPT_KAYAH_LI = Main.Base.convert(Main.Base.Int32,67) - const LEPCHA = const G_UNICODE_SCRIPT_LEPCHA = Main.Base.convert(Main.Base.Int32,68) - const REJANG = const G_UNICODE_SCRIPT_REJANG = Main.Base.convert(Main.Base.Int32,69) - const SUNDANESE = const G_UNICODE_SCRIPT_SUNDANESE = Main.Base.convert(Main.Base.Int32,70) - const SAURASHTRA = const G_UNICODE_SCRIPT_SAURASHTRA = Main.Base.convert(Main.Base.Int32,71) - const CHAM = const G_UNICODE_SCRIPT_CHAM = Main.Base.convert(Main.Base.Int32,72) - const OL_CHIKI = const G_UNICODE_SCRIPT_OL_CHIKI = Main.Base.convert(Main.Base.Int32,73) - const VAI = const G_UNICODE_SCRIPT_VAI = Main.Base.convert(Main.Base.Int32,74) - const CARIAN = const G_UNICODE_SCRIPT_CARIAN = Main.Base.convert(Main.Base.Int32,75) - const LYCIAN = const G_UNICODE_SCRIPT_LYCIAN = Main.Base.convert(Main.Base.Int32,76) - const LYDIAN = const G_UNICODE_SCRIPT_LYDIAN = Main.Base.convert(Main.Base.Int32,77) - const AVESTAN = const G_UNICODE_SCRIPT_AVESTAN = Main.Base.convert(Main.Base.Int32,78) - const BAMUM = const G_UNICODE_SCRIPT_BAMUM = Main.Base.convert(Main.Base.Int32,79) - const EGYPTIAN_HIEROGLYPHS = const G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS = Main.Base.convert(Main.Base.Int32,80) - const IMPERIAL_ARAMAIC = const G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC = Main.Base.convert(Main.Base.Int32,81) - const INSCRIPTIONAL_PAHLAVI = const G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI = Main.Base.convert(Main.Base.Int32,82) - const INSCRIPTIONAL_PARTHIAN = const G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN = Main.Base.convert(Main.Base.Int32,83) - const JAVANESE = const G_UNICODE_SCRIPT_JAVANESE = Main.Base.convert(Main.Base.Int32,84) - const KAITHI = const G_UNICODE_SCRIPT_KAITHI = Main.Base.convert(Main.Base.Int32,85) - const LISU = const G_UNICODE_SCRIPT_LISU = Main.Base.convert(Main.Base.Int32,86) - const MEETEI_MAYEK = const G_UNICODE_SCRIPT_MEETEI_MAYEK = Main.Base.convert(Main.Base.Int32,87) - const OLD_SOUTH_ARABIAN = const G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN = Main.Base.convert(Main.Base.Int32,88) - const OLD_TURKIC = const G_UNICODE_SCRIPT_OLD_TURKIC = Main.Base.convert(Main.Base.Int32,89) - const SAMARITAN = const G_UNICODE_SCRIPT_SAMARITAN = Main.Base.convert(Main.Base.Int32,90) - const TAI_THAM = const G_UNICODE_SCRIPT_TAI_THAM = Main.Base.convert(Main.Base.Int32,91) - const TAI_VIET = const G_UNICODE_SCRIPT_TAI_VIET = Main.Base.convert(Main.Base.Int32,92) - const BATAK = const G_UNICODE_SCRIPT_BATAK = Main.Base.convert(Main.Base.Int32,93) - const BRAHMI = const G_UNICODE_SCRIPT_BRAHMI = Main.Base.convert(Main.Base.Int32,94) - const MANDAIC = const G_UNICODE_SCRIPT_MANDAIC = Main.Base.convert(Main.Base.Int32,95) - const CHAKMA = const G_UNICODE_SCRIPT_CHAKMA = Main.Base.convert(Main.Base.Int32,96) - const MEROITIC_CURSIVE = const G_UNICODE_SCRIPT_MEROITIC_CURSIVE = Main.Base.convert(Main.Base.Int32,97) - const MEROITIC_HIEROGLYPHS = const G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS = Main.Base.convert(Main.Base.Int32,98) - const MIAO = const G_UNICODE_SCRIPT_MIAO = Main.Base.convert(Main.Base.Int32,99) - const SHARADA = const G_UNICODE_SCRIPT_SHARADA = Main.Base.convert(Main.Base.Int32,100) - const SORA_SOMPENG = const G_UNICODE_SCRIPT_SORA_SOMPENG = Main.Base.convert(Main.Base.Int32,101) - const TAKRI = const G_UNICODE_SCRIPT_TAKRI = Main.Base.convert(Main.Base.Int32,102) - end))) - $(Expr(:toplevel, :(baremodule GNormalizeMode - const DEFAULT = const G_NORMALIZE_DEFAULT = Main.Base.convert(Main.Base.Int32,0) - const NFD = const G_NORMALIZE_NFD = Main.Base.convert(Main.Base.Int32,0) - const DEFAULT_COMPOSE = const G_NORMALIZE_DEFAULT_COMPOSE = Main.Base.convert(Main.Base.Int32,1) - const NFC = const G_NORMALIZE_NFC = Main.Base.convert(Main.Base.Int32,1) - const ALL = const G_NORMALIZE_ALL = Main.Base.convert(Main.Base.Int32,2) - const NFKD = const G_NORMALIZE_NFKD = Main.Base.convert(Main.Base.Int32,2) - const ALL_COMPOSE = const G_NORMALIZE_ALL_COMPOSE = Main.Base.convert(Main.Base.Int32,3) - const NFKC = const G_NORMALIZE_NFKC = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GUserDirectory - const DIRECTORY_DESKTOP = const G_USER_DIRECTORY_DESKTOP = Main.Base.convert(Main.Base.Int32,0) - const DIRECTORY_DOCUMENTS = const G_USER_DIRECTORY_DOCUMENTS = Main.Base.convert(Main.Base.Int32,1) - const DIRECTORY_DOWNLOAD = const G_USER_DIRECTORY_DOWNLOAD = Main.Base.convert(Main.Base.Int32,2) - const DIRECTORY_MUSIC = const G_USER_DIRECTORY_MUSIC = Main.Base.convert(Main.Base.Int32,3) - const DIRECTORY_PICTURES = const G_USER_DIRECTORY_PICTURES = Main.Base.convert(Main.Base.Int32,4) - const DIRECTORY_PUBLIC_SHARE = const G_USER_DIRECTORY_PUBLIC_SHARE = Main.Base.convert(Main.Base.Int32,5) - const DIRECTORY_TEMPLATES = const G_USER_DIRECTORY_TEMPLATES = Main.Base.convert(Main.Base.Int32,6) - const DIRECTORY_VIDEOS = const G_USER_DIRECTORY_VIDEOS = Main.Base.convert(Main.Base.Int32,7) - const N_DIRECTORIES = const G_USER_N_DIRECTORIES = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GFormatSizeFlags - const DEFAULT = const G_FORMAT_SIZE_DEFAULT = Main.Base.convert(Main.Base.Int32,0) - const LONG_FORMAT = const G_FORMAT_SIZE_LONG_FORMAT = Main.Base.convert(Main.Base.Int32,1) - const IEC_UNITS = const G_FORMAT_SIZE_IEC_UNITS = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GIOError - const NONE = const G_IO_ERROR_NONE = Main.Base.convert(Main.Base.Int32,0) - const AGAIN = const G_IO_ERROR_AGAIN = Main.Base.convert(Main.Base.Int32,1) - const INVAL = const G_IO_ERROR_INVAL = Main.Base.convert(Main.Base.Int32,2) - const UNKNOWN = const G_IO_ERROR_UNKNOWN = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GIOChannelError - const FBIG = const G_IO_CHANNEL_ERROR_FBIG = Main.Base.convert(Main.Base.Int32,0) - const INVAL = const G_IO_CHANNEL_ERROR_INVAL = Main.Base.convert(Main.Base.Int32,1) - const IO = const G_IO_CHANNEL_ERROR_IO = Main.Base.convert(Main.Base.Int32,2) - const ISDIR = const G_IO_CHANNEL_ERROR_ISDIR = Main.Base.convert(Main.Base.Int32,3) - const NOSPC = const G_IO_CHANNEL_ERROR_NOSPC = Main.Base.convert(Main.Base.Int32,4) - const NXIO = const G_IO_CHANNEL_ERROR_NXIO = Main.Base.convert(Main.Base.Int32,5) - const OVERFLOW = const G_IO_CHANNEL_ERROR_OVERFLOW = Main.Base.convert(Main.Base.Int32,6) - const PIPE = const G_IO_CHANNEL_ERROR_PIPE = Main.Base.convert(Main.Base.Int32,7) - const FAILED = const G_IO_CHANNEL_ERROR_FAILED = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GIOStatus - const ERROR = const G_IO_STATUS_ERROR = Main.Base.convert(Main.Base.Int32,0) - const NORMAL = const G_IO_STATUS_NORMAL = Main.Base.convert(Main.Base.Int32,1) - const EOF = const G_IO_STATUS_EOF = Main.Base.convert(Main.Base.Int32,2) - const AGAIN = const G_IO_STATUS_AGAIN = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GSeekType - const CUR = const G_SEEK_CUR = Main.Base.convert(Main.Base.Int32,0) - const SET = const G_SEEK_SET = Main.Base.convert(Main.Base.Int32,1) - const END = const G_SEEK_END = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GIOFlags - const APPEND = const G_IO_FLAG_APPEND = Main.Base.convert(Main.Base.Int32,1) - const NONBLOCK = const G_IO_FLAG_NONBLOCK = Main.Base.convert(Main.Base.Int32,2) - const IS_READABLE = const G_IO_FLAG_IS_READABLE = Main.Base.convert(Main.Base.Int32,4) - const IS_WRITABLE = const G_IO_FLAG_IS_WRITABLE = Main.Base.convert(Main.Base.Int32,8) - const IS_WRITEABLE = const G_IO_FLAG_IS_WRITEABLE = Main.Base.convert(Main.Base.Int32,8) - const IS_SEEKABLE = const G_IO_FLAG_IS_SEEKABLE = Main.Base.convert(Main.Base.Int32,16) - const MASK = const G_IO_FLAG_MASK = Main.Base.convert(Main.Base.Int32,31) - const GET_MASK = const G_IO_FLAG_GET_MASK = Main.Base.convert(Main.Base.Int32,31) - const SET_MASK = const G_IO_FLAG_SET_MASK = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GKeyFileError - const UNKNOWN_ENCODING = const G_KEY_FILE_ERROR_UNKNOWN_ENCODING = Main.Base.convert(Main.Base.Int32,0) - const PARSE = const G_KEY_FILE_ERROR_PARSE = Main.Base.convert(Main.Base.Int32,1) - const NOT_FOUND = const G_KEY_FILE_ERROR_NOT_FOUND = Main.Base.convert(Main.Base.Int32,2) - const KEY_NOT_FOUND = const G_KEY_FILE_ERROR_KEY_NOT_FOUND = Main.Base.convert(Main.Base.Int32,3) - const GROUP_NOT_FOUND = const G_KEY_FILE_ERROR_GROUP_NOT_FOUND = Main.Base.convert(Main.Base.Int32,4) - const INVALID_VALUE = const G_KEY_FILE_ERROR_INVALID_VALUE = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GKeyFileFlags - const NONE = const G_KEY_FILE_NONE = Main.Base.convert(Main.Base.Int32,0) - const KEEP_COMMENTS = const G_KEY_FILE_KEEP_COMMENTS = Main.Base.convert(Main.Base.Int32,1) - const KEEP_TRANSLATIONS = const G_KEY_FILE_KEEP_TRANSLATIONS = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GMarkupError - const BAD_UTF8 = const G_MARKUP_ERROR_BAD_UTF8 = Main.Base.convert(Main.Base.Int32,0) - const EMPTY = const G_MARKUP_ERROR_EMPTY = Main.Base.convert(Main.Base.Int32,1) - const PARSE = const G_MARKUP_ERROR_PARSE = Main.Base.convert(Main.Base.Int32,2) - const UNKNOWN_ELEMENT = const G_MARKUP_ERROR_UNKNOWN_ELEMENT = Main.Base.convert(Main.Base.Int32,3) - const UNKNOWN_ATTRIBUTE = const G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE = Main.Base.convert(Main.Base.Int32,4) - const INVALID_CONTENT = const G_MARKUP_ERROR_INVALID_CONTENT = Main.Base.convert(Main.Base.Int32,5) - const MISSING_ATTRIBUTE = const G_MARKUP_ERROR_MISSING_ATTRIBUTE = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GMarkupParseFlags - const DO_NOT_USE_THIS_UNSUPPORTED_FLAG = const G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG = Main.Base.convert(Main.Base.Int32,1) - const TREAT_CDATA_AS_TEXT = const G_MARKUP_TREAT_CDATA_AS_TEXT = Main.Base.convert(Main.Base.Int32,2) - const PREFIX_ERROR_POSITION = const G_MARKUP_PREFIX_ERROR_POSITION = Main.Base.convert(Main.Base.Int32,4) - const IGNORE_QUALIFIED = const G_MARKUP_IGNORE_QUALIFIED = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GMarkupCollectType - const INVALID = const G_MARKUP_COLLECT_INVALID = Main.Base.convert(Main.Base.Int32,0) - const STRING = const G_MARKUP_COLLECT_STRING = Main.Base.convert(Main.Base.Int32,1) - const STRDUP = const G_MARKUP_COLLECT_STRDUP = Main.Base.convert(Main.Base.Int32,2) - const BOOLEAN = const G_MARKUP_COLLECT_BOOLEAN = Main.Base.convert(Main.Base.Int32,3) - const TRISTATE = const G_MARKUP_COLLECT_TRISTATE = Main.Base.convert(Main.Base.Int32,4) - const OPTIONAL = const G_MARKUP_COLLECT_OPTIONAL = Main.Base.convert(Main.Base.Int32,65536) - end))) - $(Expr(:toplevel, :(baremodule GLogLevelFlags - const FLAG_RECURSION = const G_LOG_FLAG_RECURSION = Main.Base.convert(Main.Base.Int32,1) - const FLAG_FATAL = const G_LOG_FLAG_FATAL = Main.Base.convert(Main.Base.Int32,2) - const LEVEL_ERROR = const G_LOG_LEVEL_ERROR = Main.Base.convert(Main.Base.Int32,4) - const LEVEL_CRITICAL = const G_LOG_LEVEL_CRITICAL = Main.Base.convert(Main.Base.Int32,8) - const LEVEL_WARNING = const G_LOG_LEVEL_WARNING = Main.Base.convert(Main.Base.Int32,16) - const LEVEL_MESSAGE = const G_LOG_LEVEL_MESSAGE = Main.Base.convert(Main.Base.Int32,32) - const LEVEL_INFO = const G_LOG_LEVEL_INFO = Main.Base.convert(Main.Base.Int32,64) - const LEVEL_DEBUG = const G_LOG_LEVEL_DEBUG = Main.Base.convert(Main.Base.Int32,128) - const LEVEL_MASK = const G_LOG_LEVEL_MASK = Main.Base.convert(Main.Base.Int32,-4) - end))) - $(Expr(:toplevel, :(baremodule GOptionFlags - const HIDDEN = const G_OPTION_FLAG_HIDDEN = Main.Base.convert(Main.Base.Int32,1) - const IN_MAIN = const G_OPTION_FLAG_IN_MAIN = Main.Base.convert(Main.Base.Int32,2) - const REVERSE = const G_OPTION_FLAG_REVERSE = Main.Base.convert(Main.Base.Int32,4) - const NO_ARG = const G_OPTION_FLAG_NO_ARG = Main.Base.convert(Main.Base.Int32,8) - const FILENAME = const G_OPTION_FLAG_FILENAME = Main.Base.convert(Main.Base.Int32,16) - const OPTIONAL_ARG = const G_OPTION_FLAG_OPTIONAL_ARG = Main.Base.convert(Main.Base.Int32,32) - const NOALIAS = const G_OPTION_FLAG_NOALIAS = Main.Base.convert(Main.Base.Int32,64) - end))) - $(Expr(:toplevel, :(baremodule GOptionArg - const NONE = const G_OPTION_ARG_NONE = Main.Base.convert(Main.Base.Int32,0) - const STRING = const G_OPTION_ARG_STRING = Main.Base.convert(Main.Base.Int32,1) - const INT = const G_OPTION_ARG_INT = Main.Base.convert(Main.Base.Int32,2) - const CALLBACK = const G_OPTION_ARG_CALLBACK = Main.Base.convert(Main.Base.Int32,3) - const FILENAME = const G_OPTION_ARG_FILENAME = Main.Base.convert(Main.Base.Int32,4) - const STRING_ARRAY = const G_OPTION_ARG_STRING_ARRAY = Main.Base.convert(Main.Base.Int32,5) - const FILENAME_ARRAY = const G_OPTION_ARG_FILENAME_ARRAY = Main.Base.convert(Main.Base.Int32,6) - const DOUBLE = const G_OPTION_ARG_DOUBLE = Main.Base.convert(Main.Base.Int32,7) - const INT64 = const G_OPTION_ARG_INT64 = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GOptionError - const UNKNOWN_OPTION = const G_OPTION_ERROR_UNKNOWN_OPTION = Main.Base.convert(Main.Base.Int32,0) - const BAD_VALUE = const G_OPTION_ERROR_BAD_VALUE = Main.Base.convert(Main.Base.Int32,1) - const FAILED = const G_OPTION_ERROR_FAILED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GRegexError - const COMPILE = const G_REGEX_ERROR_COMPILE = Main.Base.convert(Main.Base.Int32,0) - const OPTIMIZE = const G_REGEX_ERROR_OPTIMIZE = Main.Base.convert(Main.Base.Int32,1) - const REPLACE = const G_REGEX_ERROR_REPLACE = Main.Base.convert(Main.Base.Int32,2) - const MATCH = const G_REGEX_ERROR_MATCH = Main.Base.convert(Main.Base.Int32,3) - const INTERNAL = const G_REGEX_ERROR_INTERNAL = Main.Base.convert(Main.Base.Int32,4) - const STRAY_BACKSLASH = const G_REGEX_ERROR_STRAY_BACKSLASH = Main.Base.convert(Main.Base.Int32,101) - const MISSING_CONTROL_CHAR = const G_REGEX_ERROR_MISSING_CONTROL_CHAR = Main.Base.convert(Main.Base.Int32,102) - const UNRECOGNIZED_ESCAPE = const G_REGEX_ERROR_UNRECOGNIZED_ESCAPE = Main.Base.convert(Main.Base.Int32,103) - const QUANTIFIERS_OUT_OF_ORDER = const G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER = Main.Base.convert(Main.Base.Int32,104) - const QUANTIFIER_TOO_BIG = const G_REGEX_ERROR_QUANTIFIER_TOO_BIG = Main.Base.convert(Main.Base.Int32,105) - const UNTERMINATED_CHARACTER_CLASS = const G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS = Main.Base.convert(Main.Base.Int32,106) - const INVALID_ESCAPE_IN_CHARACTER_CLASS = const G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS = Main.Base.convert(Main.Base.Int32,107) - const RANGE_OUT_OF_ORDER = const G_REGEX_ERROR_RANGE_OUT_OF_ORDER = Main.Base.convert(Main.Base.Int32,108) - const NOTHING_TO_REPEAT = const G_REGEX_ERROR_NOTHING_TO_REPEAT = Main.Base.convert(Main.Base.Int32,109) - const UNRECOGNIZED_CHARACTER = const G_REGEX_ERROR_UNRECOGNIZED_CHARACTER = Main.Base.convert(Main.Base.Int32,112) - const POSIX_NAMED_CLASS_OUTSIDE_CLASS = const G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS = Main.Base.convert(Main.Base.Int32,113) - const UNMATCHED_PARENTHESIS = const G_REGEX_ERROR_UNMATCHED_PARENTHESIS = Main.Base.convert(Main.Base.Int32,114) - const INEXISTENT_SUBPATTERN_REFERENCE = const G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE = Main.Base.convert(Main.Base.Int32,115) - const UNTERMINATED_COMMENT = const G_REGEX_ERROR_UNTERMINATED_COMMENT = Main.Base.convert(Main.Base.Int32,118) - const EXPRESSION_TOO_LARGE = const G_REGEX_ERROR_EXPRESSION_TOO_LARGE = Main.Base.convert(Main.Base.Int32,120) - const MEMORY_ERROR = const G_REGEX_ERROR_MEMORY_ERROR = Main.Base.convert(Main.Base.Int32,121) - const VARIABLE_LENGTH_LOOKBEHIND = const G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND = Main.Base.convert(Main.Base.Int32,125) - const MALFORMED_CONDITION = const G_REGEX_ERROR_MALFORMED_CONDITION = Main.Base.convert(Main.Base.Int32,126) - const TOO_MANY_CONDITIONAL_BRANCHES = const G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES = Main.Base.convert(Main.Base.Int32,127) - const ASSERTION_EXPECTED = const G_REGEX_ERROR_ASSERTION_EXPECTED = Main.Base.convert(Main.Base.Int32,128) - const UNKNOWN_POSIX_CLASS_NAME = const G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME = Main.Base.convert(Main.Base.Int32,130) - const POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED = const G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED = Main.Base.convert(Main.Base.Int32,131) - const HEX_CODE_TOO_LARGE = const G_REGEX_ERROR_HEX_CODE_TOO_LARGE = Main.Base.convert(Main.Base.Int32,134) - const INVALID_CONDITION = const G_REGEX_ERROR_INVALID_CONDITION = Main.Base.convert(Main.Base.Int32,135) - const SINGLE_BYTE_MATCH_IN_LOOKBEHIND = const G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND = Main.Base.convert(Main.Base.Int32,136) - const INFINITE_LOOP = const G_REGEX_ERROR_INFINITE_LOOP = Main.Base.convert(Main.Base.Int32,140) - const MISSING_SUBPATTERN_NAME_TERMINATOR = const G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR = Main.Base.convert(Main.Base.Int32,142) - const DUPLICATE_SUBPATTERN_NAME = const G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME = Main.Base.convert(Main.Base.Int32,143) - const MALFORMED_PROPERTY = const G_REGEX_ERROR_MALFORMED_PROPERTY = Main.Base.convert(Main.Base.Int32,146) - const UNKNOWN_PROPERTY = const G_REGEX_ERROR_UNKNOWN_PROPERTY = Main.Base.convert(Main.Base.Int32,147) - const SUBPATTERN_NAME_TOO_LONG = const G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG = Main.Base.convert(Main.Base.Int32,148) - const TOO_MANY_SUBPATTERNS = const G_REGEX_ERROR_TOO_MANY_SUBPATTERNS = Main.Base.convert(Main.Base.Int32,149) - const INVALID_OCTAL_VALUE = const G_REGEX_ERROR_INVALID_OCTAL_VALUE = Main.Base.convert(Main.Base.Int32,151) - const TOO_MANY_BRANCHES_IN_DEFINE = const G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE = Main.Base.convert(Main.Base.Int32,154) - const DEFINE_REPETION = const G_REGEX_ERROR_DEFINE_REPETION = Main.Base.convert(Main.Base.Int32,155) - const INCONSISTENT_NEWLINE_OPTIONS = const G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS = Main.Base.convert(Main.Base.Int32,156) - const MISSING_BACK_REFERENCE = const G_REGEX_ERROR_MISSING_BACK_REFERENCE = Main.Base.convert(Main.Base.Int32,157) - const INVALID_RELATIVE_REFERENCE = const G_REGEX_ERROR_INVALID_RELATIVE_REFERENCE = Main.Base.convert(Main.Base.Int32,158) - const BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN = const G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN = Main.Base.convert(Main.Base.Int32,159) - const UNKNOWN_BACKTRACKING_CONTROL_VERB = const G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB = Main.Base.convert(Main.Base.Int32,160) - const NUMBER_TOO_BIG = const G_REGEX_ERROR_NUMBER_TOO_BIG = Main.Base.convert(Main.Base.Int32,161) - const MISSING_SUBPATTERN_NAME = const G_REGEX_ERROR_MISSING_SUBPATTERN_NAME = Main.Base.convert(Main.Base.Int32,162) - const MISSING_DIGIT = const G_REGEX_ERROR_MISSING_DIGIT = Main.Base.convert(Main.Base.Int32,163) - const INVALID_DATA_CHARACTER = const G_REGEX_ERROR_INVALID_DATA_CHARACTER = Main.Base.convert(Main.Base.Int32,164) - const EXTRA_SUBPATTERN_NAME = const G_REGEX_ERROR_EXTRA_SUBPATTERN_NAME = Main.Base.convert(Main.Base.Int32,165) - const BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED = const G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED = Main.Base.convert(Main.Base.Int32,166) - const INVALID_CONTROL_CHAR = const G_REGEX_ERROR_INVALID_CONTROL_CHAR = Main.Base.convert(Main.Base.Int32,168) - const MISSING_NAME = const G_REGEX_ERROR_MISSING_NAME = Main.Base.convert(Main.Base.Int32,169) - const NOT_SUPPORTED_IN_CLASS = const G_REGEX_ERROR_NOT_SUPPORTED_IN_CLASS = Main.Base.convert(Main.Base.Int32,171) - const TOO_MANY_FORWARD_REFERENCES = const G_REGEX_ERROR_TOO_MANY_FORWARD_REFERENCES = Main.Base.convert(Main.Base.Int32,172) - const NAME_TOO_LONG = const G_REGEX_ERROR_NAME_TOO_LONG = Main.Base.convert(Main.Base.Int32,175) - const CHARACTER_VALUE_TOO_LARGE = const G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE = Main.Base.convert(Main.Base.Int32,176) - end))) - $(Expr(:toplevel, :(baremodule GRegexCompileFlags - const CASELESS = const G_REGEX_CASELESS = Main.Base.convert(Main.Base.Int32,1) - const MULTILINE = const G_REGEX_MULTILINE = Main.Base.convert(Main.Base.Int32,2) - const DOTALL = const G_REGEX_DOTALL = Main.Base.convert(Main.Base.Int32,4) - const EXTENDED = const G_REGEX_EXTENDED = Main.Base.convert(Main.Base.Int32,8) - const ANCHORED = const G_REGEX_ANCHORED = Main.Base.convert(Main.Base.Int32,16) - const DOLLAR_ENDONLY = const G_REGEX_DOLLAR_ENDONLY = Main.Base.convert(Main.Base.Int32,32) - const UNGREEDY = const G_REGEX_UNGREEDY = Main.Base.convert(Main.Base.Int32,512) - const RAW = const G_REGEX_RAW = Main.Base.convert(Main.Base.Int32,2048) - const NO_AUTO_CAPTURE = const G_REGEX_NO_AUTO_CAPTURE = Main.Base.convert(Main.Base.Int32,4096) - const OPTIMIZE = const G_REGEX_OPTIMIZE = Main.Base.convert(Main.Base.Int32,8192) - const FIRSTLINE = const G_REGEX_FIRSTLINE = Main.Base.convert(Main.Base.Int32,262144) - const DUPNAMES = const G_REGEX_DUPNAMES = Main.Base.convert(Main.Base.Int32,524288) - const NEWLINE_CR = const G_REGEX_NEWLINE_CR = Main.Base.convert(Main.Base.Int32,1048576) - const NEWLINE_LF = const G_REGEX_NEWLINE_LF = Main.Base.convert(Main.Base.Int32,2097152) - const NEWLINE_CRLF = const G_REGEX_NEWLINE_CRLF = Main.Base.convert(Main.Base.Int32,3145728) - const NEWLINE_ANYCRLF = const G_REGEX_NEWLINE_ANYCRLF = Main.Base.convert(Main.Base.Int32,5242880) - const BSR_ANYCRLF = const G_REGEX_BSR_ANYCRLF = Main.Base.convert(Main.Base.Int32,8388608) - const JAVASCRIPT_COMPAT = const G_REGEX_JAVASCRIPT_COMPAT = Main.Base.convert(Main.Base.Int32,33554432) - end))) - $(Expr(:toplevel, :(baremodule GRegexMatchFlags - const ANCHORED = const G_REGEX_MATCH_ANCHORED = Main.Base.convert(Main.Base.Int32,16) - const NOTBOL = const G_REGEX_MATCH_NOTBOL = Main.Base.convert(Main.Base.Int32,128) - const NOTEOL = const G_REGEX_MATCH_NOTEOL = Main.Base.convert(Main.Base.Int32,256) - const NOTEMPTY = const G_REGEX_MATCH_NOTEMPTY = Main.Base.convert(Main.Base.Int32,1024) - const PARTIAL = const G_REGEX_MATCH_PARTIAL = Main.Base.convert(Main.Base.Int32,32768) - const NEWLINE_CR = const G_REGEX_MATCH_NEWLINE_CR = Main.Base.convert(Main.Base.Int32,1048576) - const NEWLINE_LF = const G_REGEX_MATCH_NEWLINE_LF = Main.Base.convert(Main.Base.Int32,2097152) - const NEWLINE_CRLF = const G_REGEX_MATCH_NEWLINE_CRLF = Main.Base.convert(Main.Base.Int32,3145728) - const NEWLINE_ANY = const G_REGEX_MATCH_NEWLINE_ANY = Main.Base.convert(Main.Base.Int32,4194304) - const NEWLINE_ANYCRLF = const G_REGEX_MATCH_NEWLINE_ANYCRLF = Main.Base.convert(Main.Base.Int32,5242880) - const BSR_ANYCRLF = const G_REGEX_MATCH_BSR_ANYCRLF = Main.Base.convert(Main.Base.Int32,8388608) - const BSR_ANY = const G_REGEX_MATCH_BSR_ANY = Main.Base.convert(Main.Base.Int32,16777216) - const PARTIAL_SOFT = const G_REGEX_MATCH_PARTIAL_SOFT = Main.Base.convert(Main.Base.Int32,32768) - const PARTIAL_HARD = const G_REGEX_MATCH_PARTIAL_HARD = Main.Base.convert(Main.Base.Int32,134217728) - const NOTEMPTY_ATSTART = const G_REGEX_MATCH_NOTEMPTY_ATSTART = Main.Base.convert(Main.Base.Int32,268435456) - end))) - $(Expr(:toplevel, :(baremodule GErrorType - const UNKNOWN = const G_ERR_UNKNOWN = Main.Base.convert(Main.Base.Int32,0) - const UNEXP_EOF = const G_ERR_UNEXP_EOF = Main.Base.convert(Main.Base.Int32,1) - const UNEXP_EOF_IN_STRING = const G_ERR_UNEXP_EOF_IN_STRING = Main.Base.convert(Main.Base.Int32,2) - const UNEXP_EOF_IN_COMMENT = const G_ERR_UNEXP_EOF_IN_COMMENT = Main.Base.convert(Main.Base.Int32,3) - const NON_DIGIT_IN_CONST = const G_ERR_NON_DIGIT_IN_CONST = Main.Base.convert(Main.Base.Int32,4) - const DIGIT_RADIX = const G_ERR_DIGIT_RADIX = Main.Base.convert(Main.Base.Int32,5) - const FLOAT_RADIX = const G_ERR_FLOAT_RADIX = Main.Base.convert(Main.Base.Int32,6) - const FLOAT_MALFORMED = const G_ERR_FLOAT_MALFORMED = Main.Base.convert(Main.Base.Int32,7) - end))) - $(Expr(:toplevel, :(baremodule GTokenType - const EOF = const G_TOKEN_EOF = Main.Base.convert(Main.Base.Int32,0) - const LEFT_PAREN = const G_TOKEN_LEFT_PAREN = Main.Base.convert(Main.Base.Int32,40) - const RIGHT_PAREN = const G_TOKEN_RIGHT_PAREN = Main.Base.convert(Main.Base.Int32,41) - const LEFT_CURLY = const G_TOKEN_LEFT_CURLY = Main.Base.convert(Main.Base.Int32,123) - const RIGHT_CURLY = const G_TOKEN_RIGHT_CURLY = Main.Base.convert(Main.Base.Int32,125) - const LEFT_BRACE = const G_TOKEN_LEFT_BRACE = Main.Base.convert(Main.Base.Int32,91) - const RIGHT_BRACE = const G_TOKEN_RIGHT_BRACE = Main.Base.convert(Main.Base.Int32,93) - const EQUAL_SIGN = const G_TOKEN_EQUAL_SIGN = Main.Base.convert(Main.Base.Int32,61) - const COMMA = const G_TOKEN_COMMA = Main.Base.convert(Main.Base.Int32,44) - const NONE = const G_TOKEN_NONE = Main.Base.convert(Main.Base.Int32,256) - const ERROR = const G_TOKEN_ERROR = Main.Base.convert(Main.Base.Int32,257) - const CHAR = const G_TOKEN_CHAR = Main.Base.convert(Main.Base.Int32,258) - const BINARY = const G_TOKEN_BINARY = Main.Base.convert(Main.Base.Int32,259) - const OCTAL = const G_TOKEN_OCTAL = Main.Base.convert(Main.Base.Int32,260) - const INT = const G_TOKEN_INT = Main.Base.convert(Main.Base.Int32,261) - const HEX = const G_TOKEN_HEX = Main.Base.convert(Main.Base.Int32,262) - const FLOAT = const G_TOKEN_FLOAT = Main.Base.convert(Main.Base.Int32,263) - const STRING = const G_TOKEN_STRING = Main.Base.convert(Main.Base.Int32,264) - const SYMBOL = const G_TOKEN_SYMBOL = Main.Base.convert(Main.Base.Int32,265) - const IDENTIFIER = const G_TOKEN_IDENTIFIER = Main.Base.convert(Main.Base.Int32,266) - const IDENTIFIER_NULL = const G_TOKEN_IDENTIFIER_NULL = Main.Base.convert(Main.Base.Int32,267) - const COMMENT_SINGLE = const G_TOKEN_COMMENT_SINGLE = Main.Base.convert(Main.Base.Int32,268) - const COMMENT_MULTI = const G_TOKEN_COMMENT_MULTI = Main.Base.convert(Main.Base.Int32,269) - const LAST = const G_TOKEN_LAST = Main.Base.convert(Main.Base.Int32,270) - end))) - $(Expr(:toplevel, :(baremodule GShellError - const BAD_QUOTING = const G_SHELL_ERROR_BAD_QUOTING = Main.Base.convert(Main.Base.Int32,0) - const EMPTY_STRING = const G_SHELL_ERROR_EMPTY_STRING = Main.Base.convert(Main.Base.Int32,1) - const FAILED = const G_SHELL_ERROR_FAILED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GSliceConfig - const ALWAYS_MALLOC = const G_SLICE_CONFIG_ALWAYS_MALLOC = Main.Base.convert(Main.Base.Int32,1) - const BYPASS_MAGAZINES = const G_SLICE_CONFIG_BYPASS_MAGAZINES = Main.Base.convert(Main.Base.Int32,2) - const WORKING_SET_MSECS = const G_SLICE_CONFIG_WORKING_SET_MSECS = Main.Base.convert(Main.Base.Int32,3) - const COLOR_INCREMENT = const G_SLICE_CONFIG_COLOR_INCREMENT = Main.Base.convert(Main.Base.Int32,4) - const CHUNK_SIZES = const G_SLICE_CONFIG_CHUNK_SIZES = Main.Base.convert(Main.Base.Int32,5) - const CONTENTION_COUNTER = const G_SLICE_CONFIG_CONTENTION_COUNTER = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GSpawnError - const FORK = const G_SPAWN_ERROR_FORK = Main.Base.convert(Main.Base.Int32,0) - const READ = const G_SPAWN_ERROR_READ = Main.Base.convert(Main.Base.Int32,1) - const CHDIR = const G_SPAWN_ERROR_CHDIR = Main.Base.convert(Main.Base.Int32,2) - const ACCES = const G_SPAWN_ERROR_ACCES = Main.Base.convert(Main.Base.Int32,3) - const PERM = const G_SPAWN_ERROR_PERM = Main.Base.convert(Main.Base.Int32,4) - const TOO_BIG = const G_SPAWN_ERROR_TOO_BIG = Main.Base.convert(Main.Base.Int32,5) - const G_SPAWN_ERROR_2BIG = Main.Base.convert(Main.Base.Int32,5) - const NOEXEC = const G_SPAWN_ERROR_NOEXEC = Main.Base.convert(Main.Base.Int32,6) - const NAMETOOLONG = const G_SPAWN_ERROR_NAMETOOLONG = Main.Base.convert(Main.Base.Int32,7) - const NOENT = const G_SPAWN_ERROR_NOENT = Main.Base.convert(Main.Base.Int32,8) - const NOMEM = const G_SPAWN_ERROR_NOMEM = Main.Base.convert(Main.Base.Int32,9) - const NOTDIR = const G_SPAWN_ERROR_NOTDIR = Main.Base.convert(Main.Base.Int32,10) - const LOOP = const G_SPAWN_ERROR_LOOP = Main.Base.convert(Main.Base.Int32,11) - const TXTBUSY = const G_SPAWN_ERROR_TXTBUSY = Main.Base.convert(Main.Base.Int32,12) - const IO = const G_SPAWN_ERROR_IO = Main.Base.convert(Main.Base.Int32,13) - const NFILE = const G_SPAWN_ERROR_NFILE = Main.Base.convert(Main.Base.Int32,14) - const MFILE = const G_SPAWN_ERROR_MFILE = Main.Base.convert(Main.Base.Int32,15) - const INVAL = const G_SPAWN_ERROR_INVAL = Main.Base.convert(Main.Base.Int32,16) - const ISDIR = const G_SPAWN_ERROR_ISDIR = Main.Base.convert(Main.Base.Int32,17) - const LIBBAD = const G_SPAWN_ERROR_LIBBAD = Main.Base.convert(Main.Base.Int32,18) - const FAILED = const G_SPAWN_ERROR_FAILED = Main.Base.convert(Main.Base.Int32,19) - end))) - $(Expr(:toplevel, :(baremodule GSpawnFlags - const DEFAULT = const G_SPAWN_DEFAULT = Main.Base.convert(Main.Base.Int32,0) - const LEAVE_DESCRIPTORS_OPEN = const G_SPAWN_LEAVE_DESCRIPTORS_OPEN = Main.Base.convert(Main.Base.Int32,1) - const DO_NOT_REAP_CHILD = const G_SPAWN_DO_NOT_REAP_CHILD = Main.Base.convert(Main.Base.Int32,2) - const SEARCH_PATH = const G_SPAWN_SEARCH_PATH = Main.Base.convert(Main.Base.Int32,4) - const STDOUT_TO_DEV_NULL = const G_SPAWN_STDOUT_TO_DEV_NULL = Main.Base.convert(Main.Base.Int32,8) - const STDERR_TO_DEV_NULL = const G_SPAWN_STDERR_TO_DEV_NULL = Main.Base.convert(Main.Base.Int32,16) - const CHILD_INHERITS_STDIN = const G_SPAWN_CHILD_INHERITS_STDIN = Main.Base.convert(Main.Base.Int32,32) - const FILE_AND_ARGV_ZERO = const G_SPAWN_FILE_AND_ARGV_ZERO = Main.Base.convert(Main.Base.Int32,64) - const SEARCH_PATH_FROM_ENVP = const G_SPAWN_SEARCH_PATH_FROM_ENVP = Main.Base.convert(Main.Base.Int32,128) - const CLOEXEC_PIPES = const G_SPAWN_CLOEXEC_PIPES = Main.Base.convert(Main.Base.Int32,256) - end))) - $(Expr(:toplevel, :(baremodule GAsciiType - const ALNUM = const G_ASCII_ALNUM = Main.Base.convert(Main.Base.Int32,1) - const ALPHA = const G_ASCII_ALPHA = Main.Base.convert(Main.Base.Int32,2) - const CNTRL = const G_ASCII_CNTRL = Main.Base.convert(Main.Base.Int32,4) - const DIGIT = const G_ASCII_DIGIT = Main.Base.convert(Main.Base.Int32,8) - const GRAPH = const G_ASCII_GRAPH = Main.Base.convert(Main.Base.Int32,16) - const LOWER = const G_ASCII_LOWER = Main.Base.convert(Main.Base.Int32,32) - const PRINT = const G_ASCII_PRINT = Main.Base.convert(Main.Base.Int32,64) - const PUNCT = const G_ASCII_PUNCT = Main.Base.convert(Main.Base.Int32,128) - const SPACE = const G_ASCII_SPACE = Main.Base.convert(Main.Base.Int32,256) - const UPPER = const G_ASCII_UPPER = Main.Base.convert(Main.Base.Int32,512) - const XDIGIT = const G_ASCII_XDIGIT = Main.Base.convert(Main.Base.Int32,1024) - end))) - $(Expr(:toplevel, :(baremodule GTestTrapFlags - const SILENCE_STDOUT = const G_TEST_TRAP_SILENCE_STDOUT = Main.Base.convert(Main.Base.Int32,128) - const SILENCE_STDERR = const G_TEST_TRAP_SILENCE_STDERR = Main.Base.convert(Main.Base.Int32,256) - const INHERIT_STDIN = const G_TEST_TRAP_INHERIT_STDIN = Main.Base.convert(Main.Base.Int32,512) - end))) - $(Expr(:toplevel, :(baremodule GTestSubprocessFlags - const STDIN = const G_TEST_SUBPROCESS_INHERIT_STDIN = Main.Base.convert(Main.Base.Int32,1) - const STDOUT = const G_TEST_SUBPROCESS_INHERIT_STDOUT = Main.Base.convert(Main.Base.Int32,2) - const STDERR = const G_TEST_SUBPROCESS_INHERIT_STDERR = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GTestLogType - const NONE = const G_TEST_LOG_NONE = Main.Base.convert(Main.Base.Int32,0) - const ERROR = const G_TEST_LOG_ERROR = Main.Base.convert(Main.Base.Int32,1) - const START_BINARY = const G_TEST_LOG_START_BINARY = Main.Base.convert(Main.Base.Int32,2) - const LIST_CASE = const G_TEST_LOG_LIST_CASE = Main.Base.convert(Main.Base.Int32,3) - const SKIP_CASE = const G_TEST_LOG_SKIP_CASE = Main.Base.convert(Main.Base.Int32,4) - const START_CASE = const G_TEST_LOG_START_CASE = Main.Base.convert(Main.Base.Int32,5) - const STOP_CASE = const G_TEST_LOG_STOP_CASE = Main.Base.convert(Main.Base.Int32,6) - const MIN_RESULT = const G_TEST_LOG_MIN_RESULT = Main.Base.convert(Main.Base.Int32,7) - const MAX_RESULT = const G_TEST_LOG_MAX_RESULT = Main.Base.convert(Main.Base.Int32,8) - const MESSAGE = const G_TEST_LOG_MESSAGE = Main.Base.convert(Main.Base.Int32,9) - const START_SUITE = const G_TEST_LOG_START_SUITE = Main.Base.convert(Main.Base.Int32,10) - const STOP_SUITE = const G_TEST_LOG_STOP_SUITE = Main.Base.convert(Main.Base.Int32,11) - end))) - $(Expr(:toplevel, :(baremodule GTestFileType - const DIST = const G_TEST_DIST = Main.Base.convert(Main.Base.Int32,0) - const BUILT = const G_TEST_BUILT = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GVariantClass - const BOOLEAN = const G_VARIANT_CLASS_BOOLEAN = Main.Base.convert(Main.Base.Int32,98) - const BYTE = const G_VARIANT_CLASS_BYTE = Main.Base.convert(Main.Base.Int32,121) - const INT16 = const G_VARIANT_CLASS_INT16 = Main.Base.convert(Main.Base.Int32,110) - const UINT16 = const G_VARIANT_CLASS_UINT16 = Main.Base.convert(Main.Base.Int32,113) - const INT32 = const G_VARIANT_CLASS_INT32 = Main.Base.convert(Main.Base.Int32,105) - const UINT32 = const G_VARIANT_CLASS_UINT32 = Main.Base.convert(Main.Base.Int32,117) - const INT64 = const G_VARIANT_CLASS_INT64 = Main.Base.convert(Main.Base.Int32,120) - const UINT64 = const G_VARIANT_CLASS_UINT64 = Main.Base.convert(Main.Base.Int32,116) - const HANDLE = const G_VARIANT_CLASS_HANDLE = Main.Base.convert(Main.Base.Int32,104) - const DOUBLE = const G_VARIANT_CLASS_DOUBLE = Main.Base.convert(Main.Base.Int32,100) - const STRING = const G_VARIANT_CLASS_STRING = Main.Base.convert(Main.Base.Int32,115) - const OBJECT_PATH = const G_VARIANT_CLASS_OBJECT_PATH = Main.Base.convert(Main.Base.Int32,111) - const SIGNATURE = const G_VARIANT_CLASS_SIGNATURE = Main.Base.convert(Main.Base.Int32,103) - const VARIANT = const G_VARIANT_CLASS_VARIANT = Main.Base.convert(Main.Base.Int32,118) - const MAYBE = const G_VARIANT_CLASS_MAYBE = Main.Base.convert(Main.Base.Int32,109) - const ARRAY = const G_VARIANT_CLASS_ARRAY = Main.Base.convert(Main.Base.Int32,97) - const TUPLE = const G_VARIANT_CLASS_TUPLE = Main.Base.convert(Main.Base.Int32,40) - const DICT_ENTRY = const G_VARIANT_CLASS_DICT_ENTRY = Main.Base.convert(Main.Base.Int32,123) - end))) - $(Expr(:toplevel, :(baremodule GVariantParseError - const FAILED = const G_VARIANT_PARSE_ERROR_FAILED = Main.Base.convert(Main.Base.Int32,0) - const BASIC_TYPE_EXPECTED = const G_VARIANT_PARSE_ERROR_BASIC_TYPE_EXPECTED = Main.Base.convert(Main.Base.Int32,1) - const CANNOT_INFER_TYPE = const G_VARIANT_PARSE_ERROR_CANNOT_INFER_TYPE = Main.Base.convert(Main.Base.Int32,2) - const DEFINITE_TYPE_EXPECTED = const G_VARIANT_PARSE_ERROR_DEFINITE_TYPE_EXPECTED = Main.Base.convert(Main.Base.Int32,3) - const INPUT_NOT_AT_END = const G_VARIANT_PARSE_ERROR_INPUT_NOT_AT_END = Main.Base.convert(Main.Base.Int32,4) - const INVALID_CHARACTER = const G_VARIANT_PARSE_ERROR_INVALID_CHARACTER = Main.Base.convert(Main.Base.Int32,5) - const INVALID_FORMAT_STRING = const G_VARIANT_PARSE_ERROR_INVALID_FORMAT_STRING = Main.Base.convert(Main.Base.Int32,6) - const INVALID_OBJECT_PATH = const G_VARIANT_PARSE_ERROR_INVALID_OBJECT_PATH = Main.Base.convert(Main.Base.Int32,7) - const INVALID_SIGNATURE = const G_VARIANT_PARSE_ERROR_INVALID_SIGNATURE = Main.Base.convert(Main.Base.Int32,8) - const INVALID_TYPE_STRING = const G_VARIANT_PARSE_ERROR_INVALID_TYPE_STRING = Main.Base.convert(Main.Base.Int32,9) - const NO_COMMON_TYPE = const G_VARIANT_PARSE_ERROR_NO_COMMON_TYPE = Main.Base.convert(Main.Base.Int32,10) - const NUMBER_OUT_OF_RANGE = const G_VARIANT_PARSE_ERROR_NUMBER_OUT_OF_RANGE = Main.Base.convert(Main.Base.Int32,11) - const NUMBER_TOO_BIG = const G_VARIANT_PARSE_ERROR_NUMBER_TOO_BIG = Main.Base.convert(Main.Base.Int32,12) - const TYPE_ERROR = const G_VARIANT_PARSE_ERROR_TYPE_ERROR = Main.Base.convert(Main.Base.Int32,13) - const UNEXPECTED_TOKEN = const G_VARIANT_PARSE_ERROR_UNEXPECTED_TOKEN = Main.Base.convert(Main.Base.Int32,14) - const UNKNOWN_KEYWORD = const G_VARIANT_PARSE_ERROR_UNKNOWN_KEYWORD = Main.Base.convert(Main.Base.Int32,15) - const UNTERMINATED_STRING_CONSTANT = const G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT = Main.Base.convert(Main.Base.Int32,16) - const VALUE_EXPECTED = const G_VARIANT_PARSE_ERROR_VALUE_EXPECTED = Main.Base.convert(Main.Base.Int32,17) - end))) - $(Expr(:toplevel, :(baremodule GThreadPriority - const LOW = const G_THREAD_PRIORITY_LOW = Main.Base.convert(Main.Base.Int32,0) - const NORMAL = const G_THREAD_PRIORITY_NORMAL = Main.Base.convert(Main.Base.Int32,1) - const HIGH = const G_THREAD_PRIORITY_HIGH = Main.Base.convert(Main.Base.Int32,2) - const URGENT = const G_THREAD_PRIORITY_URGENT = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GTypeDebugFlags - const NONE = const G_TYPE_DEBUG_NONE = Main.Base.convert(Main.Base.Int32,0) - const OBJECTS = const G_TYPE_DEBUG_OBJECTS = Main.Base.convert(Main.Base.Int32,1) - const SIGNALS = const G_TYPE_DEBUG_SIGNALS = Main.Base.convert(Main.Base.Int32,2) - const MASK = const G_TYPE_DEBUG_MASK = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GTypeFundamentalFlags - const CLASSED = const G_TYPE_FLAG_CLASSED = Main.Base.convert(Main.Base.Int32,1) - const INSTANTIATABLE = const G_TYPE_FLAG_INSTANTIATABLE = Main.Base.convert(Main.Base.Int32,2) - const DERIVABLE = const G_TYPE_FLAG_DERIVABLE = Main.Base.convert(Main.Base.Int32,4) - const DEEP_DERIVABLE = const G_TYPE_FLAG_DEEP_DERIVABLE = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GTypeFlags - const ABSTRACT = const G_TYPE_FLAG_ABSTRACT = Main.Base.convert(Main.Base.Int32,16) - const VALUE_ABSTRACT = const G_TYPE_FLAG_VALUE_ABSTRACT = Main.Base.convert(Main.Base.Int32,32) - end))) - $(Expr(:toplevel, :(baremodule GParamFlags - const READABLE = const G_PARAM_READABLE = Main.Base.convert(Main.Base.Int32,1) - const WRITABLE = const G_PARAM_WRITABLE = Main.Base.convert(Main.Base.Int32,2) - const CONSTRUCT = const G_PARAM_CONSTRUCT = Main.Base.convert(Main.Base.Int32,4) - const CONSTRUCT_ONLY = const G_PARAM_CONSTRUCT_ONLY = Main.Base.convert(Main.Base.Int32,8) - const LAX_VALIDATION = const G_PARAM_LAX_VALIDATION = Main.Base.convert(Main.Base.Int32,16) - const STATIC_NAME = const G_PARAM_STATIC_NAME = Main.Base.convert(Main.Base.Int32,32) - const PRIVATE = const G_PARAM_PRIVATE = Main.Base.convert(Main.Base.Int32,32) - const STATIC_NICK = const G_PARAM_STATIC_NICK = Main.Base.convert(Main.Base.Int32,64) - const STATIC_BLURB = const G_PARAM_STATIC_BLURB = Main.Base.convert(Main.Base.Int32,128) - const DEPRECATED = const G_PARAM_DEPRECATED = Main.Base.convert(Main.Base.Int32,-2147483648) - end))) - $(Expr(:toplevel, :(baremodule GSignalFlags - const RUN_FIRST = const G_SIGNAL_RUN_FIRST = Main.Base.convert(Main.Base.Int32,1) - const RUN_LAST = const G_SIGNAL_RUN_LAST = Main.Base.convert(Main.Base.Int32,2) - const RUN_CLEANUP = const G_SIGNAL_RUN_CLEANUP = Main.Base.convert(Main.Base.Int32,4) - const NO_RECURSE = const G_SIGNAL_NO_RECURSE = Main.Base.convert(Main.Base.Int32,8) - const DETAILED = const G_SIGNAL_DETAILED = Main.Base.convert(Main.Base.Int32,16) - const ACTION = const G_SIGNAL_ACTION = Main.Base.convert(Main.Base.Int32,32) - const NO_HOOKS = const G_SIGNAL_NO_HOOKS = Main.Base.convert(Main.Base.Int32,64) - const MUST_COLLECT = const G_SIGNAL_MUST_COLLECT = Main.Base.convert(Main.Base.Int32,128) - const DEPRECATED = const G_SIGNAL_DEPRECATED = Main.Base.convert(Main.Base.Int32,256) - end))) - $(Expr(:toplevel, :(baremodule GConnectFlags - const AFTER = const G_CONNECT_AFTER = Main.Base.convert(Main.Base.Int32,1) - const SWAPPED = const G_CONNECT_SWAPPED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GSignalMatchType - const ID = const G_SIGNAL_MATCH_ID = Main.Base.convert(Main.Base.Int32,1) - const DETAIL = const G_SIGNAL_MATCH_DETAIL = Main.Base.convert(Main.Base.Int32,2) - const CLOSURE = const G_SIGNAL_MATCH_CLOSURE = Main.Base.convert(Main.Base.Int32,4) - const FUNC = const G_SIGNAL_MATCH_FUNC = Main.Base.convert(Main.Base.Int32,8) - const DATA = const G_SIGNAL_MATCH_DATA = Main.Base.convert(Main.Base.Int32,16) - const UNBLOCKED = const G_SIGNAL_MATCH_UNBLOCKED = Main.Base.convert(Main.Base.Int32,32) - end))) - $(Expr(:toplevel, :(baremodule GBindingFlags - const DEFAULT = const G_BINDING_DEFAULT = Main.Base.convert(Main.Base.Int32,0) - const BIDIRECTIONAL = const G_BINDING_BIDIRECTIONAL = Main.Base.convert(Main.Base.Int32,1) - const SYNC_CREATE = const G_BINDING_SYNC_CREATE = Main.Base.convert(Main.Base.Int32,2) - const INVERT_BOOLEAN = const G_BINDING_INVERT_BOOLEAN = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GAppInfoCreateFlags - const NONE = const G_APP_INFO_CREATE_NONE = Main.Base.convert(Main.Base.Int32,0) - const NEEDS_TERMINAL = const G_APP_INFO_CREATE_NEEDS_TERMINAL = Main.Base.convert(Main.Base.Int32,1) - const SUPPORTS_URIS = const G_APP_INFO_CREATE_SUPPORTS_URIS = Main.Base.convert(Main.Base.Int32,2) - const SUPPORTS_STARTUP_NOTIFICATION = const G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GConverterFlags - const NO_FLAGS = const G_CONVERTER_NO_FLAGS = Main.Base.convert(Main.Base.Int32,0) - const INPUT_AT_END = const G_CONVERTER_INPUT_AT_END = Main.Base.convert(Main.Base.Int32,1) - const FLUSH = const G_CONVERTER_FLUSH = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GConverterResult - const ERROR = const G_CONVERTER_ERROR = Main.Base.convert(Main.Base.Int32,0) - const CONVERTED = const G_CONVERTER_CONVERTED = Main.Base.convert(Main.Base.Int32,1) - const FINISHED = const G_CONVERTER_FINISHED = Main.Base.convert(Main.Base.Int32,2) - const FLUSHED = const G_CONVERTER_FLUSHED = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GDataStreamByteOrder - const BIG_ENDIAN = const G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN = Main.Base.convert(Main.Base.Int32,0) - const LITTLE_ENDIAN = const G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN = Main.Base.convert(Main.Base.Int32,1) - const HOST_ENDIAN = const G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GDataStreamNewlineType - const LF = const G_DATA_STREAM_NEWLINE_TYPE_LF = Main.Base.convert(Main.Base.Int32,0) - const CR = const G_DATA_STREAM_NEWLINE_TYPE_CR = Main.Base.convert(Main.Base.Int32,1) - const CR_LF = const G_DATA_STREAM_NEWLINE_TYPE_CR_LF = Main.Base.convert(Main.Base.Int32,2) - const ANY = const G_DATA_STREAM_NEWLINE_TYPE_ANY = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GFileAttributeType - const INVALID = const G_FILE_ATTRIBUTE_TYPE_INVALID = Main.Base.convert(Main.Base.Int32,0) - const STRING = const G_FILE_ATTRIBUTE_TYPE_STRING = Main.Base.convert(Main.Base.Int32,1) - const BYTE_STRING = const G_FILE_ATTRIBUTE_TYPE_BYTE_STRING = Main.Base.convert(Main.Base.Int32,2) - const BOOLEAN = const G_FILE_ATTRIBUTE_TYPE_BOOLEAN = Main.Base.convert(Main.Base.Int32,3) - const UINT32 = const G_FILE_ATTRIBUTE_TYPE_UINT32 = Main.Base.convert(Main.Base.Int32,4) - const INT32 = const G_FILE_ATTRIBUTE_TYPE_INT32 = Main.Base.convert(Main.Base.Int32,5) - const UINT64 = const G_FILE_ATTRIBUTE_TYPE_UINT64 = Main.Base.convert(Main.Base.Int32,6) - const INT64 = const G_FILE_ATTRIBUTE_TYPE_INT64 = Main.Base.convert(Main.Base.Int32,7) - const OBJECT = const G_FILE_ATTRIBUTE_TYPE_OBJECT = Main.Base.convert(Main.Base.Int32,8) - const STRINGV = const G_FILE_ATTRIBUTE_TYPE_STRINGV = Main.Base.convert(Main.Base.Int32,9) - end))) - $(Expr(:toplevel, :(baremodule GFileAttributeInfoFlags - const NONE = const G_FILE_ATTRIBUTE_INFO_NONE = Main.Base.convert(Main.Base.Int32,0) - const COPY_WITH_FILE = const G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE = Main.Base.convert(Main.Base.Int32,1) - const COPY_WHEN_MOVED = const G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GFileAttributeStatus - const UNSET = const G_FILE_ATTRIBUTE_STATUS_UNSET = Main.Base.convert(Main.Base.Int32,0) - const SET = const G_FILE_ATTRIBUTE_STATUS_SET = Main.Base.convert(Main.Base.Int32,1) - const ERROR_SETTING = const G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GFileQueryInfoFlags - const NONE = const G_FILE_QUERY_INFO_NONE = Main.Base.convert(Main.Base.Int32,0) - const NOFOLLOW_SYMLINKS = const G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GFileCreateFlags - const NONE = const G_FILE_CREATE_NONE = Main.Base.convert(Main.Base.Int32,0) - const PRIVATE = const G_FILE_CREATE_PRIVATE = Main.Base.convert(Main.Base.Int32,1) - const REPLACE_DESTINATION = const G_FILE_CREATE_REPLACE_DESTINATION = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GFileMeasureFlags - const NONE = const G_FILE_MEASURE_NONE = Main.Base.convert(Main.Base.Int32,0) - const REPORT_ANY_ERROR = const G_FILE_MEASURE_REPORT_ANY_ERROR = Main.Base.convert(Main.Base.Int32,2) - const APPARENT_SIZE = const G_FILE_MEASURE_APPARENT_SIZE = Main.Base.convert(Main.Base.Int32,4) - const NO_XDEV = const G_FILE_MEASURE_NO_XDEV = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GMountMountFlags - const NONE = const G_MOUNT_MOUNT_NONE = Main.Base.convert(Main.Base.Int32,0) - end))) - $(Expr(:toplevel, :(baremodule GMountUnmountFlags - const NONE = const G_MOUNT_UNMOUNT_NONE = Main.Base.convert(Main.Base.Int32,0) - const FORCE = const G_MOUNT_UNMOUNT_FORCE = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GDriveStartFlags - const NONE = const G_DRIVE_START_NONE = Main.Base.convert(Main.Base.Int32,0) - end))) - $(Expr(:toplevel, :(baremodule GDriveStartStopType - const UNKNOWN = const G_DRIVE_START_STOP_TYPE_UNKNOWN = Main.Base.convert(Main.Base.Int32,0) - const SHUTDOWN = const G_DRIVE_START_STOP_TYPE_SHUTDOWN = Main.Base.convert(Main.Base.Int32,1) - const NETWORK = const G_DRIVE_START_STOP_TYPE_NETWORK = Main.Base.convert(Main.Base.Int32,2) - const MULTIDISK = const G_DRIVE_START_STOP_TYPE_MULTIDISK = Main.Base.convert(Main.Base.Int32,3) - const PASSWORD = const G_DRIVE_START_STOP_TYPE_PASSWORD = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GFileCopyFlags - const NONE = const G_FILE_COPY_NONE = Main.Base.convert(Main.Base.Int32,0) - const OVERWRITE = const G_FILE_COPY_OVERWRITE = Main.Base.convert(Main.Base.Int32,1) - const BACKUP = const G_FILE_COPY_BACKUP = Main.Base.convert(Main.Base.Int32,2) - const NOFOLLOW_SYMLINKS = const G_FILE_COPY_NOFOLLOW_SYMLINKS = Main.Base.convert(Main.Base.Int32,4) - const ALL_METADATA = const G_FILE_COPY_ALL_METADATA = Main.Base.convert(Main.Base.Int32,8) - const NO_FALLBACK_FOR_MOVE = const G_FILE_COPY_NO_FALLBACK_FOR_MOVE = Main.Base.convert(Main.Base.Int32,16) - const TARGET_DEFAULT_PERMS = const G_FILE_COPY_TARGET_DEFAULT_PERMS = Main.Base.convert(Main.Base.Int32,32) - end))) - $(Expr(:toplevel, :(baremodule GFileMonitorFlags - const NONE = const G_FILE_MONITOR_NONE = Main.Base.convert(Main.Base.Int32,0) - const WATCH_MOUNTS = const G_FILE_MONITOR_WATCH_MOUNTS = Main.Base.convert(Main.Base.Int32,1) - const SEND_MOVED = const G_FILE_MONITOR_SEND_MOVED = Main.Base.convert(Main.Base.Int32,2) - const WATCH_HARD_LINKS = const G_FILE_MONITOR_WATCH_HARD_LINKS = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GFileType - const UNKNOWN = const G_FILE_TYPE_UNKNOWN = Main.Base.convert(Main.Base.Int32,0) - const REGULAR = const G_FILE_TYPE_REGULAR = Main.Base.convert(Main.Base.Int32,1) - const DIRECTORY = const G_FILE_TYPE_DIRECTORY = Main.Base.convert(Main.Base.Int32,2) - const SYMBOLIC_LINK = const G_FILE_TYPE_SYMBOLIC_LINK = Main.Base.convert(Main.Base.Int32,3) - const SPECIAL = const G_FILE_TYPE_SPECIAL = Main.Base.convert(Main.Base.Int32,4) - const SHORTCUT = const G_FILE_TYPE_SHORTCUT = Main.Base.convert(Main.Base.Int32,5) - const MOUNTABLE = const G_FILE_TYPE_MOUNTABLE = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GFilesystemPreviewType - const IF_ALWAYS = const G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS = Main.Base.convert(Main.Base.Int32,0) - const IF_LOCAL = const G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL = Main.Base.convert(Main.Base.Int32,1) - const NEVER = const G_FILESYSTEM_PREVIEW_TYPE_NEVER = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GFileMonitorEvent - const CHANGED = const G_FILE_MONITOR_EVENT_CHANGED = Main.Base.convert(Main.Base.Int32,0) - const CHANGES_DONE_HINT = const G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT = Main.Base.convert(Main.Base.Int32,1) - const DELETED = const G_FILE_MONITOR_EVENT_DELETED = Main.Base.convert(Main.Base.Int32,2) - const CREATED = const G_FILE_MONITOR_EVENT_CREATED = Main.Base.convert(Main.Base.Int32,3) - const ATTRIBUTE_CHANGED = const G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED = Main.Base.convert(Main.Base.Int32,4) - const PRE_UNMOUNT = const G_FILE_MONITOR_EVENT_PRE_UNMOUNT = Main.Base.convert(Main.Base.Int32,5) - const UNMOUNTED = const G_FILE_MONITOR_EVENT_UNMOUNTED = Main.Base.convert(Main.Base.Int32,6) - const MOVED = const G_FILE_MONITOR_EVENT_MOVED = Main.Base.convert(Main.Base.Int32,7) - end))) - $(Expr(:toplevel, :(baremodule GIOErrorEnum - const FAILED = const G_IO_ERROR_FAILED = Main.Base.convert(Main.Base.Int32,0) - const NOT_FOUND = const G_IO_ERROR_NOT_FOUND = Main.Base.convert(Main.Base.Int32,1) - const EXISTS = const G_IO_ERROR_EXISTS = Main.Base.convert(Main.Base.Int32,2) - const IS_DIRECTORY = const G_IO_ERROR_IS_DIRECTORY = Main.Base.convert(Main.Base.Int32,3) - const NOT_DIRECTORY = const G_IO_ERROR_NOT_DIRECTORY = Main.Base.convert(Main.Base.Int32,4) - const NOT_EMPTY = const G_IO_ERROR_NOT_EMPTY = Main.Base.convert(Main.Base.Int32,5) - const NOT_REGULAR_FILE = const G_IO_ERROR_NOT_REGULAR_FILE = Main.Base.convert(Main.Base.Int32,6) - const NOT_SYMBOLIC_LINK = const G_IO_ERROR_NOT_SYMBOLIC_LINK = Main.Base.convert(Main.Base.Int32,7) - const NOT_MOUNTABLE_FILE = const G_IO_ERROR_NOT_MOUNTABLE_FILE = Main.Base.convert(Main.Base.Int32,8) - const FILENAME_TOO_LONG = const G_IO_ERROR_FILENAME_TOO_LONG = Main.Base.convert(Main.Base.Int32,9) - const INVALID_FILENAME = const G_IO_ERROR_INVALID_FILENAME = Main.Base.convert(Main.Base.Int32,10) - const TOO_MANY_LINKS = const G_IO_ERROR_TOO_MANY_LINKS = Main.Base.convert(Main.Base.Int32,11) - const NO_SPACE = const G_IO_ERROR_NO_SPACE = Main.Base.convert(Main.Base.Int32,12) - const INVALID_ARGUMENT = const G_IO_ERROR_INVALID_ARGUMENT = Main.Base.convert(Main.Base.Int32,13) - const PERMISSION_DENIED = const G_IO_ERROR_PERMISSION_DENIED = Main.Base.convert(Main.Base.Int32,14) - const NOT_SUPPORTED = const G_IO_ERROR_NOT_SUPPORTED = Main.Base.convert(Main.Base.Int32,15) - const NOT_MOUNTED = const G_IO_ERROR_NOT_MOUNTED = Main.Base.convert(Main.Base.Int32,16) - const ALREADY_MOUNTED = const G_IO_ERROR_ALREADY_MOUNTED = Main.Base.convert(Main.Base.Int32,17) - const CLOSED = const G_IO_ERROR_CLOSED = Main.Base.convert(Main.Base.Int32,18) - const CANCELLED = const G_IO_ERROR_CANCELLED = Main.Base.convert(Main.Base.Int32,19) - const PENDING = const G_IO_ERROR_PENDING = Main.Base.convert(Main.Base.Int32,20) - const READ_ONLY = const G_IO_ERROR_READ_ONLY = Main.Base.convert(Main.Base.Int32,21) - const CANT_CREATE_BACKUP = const G_IO_ERROR_CANT_CREATE_BACKUP = Main.Base.convert(Main.Base.Int32,22) - const WRONG_ETAG = const G_IO_ERROR_WRONG_ETAG = Main.Base.convert(Main.Base.Int32,23) - const TIMED_OUT = const G_IO_ERROR_TIMED_OUT = Main.Base.convert(Main.Base.Int32,24) - const WOULD_RECURSE = const G_IO_ERROR_WOULD_RECURSE = Main.Base.convert(Main.Base.Int32,25) - const BUSY = const G_IO_ERROR_BUSY = Main.Base.convert(Main.Base.Int32,26) - const WOULD_BLOCK = const G_IO_ERROR_WOULD_BLOCK = Main.Base.convert(Main.Base.Int32,27) - const HOST_NOT_FOUND = const G_IO_ERROR_HOST_NOT_FOUND = Main.Base.convert(Main.Base.Int32,28) - const WOULD_MERGE = const G_IO_ERROR_WOULD_MERGE = Main.Base.convert(Main.Base.Int32,29) - const FAILED_HANDLED = const G_IO_ERROR_FAILED_HANDLED = Main.Base.convert(Main.Base.Int32,30) - const TOO_MANY_OPEN_FILES = const G_IO_ERROR_TOO_MANY_OPEN_FILES = Main.Base.convert(Main.Base.Int32,31) - const NOT_INITIALIZED = const G_IO_ERROR_NOT_INITIALIZED = Main.Base.convert(Main.Base.Int32,32) - const ADDRESS_IN_USE = const G_IO_ERROR_ADDRESS_IN_USE = Main.Base.convert(Main.Base.Int32,33) - const PARTIAL_INPUT = const G_IO_ERROR_PARTIAL_INPUT = Main.Base.convert(Main.Base.Int32,34) - const INVALID_DATA = const G_IO_ERROR_INVALID_DATA = Main.Base.convert(Main.Base.Int32,35) - const DBUS_ERROR = const G_IO_ERROR_DBUS_ERROR = Main.Base.convert(Main.Base.Int32,36) - const HOST_UNREACHABLE = const G_IO_ERROR_HOST_UNREACHABLE = Main.Base.convert(Main.Base.Int32,37) - const NETWORK_UNREACHABLE = const G_IO_ERROR_NETWORK_UNREACHABLE = Main.Base.convert(Main.Base.Int32,38) - const CONNECTION_REFUSED = const G_IO_ERROR_CONNECTION_REFUSED = Main.Base.convert(Main.Base.Int32,39) - const PROXY_FAILED = const G_IO_ERROR_PROXY_FAILED = Main.Base.convert(Main.Base.Int32,40) - const PROXY_AUTH_FAILED = const G_IO_ERROR_PROXY_AUTH_FAILED = Main.Base.convert(Main.Base.Int32,41) - const PROXY_NEED_AUTH = const G_IO_ERROR_PROXY_NEED_AUTH = Main.Base.convert(Main.Base.Int32,42) - const PROXY_NOT_ALLOWED = const G_IO_ERROR_PROXY_NOT_ALLOWED = Main.Base.convert(Main.Base.Int32,43) - const BROKEN_PIPE = const G_IO_ERROR_BROKEN_PIPE = Main.Base.convert(Main.Base.Int32,44) - end))) - $(Expr(:toplevel, :(baremodule GAskPasswordFlags - const NEED_PASSWORD = const G_ASK_PASSWORD_NEED_PASSWORD = Main.Base.convert(Main.Base.Int32,1) - const NEED_USERNAME = const G_ASK_PASSWORD_NEED_USERNAME = Main.Base.convert(Main.Base.Int32,2) - const NEED_DOMAIN = const G_ASK_PASSWORD_NEED_DOMAIN = Main.Base.convert(Main.Base.Int32,4) - const SAVING_SUPPORTED = const G_ASK_PASSWORD_SAVING_SUPPORTED = Main.Base.convert(Main.Base.Int32,8) - const ANONYMOUS_SUPPORTED = const G_ASK_PASSWORD_ANONYMOUS_SUPPORTED = Main.Base.convert(Main.Base.Int32,16) - end))) - $(Expr(:toplevel, :(baremodule GPasswordSave - const NEVER = const G_PASSWORD_SAVE_NEVER = Main.Base.convert(Main.Base.Int32,0) - const FOR_SESSION = const G_PASSWORD_SAVE_FOR_SESSION = Main.Base.convert(Main.Base.Int32,1) - const PERMANENTLY = const G_PASSWORD_SAVE_PERMANENTLY = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GMountOperationResult - const HANDLED = const G_MOUNT_OPERATION_HANDLED = Main.Base.convert(Main.Base.Int32,0) - const ABORTED = const G_MOUNT_OPERATION_ABORTED = Main.Base.convert(Main.Base.Int32,1) - const UNHANDLED = const G_MOUNT_OPERATION_UNHANDLED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GOutputStreamSpliceFlags - const NONE = const G_OUTPUT_STREAM_SPLICE_NONE = Main.Base.convert(Main.Base.Int32,0) - const CLOSE_SOURCE = const G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE = Main.Base.convert(Main.Base.Int32,1) - const CLOSE_TARGET = const G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GIOStreamSpliceFlags - const NONE = const G_IO_STREAM_SPLICE_NONE = Main.Base.convert(Main.Base.Int32,0) - const CLOSE_STREAM1 = const G_IO_STREAM_SPLICE_CLOSE_STREAM1 = Main.Base.convert(Main.Base.Int32,1) - const CLOSE_STREAM2 = const G_IO_STREAM_SPLICE_CLOSE_STREAM2 = Main.Base.convert(Main.Base.Int32,2) - const WAIT_FOR_BOTH = const G_IO_STREAM_SPLICE_WAIT_FOR_BOTH = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GEmblemOrigin - const UNKNOWN = const G_EMBLEM_ORIGIN_UNKNOWN = Main.Base.convert(Main.Base.Int32,0) - const DEVICE = const G_EMBLEM_ORIGIN_DEVICE = Main.Base.convert(Main.Base.Int32,1) - const LIVEMETADATA = const G_EMBLEM_ORIGIN_LIVEMETADATA = Main.Base.convert(Main.Base.Int32,2) - const TAG = const G_EMBLEM_ORIGIN_TAG = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GResolverError - const NOT_FOUND = const G_RESOLVER_ERROR_NOT_FOUND = Main.Base.convert(Main.Base.Int32,0) - const TEMPORARY_FAILURE = const G_RESOLVER_ERROR_TEMPORARY_FAILURE = Main.Base.convert(Main.Base.Int32,1) - const INTERNAL = const G_RESOLVER_ERROR_INTERNAL = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GResolverRecordType - const SRV = const G_RESOLVER_RECORD_SRV = Main.Base.convert(Main.Base.Int32,1) - const MX = const G_RESOLVER_RECORD_MX = Main.Base.convert(Main.Base.Int32,2) - const TXT = const G_RESOLVER_RECORD_TXT = Main.Base.convert(Main.Base.Int32,3) - const SOA = const G_RESOLVER_RECORD_SOA = Main.Base.convert(Main.Base.Int32,4) - const NS = const G_RESOLVER_RECORD_NS = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GResourceError - const NOT_FOUND = const G_RESOURCE_ERROR_NOT_FOUND = Main.Base.convert(Main.Base.Int32,0) - const INTERNAL = const G_RESOURCE_ERROR_INTERNAL = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GResourceFlags - const NONE = const G_RESOURCE_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const COMPRESSED = const G_RESOURCE_FLAGS_COMPRESSED = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GResourceLookupFlags - const NONE = const G_RESOURCE_LOOKUP_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - end))) - $(Expr(:toplevel, :(baremodule GSocketFamily - const INVALID = const G_SOCKET_FAMILY_INVALID = Main.Base.convert(Main.Base.Int32,0) - const UNIX = const G_SOCKET_FAMILY_UNIX = Main.Base.convert(Main.Base.Int32,1) - const IPV4 = const G_SOCKET_FAMILY_IPV4 = Main.Base.convert(Main.Base.Int32,2) - const IPV6 = const G_SOCKET_FAMILY_IPV6 = Main.Base.convert(Main.Base.Int32,10) - end))) - $(Expr(:toplevel, :(baremodule GSocketType - const INVALID = const G_SOCKET_TYPE_INVALID = Main.Base.convert(Main.Base.Int32,0) - const STREAM = const G_SOCKET_TYPE_STREAM = Main.Base.convert(Main.Base.Int32,1) - const DATAGRAM = const G_SOCKET_TYPE_DATAGRAM = Main.Base.convert(Main.Base.Int32,2) - const SEQPACKET = const G_SOCKET_TYPE_SEQPACKET = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GSocketMsgFlags - const NONE = const G_SOCKET_MSG_NONE = Main.Base.convert(Main.Base.Int32,0) - const OOB = const G_SOCKET_MSG_OOB = Main.Base.convert(Main.Base.Int32,1) - const PEEK = const G_SOCKET_MSG_PEEK = Main.Base.convert(Main.Base.Int32,2) - const DONTROUTE = const G_SOCKET_MSG_DONTROUTE = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GSocketProtocol - const UNKNOWN = const G_SOCKET_PROTOCOL_UNKNOWN = Main.Base.convert(Main.Base.Int32,-1) - const DEFAULT = const G_SOCKET_PROTOCOL_DEFAULT = Main.Base.convert(Main.Base.Int32,0) - const TCP = const G_SOCKET_PROTOCOL_TCP = Main.Base.convert(Main.Base.Int32,6) - const UDP = const G_SOCKET_PROTOCOL_UDP = Main.Base.convert(Main.Base.Int32,17) - const SCTP = const G_SOCKET_PROTOCOL_SCTP = Main.Base.convert(Main.Base.Int32,132) - end))) - $(Expr(:toplevel, :(baremodule GZlibCompressorFormat - const ZLIB = const G_ZLIB_COMPRESSOR_FORMAT_ZLIB = Main.Base.convert(Main.Base.Int32,0) - const GZIP = const G_ZLIB_COMPRESSOR_FORMAT_GZIP = Main.Base.convert(Main.Base.Int32,1) - const RAW = const G_ZLIB_COMPRESSOR_FORMAT_RAW = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GUnixSocketAddressType - const INVALID = const G_UNIX_SOCKET_ADDRESS_INVALID = Main.Base.convert(Main.Base.Int32,0) - const ANONYMOUS = const G_UNIX_SOCKET_ADDRESS_ANONYMOUS = Main.Base.convert(Main.Base.Int32,1) - const PATH = const G_UNIX_SOCKET_ADDRESS_PATH = Main.Base.convert(Main.Base.Int32,2) - const ABSTRACT = const G_UNIX_SOCKET_ADDRESS_ABSTRACT = Main.Base.convert(Main.Base.Int32,3) - const ABSTRACT_PADDED = const G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GBusType - const STARTER = const G_BUS_TYPE_STARTER = Main.Base.convert(Main.Base.Int32,-1) - const NONE = const G_BUS_TYPE_NONE = Main.Base.convert(Main.Base.Int32,0) - const SYSTEM = const G_BUS_TYPE_SYSTEM = Main.Base.convert(Main.Base.Int32,1) - const SESSION = const G_BUS_TYPE_SESSION = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GBusNameOwnerFlags - const NONE = const G_BUS_NAME_OWNER_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const ALLOW_REPLACEMENT = const G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT = Main.Base.convert(Main.Base.Int32,1) - const REPLACE = const G_BUS_NAME_OWNER_FLAGS_REPLACE = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GBusNameWatcherFlags - const NONE = const G_BUS_NAME_WATCHER_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const AUTO_START = const G_BUS_NAME_WATCHER_FLAGS_AUTO_START = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GDBusProxyFlags - const NONE = const G_DBUS_PROXY_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const DO_NOT_LOAD_PROPERTIES = const G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES = Main.Base.convert(Main.Base.Int32,1) - const DO_NOT_CONNECT_SIGNALS = const G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS = Main.Base.convert(Main.Base.Int32,2) - const DO_NOT_AUTO_START = const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START = Main.Base.convert(Main.Base.Int32,4) - const GET_INVALIDATED_PROPERTIES = const G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES = Main.Base.convert(Main.Base.Int32,8) - const DO_NOT_AUTO_START_AT_CONSTRUCTION = const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION = Main.Base.convert(Main.Base.Int32,16) - end))) - $(Expr(:toplevel, :(baremodule GDBusError - const FAILED = const G_DBUS_ERROR_FAILED = Main.Base.convert(Main.Base.Int32,0) - const NO_MEMORY = const G_DBUS_ERROR_NO_MEMORY = Main.Base.convert(Main.Base.Int32,1) - const SERVICE_UNKNOWN = const G_DBUS_ERROR_SERVICE_UNKNOWN = Main.Base.convert(Main.Base.Int32,2) - const NAME_HAS_NO_OWNER = const G_DBUS_ERROR_NAME_HAS_NO_OWNER = Main.Base.convert(Main.Base.Int32,3) - const NO_REPLY = const G_DBUS_ERROR_NO_REPLY = Main.Base.convert(Main.Base.Int32,4) - const IO_ERROR = const G_DBUS_ERROR_IO_ERROR = Main.Base.convert(Main.Base.Int32,5) - const BAD_ADDRESS = const G_DBUS_ERROR_BAD_ADDRESS = Main.Base.convert(Main.Base.Int32,6) - const NOT_SUPPORTED = const G_DBUS_ERROR_NOT_SUPPORTED = Main.Base.convert(Main.Base.Int32,7) - const LIMITS_EXCEEDED = const G_DBUS_ERROR_LIMITS_EXCEEDED = Main.Base.convert(Main.Base.Int32,8) - const ACCESS_DENIED = const G_DBUS_ERROR_ACCESS_DENIED = Main.Base.convert(Main.Base.Int32,9) - const AUTH_FAILED = const G_DBUS_ERROR_AUTH_FAILED = Main.Base.convert(Main.Base.Int32,10) - const NO_SERVER = const G_DBUS_ERROR_NO_SERVER = Main.Base.convert(Main.Base.Int32,11) - const TIMEOUT = const G_DBUS_ERROR_TIMEOUT = Main.Base.convert(Main.Base.Int32,12) - const NO_NETWORK = const G_DBUS_ERROR_NO_NETWORK = Main.Base.convert(Main.Base.Int32,13) - const ADDRESS_IN_USE = const G_DBUS_ERROR_ADDRESS_IN_USE = Main.Base.convert(Main.Base.Int32,14) - const DISCONNECTED = const G_DBUS_ERROR_DISCONNECTED = Main.Base.convert(Main.Base.Int32,15) - const INVALID_ARGS = const G_DBUS_ERROR_INVALID_ARGS = Main.Base.convert(Main.Base.Int32,16) - const FILE_NOT_FOUND = const G_DBUS_ERROR_FILE_NOT_FOUND = Main.Base.convert(Main.Base.Int32,17) - const FILE_EXISTS = const G_DBUS_ERROR_FILE_EXISTS = Main.Base.convert(Main.Base.Int32,18) - const UNKNOWN_METHOD = const G_DBUS_ERROR_UNKNOWN_METHOD = Main.Base.convert(Main.Base.Int32,19) - const TIMED_OUT = const G_DBUS_ERROR_TIMED_OUT = Main.Base.convert(Main.Base.Int32,20) - const MATCH_RULE_NOT_FOUND = const G_DBUS_ERROR_MATCH_RULE_NOT_FOUND = Main.Base.convert(Main.Base.Int32,21) - const MATCH_RULE_INVALID = const G_DBUS_ERROR_MATCH_RULE_INVALID = Main.Base.convert(Main.Base.Int32,22) - const SPAWN_EXEC_FAILED = const G_DBUS_ERROR_SPAWN_EXEC_FAILED = Main.Base.convert(Main.Base.Int32,23) - const SPAWN_FORK_FAILED = const G_DBUS_ERROR_SPAWN_FORK_FAILED = Main.Base.convert(Main.Base.Int32,24) - const SPAWN_CHILD_EXITED = const G_DBUS_ERROR_SPAWN_CHILD_EXITED = Main.Base.convert(Main.Base.Int32,25) - const SPAWN_CHILD_SIGNALED = const G_DBUS_ERROR_SPAWN_CHILD_SIGNALED = Main.Base.convert(Main.Base.Int32,26) - const SPAWN_FAILED = const G_DBUS_ERROR_SPAWN_FAILED = Main.Base.convert(Main.Base.Int32,27) - const SPAWN_SETUP_FAILED = const G_DBUS_ERROR_SPAWN_SETUP_FAILED = Main.Base.convert(Main.Base.Int32,28) - const SPAWN_CONFIG_INVALID = const G_DBUS_ERROR_SPAWN_CONFIG_INVALID = Main.Base.convert(Main.Base.Int32,29) - const SPAWN_SERVICE_INVALID = const G_DBUS_ERROR_SPAWN_SERVICE_INVALID = Main.Base.convert(Main.Base.Int32,30) - const SPAWN_SERVICE_NOT_FOUND = const G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND = Main.Base.convert(Main.Base.Int32,31) - const SPAWN_PERMISSIONS_INVALID = const G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID = Main.Base.convert(Main.Base.Int32,32) - const SPAWN_FILE_INVALID = const G_DBUS_ERROR_SPAWN_FILE_INVALID = Main.Base.convert(Main.Base.Int32,33) - const SPAWN_NO_MEMORY = const G_DBUS_ERROR_SPAWN_NO_MEMORY = Main.Base.convert(Main.Base.Int32,34) - const UNIX_PROCESS_ID_UNKNOWN = const G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN = Main.Base.convert(Main.Base.Int32,35) - const INVALID_SIGNATURE = const G_DBUS_ERROR_INVALID_SIGNATURE = Main.Base.convert(Main.Base.Int32,36) - const INVALID_FILE_CONTENT = const G_DBUS_ERROR_INVALID_FILE_CONTENT = Main.Base.convert(Main.Base.Int32,37) - const SELINUX_SECURITY_CONTEXT_UNKNOWN = const G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN = Main.Base.convert(Main.Base.Int32,38) - const ADT_AUDIT_DATA_UNKNOWN = const G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN = Main.Base.convert(Main.Base.Int32,39) - const OBJECT_PATH_IN_USE = const G_DBUS_ERROR_OBJECT_PATH_IN_USE = Main.Base.convert(Main.Base.Int32,40) - end))) - $(Expr(:toplevel, :(baremodule GDBusConnectionFlags - const NONE = const G_DBUS_CONNECTION_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const AUTHENTICATION_CLIENT = const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT = Main.Base.convert(Main.Base.Int32,1) - const AUTHENTICATION_SERVER = const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER = Main.Base.convert(Main.Base.Int32,2) - const AUTHENTICATION_ALLOW_ANONYMOUS = const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS = Main.Base.convert(Main.Base.Int32,4) - const MESSAGE_BUS_CONNECTION = const G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION = Main.Base.convert(Main.Base.Int32,8) - const DELAY_MESSAGE_PROCESSING = const G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING = Main.Base.convert(Main.Base.Int32,16) - end))) - $(Expr(:toplevel, :(baremodule GDBusCapabilityFlags - const NONE = const G_DBUS_CAPABILITY_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const UNIX_FD_PASSING = const G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GDBusCallFlags - const NONE = const G_DBUS_CALL_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const NO_AUTO_START = const G_DBUS_CALL_FLAGS_NO_AUTO_START = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GDBusMessageType - const INVALID = const G_DBUS_MESSAGE_TYPE_INVALID = Main.Base.convert(Main.Base.Int32,0) - const METHOD_CALL = const G_DBUS_MESSAGE_TYPE_METHOD_CALL = Main.Base.convert(Main.Base.Int32,1) - const METHOD_RETURN = const G_DBUS_MESSAGE_TYPE_METHOD_RETURN = Main.Base.convert(Main.Base.Int32,2) - const ERROR = const G_DBUS_MESSAGE_TYPE_ERROR = Main.Base.convert(Main.Base.Int32,3) - const SIGNAL = const G_DBUS_MESSAGE_TYPE_SIGNAL = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GDBusMessageFlags - const NONE = const G_DBUS_MESSAGE_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const NO_REPLY_EXPECTED = const G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED = Main.Base.convert(Main.Base.Int32,1) - const NO_AUTO_START = const G_DBUS_MESSAGE_FLAGS_NO_AUTO_START = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GDBusMessageHeaderField - const INVALID = const G_DBUS_MESSAGE_HEADER_FIELD_INVALID = Main.Base.convert(Main.Base.Int32,0) - const PATH = const G_DBUS_MESSAGE_HEADER_FIELD_PATH = Main.Base.convert(Main.Base.Int32,1) - const INTERFACE = const G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE = Main.Base.convert(Main.Base.Int32,2) - const MEMBER = const G_DBUS_MESSAGE_HEADER_FIELD_MEMBER = Main.Base.convert(Main.Base.Int32,3) - const ERROR_NAME = const G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME = Main.Base.convert(Main.Base.Int32,4) - const REPLY_SERIAL = const G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL = Main.Base.convert(Main.Base.Int32,5) - const DESTINATION = const G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION = Main.Base.convert(Main.Base.Int32,6) - const SENDER = const G_DBUS_MESSAGE_HEADER_FIELD_SENDER = Main.Base.convert(Main.Base.Int32,7) - const SIGNATURE = const G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE = Main.Base.convert(Main.Base.Int32,8) - const NUM_UNIX_FDS = const G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS = Main.Base.convert(Main.Base.Int32,9) - end))) - $(Expr(:toplevel, :(baremodule GDBusPropertyInfoFlags - const NONE = const G_DBUS_PROPERTY_INFO_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const READABLE = const G_DBUS_PROPERTY_INFO_FLAGS_READABLE = Main.Base.convert(Main.Base.Int32,1) - const WRITABLE = const G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GDBusSubtreeFlags - const NONE = const G_DBUS_SUBTREE_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const DISPATCH_TO_UNENUMERATED_NODES = const G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GDBusServerFlags - const NONE = const G_DBUS_SERVER_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const RUN_IN_THREAD = const G_DBUS_SERVER_FLAGS_RUN_IN_THREAD = Main.Base.convert(Main.Base.Int32,1) - const AUTHENTICATION_ALLOW_ANONYMOUS = const G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GDBusSignalFlags - const NONE = const G_DBUS_SIGNAL_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const NO_MATCH_RULE = const G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE = Main.Base.convert(Main.Base.Int32,1) - const MATCH_ARG0_NAMESPACE = const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE = Main.Base.convert(Main.Base.Int32,2) - const MATCH_ARG0_PATH = const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GDBusSendMessageFlags - const NONE = const G_DBUS_SEND_MESSAGE_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const PRESERVE_SERIAL = const G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GCredentialsType - const INVALID = const G_CREDENTIALS_TYPE_INVALID = Main.Base.convert(Main.Base.Int32,0) - const LINUX_UCRED = const G_CREDENTIALS_TYPE_LINUX_UCRED = Main.Base.convert(Main.Base.Int32,1) - const FREEBSD_CMSGCRED = const G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED = Main.Base.convert(Main.Base.Int32,2) - const OPENBSD_SOCKPEERCRED = const G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED = Main.Base.convert(Main.Base.Int32,3) - const SOLARIS_UCRED = const G_CREDENTIALS_TYPE_SOLARIS_UCRED = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GDBusMessageByteOrder - const BIG_ENDIAN = const G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN = Main.Base.convert(Main.Base.Int32,66) - const LITTLE_ENDIAN = const G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN = Main.Base.convert(Main.Base.Int32,108) - end))) - $(Expr(:toplevel, :(baremodule GApplicationFlags - const FLAGS_NONE = const G_APPLICATION_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const IS_SERVICE = const G_APPLICATION_IS_SERVICE = Main.Base.convert(Main.Base.Int32,1) - const IS_LAUNCHER = const G_APPLICATION_IS_LAUNCHER = Main.Base.convert(Main.Base.Int32,2) - const HANDLES_OPEN = const G_APPLICATION_HANDLES_OPEN = Main.Base.convert(Main.Base.Int32,4) - const HANDLES_COMMAND_LINE = const G_APPLICATION_HANDLES_COMMAND_LINE = Main.Base.convert(Main.Base.Int32,8) - const SEND_ENVIRONMENT = const G_APPLICATION_SEND_ENVIRONMENT = Main.Base.convert(Main.Base.Int32,16) - const NON_UNIQUE = const G_APPLICATION_NON_UNIQUE = Main.Base.convert(Main.Base.Int32,32) - end))) - $(Expr(:toplevel, :(baremodule GTlsError - const UNAVAILABLE = const G_TLS_ERROR_UNAVAILABLE = Main.Base.convert(Main.Base.Int32,0) - const MISC = const G_TLS_ERROR_MISC = Main.Base.convert(Main.Base.Int32,1) - const BAD_CERTIFICATE = const G_TLS_ERROR_BAD_CERTIFICATE = Main.Base.convert(Main.Base.Int32,2) - const NOT_TLS = const G_TLS_ERROR_NOT_TLS = Main.Base.convert(Main.Base.Int32,3) - const HANDSHAKE = const G_TLS_ERROR_HANDSHAKE = Main.Base.convert(Main.Base.Int32,4) - const CERTIFICATE_REQUIRED = const G_TLS_ERROR_CERTIFICATE_REQUIRED = Main.Base.convert(Main.Base.Int32,5) - const EOF = const G_TLS_ERROR_EOF = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GTlsCertificateFlags - const UNKNOWN_CA = const G_TLS_CERTIFICATE_UNKNOWN_CA = Main.Base.convert(Main.Base.Int32,1) - const BAD_IDENTITY = const G_TLS_CERTIFICATE_BAD_IDENTITY = Main.Base.convert(Main.Base.Int32,2) - const NOT_ACTIVATED = const G_TLS_CERTIFICATE_NOT_ACTIVATED = Main.Base.convert(Main.Base.Int32,4) - const EXPIRED = const G_TLS_CERTIFICATE_EXPIRED = Main.Base.convert(Main.Base.Int32,8) - const REVOKED = const G_TLS_CERTIFICATE_REVOKED = Main.Base.convert(Main.Base.Int32,16) - const INSECURE = const G_TLS_CERTIFICATE_INSECURE = Main.Base.convert(Main.Base.Int32,32) - const GENERIC_ERROR = const G_TLS_CERTIFICATE_GENERIC_ERROR = Main.Base.convert(Main.Base.Int32,64) - const VALIDATE_ALL = const G_TLS_CERTIFICATE_VALIDATE_ALL = Main.Base.convert(Main.Base.Int32,127) - end))) - $(Expr(:toplevel, :(baremodule GTlsAuthenticationMode - const NONE = const G_TLS_AUTHENTICATION_NONE = Main.Base.convert(Main.Base.Int32,0) - const REQUESTED = const G_TLS_AUTHENTICATION_REQUESTED = Main.Base.convert(Main.Base.Int32,1) - const REQUIRED = const G_TLS_AUTHENTICATION_REQUIRED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GTlsRehandshakeMode - const NEVER = const G_TLS_REHANDSHAKE_NEVER = Main.Base.convert(Main.Base.Int32,0) - const SAFELY = const G_TLS_REHANDSHAKE_SAFELY = Main.Base.convert(Main.Base.Int32,1) - const UNSAFELY = const G_TLS_REHANDSHAKE_UNSAFELY = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GTlsPasswordFlags - const NONE = const G_TLS_PASSWORD_NONE = Main.Base.convert(Main.Base.Int32,0) - const RETRY = const G_TLS_PASSWORD_RETRY = Main.Base.convert(Main.Base.Int32,2) - const MANY_TRIES = const G_TLS_PASSWORD_MANY_TRIES = Main.Base.convert(Main.Base.Int32,4) - const FINAL_TRY = const G_TLS_PASSWORD_FINAL_TRY = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GTlsInteractionResult - const UNHANDLED = const G_TLS_INTERACTION_UNHANDLED = Main.Base.convert(Main.Base.Int32,0) - const HANDLED = const G_TLS_INTERACTION_HANDLED = Main.Base.convert(Main.Base.Int32,1) - const FAILED = const G_TLS_INTERACTION_FAILED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GDBusInterfaceSkeletonFlags - const NONE = const G_DBUS_INTERFACE_SKELETON_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const HANDLE_METHOD_INVOCATIONS_IN_THREAD = const G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GDBusObjectManagerClientFlags - const NONE = const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const DO_NOT_AUTO_START = const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GTlsDatabaseVerifyFlags - const NONE = const G_TLS_DATABASE_VERIFY_NONE = Main.Base.convert(Main.Base.Int32,0) - end))) - $(Expr(:toplevel, :(baremodule GTlsDatabaseLookupFlags - const NONE = const G_TLS_DATABASE_LOOKUP_NONE = Main.Base.convert(Main.Base.Int32,0) - const KEYPAIR = const G_TLS_DATABASE_LOOKUP_KEYPAIR = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GTlsCertificateRequestFlags - const NONE = const G_TLS_CERTIFICATE_REQUEST_NONE = Main.Base.convert(Main.Base.Int32,0) - end))) - $(Expr(:toplevel, :(baremodule GIOModuleScopeFlags - const NONE = const G_IO_MODULE_SCOPE_NONE = Main.Base.convert(Main.Base.Int32,0) - const BLOCK_DUPLICATES = const G_IO_MODULE_SCOPE_BLOCK_DUPLICATES = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GSocketClientEvent - const RESOLVING = const G_SOCKET_CLIENT_RESOLVING = Main.Base.convert(Main.Base.Int32,0) - const RESOLVED = const G_SOCKET_CLIENT_RESOLVED = Main.Base.convert(Main.Base.Int32,1) - const CONNECTING = const G_SOCKET_CLIENT_CONNECTING = Main.Base.convert(Main.Base.Int32,2) - const CONNECTED = const G_SOCKET_CLIENT_CONNECTED = Main.Base.convert(Main.Base.Int32,3) - const PROXY_NEGOTIATING = const G_SOCKET_CLIENT_PROXY_NEGOTIATING = Main.Base.convert(Main.Base.Int32,4) - const PROXY_NEGOTIATED = const G_SOCKET_CLIENT_PROXY_NEGOTIATED = Main.Base.convert(Main.Base.Int32,5) - const TLS_HANDSHAKING = const G_SOCKET_CLIENT_TLS_HANDSHAKING = Main.Base.convert(Main.Base.Int32,6) - const TLS_HANDSHAKED = const G_SOCKET_CLIENT_TLS_HANDSHAKED = Main.Base.convert(Main.Base.Int32,7) - const COMPLETE = const G_SOCKET_CLIENT_COMPLETE = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GTestDBusFlags - const NONE = const G_TEST_DBUS_NONE = Main.Base.convert(Main.Base.Int32,0) - end))) - $(Expr(:toplevel, :(baremodule GSubprocessFlags - const NONE = const G_SUBPROCESS_FLAGS_NONE = Main.Base.convert(Main.Base.Int32,0) - const STDIN_PIPE = const G_SUBPROCESS_FLAGS_STDIN_PIPE = Main.Base.convert(Main.Base.Int32,1) - const STDIN_INHERIT = const G_SUBPROCESS_FLAGS_STDIN_INHERIT = Main.Base.convert(Main.Base.Int32,2) - const STDOUT_PIPE = const G_SUBPROCESS_FLAGS_STDOUT_PIPE = Main.Base.convert(Main.Base.Int32,4) - const STDOUT_SILENCE = const G_SUBPROCESS_FLAGS_STDOUT_SILENCE = Main.Base.convert(Main.Base.Int32,8) - const STDERR_PIPE = const G_SUBPROCESS_FLAGS_STDERR_PIPE = Main.Base.convert(Main.Base.Int32,16) - const STDERR_SILENCE = const G_SUBPROCESS_FLAGS_STDERR_SILENCE = Main.Base.convert(Main.Base.Int32,32) - const STDERR_MERGE = const G_SUBPROCESS_FLAGS_STDERR_MERGE = Main.Base.convert(Main.Base.Int32,64) - const INHERIT_FDS = const G_SUBPROCESS_FLAGS_INHERIT_FDS = Main.Base.convert(Main.Base.Int32,128) - end))) - $(Expr(:toplevel, :(baremodule GModuleFlags - const LAZY = const G_MODULE_BIND_LAZY = Main.Base.convert(Main.Base.Int32,1) - const LOCAL = const G_MODULE_BIND_LOCAL = Main.Base.convert(Main.Base.Int32,2) - const MASK = const G_MODULE_BIND_MASK = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GSettingsBindFlags - const DEFAULT = const G_SETTINGS_BIND_DEFAULT = Main.Base.convert(Main.Base.Int32,0) - const GET = const G_SETTINGS_BIND_GET = Main.Base.convert(Main.Base.Int32,1) - const SET = const G_SETTINGS_BIND_SET = Main.Base.convert(Main.Base.Int32,2) - const NO_SENSITIVITY = const G_SETTINGS_BIND_NO_SENSITIVITY = Main.Base.convert(Main.Base.Int32,4) - const GET_NO_CHANGES = const G_SETTINGS_BIND_GET_NO_CHANGES = Main.Base.convert(Main.Base.Int32,8) - const INVERT_BOOLEAN = const G_SETTINGS_BIND_INVERT_BOOLEAN = Main.Base.convert(Main.Base.Int32,16) - end))) - $(Expr(:toplevel, :(baremodule GdkByteOrder - const LSB_FIRST = const GDK_LSB_FIRST = Main.Base.convert(Main.Base.Int32,0) - const MSB_FIRST = const GDK_MSB_FIRST = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GdkModifierType - const SHIFT = const GDK_SHIFT_MASK = Main.Base.convert(Main.Base.Int32,1) - const LOCK = const GDK_LOCK_MASK = Main.Base.convert(Main.Base.Int32,2) - const CONTROL = const GDK_CONTROL_MASK = Main.Base.convert(Main.Base.Int32,4) - const MOD1 = const GDK_MOD1_MASK = Main.Base.convert(Main.Base.Int32,8) - const MOD2 = const GDK_MOD2_MASK = Main.Base.convert(Main.Base.Int32,16) - const MOD3 = const GDK_MOD3_MASK = Main.Base.convert(Main.Base.Int32,32) - const MOD4 = const GDK_MOD4_MASK = Main.Base.convert(Main.Base.Int32,64) - const MOD5 = const GDK_MOD5_MASK = Main.Base.convert(Main.Base.Int32,128) - const BUTTON1 = const GDK_BUTTON1_MASK = Main.Base.convert(Main.Base.Int32,256) - const BUTTON2 = const GDK_BUTTON2_MASK = Main.Base.convert(Main.Base.Int32,512) - const BUTTON3 = const GDK_BUTTON3_MASK = Main.Base.convert(Main.Base.Int32,1024) - const BUTTON4 = const GDK_BUTTON4_MASK = Main.Base.convert(Main.Base.Int32,2048) - const BUTTON5 = const GDK_BUTTON5_MASK = Main.Base.convert(Main.Base.Int32,4096) - const SUPER = const GDK_SUPER_MASK = Main.Base.convert(Main.Base.Int32,67108864) - const HYPER = const GDK_HYPER_MASK = Main.Base.convert(Main.Base.Int32,134217728) - const META = const GDK_META_MASK = Main.Base.convert(Main.Base.Int32,268435456) - const RELEASE = const GDK_RELEASE_MASK = Main.Base.convert(Main.Base.Int32,1073741824) - const MODIFIER = const GDK_MODIFIER_MASK = Main.Base.convert(Main.Base.Int32,1543512063) - const BUTTONS = const GDK_BUTTONS = 7936 - end))) - $(Expr(:toplevel, :(baremodule GdkInputCondition - const READ = const GDK_INPUT_READ = Main.Base.convert(Main.Base.Int32,1) - const WRITE = const GDK_INPUT_WRITE = Main.Base.convert(Main.Base.Int32,2) - const EXCEPTION = const GDK_INPUT_EXCEPTION = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GdkStatus - const OK = const GDK_OK = Main.Base.convert(Main.Base.Int32,0) - const ERROR = const GDK_ERROR = Main.Base.convert(Main.Base.Int32,-1) - const ERROR_PARAM = const GDK_ERROR_PARAM = Main.Base.convert(Main.Base.Int32,-2) - const ERROR_FILE = const GDK_ERROR_FILE = Main.Base.convert(Main.Base.Int32,-3) - const ERROR_MEM = const GDK_ERROR_MEM = Main.Base.convert(Main.Base.Int32,-4) - end))) - $(Expr(:toplevel, :(baremodule GdkGrabStatus - const SUCCESS = const GDK_GRAB_SUCCESS = Main.Base.convert(Main.Base.Int32,0) - const ALREADY_GRABBED = const GDK_GRAB_ALREADY_GRABBED = Main.Base.convert(Main.Base.Int32,1) - const INVALID_TIME = const GDK_GRAB_INVALID_TIME = Main.Base.convert(Main.Base.Int32,2) - const NOT_VIEWABLE = const GDK_GRAB_NOT_VIEWABLE = Main.Base.convert(Main.Base.Int32,3) - const FROZEN = const GDK_GRAB_FROZEN = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GdkDragAction - const DEFAULT = const GDK_ACTION_DEFAULT = Main.Base.convert(Main.Base.Int32,1) - const COPY = const GDK_ACTION_COPY = Main.Base.convert(Main.Base.Int32,2) - const MOVE = const GDK_ACTION_MOVE = Main.Base.convert(Main.Base.Int32,4) - const LINK = const GDK_ACTION_LINK = Main.Base.convert(Main.Base.Int32,8) - const PRIVATE = const GDK_ACTION_PRIVATE = Main.Base.convert(Main.Base.Int32,16) - const ASK = const GDK_ACTION_ASK = Main.Base.convert(Main.Base.Int32,32) - end))) - $(Expr(:toplevel, :(baremodule GdkDragProtocol - const MOTIF = const GDK_DRAG_PROTO_MOTIF = Main.Base.convert(Main.Base.Int32,0) - const XDND = const GDK_DRAG_PROTO_XDND = Main.Base.convert(Main.Base.Int32,1) - const ROOTWIN = const GDK_DRAG_PROTO_ROOTWIN = Main.Base.convert(Main.Base.Int32,2) - const NONE = const GDK_DRAG_PROTO_NONE = Main.Base.convert(Main.Base.Int32,3) - const WIN32_DROPFILES = const GDK_DRAG_PROTO_WIN32_DROPFILES = Main.Base.convert(Main.Base.Int32,4) - const OLE2 = const GDK_DRAG_PROTO_OLE2 = Main.Base.convert(Main.Base.Int32,5) - const LOCAL = const GDK_DRAG_PROTO_LOCAL = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GdkExtensionMode - const NONE = const GDK_EXTENSION_EVENTS_NONE = Main.Base.convert(Main.Base.Int32,0) - const ALL = const GDK_EXTENSION_EVENTS_ALL = Main.Base.convert(Main.Base.Int32,1) - const CURSOR = const GDK_EXTENSION_EVENTS_CURSOR = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkInputSource - const MOUSE = const GDK_SOURCE_MOUSE = Main.Base.convert(Main.Base.Int32,0) - const PEN = const GDK_SOURCE_PEN = Main.Base.convert(Main.Base.Int32,1) - const ERASER = const GDK_SOURCE_ERASER = Main.Base.convert(Main.Base.Int32,2) - const CURSOR = const GDK_SOURCE_CURSOR = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GdkInputMode - const DISABLED = const GDK_MODE_DISABLED = Main.Base.convert(Main.Base.Int32,0) - const SCREEN = const GDK_MODE_SCREEN = Main.Base.convert(Main.Base.Int32,1) - const WINDOW = const GDK_MODE_WINDOW = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkAxisUse - const IGNORE = const GDK_AXIS_IGNORE = Main.Base.convert(Main.Base.Int32,0) - const X = const GDK_AXIS_X = Main.Base.convert(Main.Base.Int32,1) - const Y = const GDK_AXIS_Y = Main.Base.convert(Main.Base.Int32,2) - const PRESSURE = const GDK_AXIS_PRESSURE = Main.Base.convert(Main.Base.Int32,3) - const XTILT = const GDK_AXIS_XTILT = Main.Base.convert(Main.Base.Int32,4) - const YTILT = const GDK_AXIS_YTILT = Main.Base.convert(Main.Base.Int32,5) - const WHEEL = const GDK_AXIS_WHEEL = Main.Base.convert(Main.Base.Int32,6) - const LAST = const GDK_AXIS_LAST = Main.Base.convert(Main.Base.Int32,7) - end))) - $(Expr(:toplevel, :(baremodule GdkFilterReturn - const CONTINUE = const GDK_FILTER_CONTINUE = Main.Base.convert(Main.Base.Int32,0) - const TRANSLATE = const GDK_FILTER_TRANSLATE = Main.Base.convert(Main.Base.Int32,1) - const REMOVE = const GDK_FILTER_REMOVE = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkEventType - const NOTHING = const GDK_NOTHING = Main.Base.convert(Main.Base.Int32,-1) - const DELETE = const GDK_DELETE = Main.Base.convert(Main.Base.Int32,0) - const DESTROY = const GDK_DESTROY = Main.Base.convert(Main.Base.Int32,1) - const EXPOSE = const GDK_EXPOSE = Main.Base.convert(Main.Base.Int32,2) - const MOTION_NOTIFY = const GDK_MOTION_NOTIFY = Main.Base.convert(Main.Base.Int32,3) - const BUTTON_PRESS = const GDK_BUTTON_PRESS = Main.Base.convert(Main.Base.Int32,4) - const GDK_2BUTTON_PRESS = Main.Base.convert(Main.Base.Int32,5) - const GDK_3BUTTON_PRESS = Main.Base.convert(Main.Base.Int32,6) - const BUTTON_RELEASE = const GDK_BUTTON_RELEASE = Main.Base.convert(Main.Base.Int32,7) - const KEY_PRESS = const GDK_KEY_PRESS = Main.Base.convert(Main.Base.Int32,8) - const KEY_RELEASE = const GDK_KEY_RELEASE = Main.Base.convert(Main.Base.Int32,9) - const ENTER_NOTIFY = const GDK_ENTER_NOTIFY = Main.Base.convert(Main.Base.Int32,10) - const LEAVE_NOTIFY = const GDK_LEAVE_NOTIFY = Main.Base.convert(Main.Base.Int32,11) - const FOCUS_CHANGE = const GDK_FOCUS_CHANGE = Main.Base.convert(Main.Base.Int32,12) - const CONFIGURE = const GDK_CONFIGURE = Main.Base.convert(Main.Base.Int32,13) - const MAP = const GDK_MAP = Main.Base.convert(Main.Base.Int32,14) - const UNMAP = const GDK_UNMAP = Main.Base.convert(Main.Base.Int32,15) - const PROPERTY_NOTIFY = const GDK_PROPERTY_NOTIFY = Main.Base.convert(Main.Base.Int32,16) - const SELECTION_CLEAR = const GDK_SELECTION_CLEAR = Main.Base.convert(Main.Base.Int32,17) - const SELECTION_REQUEST = const GDK_SELECTION_REQUEST = Main.Base.convert(Main.Base.Int32,18) - const SELECTION_NOTIFY = const GDK_SELECTION_NOTIFY = Main.Base.convert(Main.Base.Int32,19) - const PROXIMITY_IN = const GDK_PROXIMITY_IN = Main.Base.convert(Main.Base.Int32,20) - const PROXIMITY_OUT = const GDK_PROXIMITY_OUT = Main.Base.convert(Main.Base.Int32,21) - const DRAG_ENTER = const GDK_DRAG_ENTER = Main.Base.convert(Main.Base.Int32,22) - const DRAG_LEAVE = const GDK_DRAG_LEAVE = Main.Base.convert(Main.Base.Int32,23) - const DRAG_MOTION = const GDK_DRAG_MOTION = Main.Base.convert(Main.Base.Int32,24) - const DRAG_STATUS = const GDK_DRAG_STATUS = Main.Base.convert(Main.Base.Int32,25) - const DROP_START = const GDK_DROP_START = Main.Base.convert(Main.Base.Int32,26) - const DROP_FINISHED = const GDK_DROP_FINISHED = Main.Base.convert(Main.Base.Int32,27) - const CLIENT_EVENT = const GDK_CLIENT_EVENT = Main.Base.convert(Main.Base.Int32,28) - const VISIBILITY_NOTIFY = const GDK_VISIBILITY_NOTIFY = Main.Base.convert(Main.Base.Int32,29) - const NO_EXPOSE = const GDK_NO_EXPOSE = Main.Base.convert(Main.Base.Int32,30) - const SCROLL = const GDK_SCROLL = Main.Base.convert(Main.Base.Int32,31) - const WINDOW_STATE = const GDK_WINDOW_STATE = Main.Base.convert(Main.Base.Int32,32) - const SETTING = const GDK_SETTING = Main.Base.convert(Main.Base.Int32,33) - const OWNER_CHANGE = const GDK_OWNER_CHANGE = Main.Base.convert(Main.Base.Int32,34) - const GRAB_BROKEN = const GDK_GRAB_BROKEN = Main.Base.convert(Main.Base.Int32,35) - const DAMAGE = const GDK_DAMAGE = Main.Base.convert(Main.Base.Int32,36) - const EVENT_LAST = const GDK_EVENT_LAST = Main.Base.convert(Main.Base.Int32,37) - end))) - $(Expr(:toplevel, :(baremodule GdkEventMask - const EXPOSURE = const GDK_EXPOSURE_MASK = Main.Base.convert(Main.Base.Int32,2) - const POINTER_MOTION = const GDK_POINTER_MOTION_MASK = Main.Base.convert(Main.Base.Int32,4) - const POINTER_MOTION_HINT = const GDK_POINTER_MOTION_HINT_MASK = Main.Base.convert(Main.Base.Int32,8) - const BUTTON_MOTION = const GDK_BUTTON_MOTION_MASK = Main.Base.convert(Main.Base.Int32,16) - const BUTTON1_MOTION = const GDK_BUTTON1_MOTION_MASK = Main.Base.convert(Main.Base.Int32,32) - const BUTTON2_MOTION = const GDK_BUTTON2_MOTION_MASK = Main.Base.convert(Main.Base.Int32,64) - const BUTTON3_MOTION = const GDK_BUTTON3_MOTION_MASK = Main.Base.convert(Main.Base.Int32,128) - const BUTTON_PRESS = const GDK_BUTTON_PRESS_MASK = Main.Base.convert(Main.Base.Int32,256) - const BUTTON_RELEASE = const GDK_BUTTON_RELEASE_MASK = Main.Base.convert(Main.Base.Int32,512) - const KEY_PRESS = const GDK_KEY_PRESS_MASK = Main.Base.convert(Main.Base.Int32,1024) - const KEY_RELEASE = const GDK_KEY_RELEASE_MASK = Main.Base.convert(Main.Base.Int32,2048) - const ENTER_NOTIFY = const GDK_ENTER_NOTIFY_MASK = Main.Base.convert(Main.Base.Int32,4096) - const LEAVE_NOTIFY = const GDK_LEAVE_NOTIFY_MASK = Main.Base.convert(Main.Base.Int32,8192) - const FOCUS_CHANGE = const GDK_FOCUS_CHANGE_MASK = Main.Base.convert(Main.Base.Int32,16384) - const STRUCTURE = const GDK_STRUCTURE_MASK = Main.Base.convert(Main.Base.Int32,32768) - const PROPERTY_CHANGE = const GDK_PROPERTY_CHANGE_MASK = Main.Base.convert(Main.Base.Int32,65536) - const VISIBILITY_NOTIFY = const GDK_VISIBILITY_NOTIFY_MASK = Main.Base.convert(Main.Base.Int32,131072) - const PROXIMITY_IN = const GDK_PROXIMITY_IN_MASK = Main.Base.convert(Main.Base.Int32,262144) - const PROXIMITY_OUT = const GDK_PROXIMITY_OUT_MASK = Main.Base.convert(Main.Base.Int32,524288) - const SUBSTRUCTURE = const GDK_SUBSTRUCTURE_MASK = Main.Base.convert(Main.Base.Int32,1048576) - const SCROLL = const GDK_SCROLL_MASK = Main.Base.convert(Main.Base.Int32,2097152) - const ALL_EVENTS = const GDK_ALL_EVENTS_MASK = Main.Base.convert(Main.Base.Int32,4194302) - end))) - $(Expr(:toplevel, :(baremodule GdkVisibilityState - const UNOBSCURED = const GDK_VISIBILITY_UNOBSCURED = Main.Base.convert(Main.Base.Int32,0) - const PARTIAL = const GDK_VISIBILITY_PARTIAL = Main.Base.convert(Main.Base.Int32,1) - const FULLY_OBSCURED = const GDK_VISIBILITY_FULLY_OBSCURED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkScrollDirection - const UP = const GDK_SCROLL_UP = Main.Base.convert(Main.Base.Int32,0) - const DOWN = const GDK_SCROLL_DOWN = Main.Base.convert(Main.Base.Int32,1) - const LEFT = const GDK_SCROLL_LEFT = Main.Base.convert(Main.Base.Int32,2) - const RIGHT = const GDK_SCROLL_RIGHT = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GdkNotifyType - const ANCESTOR = const GDK_NOTIFY_ANCESTOR = Main.Base.convert(Main.Base.Int32,0) - const VIRTUAL = const GDK_NOTIFY_VIRTUAL = Main.Base.convert(Main.Base.Int32,1) - const INFERIOR = const GDK_NOTIFY_INFERIOR = Main.Base.convert(Main.Base.Int32,2) - const NONLINEAR = const GDK_NOTIFY_NONLINEAR = Main.Base.convert(Main.Base.Int32,3) - const NONLINEAR_VIRTUAL = const GDK_NOTIFY_NONLINEAR_VIRTUAL = Main.Base.convert(Main.Base.Int32,4) - const UNKNOWN = const GDK_NOTIFY_UNKNOWN = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GdkCrossingMode - const NORMAL = const GDK_CROSSING_NORMAL = Main.Base.convert(Main.Base.Int32,0) - const GRAB = const GDK_CROSSING_GRAB = Main.Base.convert(Main.Base.Int32,1) - const UNGRAB = const GDK_CROSSING_UNGRAB = Main.Base.convert(Main.Base.Int32,2) - const GTK_GRAB = const GDK_CROSSING_GTK_GRAB = Main.Base.convert(Main.Base.Int32,3) - const GTK_UNGRAB = const GDK_CROSSING_GTK_UNGRAB = Main.Base.convert(Main.Base.Int32,4) - const STATE_CHANGED = const GDK_CROSSING_STATE_CHANGED = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GdkPropertyState - const NEW_VALUE = const GDK_PROPERTY_NEW_VALUE = Main.Base.convert(Main.Base.Int32,0) - const DELETE = const GDK_PROPERTY_DELETE = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GdkWindowState - const WITHDRAWN = const GDK_WINDOW_STATE_WITHDRAWN = Main.Base.convert(Main.Base.Int32,1) - const ICONIFIED = const GDK_WINDOW_STATE_ICONIFIED = Main.Base.convert(Main.Base.Int32,2) - const MAXIMIZED = const GDK_WINDOW_STATE_MAXIMIZED = Main.Base.convert(Main.Base.Int32,4) - const STICKY = const GDK_WINDOW_STATE_STICKY = Main.Base.convert(Main.Base.Int32,8) - const FULLSCREEN = const GDK_WINDOW_STATE_FULLSCREEN = Main.Base.convert(Main.Base.Int32,16) - const ABOVE = const GDK_WINDOW_STATE_ABOVE = Main.Base.convert(Main.Base.Int32,32) - const BELOW = const GDK_WINDOW_STATE_BELOW = Main.Base.convert(Main.Base.Int32,64) - end))) - $(Expr(:toplevel, :(baremodule GdkSettingAction - const NEW = const GDK_SETTING_ACTION_NEW = Main.Base.convert(Main.Base.Int32,0) - const CHANGED = const GDK_SETTING_ACTION_CHANGED = Main.Base.convert(Main.Base.Int32,1) - const DELETED = const GDK_SETTING_ACTION_DELETED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkOwnerChange - const NEW_OWNER = const GDK_OWNER_CHANGE_NEW_OWNER = Main.Base.convert(Main.Base.Int32,0) - const DESTROY = const GDK_OWNER_CHANGE_DESTROY = Main.Base.convert(Main.Base.Int32,1) - const CLOSE = const GDK_OWNER_CHANGE_CLOSE = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkRgbDither - const NONE = const GDK_RGB_DITHER_NONE = Main.Base.convert(Main.Base.Int32,0) - const NORMAL = const GDK_RGB_DITHER_NORMAL = Main.Base.convert(Main.Base.Int32,1) - const MAX = const GDK_RGB_DITHER_MAX = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkPixbufAlphaMode - const BILEVEL = const GDK_PIXBUF_ALPHA_BILEVEL = Main.Base.convert(Main.Base.Int32,0) - const FULL = const GDK_PIXBUF_ALPHA_FULL = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GdkColorspace - const RGB = const GDK_COLORSPACE_RGB = Main.Base.convert(Main.Base.Int32,0) - end))) - $(Expr(:toplevel, :(baremodule GdkPixbufError - const CORRUPT_IMAGE = const GDK_PIXBUF_ERROR_CORRUPT_IMAGE = Main.Base.convert(Main.Base.Int32,0) - const INSUFFICIENT_MEMORY = const GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY = Main.Base.convert(Main.Base.Int32,1) - const BAD_OPTION = const GDK_PIXBUF_ERROR_BAD_OPTION = Main.Base.convert(Main.Base.Int32,2) - const UNKNOWN_TYPE = const GDK_PIXBUF_ERROR_UNKNOWN_TYPE = Main.Base.convert(Main.Base.Int32,3) - const UNSUPPORTED_OPERATION = const GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION = Main.Base.convert(Main.Base.Int32,4) - const FAILED = const GDK_PIXBUF_ERROR_FAILED = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GdkInterpType - const NEAREST = const GDK_INTERP_NEAREST = Main.Base.convert(Main.Base.Int32,0) - const TILES = const GDK_INTERP_TILES = Main.Base.convert(Main.Base.Int32,1) - const BILINEAR = const GDK_INTERP_BILINEAR = Main.Base.convert(Main.Base.Int32,2) - const HYPER = const GDK_INTERP_HYPER = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GdkPixbufRotation - const NONE = const GDK_PIXBUF_ROTATE_NONE = Main.Base.convert(Main.Base.Int32,0) - const COUNTERCLOCKWISE = const GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = Main.Base.convert(Main.Base.Int32,90) - const UPSIDEDOWN = const GDK_PIXBUF_ROTATE_UPSIDEDOWN = Main.Base.convert(Main.Base.Int32,180) - const CLOCKWISE = const GDK_PIXBUF_ROTATE_CLOCKWISE = Main.Base.convert(Main.Base.Int32,270) - end))) - $(Expr(:toplevel, :(baremodule GdkCursorType - const X_CURSOR = const GDK_X_CURSOR = Main.Base.convert(Main.Base.Int32,0) - const ARROW = const GDK_ARROW = Main.Base.convert(Main.Base.Int32,2) - const BASED_ARROW_DOWN = const GDK_BASED_ARROW_DOWN = Main.Base.convert(Main.Base.Int32,4) - const BASED_ARROW_UP = const GDK_BASED_ARROW_UP = Main.Base.convert(Main.Base.Int32,6) - const BOAT = const GDK_BOAT = Main.Base.convert(Main.Base.Int32,8) - const BOGOSITY = const GDK_BOGOSITY = Main.Base.convert(Main.Base.Int32,10) - const BOTTOM_LEFT_CORNER = const GDK_BOTTOM_LEFT_CORNER = Main.Base.convert(Main.Base.Int32,12) - const BOTTOM_RIGHT_CORNER = const GDK_BOTTOM_RIGHT_CORNER = Main.Base.convert(Main.Base.Int32,14) - const BOTTOM_SIDE = const GDK_BOTTOM_SIDE = Main.Base.convert(Main.Base.Int32,16) - const BOTTOM_TEE = const GDK_BOTTOM_TEE = Main.Base.convert(Main.Base.Int32,18) - const BOX_SPIRAL = const GDK_BOX_SPIRAL = Main.Base.convert(Main.Base.Int32,20) - const CENTER_PTR = const GDK_CENTER_PTR = Main.Base.convert(Main.Base.Int32,22) - const CIRCLE = const GDK_CIRCLE = Main.Base.convert(Main.Base.Int32,24) - const CLOCK = const GDK_CLOCK = Main.Base.convert(Main.Base.Int32,26) - const COFFEE_MUG = const GDK_COFFEE_MUG = Main.Base.convert(Main.Base.Int32,28) - const CROSS = const GDK_CROSS = Main.Base.convert(Main.Base.Int32,30) - const CROSS_REVERSE = const GDK_CROSS_REVERSE = Main.Base.convert(Main.Base.Int32,32) - const CROSSHAIR = const GDK_CROSSHAIR = Main.Base.convert(Main.Base.Int32,34) - const DIAMOND_CROSS = const GDK_DIAMOND_CROSS = Main.Base.convert(Main.Base.Int32,36) - const DOT = const GDK_DOT = Main.Base.convert(Main.Base.Int32,38) - const DOTBOX = const GDK_DOTBOX = Main.Base.convert(Main.Base.Int32,40) - const DOUBLE_ARROW = const GDK_DOUBLE_ARROW = Main.Base.convert(Main.Base.Int32,42) - const DRAFT_LARGE = const GDK_DRAFT_LARGE = Main.Base.convert(Main.Base.Int32,44) - const DRAFT_SMALL = const GDK_DRAFT_SMALL = Main.Base.convert(Main.Base.Int32,46) - const DRAPED_BOX = const GDK_DRAPED_BOX = Main.Base.convert(Main.Base.Int32,48) - const EXCHANGE = const GDK_EXCHANGE = Main.Base.convert(Main.Base.Int32,50) - const FLEUR = const GDK_FLEUR = Main.Base.convert(Main.Base.Int32,52) - const GOBBLER = const GDK_GOBBLER = Main.Base.convert(Main.Base.Int32,54) - const GUMBY = const GDK_GUMBY = Main.Base.convert(Main.Base.Int32,56) - const HAND1 = const GDK_HAND1 = Main.Base.convert(Main.Base.Int32,58) - const HAND2 = const GDK_HAND2 = Main.Base.convert(Main.Base.Int32,60) - const HEART = const GDK_HEART = Main.Base.convert(Main.Base.Int32,62) - const ICON = const GDK_ICON = Main.Base.convert(Main.Base.Int32,64) - const IRON_CROSS = const GDK_IRON_CROSS = Main.Base.convert(Main.Base.Int32,66) - const LEFT_PTR = const GDK_LEFT_PTR = Main.Base.convert(Main.Base.Int32,68) - const LEFT_SIDE = const GDK_LEFT_SIDE = Main.Base.convert(Main.Base.Int32,70) - const LEFT_TEE = const GDK_LEFT_TEE = Main.Base.convert(Main.Base.Int32,72) - const LEFTBUTTON = const GDK_LEFTBUTTON = Main.Base.convert(Main.Base.Int32,74) - const LL_ANGLE = const GDK_LL_ANGLE = Main.Base.convert(Main.Base.Int32,76) - const LR_ANGLE = const GDK_LR_ANGLE = Main.Base.convert(Main.Base.Int32,78) - const MAN = const GDK_MAN = Main.Base.convert(Main.Base.Int32,80) - const MIDDLEBUTTON = const GDK_MIDDLEBUTTON = Main.Base.convert(Main.Base.Int32,82) - const MOUSE = const GDK_MOUSE = Main.Base.convert(Main.Base.Int32,84) - const PENCIL = const GDK_PENCIL = Main.Base.convert(Main.Base.Int32,86) - const PIRATE = const GDK_PIRATE = Main.Base.convert(Main.Base.Int32,88) - const PLUS = const GDK_PLUS = Main.Base.convert(Main.Base.Int32,90) - const QUESTION_ARROW = const GDK_QUESTION_ARROW = Main.Base.convert(Main.Base.Int32,92) - const RIGHT_PTR = const GDK_RIGHT_PTR = Main.Base.convert(Main.Base.Int32,94) - const RIGHT_SIDE = const GDK_RIGHT_SIDE = Main.Base.convert(Main.Base.Int32,96) - const RIGHT_TEE = const GDK_RIGHT_TEE = Main.Base.convert(Main.Base.Int32,98) - const RIGHTBUTTON = const GDK_RIGHTBUTTON = Main.Base.convert(Main.Base.Int32,100) - const RTL_LOGO = const GDK_RTL_LOGO = Main.Base.convert(Main.Base.Int32,102) - const SAILBOAT = const GDK_SAILBOAT = Main.Base.convert(Main.Base.Int32,104) - const SB_DOWN_ARROW = const GDK_SB_DOWN_ARROW = Main.Base.convert(Main.Base.Int32,106) - const SB_H_DOUBLE_ARROW = const GDK_SB_H_DOUBLE_ARROW = Main.Base.convert(Main.Base.Int32,108) - const SB_LEFT_ARROW = const GDK_SB_LEFT_ARROW = Main.Base.convert(Main.Base.Int32,110) - const SB_RIGHT_ARROW = const GDK_SB_RIGHT_ARROW = Main.Base.convert(Main.Base.Int32,112) - const SB_UP_ARROW = const GDK_SB_UP_ARROW = Main.Base.convert(Main.Base.Int32,114) - const SB_V_DOUBLE_ARROW = const GDK_SB_V_DOUBLE_ARROW = Main.Base.convert(Main.Base.Int32,116) - const SHUTTLE = const GDK_SHUTTLE = Main.Base.convert(Main.Base.Int32,118) - const SIZING = const GDK_SIZING = Main.Base.convert(Main.Base.Int32,120) - const SPIDER = const GDK_SPIDER = Main.Base.convert(Main.Base.Int32,122) - const SPRAYCAN = const GDK_SPRAYCAN = Main.Base.convert(Main.Base.Int32,124) - const STAR = const GDK_STAR = Main.Base.convert(Main.Base.Int32,126) - const TARGET = const GDK_TARGET = Main.Base.convert(Main.Base.Int32,128) - const TCROSS = const GDK_TCROSS = Main.Base.convert(Main.Base.Int32,130) - const TOP_LEFT_ARROW = const GDK_TOP_LEFT_ARROW = Main.Base.convert(Main.Base.Int32,132) - const TOP_LEFT_CORNER = const GDK_TOP_LEFT_CORNER = Main.Base.convert(Main.Base.Int32,134) - const TOP_RIGHT_CORNER = const GDK_TOP_RIGHT_CORNER = Main.Base.convert(Main.Base.Int32,136) - const TOP_SIDE = const GDK_TOP_SIDE = Main.Base.convert(Main.Base.Int32,138) - const TOP_TEE = const GDK_TOP_TEE = Main.Base.convert(Main.Base.Int32,140) - const TREK = const GDK_TREK = Main.Base.convert(Main.Base.Int32,142) - const UL_ANGLE = const GDK_UL_ANGLE = Main.Base.convert(Main.Base.Int32,144) - const UMBRELLA = const GDK_UMBRELLA = Main.Base.convert(Main.Base.Int32,146) - const UR_ANGLE = const GDK_UR_ANGLE = Main.Base.convert(Main.Base.Int32,148) - const WATCH = const GDK_WATCH = Main.Base.convert(Main.Base.Int32,150) - const XTERM = const GDK_XTERM = Main.Base.convert(Main.Base.Int32,152) - const LAST_CURSOR = const GDK_LAST_CURSOR = Main.Base.convert(Main.Base.Int32,153) - const BLANK_CURSOR = const GDK_BLANK_CURSOR = Main.Base.convert(Main.Base.Int32,-2) - const CURSOR_IS_PIXMAP = const GDK_CURSOR_IS_PIXMAP = Main.Base.convert(Main.Base.Int32,-1) - end))) - $(Expr(:toplevel, :(baremodule GdkCapStyle - const NOT_LAST = const GDK_CAP_NOT_LAST = Main.Base.convert(Main.Base.Int32,0) - const BUTT = const GDK_CAP_BUTT = Main.Base.convert(Main.Base.Int32,1) - const ROUND = const GDK_CAP_ROUND = Main.Base.convert(Main.Base.Int32,2) - const PROJECTING = const GDK_CAP_PROJECTING = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GdkFill - const SOLID = const GDK_SOLID = Main.Base.convert(Main.Base.Int32,0) - const TILED = const GDK_TILED = Main.Base.convert(Main.Base.Int32,1) - const STIPPLED = const GDK_STIPPLED = Main.Base.convert(Main.Base.Int32,2) - const OPAQUE_STIPPLED = const GDK_OPAQUE_STIPPLED = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GdkFunction - const COPY = const GDK_COPY = Main.Base.convert(Main.Base.Int32,0) - const INVERT = const GDK_INVERT = Main.Base.convert(Main.Base.Int32,1) - const XOR = const GDK_XOR = Main.Base.convert(Main.Base.Int32,2) - const CLEAR = const GDK_CLEAR = Main.Base.convert(Main.Base.Int32,3) - const AND = const GDK_AND = Main.Base.convert(Main.Base.Int32,4) - const AND_REVERSE = const GDK_AND_REVERSE = Main.Base.convert(Main.Base.Int32,5) - const AND_INVERT = const GDK_AND_INVERT = Main.Base.convert(Main.Base.Int32,6) - const NOOP = const GDK_NOOP = Main.Base.convert(Main.Base.Int32,7) - const OR = const GDK_OR = Main.Base.convert(Main.Base.Int32,8) - const EQUIV = const GDK_EQUIV = Main.Base.convert(Main.Base.Int32,9) - const OR_REVERSE = const GDK_OR_REVERSE = Main.Base.convert(Main.Base.Int32,10) - const COPY_INVERT = const GDK_COPY_INVERT = Main.Base.convert(Main.Base.Int32,11) - const OR_INVERT = const GDK_OR_INVERT = Main.Base.convert(Main.Base.Int32,12) - const NAND = const GDK_NAND = Main.Base.convert(Main.Base.Int32,13) - const NOR = const GDK_NOR = Main.Base.convert(Main.Base.Int32,14) - const SET = const GDK_SET = Main.Base.convert(Main.Base.Int32,15) - end))) - $(Expr(:toplevel, :(baremodule GdkJoinStyle - const MITER = const GDK_JOIN_MITER = Main.Base.convert(Main.Base.Int32,0) - const ROUND = const GDK_JOIN_ROUND = Main.Base.convert(Main.Base.Int32,1) - const BEVEL = const GDK_JOIN_BEVEL = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkLineStyle - const SOLID = const GDK_LINE_SOLID = Main.Base.convert(Main.Base.Int32,0) - const ON_OFF_DASH = const GDK_LINE_ON_OFF_DASH = Main.Base.convert(Main.Base.Int32,1) - const DOUBLE_DASH = const GDK_LINE_DOUBLE_DASH = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkSubwindowMode - const CLIP_BY_CHILDREN = const GDK_CLIP_BY_CHILDREN = Main.Base.convert(Main.Base.Int32,0) - const INCLUDE_INFERIORS = const GDK_INCLUDE_INFERIORS = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GdkGCValuesMask - const FOREGROUND = const GDK_GC_FOREGROUND = Main.Base.convert(Main.Base.Int32,1) - const BACKGROUND = const GDK_GC_BACKGROUND = Main.Base.convert(Main.Base.Int32,2) - const FONT = const GDK_GC_FONT = Main.Base.convert(Main.Base.Int32,4) - const FUNCTION = const GDK_GC_FUNCTION = Main.Base.convert(Main.Base.Int32,8) - const FILL = const GDK_GC_FILL = Main.Base.convert(Main.Base.Int32,16) - const TILE = const GDK_GC_TILE = Main.Base.convert(Main.Base.Int32,32) - const STIPPLE = const GDK_GC_STIPPLE = Main.Base.convert(Main.Base.Int32,64) - const CLIP_MASK = const GDK_GC_CLIP_MASK = Main.Base.convert(Main.Base.Int32,128) - const SUBWINDOW = const GDK_GC_SUBWINDOW = Main.Base.convert(Main.Base.Int32,256) - const TS_X_ORIGIN = const GDK_GC_TS_X_ORIGIN = Main.Base.convert(Main.Base.Int32,512) - const TS_Y_ORIGIN = const GDK_GC_TS_Y_ORIGIN = Main.Base.convert(Main.Base.Int32,1024) - const CLIP_X_ORIGIN = const GDK_GC_CLIP_X_ORIGIN = Main.Base.convert(Main.Base.Int32,2048) - const CLIP_Y_ORIGIN = const GDK_GC_CLIP_Y_ORIGIN = Main.Base.convert(Main.Base.Int32,4096) - const EXPOSURES = const GDK_GC_EXPOSURES = Main.Base.convert(Main.Base.Int32,8192) - const LINE_WIDTH = const GDK_GC_LINE_WIDTH = Main.Base.convert(Main.Base.Int32,16384) - const LINE_STYLE = const GDK_GC_LINE_STYLE = Main.Base.convert(Main.Base.Int32,32768) - const CAP_STYLE = const GDK_GC_CAP_STYLE = Main.Base.convert(Main.Base.Int32,65536) - const JOIN_STYLE = const GDK_GC_JOIN_STYLE = Main.Base.convert(Main.Base.Int32,131072) - end))) - $(Expr(:toplevel, :(baremodule GdkFontType - const FONT = const GDK_FONT_FONT = Main.Base.convert(Main.Base.Int32,0) - const FONTSET = const GDK_FONT_FONTSET = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GdkImageType - const NORMAL = const GDK_IMAGE_NORMAL = Main.Base.convert(Main.Base.Int32,0) - const SHARED = const GDK_IMAGE_SHARED = Main.Base.convert(Main.Base.Int32,1) - const FASTEST = const GDK_IMAGE_FASTEST = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkPropMode - const REPLACE = const GDK_PROP_MODE_REPLACE = Main.Base.convert(Main.Base.Int32,0) - const PREPEND = const GDK_PROP_MODE_PREPEND = Main.Base.convert(Main.Base.Int32,1) - const APPEND = const GDK_PROP_MODE_APPEND = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkFillRule - const EVEN_ODD_RULE = const GDK_EVEN_ODD_RULE = Main.Base.convert(Main.Base.Int32,0) - const WINDING_RULE = const GDK_WINDING_RULE = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GdkOverlapType - const IN = const GDK_OVERLAP_RECTANGLE_IN = Main.Base.convert(Main.Base.Int32,0) - const OUT = const GDK_OVERLAP_RECTANGLE_OUT = Main.Base.convert(Main.Base.Int32,1) - const PART = const GDK_OVERLAP_RECTANGLE_PART = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GdkWindowClass - const OUTPUT = const GDK_INPUT_OUTPUT = Main.Base.convert(Main.Base.Int32,0) - const ONLY = const GDK_INPUT_ONLY = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GdkWindowType - const ROOT = const GDK_WINDOW_ROOT = Main.Base.convert(Main.Base.Int32,0) - const TOPLEVEL = const GDK_WINDOW_TOPLEVEL = Main.Base.convert(Main.Base.Int32,1) - const CHILD = const GDK_WINDOW_CHILD = Main.Base.convert(Main.Base.Int32,2) - const DIALOG = const GDK_WINDOW_DIALOG = Main.Base.convert(Main.Base.Int32,3) - const TEMP = const GDK_WINDOW_TEMP = Main.Base.convert(Main.Base.Int32,4) - const FOREIGN = const GDK_WINDOW_FOREIGN = Main.Base.convert(Main.Base.Int32,5) - const OFFSCREEN = const GDK_WINDOW_OFFSCREEN = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GdkWindowAttributesType - const TITLE = const GDK_WA_TITLE = Main.Base.convert(Main.Base.Int32,2) - const X = const GDK_WA_X = Main.Base.convert(Main.Base.Int32,4) - const Y = const GDK_WA_Y = Main.Base.convert(Main.Base.Int32,8) - const CURSOR = const GDK_WA_CURSOR = Main.Base.convert(Main.Base.Int32,16) - const COLORMAP = const GDK_WA_COLORMAP = Main.Base.convert(Main.Base.Int32,32) - const VISUAL = const GDK_WA_VISUAL = Main.Base.convert(Main.Base.Int32,64) - const WMCLASS = const GDK_WA_WMCLASS = Main.Base.convert(Main.Base.Int32,128) - const NOREDIR = const GDK_WA_NOREDIR = Main.Base.convert(Main.Base.Int32,256) - const TYPE_HINT = const GDK_WA_TYPE_HINT = Main.Base.convert(Main.Base.Int32,512) - end))) - $(Expr(:toplevel, :(baremodule GdkWindowHints - const POS = const GDK_HINT_POS = Main.Base.convert(Main.Base.Int32,1) - const MIN_SIZE = const GDK_HINT_MIN_SIZE = Main.Base.convert(Main.Base.Int32,2) - const MAX_SIZE = const GDK_HINT_MAX_SIZE = Main.Base.convert(Main.Base.Int32,4) - const BASE_SIZE = const GDK_HINT_BASE_SIZE = Main.Base.convert(Main.Base.Int32,8) - const ASPECT = const GDK_HINT_ASPECT = Main.Base.convert(Main.Base.Int32,16) - const RESIZE_INC = const GDK_HINT_RESIZE_INC = Main.Base.convert(Main.Base.Int32,32) - const WIN_GRAVITY = const GDK_HINT_WIN_GRAVITY = Main.Base.convert(Main.Base.Int32,64) - const USER_POS = const GDK_HINT_USER_POS = Main.Base.convert(Main.Base.Int32,128) - const USER_SIZE = const GDK_HINT_USER_SIZE = Main.Base.convert(Main.Base.Int32,256) - end))) - $(Expr(:toplevel, :(baremodule GdkWindowTypeHint - const NORMAL = const GDK_WINDOW_TYPE_HINT_NORMAL = Main.Base.convert(Main.Base.Int32,0) - const DIALOG = const GDK_WINDOW_TYPE_HINT_DIALOG = Main.Base.convert(Main.Base.Int32,1) - const MENU = const GDK_WINDOW_TYPE_HINT_MENU = Main.Base.convert(Main.Base.Int32,2) - const TOOLBAR = const GDK_WINDOW_TYPE_HINT_TOOLBAR = Main.Base.convert(Main.Base.Int32,3) - const SPLASHSCREEN = const GDK_WINDOW_TYPE_HINT_SPLASHSCREEN = Main.Base.convert(Main.Base.Int32,4) - const UTILITY = const GDK_WINDOW_TYPE_HINT_UTILITY = Main.Base.convert(Main.Base.Int32,5) - const DOCK = const GDK_WINDOW_TYPE_HINT_DOCK = Main.Base.convert(Main.Base.Int32,6) - const DESKTOP = const GDK_WINDOW_TYPE_HINT_DESKTOP = Main.Base.convert(Main.Base.Int32,7) - const DROPDOWN_MENU = const GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU = Main.Base.convert(Main.Base.Int32,8) - const POPUP_MENU = const GDK_WINDOW_TYPE_HINT_POPUP_MENU = Main.Base.convert(Main.Base.Int32,9) - const TOOLTIP = const GDK_WINDOW_TYPE_HINT_TOOLTIP = Main.Base.convert(Main.Base.Int32,10) - const NOTIFICATION = const GDK_WINDOW_TYPE_HINT_NOTIFICATION = Main.Base.convert(Main.Base.Int32,11) - const COMBO = const GDK_WINDOW_TYPE_HINT_COMBO = Main.Base.convert(Main.Base.Int32,12) - const DND = const GDK_WINDOW_TYPE_HINT_DND = Main.Base.convert(Main.Base.Int32,13) - end))) - $(Expr(:toplevel, :(baremodule GdkWMDecoration - const ALL = const GDK_DECOR_ALL = Main.Base.convert(Main.Base.Int32,1) - const BORDER = const GDK_DECOR_BORDER = Main.Base.convert(Main.Base.Int32,2) - const RESIZEH = const GDK_DECOR_RESIZEH = Main.Base.convert(Main.Base.Int32,4) - const TITLE = const GDK_DECOR_TITLE = Main.Base.convert(Main.Base.Int32,8) - const MENU = const GDK_DECOR_MENU = Main.Base.convert(Main.Base.Int32,16) - const MINIMIZE = const GDK_DECOR_MINIMIZE = Main.Base.convert(Main.Base.Int32,32) - const MAXIMIZE = const GDK_DECOR_MAXIMIZE = Main.Base.convert(Main.Base.Int32,64) - end))) - $(Expr(:toplevel, :(baremodule GdkWMFunction - const ALL = const GDK_FUNC_ALL = Main.Base.convert(Main.Base.Int32,1) - const RESIZE = const GDK_FUNC_RESIZE = Main.Base.convert(Main.Base.Int32,2) - const MOVE = const GDK_FUNC_MOVE = Main.Base.convert(Main.Base.Int32,4) - const MINIMIZE = const GDK_FUNC_MINIMIZE = Main.Base.convert(Main.Base.Int32,8) - const MAXIMIZE = const GDK_FUNC_MAXIMIZE = Main.Base.convert(Main.Base.Int32,16) - const CLOSE = const GDK_FUNC_CLOSE = Main.Base.convert(Main.Base.Int32,32) - end))) - $(Expr(:toplevel, :(baremodule GdkGravity - const NORTH_WEST = const GDK_GRAVITY_NORTH_WEST = Main.Base.convert(Main.Base.Int32,1) - const NORTH = const GDK_GRAVITY_NORTH = Main.Base.convert(Main.Base.Int32,2) - const NORTH_EAST = const GDK_GRAVITY_NORTH_EAST = Main.Base.convert(Main.Base.Int32,3) - const WEST = const GDK_GRAVITY_WEST = Main.Base.convert(Main.Base.Int32,4) - const CENTER = const GDK_GRAVITY_CENTER = Main.Base.convert(Main.Base.Int32,5) - const EAST = const GDK_GRAVITY_EAST = Main.Base.convert(Main.Base.Int32,6) - const SOUTH_WEST = const GDK_GRAVITY_SOUTH_WEST = Main.Base.convert(Main.Base.Int32,7) - const SOUTH = const GDK_GRAVITY_SOUTH = Main.Base.convert(Main.Base.Int32,8) - const SOUTH_EAST = const GDK_GRAVITY_SOUTH_EAST = Main.Base.convert(Main.Base.Int32,9) - const STATIC = const GDK_GRAVITY_STATIC = Main.Base.convert(Main.Base.Int32,10) - end))) - $(Expr(:toplevel, :(baremodule GdkWindowEdge - const NORTH_WEST = const GDK_WINDOW_EDGE_NORTH_WEST = Main.Base.convert(Main.Base.Int32,0) - const NORTH = const GDK_WINDOW_EDGE_NORTH = Main.Base.convert(Main.Base.Int32,1) - const NORTH_EAST = const GDK_WINDOW_EDGE_NORTH_EAST = Main.Base.convert(Main.Base.Int32,2) - const WEST = const GDK_WINDOW_EDGE_WEST = Main.Base.convert(Main.Base.Int32,3) - const EAST = const GDK_WINDOW_EDGE_EAST = Main.Base.convert(Main.Base.Int32,4) - const SOUTH_WEST = const GDK_WINDOW_EDGE_SOUTH_WEST = Main.Base.convert(Main.Base.Int32,5) - const SOUTH = const GDK_WINDOW_EDGE_SOUTH = Main.Base.convert(Main.Base.Int32,6) - const SOUTH_EAST = const GDK_WINDOW_EDGE_SOUTH_EAST = Main.Base.convert(Main.Base.Int32,7) - end))) - $(Expr(:toplevel, :(baremodule GdkVisualType - const STATIC_GRAY = const GDK_VISUAL_STATIC_GRAY = Main.Base.convert(Main.Base.Int32,0) - const GRAYSCALE = const GDK_VISUAL_GRAYSCALE = Main.Base.convert(Main.Base.Int32,1) - const STATIC_COLOR = const GDK_VISUAL_STATIC_COLOR = Main.Base.convert(Main.Base.Int32,2) - const PSEUDO_COLOR = const GDK_VISUAL_PSEUDO_COLOR = Main.Base.convert(Main.Base.Int32,3) - const TRUE_COLOR = const GDK_VISUAL_TRUE_COLOR = Main.Base.convert(Main.Base.Int32,4) - const DIRECT_COLOR = const GDK_VISUAL_DIRECT_COLOR = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GtkAnchorType - const CENTER = const GTK_ANCHOR_CENTER = Main.Base.convert(Main.Base.Int32,0) - const NORTH = const GTK_ANCHOR_NORTH = Main.Base.convert(Main.Base.Int32,1) - const NORTH_WEST = const GTK_ANCHOR_NORTH_WEST = Main.Base.convert(Main.Base.Int32,2) - const NORTH_EAST = const GTK_ANCHOR_NORTH_EAST = Main.Base.convert(Main.Base.Int32,3) - const SOUTH = const GTK_ANCHOR_SOUTH = Main.Base.convert(Main.Base.Int32,4) - const SOUTH_WEST = const GTK_ANCHOR_SOUTH_WEST = Main.Base.convert(Main.Base.Int32,5) - const SOUTH_EAST = const GTK_ANCHOR_SOUTH_EAST = Main.Base.convert(Main.Base.Int32,6) - const WEST = const GTK_ANCHOR_WEST = Main.Base.convert(Main.Base.Int32,7) - const EAST = const GTK_ANCHOR_EAST = Main.Base.convert(Main.Base.Int32,8) - const N = const GTK_ANCHOR_N = Main.Base.convert(Main.Base.Int32,1) - const NW = const GTK_ANCHOR_NW = Main.Base.convert(Main.Base.Int32,2) - const NE = const GTK_ANCHOR_NE = Main.Base.convert(Main.Base.Int32,3) - const S = const GTK_ANCHOR_S = Main.Base.convert(Main.Base.Int32,4) - const SW = const GTK_ANCHOR_SW = Main.Base.convert(Main.Base.Int32,5) - const SE = const GTK_ANCHOR_SE = Main.Base.convert(Main.Base.Int32,6) - const W = const GTK_ANCHOR_W = Main.Base.convert(Main.Base.Int32,7) - const E = const GTK_ANCHOR_E = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GtkArrowPlacement - const BOTH = const GTK_ARROWS_BOTH = Main.Base.convert(Main.Base.Int32,0) - const START = const GTK_ARROWS_START = Main.Base.convert(Main.Base.Int32,1) - const END = const GTK_ARROWS_END = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkArrowType - const UP = const GTK_ARROW_UP = Main.Base.convert(Main.Base.Int32,0) - const DOWN = const GTK_ARROW_DOWN = Main.Base.convert(Main.Base.Int32,1) - const LEFT = const GTK_ARROW_LEFT = Main.Base.convert(Main.Base.Int32,2) - const RIGHT = const GTK_ARROW_RIGHT = Main.Base.convert(Main.Base.Int32,3) - const NONE = const GTK_ARROW_NONE = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkAttachOptions - const EXPAND = const GTK_EXPAND = Main.Base.convert(Main.Base.Int32,1) - const SHRINK = const GTK_SHRINK = Main.Base.convert(Main.Base.Int32,2) - const FILL = const GTK_FILL = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkButtonBoxStyle - const DEFAULT_STYLE = const GTK_BUTTONBOX_DEFAULT_STYLE = Main.Base.convert(Main.Base.Int32,0) - const SPREAD = const GTK_BUTTONBOX_SPREAD = Main.Base.convert(Main.Base.Int32,1) - const EDGE = const GTK_BUTTONBOX_EDGE = Main.Base.convert(Main.Base.Int32,2) - const START = const GTK_BUTTONBOX_START = Main.Base.convert(Main.Base.Int32,3) - const END = const GTK_BUTTONBOX_END = Main.Base.convert(Main.Base.Int32,4) - const CENTER = const GTK_BUTTONBOX_CENTER = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GtkCurveType - const LINEAR = const GTK_CURVE_TYPE_LINEAR = Main.Base.convert(Main.Base.Int32,0) - const SPLINE = const GTK_CURVE_TYPE_SPLINE = Main.Base.convert(Main.Base.Int32,1) - const FREE = const GTK_CURVE_TYPE_FREE = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkDeleteType - const CHARS = const GTK_DELETE_CHARS = Main.Base.convert(Main.Base.Int32,0) - const WORD_ENDS = const GTK_DELETE_WORD_ENDS = Main.Base.convert(Main.Base.Int32,1) - const WORDS = const GTK_DELETE_WORDS = Main.Base.convert(Main.Base.Int32,2) - const DISPLAY_LINES = const GTK_DELETE_DISPLAY_LINES = Main.Base.convert(Main.Base.Int32,3) - const DISPLAY_LINE_ENDS = const GTK_DELETE_DISPLAY_LINE_ENDS = Main.Base.convert(Main.Base.Int32,4) - const PARAGRAPH_ENDS = const GTK_DELETE_PARAGRAPH_ENDS = Main.Base.convert(Main.Base.Int32,5) - const PARAGRAPHS = const GTK_DELETE_PARAGRAPHS = Main.Base.convert(Main.Base.Int32,6) - const WHITESPACE = const GTK_DELETE_WHITESPACE = Main.Base.convert(Main.Base.Int32,7) - end))) - $(Expr(:toplevel, :(baremodule GtkDirectionType - const TAB_FORWARD = const GTK_DIR_TAB_FORWARD = Main.Base.convert(Main.Base.Int32,0) - const TAB_BACKWARD = const GTK_DIR_TAB_BACKWARD = Main.Base.convert(Main.Base.Int32,1) - const UP = const GTK_DIR_UP = Main.Base.convert(Main.Base.Int32,2) - const DOWN = const GTK_DIR_DOWN = Main.Base.convert(Main.Base.Int32,3) - const LEFT = const GTK_DIR_LEFT = Main.Base.convert(Main.Base.Int32,4) - const RIGHT = const GTK_DIR_RIGHT = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GtkExpanderStyle - const COLLAPSED = const GTK_EXPANDER_COLLAPSED = Main.Base.convert(Main.Base.Int32,0) - const SEMI_COLLAPSED = const GTK_EXPANDER_SEMI_COLLAPSED = Main.Base.convert(Main.Base.Int32,1) - const SEMI_EXPANDED = const GTK_EXPANDER_SEMI_EXPANDED = Main.Base.convert(Main.Base.Int32,2) - const EXPANDED = const GTK_EXPANDER_EXPANDED = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkIconSize - const INVALID = const GTK_ICON_SIZE_INVALID = Main.Base.convert(Main.Base.Int32,0) - const MENU = const GTK_ICON_SIZE_MENU = Main.Base.convert(Main.Base.Int32,1) - const SMALL_TOOLBAR = const GTK_ICON_SIZE_SMALL_TOOLBAR = Main.Base.convert(Main.Base.Int32,2) - const LARGE_TOOLBAR = const GTK_ICON_SIZE_LARGE_TOOLBAR = Main.Base.convert(Main.Base.Int32,3) - const BUTTON = const GTK_ICON_SIZE_BUTTON = Main.Base.convert(Main.Base.Int32,4) - const DND = const GTK_ICON_SIZE_DND = Main.Base.convert(Main.Base.Int32,5) - const DIALOG = const GTK_ICON_SIZE_DIALOG = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GtkSensitivityType - const AUTO = const GTK_SENSITIVITY_AUTO = Main.Base.convert(Main.Base.Int32,0) - const ON = const GTK_SENSITIVITY_ON = Main.Base.convert(Main.Base.Int32,1) - const OFF = const GTK_SENSITIVITY_OFF = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkSideType - const TOP = const GTK_SIDE_TOP = Main.Base.convert(Main.Base.Int32,0) - const BOTTOM = const GTK_SIDE_BOTTOM = Main.Base.convert(Main.Base.Int32,1) - const LEFT = const GTK_SIDE_LEFT = Main.Base.convert(Main.Base.Int32,2) - const RIGHT = const GTK_SIDE_RIGHT = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkTextDirection - const NONE = const GTK_TEXT_DIR_NONE = Main.Base.convert(Main.Base.Int32,0) - const LTR = const GTK_TEXT_DIR_LTR = Main.Base.convert(Main.Base.Int32,1) - const RTL = const GTK_TEXT_DIR_RTL = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkJustification - const LEFT = const GTK_JUSTIFY_LEFT = Main.Base.convert(Main.Base.Int32,0) - const RIGHT = const GTK_JUSTIFY_RIGHT = Main.Base.convert(Main.Base.Int32,1) - const CENTER = const GTK_JUSTIFY_CENTER = Main.Base.convert(Main.Base.Int32,2) - const FILL = const GTK_JUSTIFY_FILL = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkMatchType - const ALL = const GTK_MATCH_ALL = Main.Base.convert(Main.Base.Int32,0) - const ALL_TAIL = const GTK_MATCH_ALL_TAIL = Main.Base.convert(Main.Base.Int32,1) - const HEAD = const GTK_MATCH_HEAD = Main.Base.convert(Main.Base.Int32,2) - const TAIL = const GTK_MATCH_TAIL = Main.Base.convert(Main.Base.Int32,3) - const EXACT = const GTK_MATCH_EXACT = Main.Base.convert(Main.Base.Int32,4) - const LAST = const GTK_MATCH_LAST = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GtkMenuDirectionType - const PARENT = const GTK_MENU_DIR_PARENT = Main.Base.convert(Main.Base.Int32,0) - const CHILD = const GTK_MENU_DIR_CHILD = Main.Base.convert(Main.Base.Int32,1) - const NEXT = const GTK_MENU_DIR_NEXT = Main.Base.convert(Main.Base.Int32,2) - const PREV = const GTK_MENU_DIR_PREV = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkMessageType - const INFO = const GTK_MESSAGE_INFO = Main.Base.convert(Main.Base.Int32,0) - const WARNING = const GTK_MESSAGE_WARNING = Main.Base.convert(Main.Base.Int32,1) - const QUESTION = const GTK_MESSAGE_QUESTION = Main.Base.convert(Main.Base.Int32,2) - const ERROR = const GTK_MESSAGE_ERROR = Main.Base.convert(Main.Base.Int32,3) - const OTHER = const GTK_MESSAGE_OTHER = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkMetricType - const PIXELS = const GTK_PIXELS = Main.Base.convert(Main.Base.Int32,0) - const INCHES = const GTK_INCHES = Main.Base.convert(Main.Base.Int32,1) - const CENTIMETERS = const GTK_CENTIMETERS = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkMovementStep - const LOGICAL_POSITIONS = const GTK_MOVEMENT_LOGICAL_POSITIONS = Main.Base.convert(Main.Base.Int32,0) - const VISUAL_POSITIONS = const GTK_MOVEMENT_VISUAL_POSITIONS = Main.Base.convert(Main.Base.Int32,1) - const WORDS = const GTK_MOVEMENT_WORDS = Main.Base.convert(Main.Base.Int32,2) - const DISPLAY_LINES = const GTK_MOVEMENT_DISPLAY_LINES = Main.Base.convert(Main.Base.Int32,3) - const DISPLAY_LINE_ENDS = const GTK_MOVEMENT_DISPLAY_LINE_ENDS = Main.Base.convert(Main.Base.Int32,4) - const PARAGRAPHS = const GTK_MOVEMENT_PARAGRAPHS = Main.Base.convert(Main.Base.Int32,5) - const PARAGRAPH_ENDS = const GTK_MOVEMENT_PARAGRAPH_ENDS = Main.Base.convert(Main.Base.Int32,6) - const PAGES = const GTK_MOVEMENT_PAGES = Main.Base.convert(Main.Base.Int32,7) - const BUFFER_ENDS = const GTK_MOVEMENT_BUFFER_ENDS = Main.Base.convert(Main.Base.Int32,8) - const HORIZONTAL_PAGES = const GTK_MOVEMENT_HORIZONTAL_PAGES = Main.Base.convert(Main.Base.Int32,9) - end))) - $(Expr(:toplevel, :(baremodule GtkScrollStep - const STEPS = const GTK_SCROLL_STEPS = Main.Base.convert(Main.Base.Int32,0) - const PAGES = const GTK_SCROLL_PAGES = Main.Base.convert(Main.Base.Int32,1) - const ENDS = const GTK_SCROLL_ENDS = Main.Base.convert(Main.Base.Int32,2) - const HORIZONTAL_STEPS = const GTK_SCROLL_HORIZONTAL_STEPS = Main.Base.convert(Main.Base.Int32,3) - const HORIZONTAL_PAGES = const GTK_SCROLL_HORIZONTAL_PAGES = Main.Base.convert(Main.Base.Int32,4) - const HORIZONTAL_ENDS = const GTK_SCROLL_HORIZONTAL_ENDS = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GtkOrientation - const HORIZONTAL = const GTK_ORIENTATION_HORIZONTAL = Main.Base.convert(Main.Base.Int32,0) - const VERTICAL = const GTK_ORIENTATION_VERTICAL = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkCornerType - const TOP_LEFT = const GTK_CORNER_TOP_LEFT = Main.Base.convert(Main.Base.Int32,0) - const BOTTOM_LEFT = const GTK_CORNER_BOTTOM_LEFT = Main.Base.convert(Main.Base.Int32,1) - const TOP_RIGHT = const GTK_CORNER_TOP_RIGHT = Main.Base.convert(Main.Base.Int32,2) - const BOTTOM_RIGHT = const GTK_CORNER_BOTTOM_RIGHT = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkPackType - const START = const GTK_PACK_START = Main.Base.convert(Main.Base.Int32,0) - const END = const GTK_PACK_END = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkPathPriorityType - const LOWEST = const GTK_PATH_PRIO_LOWEST = Main.Base.convert(Main.Base.Int32,0) - const GTK = const GTK_PATH_PRIO_GTK = Main.Base.convert(Main.Base.Int32,4) - const APPLICATION = const GTK_PATH_PRIO_APPLICATION = Main.Base.convert(Main.Base.Int32,8) - const THEME = const GTK_PATH_PRIO_THEME = Main.Base.convert(Main.Base.Int32,10) - const RC = const GTK_PATH_PRIO_RC = Main.Base.convert(Main.Base.Int32,12) - const HIGHEST = const GTK_PATH_PRIO_HIGHEST = Main.Base.convert(Main.Base.Int32,15) - end))) - $(Expr(:toplevel, :(baremodule GtkPathType - const WIDGET = const GTK_PATH_WIDGET = Main.Base.convert(Main.Base.Int32,0) - const WIDGET_CLASS = const GTK_PATH_WIDGET_CLASS = Main.Base.convert(Main.Base.Int32,1) - const CLASS = const GTK_PATH_CLASS = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkPolicyType - const ALWAYS = const GTK_POLICY_ALWAYS = Main.Base.convert(Main.Base.Int32,0) - const AUTOMATIC = const GTK_POLICY_AUTOMATIC = Main.Base.convert(Main.Base.Int32,1) - const NEVER = const GTK_POLICY_NEVER = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkPositionType - const LEFT = const GTK_POS_LEFT = Main.Base.convert(Main.Base.Int32,0) - const RIGHT = const GTK_POS_RIGHT = Main.Base.convert(Main.Base.Int32,1) - const TOP = const GTK_POS_TOP = Main.Base.convert(Main.Base.Int32,2) - const BOTTOM = const GTK_POS_BOTTOM = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkPreviewType - const COLOR = const GTK_PREVIEW_COLOR = Main.Base.convert(Main.Base.Int32,0) - const GRAYSCALE = const GTK_PREVIEW_GRAYSCALE = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkReliefStyle - const NORMAL = const GTK_RELIEF_NORMAL = Main.Base.convert(Main.Base.Int32,0) - const HALF = const GTK_RELIEF_HALF = Main.Base.convert(Main.Base.Int32,1) - const NONE = const GTK_RELIEF_NONE = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkResizeMode - const PARENT = const GTK_RESIZE_PARENT = Main.Base.convert(Main.Base.Int32,0) - const QUEUE = const GTK_RESIZE_QUEUE = Main.Base.convert(Main.Base.Int32,1) - const IMMEDIATE = const GTK_RESIZE_IMMEDIATE = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkSignalRunType - const FIRST = const GTK_RUN_FIRST = Main.Base.convert(Main.Base.Int32,1) - const LAST = const GTK_RUN_LAST = Main.Base.convert(Main.Base.Int32,2) - const BOTH = const GTK_RUN_BOTH = Main.Base.convert(Main.Base.Int32,3) - const NO_RECURSE = const GTK_RUN_NO_RECURSE = Main.Base.convert(Main.Base.Int32,8) - const ACTION = const GTK_RUN_ACTION = Main.Base.convert(Main.Base.Int32,32) - const NO_HOOKS = const GTK_RUN_NO_HOOKS = Main.Base.convert(Main.Base.Int32,64) - end))) - $(Expr(:toplevel, :(baremodule GtkScrollType - const NONE = const GTK_SCROLL_NONE = Main.Base.convert(Main.Base.Int32,0) - const JUMP = const GTK_SCROLL_JUMP = Main.Base.convert(Main.Base.Int32,1) - const STEP_BACKWARD = const GTK_SCROLL_STEP_BACKWARD = Main.Base.convert(Main.Base.Int32,2) - const STEP_FORWARD = const GTK_SCROLL_STEP_FORWARD = Main.Base.convert(Main.Base.Int32,3) - const PAGE_BACKWARD = const GTK_SCROLL_PAGE_BACKWARD = Main.Base.convert(Main.Base.Int32,4) - const PAGE_FORWARD = const GTK_SCROLL_PAGE_FORWARD = Main.Base.convert(Main.Base.Int32,5) - const STEP_UP = const GTK_SCROLL_STEP_UP = Main.Base.convert(Main.Base.Int32,6) - const STEP_DOWN = const GTK_SCROLL_STEP_DOWN = Main.Base.convert(Main.Base.Int32,7) - const PAGE_UP = const GTK_SCROLL_PAGE_UP = Main.Base.convert(Main.Base.Int32,8) - const PAGE_DOWN = const GTK_SCROLL_PAGE_DOWN = Main.Base.convert(Main.Base.Int32,9) - const STEP_LEFT = const GTK_SCROLL_STEP_LEFT = Main.Base.convert(Main.Base.Int32,10) - const STEP_RIGHT = const GTK_SCROLL_STEP_RIGHT = Main.Base.convert(Main.Base.Int32,11) - const PAGE_LEFT = const GTK_SCROLL_PAGE_LEFT = Main.Base.convert(Main.Base.Int32,12) - const PAGE_RIGHT = const GTK_SCROLL_PAGE_RIGHT = Main.Base.convert(Main.Base.Int32,13) - const START = const GTK_SCROLL_START = Main.Base.convert(Main.Base.Int32,14) - const END = const GTK_SCROLL_END = Main.Base.convert(Main.Base.Int32,15) - end))) - $(Expr(:toplevel, :(baremodule GtkSelectionMode - const NONE = const GTK_SELECTION_NONE = Main.Base.convert(Main.Base.Int32,0) - const SINGLE = const GTK_SELECTION_SINGLE = Main.Base.convert(Main.Base.Int32,1) - const BROWSE = const GTK_SELECTION_BROWSE = Main.Base.convert(Main.Base.Int32,2) - const MULTIPLE = const GTK_SELECTION_MULTIPLE = Main.Base.convert(Main.Base.Int32,3) - const EXTENDED = const GTK_SELECTION_EXTENDED = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkShadowType - const NONE = const GTK_SHADOW_NONE = Main.Base.convert(Main.Base.Int32,0) - const IN = const GTK_SHADOW_IN = Main.Base.convert(Main.Base.Int32,1) - const OUT = const GTK_SHADOW_OUT = Main.Base.convert(Main.Base.Int32,2) - const ETCHED_IN = const GTK_SHADOW_ETCHED_IN = Main.Base.convert(Main.Base.Int32,3) - const ETCHED_OUT = const GTK_SHADOW_ETCHED_OUT = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkStateType - const NORMAL = const GTK_STATE_NORMAL = Main.Base.convert(Main.Base.Int32,0) - const ACTIVE = const GTK_STATE_ACTIVE = Main.Base.convert(Main.Base.Int32,1) - const PRELIGHT = const GTK_STATE_PRELIGHT = Main.Base.convert(Main.Base.Int32,2) - const SELECTED = const GTK_STATE_SELECTED = Main.Base.convert(Main.Base.Int32,3) - const INSENSITIVE = const GTK_STATE_INSENSITIVE = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkSubmenuDirection - const LEFT = const GTK_DIRECTION_LEFT = Main.Base.convert(Main.Base.Int32,0) - const RIGHT = const GTK_DIRECTION_RIGHT = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkSubmenuPlacement - const TOP_BOTTOM = const GTK_TOP_BOTTOM = Main.Base.convert(Main.Base.Int32,0) - const LEFT_RIGHT = const GTK_LEFT_RIGHT = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkToolbarStyle - const ICONS = const GTK_TOOLBAR_ICONS = Main.Base.convert(Main.Base.Int32,0) - const TEXT = const GTK_TOOLBAR_TEXT = Main.Base.convert(Main.Base.Int32,1) - const BOTH = const GTK_TOOLBAR_BOTH = Main.Base.convert(Main.Base.Int32,2) - const BOTH_HORIZ = const GTK_TOOLBAR_BOTH_HORIZ = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkUpdateType - const CONTINUOUS = const GTK_UPDATE_CONTINUOUS = Main.Base.convert(Main.Base.Int32,0) - const DISCONTINUOUS = const GTK_UPDATE_DISCONTINUOUS = Main.Base.convert(Main.Base.Int32,1) - const DELAYED = const GTK_UPDATE_DELAYED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkVisibility - const NONE = const GTK_VISIBILITY_NONE = Main.Base.convert(Main.Base.Int32,0) - const PARTIAL = const GTK_VISIBILITY_PARTIAL = Main.Base.convert(Main.Base.Int32,1) - const FULL = const GTK_VISIBILITY_FULL = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkWindowPosition - const NONE = const GTK_WIN_POS_NONE = Main.Base.convert(Main.Base.Int32,0) - const CENTER = const GTK_WIN_POS_CENTER = Main.Base.convert(Main.Base.Int32,1) - const MOUSE = const GTK_WIN_POS_MOUSE = Main.Base.convert(Main.Base.Int32,2) - const CENTER_ALWAYS = const GTK_WIN_POS_CENTER_ALWAYS = Main.Base.convert(Main.Base.Int32,3) - const CENTER_ON_PARENT = const GTK_WIN_POS_CENTER_ON_PARENT = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkWindowType - const TOPLEVEL = const GTK_WINDOW_TOPLEVEL = Main.Base.convert(Main.Base.Int32,0) - const POPUP = const GTK_WINDOW_POPUP = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkWrapMode - const NONE = const GTK_WRAP_NONE = Main.Base.convert(Main.Base.Int32,0) - const CHAR = const GTK_WRAP_CHAR = Main.Base.convert(Main.Base.Int32,1) - const WORD = const GTK_WRAP_WORD = Main.Base.convert(Main.Base.Int32,2) - const WORD_CHAR = const GTK_WRAP_WORD_CHAR = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkSortType - const ASCENDING = const GTK_SORT_ASCENDING = Main.Base.convert(Main.Base.Int32,0) - const DESCENDING = const GTK_SORT_DESCENDING = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkIMPreeditStyle - const NOTHING = const GTK_IM_PREEDIT_NOTHING = Main.Base.convert(Main.Base.Int32,0) - const CALLBACK = const GTK_IM_PREEDIT_CALLBACK = Main.Base.convert(Main.Base.Int32,1) - const NONE = const GTK_IM_PREEDIT_NONE = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkIMStatusStyle - const NOTHING = const GTK_IM_STATUS_NOTHING = Main.Base.convert(Main.Base.Int32,0) - const CALLBACK = const GTK_IM_STATUS_CALLBACK = Main.Base.convert(Main.Base.Int32,1) - const NONE = const GTK_IM_STATUS_NONE = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkPackDirection - const LTR = const GTK_PACK_DIRECTION_LTR = Main.Base.convert(Main.Base.Int32,0) - const RTL = const GTK_PACK_DIRECTION_RTL = Main.Base.convert(Main.Base.Int32,1) - const TTB = const GTK_PACK_DIRECTION_TTB = Main.Base.convert(Main.Base.Int32,2) - const BTT = const GTK_PACK_DIRECTION_BTT = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkPrintPages - const ALL = const GTK_PRINT_PAGES_ALL = Main.Base.convert(Main.Base.Int32,0) - const CURRENT = const GTK_PRINT_PAGES_CURRENT = Main.Base.convert(Main.Base.Int32,1) - const RANGES = const GTK_PRINT_PAGES_RANGES = Main.Base.convert(Main.Base.Int32,2) - const SELECTION = const GTK_PRINT_PAGES_SELECTION = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkPageSet - const ALL = const GTK_PAGE_SET_ALL = Main.Base.convert(Main.Base.Int32,0) - const EVEN = const GTK_PAGE_SET_EVEN = Main.Base.convert(Main.Base.Int32,1) - const ODD = const GTK_PAGE_SET_ODD = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkNumberUpLayout - const LEFT_TO_RIGHT_TOP_TO_BOTTOM = const GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM = Main.Base.convert(Main.Base.Int32,0) - const LEFT_TO_RIGHT_BOTTOM_TO_TOP = const GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP = Main.Base.convert(Main.Base.Int32,1) - const RIGHT_TO_LEFT_TOP_TO_BOTTOM = const GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM = Main.Base.convert(Main.Base.Int32,2) - const RIGHT_TO_LEFT_BOTTOM_TO_TOP = const GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP = Main.Base.convert(Main.Base.Int32,3) - const TOP_TO_BOTTOM_LEFT_TO_RIGHT = const GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT = Main.Base.convert(Main.Base.Int32,4) - const TOP_TO_BOTTOM_RIGHT_TO_LEFT = const GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT = Main.Base.convert(Main.Base.Int32,5) - const BOTTOM_TO_TOP_LEFT_TO_RIGHT = const GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT = Main.Base.convert(Main.Base.Int32,6) - const BOTTOM_TO_TOP_RIGHT_TO_LEFT = const GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT = Main.Base.convert(Main.Base.Int32,7) - end))) - $(Expr(:toplevel, :(baremodule GtkPageOrientation - const PORTRAIT = const GTK_PAGE_ORIENTATION_PORTRAIT = Main.Base.convert(Main.Base.Int32,0) - const LANDSCAPE = const GTK_PAGE_ORIENTATION_LANDSCAPE = Main.Base.convert(Main.Base.Int32,1) - const REVERSE_PORTRAIT = const GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT = Main.Base.convert(Main.Base.Int32,2) - const REVERSE_LANDSCAPE = const GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkPrintQuality - const LOW = const GTK_PRINT_QUALITY_LOW = Main.Base.convert(Main.Base.Int32,0) - const NORMAL = const GTK_PRINT_QUALITY_NORMAL = Main.Base.convert(Main.Base.Int32,1) - const HIGH = const GTK_PRINT_QUALITY_HIGH = Main.Base.convert(Main.Base.Int32,2) - const DRAFT = const GTK_PRINT_QUALITY_DRAFT = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkPrintDuplex - const SIMPLEX = const GTK_PRINT_DUPLEX_SIMPLEX = Main.Base.convert(Main.Base.Int32,0) - const HORIZONTAL = const GTK_PRINT_DUPLEX_HORIZONTAL = Main.Base.convert(Main.Base.Int32,1) - const VERTICAL = const GTK_PRINT_DUPLEX_VERTICAL = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkUnit - const PIXEL = const GTK_UNIT_PIXEL = Main.Base.convert(Main.Base.Int32,0) - const POINTS = const GTK_UNIT_POINTS = Main.Base.convert(Main.Base.Int32,1) - const INCH = const GTK_UNIT_INCH = Main.Base.convert(Main.Base.Int32,2) - const MM = const GTK_UNIT_MM = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkTreeViewGridLines - const NONE = const GTK_TREE_VIEW_GRID_LINES_NONE = Main.Base.convert(Main.Base.Int32,0) - const HORIZONTAL = const GTK_TREE_VIEW_GRID_LINES_HORIZONTAL = Main.Base.convert(Main.Base.Int32,1) - const VERTICAL = const GTK_TREE_VIEW_GRID_LINES_VERTICAL = Main.Base.convert(Main.Base.Int32,2) - const BOTH = const GTK_TREE_VIEW_GRID_LINES_BOTH = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkDragResult - const SUCCESS = const GTK_DRAG_RESULT_SUCCESS = Main.Base.convert(Main.Base.Int32,0) - const NO_TARGET = const GTK_DRAG_RESULT_NO_TARGET = Main.Base.convert(Main.Base.Int32,1) - const USER_CANCELLED = const GTK_DRAG_RESULT_USER_CANCELLED = Main.Base.convert(Main.Base.Int32,2) - const TIMEOUT_EXPIRED = const GTK_DRAG_RESULT_TIMEOUT_EXPIRED = Main.Base.convert(Main.Base.Int32,3) - const GRAB_BROKEN = const GTK_DRAG_RESULT_GRAB_BROKEN = Main.Base.convert(Main.Base.Int32,4) - const ERROR = const GTK_DRAG_RESULT_ERROR = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GtkAccelFlags - const VISIBLE = const GTK_ACCEL_VISIBLE = Main.Base.convert(Main.Base.Int32,1) - const LOCKED = const GTK_ACCEL_LOCKED = Main.Base.convert(Main.Base.Int32,2) - const MASK = const GTK_ACCEL_MASK = Main.Base.convert(Main.Base.Int32,7) - end))) - $(Expr(:toplevel, :(baremodule GtkDebugFlag - const MISC = const GTK_DEBUG_MISC = Main.Base.convert(Main.Base.Int32,1) - const PLUGSOCKET = const GTK_DEBUG_PLUGSOCKET = Main.Base.convert(Main.Base.Int32,2) - const TEXT = const GTK_DEBUG_TEXT = Main.Base.convert(Main.Base.Int32,4) - const TREE = const GTK_DEBUG_TREE = Main.Base.convert(Main.Base.Int32,8) - const UPDATES = const GTK_DEBUG_UPDATES = Main.Base.convert(Main.Base.Int32,16) - const KEYBINDINGS = const GTK_DEBUG_KEYBINDINGS = Main.Base.convert(Main.Base.Int32,32) - const MULTIHEAD = const GTK_DEBUG_MULTIHEAD = Main.Base.convert(Main.Base.Int32,64) - const MODULES = const GTK_DEBUG_MODULES = Main.Base.convert(Main.Base.Int32,128) - const GEOMETRY = const GTK_DEBUG_GEOMETRY = Main.Base.convert(Main.Base.Int32,256) - const ICONTHEME = const GTK_DEBUG_ICONTHEME = Main.Base.convert(Main.Base.Int32,512) - const PRINTING = const GTK_DEBUG_PRINTING = Main.Base.convert(Main.Base.Int32,1024) - const BUILDER = const GTK_DEBUG_BUILDER = Main.Base.convert(Main.Base.Int32,2048) - end))) - $(Expr(:toplevel, :(baremodule GtkObjectFlags - const IN_DESTRUCTION = const GTK_IN_DESTRUCTION = Main.Base.convert(Main.Base.Int32,1) - const FLOATING = const GTK_FLOATING = Main.Base.convert(Main.Base.Int32,2) - const RESERVED_1 = const GTK_RESERVED_1 = Main.Base.convert(Main.Base.Int32,4) - const RESERVED_2 = const GTK_RESERVED_2 = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GtkArgFlags - const READABLE = const GTK_ARG_READABLE = Main.Base.convert(Main.Base.Int32,1) - const WRITABLE = const GTK_ARG_WRITABLE = Main.Base.convert(Main.Base.Int32,2) - const CONSTRUCT = const GTK_ARG_CONSTRUCT = Main.Base.convert(Main.Base.Int32,4) - const CONSTRUCT_ONLY = const GTK_ARG_CONSTRUCT_ONLY = Main.Base.convert(Main.Base.Int32,8) - const CHILD_ARG = const GTK_ARG_CHILD_ARG = Main.Base.convert(Main.Base.Int32,16) - end))) - $(Expr(:toplevel, :(baremodule GtkRcFlags - const FG = const GTK_RC_FG = Main.Base.convert(Main.Base.Int32,1) - const BG = const GTK_RC_BG = Main.Base.convert(Main.Base.Int32,2) - const TEXT = const GTK_RC_TEXT = Main.Base.convert(Main.Base.Int32,4) - const BASE = const GTK_RC_BASE = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GtkRcTokenType - const INVALID = const GTK_RC_TOKEN_INVALID = Main.Base.convert(Main.Base.Int32,270) - const INCLUDE = const GTK_RC_TOKEN_INCLUDE = Main.Base.convert(Main.Base.Int32,271) - const NORMAL = const GTK_RC_TOKEN_NORMAL = Main.Base.convert(Main.Base.Int32,272) - const ACTIVE = const GTK_RC_TOKEN_ACTIVE = Main.Base.convert(Main.Base.Int32,273) - const PRELIGHT = const GTK_RC_TOKEN_PRELIGHT = Main.Base.convert(Main.Base.Int32,274) - const SELECTED = const GTK_RC_TOKEN_SELECTED = Main.Base.convert(Main.Base.Int32,275) - const INSENSITIVE = const GTK_RC_TOKEN_INSENSITIVE = Main.Base.convert(Main.Base.Int32,276) - const FG = const GTK_RC_TOKEN_FG = Main.Base.convert(Main.Base.Int32,277) - const BG = const GTK_RC_TOKEN_BG = Main.Base.convert(Main.Base.Int32,278) - const TEXT = const GTK_RC_TOKEN_TEXT = Main.Base.convert(Main.Base.Int32,279) - const BASE = const GTK_RC_TOKEN_BASE = Main.Base.convert(Main.Base.Int32,280) - const XTHICKNESS = const GTK_RC_TOKEN_XTHICKNESS = Main.Base.convert(Main.Base.Int32,281) - const YTHICKNESS = const GTK_RC_TOKEN_YTHICKNESS = Main.Base.convert(Main.Base.Int32,282) - const FONT = const GTK_RC_TOKEN_FONT = Main.Base.convert(Main.Base.Int32,283) - const FONTSET = const GTK_RC_TOKEN_FONTSET = Main.Base.convert(Main.Base.Int32,284) - const FONT_NAME = const GTK_RC_TOKEN_FONT_NAME = Main.Base.convert(Main.Base.Int32,285) - const BG_PIXMAP = const GTK_RC_TOKEN_BG_PIXMAP = Main.Base.convert(Main.Base.Int32,286) - const PIXMAP_PATH = const GTK_RC_TOKEN_PIXMAP_PATH = Main.Base.convert(Main.Base.Int32,287) - const STYLE = const GTK_RC_TOKEN_STYLE = Main.Base.convert(Main.Base.Int32,288) - const BINDING = const GTK_RC_TOKEN_BINDING = Main.Base.convert(Main.Base.Int32,289) - const BIND = const GTK_RC_TOKEN_BIND = Main.Base.convert(Main.Base.Int32,290) - const WIDGET = const GTK_RC_TOKEN_WIDGET = Main.Base.convert(Main.Base.Int32,291) - const WIDGET_CLASS = const GTK_RC_TOKEN_WIDGET_CLASS = Main.Base.convert(Main.Base.Int32,292) - const CLASS = const GTK_RC_TOKEN_CLASS = Main.Base.convert(Main.Base.Int32,293) - const LOWEST = const GTK_RC_TOKEN_LOWEST = Main.Base.convert(Main.Base.Int32,294) - const GTK = const GTK_RC_TOKEN_GTK = Main.Base.convert(Main.Base.Int32,295) - const APPLICATION = const GTK_RC_TOKEN_APPLICATION = Main.Base.convert(Main.Base.Int32,296) - const THEME = const GTK_RC_TOKEN_THEME = Main.Base.convert(Main.Base.Int32,297) - const RC = const GTK_RC_TOKEN_RC = Main.Base.convert(Main.Base.Int32,298) - const HIGHEST = const GTK_RC_TOKEN_HIGHEST = Main.Base.convert(Main.Base.Int32,299) - const ENGINE = const GTK_RC_TOKEN_ENGINE = Main.Base.convert(Main.Base.Int32,300) - const MODULE_PATH = const GTK_RC_TOKEN_MODULE_PATH = Main.Base.convert(Main.Base.Int32,301) - const IM_MODULE_PATH = const GTK_RC_TOKEN_IM_MODULE_PATH = Main.Base.convert(Main.Base.Int32,302) - const IM_MODULE_FILE = const GTK_RC_TOKEN_IM_MODULE_FILE = Main.Base.convert(Main.Base.Int32,303) - const STOCK = const GTK_RC_TOKEN_STOCK = Main.Base.convert(Main.Base.Int32,304) - const LTR = const GTK_RC_TOKEN_LTR = Main.Base.convert(Main.Base.Int32,305) - const RTL = const GTK_RC_TOKEN_RTL = Main.Base.convert(Main.Base.Int32,306) - const COLOR = const GTK_RC_TOKEN_COLOR = Main.Base.convert(Main.Base.Int32,307) - const UNBIND = const GTK_RC_TOKEN_UNBIND = Main.Base.convert(Main.Base.Int32,308) - const LAST = const GTK_RC_TOKEN_LAST = Main.Base.convert(Main.Base.Int32,309) - end))) - $(Expr(:toplevel, :(baremodule GtkWidgetFlags - const TOPLEVEL = const GTK_TOPLEVEL = Main.Base.convert(Main.Base.Int32,16) - const NO_WINDOW = const GTK_NO_WINDOW = Main.Base.convert(Main.Base.Int32,32) - const REALIZED = const GTK_REALIZED = Main.Base.convert(Main.Base.Int32,64) - const MAPPED = const GTK_MAPPED = Main.Base.convert(Main.Base.Int32,128) - const VISIBLE = const GTK_VISIBLE = Main.Base.convert(Main.Base.Int32,256) - const SENSITIVE = const GTK_SENSITIVE = Main.Base.convert(Main.Base.Int32,512) - const PARENT_SENSITIVE = const GTK_PARENT_SENSITIVE = Main.Base.convert(Main.Base.Int32,1024) - const CAN_FOCUS = const GTK_CAN_FOCUS = Main.Base.convert(Main.Base.Int32,2048) - const HAS_FOCUS = const GTK_HAS_FOCUS = Main.Base.convert(Main.Base.Int32,4096) - const CAN_DEFAULT = const GTK_CAN_DEFAULT = Main.Base.convert(Main.Base.Int32,8192) - const HAS_DEFAULT = const GTK_HAS_DEFAULT = Main.Base.convert(Main.Base.Int32,16384) - const HAS_GRAB = const GTK_HAS_GRAB = Main.Base.convert(Main.Base.Int32,32768) - const RC_STYLE = const GTK_RC_STYLE = Main.Base.convert(Main.Base.Int32,65536) - const COMPOSITE_CHILD = const GTK_COMPOSITE_CHILD = Main.Base.convert(Main.Base.Int32,131072) - const NO_REPARENT = const GTK_NO_REPARENT = Main.Base.convert(Main.Base.Int32,262144) - const APP_PAINTABLE = const GTK_APP_PAINTABLE = Main.Base.convert(Main.Base.Int32,524288) - const RECEIVES_DEFAULT = const GTK_RECEIVES_DEFAULT = Main.Base.convert(Main.Base.Int32,1048576) - const DOUBLE_BUFFERED = const GTK_DOUBLE_BUFFERED = Main.Base.convert(Main.Base.Int32,2097152) - const NO_SHOW_ALL = const GTK_NO_SHOW_ALL = Main.Base.convert(Main.Base.Int32,4194304) - end))) - $(Expr(:toplevel, :(baremodule GtkWidgetHelpType - const TOOLTIP = const GTK_WIDGET_HELP_TOOLTIP = Main.Base.convert(Main.Base.Int32,0) - const WHATS_THIS = const GTK_WIDGET_HELP_WHATS_THIS = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkDialogFlags - const MODAL = const GTK_DIALOG_MODAL = Main.Base.convert(Main.Base.Int32,1) - const DESTROY_WITH_PARENT = const GTK_DIALOG_DESTROY_WITH_PARENT = Main.Base.convert(Main.Base.Int32,2) - const NO_SEPARATOR = const GTK_DIALOG_NO_SEPARATOR = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkResponseType - const NONE = const GTK_RESPONSE_NONE = Main.Base.convert(Main.Base.Int32,-1) - const REJECT = const GTK_RESPONSE_REJECT = Main.Base.convert(Main.Base.Int32,-2) - const ACCEPT = const GTK_RESPONSE_ACCEPT = Main.Base.convert(Main.Base.Int32,-3) - const DELETE_EVENT = const GTK_RESPONSE_DELETE_EVENT = Main.Base.convert(Main.Base.Int32,-4) - const OK = const GTK_RESPONSE_OK = Main.Base.convert(Main.Base.Int32,-5) - const CANCEL = const GTK_RESPONSE_CANCEL = Main.Base.convert(Main.Base.Int32,-6) - const CLOSE = const GTK_RESPONSE_CLOSE = Main.Base.convert(Main.Base.Int32,-7) - const YES = const GTK_RESPONSE_YES = Main.Base.convert(Main.Base.Int32,-8) - const NO = const GTK_RESPONSE_NO = Main.Base.convert(Main.Base.Int32,-9) - const APPLY = const GTK_RESPONSE_APPLY = Main.Base.convert(Main.Base.Int32,-10) - const HELP = const GTK_RESPONSE_HELP = Main.Base.convert(Main.Base.Int32,-11) - end))) - $(Expr(:toplevel, :(baremodule GtkAssistantPageType - const CONTENT = const GTK_ASSISTANT_PAGE_CONTENT = Main.Base.convert(Main.Base.Int32,0) - const INTRO = const GTK_ASSISTANT_PAGE_INTRO = Main.Base.convert(Main.Base.Int32,1) - const CONFIRM = const GTK_ASSISTANT_PAGE_CONFIRM = Main.Base.convert(Main.Base.Int32,2) - const SUMMARY = const GTK_ASSISTANT_PAGE_SUMMARY = Main.Base.convert(Main.Base.Int32,3) - const PROGRESS = const GTK_ASSISTANT_PAGE_PROGRESS = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkBuilderError - const INVALID_TYPE_FUNCTION = const GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION = Main.Base.convert(Main.Base.Int32,0) - const UNHANDLED_TAG = const GTK_BUILDER_ERROR_UNHANDLED_TAG = Main.Base.convert(Main.Base.Int32,1) - const MISSING_ATTRIBUTE = const GTK_BUILDER_ERROR_MISSING_ATTRIBUTE = Main.Base.convert(Main.Base.Int32,2) - const INVALID_ATTRIBUTE = const GTK_BUILDER_ERROR_INVALID_ATTRIBUTE = Main.Base.convert(Main.Base.Int32,3) - const INVALID_TAG = const GTK_BUILDER_ERROR_INVALID_TAG = Main.Base.convert(Main.Base.Int32,4) - const MISSING_PROPERTY_VALUE = const GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE = Main.Base.convert(Main.Base.Int32,5) - const INVALID_VALUE = const GTK_BUILDER_ERROR_INVALID_VALUE = Main.Base.convert(Main.Base.Int32,6) - const VERSION_MISMATCH = const GTK_BUILDER_ERROR_VERSION_MISMATCH = Main.Base.convert(Main.Base.Int32,7) - const DUPLICATE_ID = const GTK_BUILDER_ERROR_DUPLICATE_ID = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GtkImageType - const EMPTY = const GTK_IMAGE_EMPTY = Main.Base.convert(Main.Base.Int32,0) - const PIXMAP = const GTK_IMAGE_PIXMAP = Main.Base.convert(Main.Base.Int32,1) - const IMAGE = const GTK_IMAGE_IMAGE = Main.Base.convert(Main.Base.Int32,2) - const PIXBUF = const GTK_IMAGE_PIXBUF = Main.Base.convert(Main.Base.Int32,3) - const STOCK = const GTK_IMAGE_STOCK = Main.Base.convert(Main.Base.Int32,4) - const ICON_SET = const GTK_IMAGE_ICON_SET = Main.Base.convert(Main.Base.Int32,5) - const ANIMATION = const GTK_IMAGE_ANIMATION = Main.Base.convert(Main.Base.Int32,6) - const ICON_NAME = const GTK_IMAGE_ICON_NAME = Main.Base.convert(Main.Base.Int32,7) - const GICON = const GTK_IMAGE_GICON = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GtkCalendarDisplayOptions - const SHOW_HEADING = const GTK_CALENDAR_SHOW_HEADING = Main.Base.convert(Main.Base.Int32,1) - const SHOW_DAY_NAMES = const GTK_CALENDAR_SHOW_DAY_NAMES = Main.Base.convert(Main.Base.Int32,2) - const NO_MONTH_CHANGE = const GTK_CALENDAR_NO_MONTH_CHANGE = Main.Base.convert(Main.Base.Int32,4) - const SHOW_WEEK_NUMBERS = const GTK_CALENDAR_SHOW_WEEK_NUMBERS = Main.Base.convert(Main.Base.Int32,8) - const WEEK_START_MONDAY = const GTK_CALENDAR_WEEK_START_MONDAY = Main.Base.convert(Main.Base.Int32,16) - const SHOW_DETAILS = const GTK_CALENDAR_SHOW_DETAILS = Main.Base.convert(Main.Base.Int32,32) - end))) - $(Expr(:toplevel, :(baremodule GtkCellRendererState - const SELECTED = const GTK_CELL_RENDERER_SELECTED = Main.Base.convert(Main.Base.Int32,1) - const PRELIT = const GTK_CELL_RENDERER_PRELIT = Main.Base.convert(Main.Base.Int32,2) - const INSENSITIVE = const GTK_CELL_RENDERER_INSENSITIVE = Main.Base.convert(Main.Base.Int32,4) - const SORTED = const GTK_CELL_RENDERER_SORTED = Main.Base.convert(Main.Base.Int32,8) - const FOCUSED = const GTK_CELL_RENDERER_FOCUSED = Main.Base.convert(Main.Base.Int32,16) - end))) - $(Expr(:toplevel, :(baremodule GtkCellRendererMode - const INERT = const GTK_CELL_RENDERER_MODE_INERT = Main.Base.convert(Main.Base.Int32,0) - const ACTIVATABLE = const GTK_CELL_RENDERER_MODE_ACTIVATABLE = Main.Base.convert(Main.Base.Int32,1) - const EDITABLE = const GTK_CELL_RENDERER_MODE_EDITABLE = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkTreeModelFlags - const ITERS_PERSIST = const GTK_TREE_MODEL_ITERS_PERSIST = Main.Base.convert(Main.Base.Int32,1) - const LIST_ONLY = const GTK_TREE_MODEL_LIST_ONLY = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkTreeViewColumnSizing - const GROW_ONLY = const GTK_TREE_VIEW_COLUMN_GROW_ONLY = Main.Base.convert(Main.Base.Int32,0) - const AUTOSIZE = const GTK_TREE_VIEW_COLUMN_AUTOSIZE = Main.Base.convert(Main.Base.Int32,1) - const FIXED = const GTK_TREE_VIEW_COLUMN_FIXED = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkCellRendererAccelMode - const GTK = const GTK_CELL_RENDERER_ACCEL_MODE_GTK = Main.Base.convert(Main.Base.Int32,0) - const OTHER = const GTK_CELL_RENDERER_ACCEL_MODE_OTHER = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkTextSearchFlags - const VISIBLE_ONLY = const GTK_TEXT_SEARCH_VISIBLE_ONLY = Main.Base.convert(Main.Base.Int32,1) - const TEXT_ONLY = const GTK_TEXT_SEARCH_TEXT_ONLY = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkDestDefaults - const MOTION = const GTK_DEST_DEFAULT_MOTION = Main.Base.convert(Main.Base.Int32,1) - const HIGHLIGHT = const GTK_DEST_DEFAULT_HIGHLIGHT = Main.Base.convert(Main.Base.Int32,2) - const DROP = const GTK_DEST_DEFAULT_DROP = Main.Base.convert(Main.Base.Int32,4) - const ALL = const GTK_DEST_DEFAULT_ALL = Main.Base.convert(Main.Base.Int32,7) - end))) - $(Expr(:toplevel, :(baremodule GtkTargetFlags - const SAME_APP = const GTK_TARGET_SAME_APP = Main.Base.convert(Main.Base.Int32,1) - const SAME_WIDGET = const GTK_TARGET_SAME_WIDGET = Main.Base.convert(Main.Base.Int32,2) - const OTHER_APP = const GTK_TARGET_OTHER_APP = Main.Base.convert(Main.Base.Int32,4) - const OTHER_WIDGET = const GTK_TARGET_OTHER_WIDGET = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GtkEntryIconPosition - const PRIMARY = const GTK_ENTRY_ICON_PRIMARY = Main.Base.convert(Main.Base.Int32,0) - const SECONDARY = const GTK_ENTRY_ICON_SECONDARY = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkTreeViewDropPosition - const BEFORE = const GTK_TREE_VIEW_DROP_BEFORE = Main.Base.convert(Main.Base.Int32,0) - const AFTER = const GTK_TREE_VIEW_DROP_AFTER = Main.Base.convert(Main.Base.Int32,1) - const INTO_OR_BEFORE = const GTK_TREE_VIEW_DROP_INTO_OR_BEFORE = Main.Base.convert(Main.Base.Int32,2) - const INTO_OR_AFTER = const GTK_TREE_VIEW_DROP_INTO_OR_AFTER = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkFileFilterFlags - const FILENAME = const GTK_FILE_FILTER_FILENAME = Main.Base.convert(Main.Base.Int32,1) - const URI = const GTK_FILE_FILTER_URI = Main.Base.convert(Main.Base.Int32,2) - const DISPLAY_NAME = const GTK_FILE_FILTER_DISPLAY_NAME = Main.Base.convert(Main.Base.Int32,4) - const MIME_TYPE = const GTK_FILE_FILTER_MIME_TYPE = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GtkFileChooserAction - const OPEN = const GTK_FILE_CHOOSER_ACTION_OPEN = Main.Base.convert(Main.Base.Int32,0) - const SAVE = const GTK_FILE_CHOOSER_ACTION_SAVE = Main.Base.convert(Main.Base.Int32,1) - const SELECT_FOLDER = const GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER = Main.Base.convert(Main.Base.Int32,2) - const CREATE_FOLDER = const GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkFileChooserConfirmation - const CONFIRM = const GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM = Main.Base.convert(Main.Base.Int32,0) - const ACCEPT_FILENAME = const GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME = Main.Base.convert(Main.Base.Int32,1) - const SELECT_AGAIN = const GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkFileChooserError - const NONEXISTENT = const GTK_FILE_CHOOSER_ERROR_NONEXISTENT = Main.Base.convert(Main.Base.Int32,0) - const BAD_FILENAME = const GTK_FILE_CHOOSER_ERROR_BAD_FILENAME = Main.Base.convert(Main.Base.Int32,1) - const ALREADY_EXISTS = const GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS = Main.Base.convert(Main.Base.Int32,2) - const INCOMPLETE_HOSTNAME = const GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkIconLookupFlags - const NO_SVG = const GTK_ICON_LOOKUP_NO_SVG = Main.Base.convert(Main.Base.Int32,1) - const FORCE_SVG = const GTK_ICON_LOOKUP_FORCE_SVG = Main.Base.convert(Main.Base.Int32,2) - const USE_BUILTIN = const GTK_ICON_LOOKUP_USE_BUILTIN = Main.Base.convert(Main.Base.Int32,4) - const GENERIC_FALLBACK = const GTK_ICON_LOOKUP_GENERIC_FALLBACK = Main.Base.convert(Main.Base.Int32,8) - const FORCE_SIZE = const GTK_ICON_LOOKUP_FORCE_SIZE = Main.Base.convert(Main.Base.Int32,16) - end))) - $(Expr(:toplevel, :(baremodule GtkIconThemeError - const NOT_FOUND = const GTK_ICON_THEME_NOT_FOUND = Main.Base.convert(Main.Base.Int32,0) - const FAILED = const GTK_ICON_THEME_FAILED = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkIconViewDropPosition - const NO_DROP = const GTK_ICON_VIEW_NO_DROP = Main.Base.convert(Main.Base.Int32,0) - const DROP_INTO = const GTK_ICON_VIEW_DROP_INTO = Main.Base.convert(Main.Base.Int32,1) - const DROP_LEFT = const GTK_ICON_VIEW_DROP_LEFT = Main.Base.convert(Main.Base.Int32,2) - const DROP_RIGHT = const GTK_ICON_VIEW_DROP_RIGHT = Main.Base.convert(Main.Base.Int32,3) - const DROP_ABOVE = const GTK_ICON_VIEW_DROP_ABOVE = Main.Base.convert(Main.Base.Int32,4) - const DROP_BELOW = const GTK_ICON_VIEW_DROP_BELOW = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GtkSizeGroupMode - const NONE = const GTK_SIZE_GROUP_NONE = Main.Base.convert(Main.Base.Int32,0) - const HORIZONTAL = const GTK_SIZE_GROUP_HORIZONTAL = Main.Base.convert(Main.Base.Int32,1) - const VERTICAL = const GTK_SIZE_GROUP_VERTICAL = Main.Base.convert(Main.Base.Int32,2) - const BOTH = const GTK_SIZE_GROUP_BOTH = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkButtonsType - const NONE = const GTK_BUTTONS_NONE = Main.Base.convert(Main.Base.Int32,0) - const OK = const GTK_BUTTONS_OK = Main.Base.convert(Main.Base.Int32,1) - const CLOSE = const GTK_BUTTONS_CLOSE = Main.Base.convert(Main.Base.Int32,2) - const CANCEL = const GTK_BUTTONS_CANCEL = Main.Base.convert(Main.Base.Int32,3) - const YES_NO = const GTK_BUTTONS_YES_NO = Main.Base.convert(Main.Base.Int32,4) - const OK_CANCEL = const GTK_BUTTONS_OK_CANCEL = Main.Base.convert(Main.Base.Int32,5) - end))) - $(Expr(:toplevel, :(baremodule GtkNotebookTab - const FIRST = const GTK_NOTEBOOK_TAB_FIRST = Main.Base.convert(Main.Base.Int32,0) - const LAST = const GTK_NOTEBOOK_TAB_LAST = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkPrintStatus - const INITIAL = const GTK_PRINT_STATUS_INITIAL = Main.Base.convert(Main.Base.Int32,0) - const PREPARING = const GTK_PRINT_STATUS_PREPARING = Main.Base.convert(Main.Base.Int32,1) - const GENERATING_DATA = const GTK_PRINT_STATUS_GENERATING_DATA = Main.Base.convert(Main.Base.Int32,2) - const SENDING_DATA = const GTK_PRINT_STATUS_SENDING_DATA = Main.Base.convert(Main.Base.Int32,3) - const PENDING = const GTK_PRINT_STATUS_PENDING = Main.Base.convert(Main.Base.Int32,4) - const PENDING_ISSUE = const GTK_PRINT_STATUS_PENDING_ISSUE = Main.Base.convert(Main.Base.Int32,5) - const PRINTING = const GTK_PRINT_STATUS_PRINTING = Main.Base.convert(Main.Base.Int32,6) - const FINISHED = const GTK_PRINT_STATUS_FINISHED = Main.Base.convert(Main.Base.Int32,7) - const FINISHED_ABORTED = const GTK_PRINT_STATUS_FINISHED_ABORTED = Main.Base.convert(Main.Base.Int32,8) - end))) - $(Expr(:toplevel, :(baremodule GtkPrintOperationResult - const ERROR = const GTK_PRINT_OPERATION_RESULT_ERROR = Main.Base.convert(Main.Base.Int32,0) - const APPLY = const GTK_PRINT_OPERATION_RESULT_APPLY = Main.Base.convert(Main.Base.Int32,1) - const CANCEL = const GTK_PRINT_OPERATION_RESULT_CANCEL = Main.Base.convert(Main.Base.Int32,2) - const IN_PROGRESS = const GTK_PRINT_OPERATION_RESULT_IN_PROGRESS = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkPrintOperationAction - const PRINT_DIALOG = const GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG = Main.Base.convert(Main.Base.Int32,0) - const PRINT = const GTK_PRINT_OPERATION_ACTION_PRINT = Main.Base.convert(Main.Base.Int32,1) - const PREVIEW = const GTK_PRINT_OPERATION_ACTION_PREVIEW = Main.Base.convert(Main.Base.Int32,2) - const EXPORT = const GTK_PRINT_OPERATION_ACTION_EXPORT = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkPrintError - const GENERAL = const GTK_PRINT_ERROR_GENERAL = Main.Base.convert(Main.Base.Int32,0) - const INTERNAL_ERROR = const GTK_PRINT_ERROR_INTERNAL_ERROR = Main.Base.convert(Main.Base.Int32,1) - const NOMEM = const GTK_PRINT_ERROR_NOMEM = Main.Base.convert(Main.Base.Int32,2) - const INVALID_FILE = const GTK_PRINT_ERROR_INVALID_FILE = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkProgressBarStyle - const CONTINUOUS = const GTK_PROGRESS_CONTINUOUS = Main.Base.convert(Main.Base.Int32,0) - const DISCRETE = const GTK_PROGRESS_DISCRETE = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkProgressBarOrientation - const LEFT_TO_RIGHT = const GTK_PROGRESS_LEFT_TO_RIGHT = Main.Base.convert(Main.Base.Int32,0) - const RIGHT_TO_LEFT = const GTK_PROGRESS_RIGHT_TO_LEFT = Main.Base.convert(Main.Base.Int32,1) - const BOTTOM_TO_TOP = const GTK_PROGRESS_BOTTOM_TO_TOP = Main.Base.convert(Main.Base.Int32,2) - const TOP_TO_BOTTOM = const GTK_PROGRESS_TOP_TO_BOTTOM = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkRecentManagerError - const NOT_FOUND = const GTK_RECENT_MANAGER_ERROR_NOT_FOUND = Main.Base.convert(Main.Base.Int32,0) - const INVALID_URI = const GTK_RECENT_MANAGER_ERROR_INVALID_URI = Main.Base.convert(Main.Base.Int32,1) - const INVALID_ENCODING = const GTK_RECENT_MANAGER_ERROR_INVALID_ENCODING = Main.Base.convert(Main.Base.Int32,2) - const NOT_REGISTERED = const GTK_RECENT_MANAGER_ERROR_NOT_REGISTERED = Main.Base.convert(Main.Base.Int32,3) - const READ = const GTK_RECENT_MANAGER_ERROR_READ = Main.Base.convert(Main.Base.Int32,4) - const WRITE = const GTK_RECENT_MANAGER_ERROR_WRITE = Main.Base.convert(Main.Base.Int32,5) - const UNKNOWN = const GTK_RECENT_MANAGER_ERROR_UNKNOWN = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GtkRecentFilterFlags - const URI = const GTK_RECENT_FILTER_URI = Main.Base.convert(Main.Base.Int32,1) - const DISPLAY_NAME = const GTK_RECENT_FILTER_DISPLAY_NAME = Main.Base.convert(Main.Base.Int32,2) - const MIME_TYPE = const GTK_RECENT_FILTER_MIME_TYPE = Main.Base.convert(Main.Base.Int32,4) - const APPLICATION = const GTK_RECENT_FILTER_APPLICATION = Main.Base.convert(Main.Base.Int32,8) - const GROUP = const GTK_RECENT_FILTER_GROUP = Main.Base.convert(Main.Base.Int32,16) - const AGE = const GTK_RECENT_FILTER_AGE = Main.Base.convert(Main.Base.Int32,32) - end))) - $(Expr(:toplevel, :(baremodule GtkRecentSortType - const NONE = const GTK_RECENT_SORT_NONE = Main.Base.convert(Main.Base.Int32,0) - const MRU = const GTK_RECENT_SORT_MRU = Main.Base.convert(Main.Base.Int32,1) - const LRU = const GTK_RECENT_SORT_LRU = Main.Base.convert(Main.Base.Int32,2) - const CUSTOM = const GTK_RECENT_SORT_CUSTOM = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkRecentChooserError - const NOT_FOUND = const GTK_RECENT_CHOOSER_ERROR_NOT_FOUND = Main.Base.convert(Main.Base.Int32,0) - const INVALID_URI = const GTK_RECENT_CHOOSER_ERROR_INVALID_URI = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkSpinButtonUpdatePolicy - const ALWAYS = const GTK_UPDATE_ALWAYS = Main.Base.convert(Main.Base.Int32,0) - const IF_VALID = const GTK_UPDATE_IF_VALID = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkSpinType - const STEP_FORWARD = const GTK_SPIN_STEP_FORWARD = Main.Base.convert(Main.Base.Int32,0) - const STEP_BACKWARD = const GTK_SPIN_STEP_BACKWARD = Main.Base.convert(Main.Base.Int32,1) - const PAGE_FORWARD = const GTK_SPIN_PAGE_FORWARD = Main.Base.convert(Main.Base.Int32,2) - const PAGE_BACKWARD = const GTK_SPIN_PAGE_BACKWARD = Main.Base.convert(Main.Base.Int32,3) - const HOME = const GTK_SPIN_HOME = Main.Base.convert(Main.Base.Int32,4) - const END = const GTK_SPIN_END = Main.Base.convert(Main.Base.Int32,5) - const USER_DEFINED = const GTK_SPIN_USER_DEFINED = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GtkTextBufferTargetInfo - const BUFFER_CONTENTS = const GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS = Main.Base.convert(Main.Base.Int32,-1) - const RICH_TEXT = const GTK_TEXT_BUFFER_TARGET_INFO_RICH_TEXT = Main.Base.convert(Main.Base.Int32,-2) - const TEXT = const GTK_TEXT_BUFFER_TARGET_INFO_TEXT = Main.Base.convert(Main.Base.Int32,-3) - end))) - $(Expr(:toplevel, :(baremodule GtkTextWindowType - const PRIVATE = const GTK_TEXT_WINDOW_PRIVATE = Main.Base.convert(Main.Base.Int32,0) - const WIDGET = const GTK_TEXT_WINDOW_WIDGET = Main.Base.convert(Main.Base.Int32,1) - const TEXT = const GTK_TEXT_WINDOW_TEXT = Main.Base.convert(Main.Base.Int32,2) - const LEFT = const GTK_TEXT_WINDOW_LEFT = Main.Base.convert(Main.Base.Int32,3) - const RIGHT = const GTK_TEXT_WINDOW_RIGHT = Main.Base.convert(Main.Base.Int32,4) - const TOP = const GTK_TEXT_WINDOW_TOP = Main.Base.convert(Main.Base.Int32,5) - const BOTTOM = const GTK_TEXT_WINDOW_BOTTOM = Main.Base.convert(Main.Base.Int32,6) - end))) - $(Expr(:toplevel, :(baremodule GtkToolbarChildType - const SPACE = const GTK_TOOLBAR_CHILD_SPACE = Main.Base.convert(Main.Base.Int32,0) - const BUTTON = const GTK_TOOLBAR_CHILD_BUTTON = Main.Base.convert(Main.Base.Int32,1) - const TOGGLEBUTTON = const GTK_TOOLBAR_CHILD_TOGGLEBUTTON = Main.Base.convert(Main.Base.Int32,2) - const RADIOBUTTON = const GTK_TOOLBAR_CHILD_RADIOBUTTON = Main.Base.convert(Main.Base.Int32,3) - const WIDGET = const GTK_TOOLBAR_CHILD_WIDGET = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkToolbarSpaceStyle - const EMPTY = const GTK_TOOLBAR_SPACE_EMPTY = Main.Base.convert(Main.Base.Int32,0) - const LINE = const GTK_TOOLBAR_SPACE_LINE = Main.Base.convert(Main.Base.Int32,1) - end))) - $(Expr(:toplevel, :(baremodule GtkToolPaletteDragTargets - const ITEMS = const GTK_TOOL_PALETTE_DRAG_ITEMS = Main.Base.convert(Main.Base.Int32,1) - const GROUPS = const GTK_TOOL_PALETTE_DRAG_GROUPS = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkUIManagerItemType - const AUTO = const GTK_UI_MANAGER_AUTO = Main.Base.convert(Main.Base.Int32,0) - const MENUBAR = const GTK_UI_MANAGER_MENUBAR = Main.Base.convert(Main.Base.Int32,1) - const MENU = const GTK_UI_MANAGER_MENU = Main.Base.convert(Main.Base.Int32,2) - const TOOLBAR = const GTK_UI_MANAGER_TOOLBAR = Main.Base.convert(Main.Base.Int32,4) - const PLACEHOLDER = const GTK_UI_MANAGER_PLACEHOLDER = Main.Base.convert(Main.Base.Int32,8) - const POPUP = const GTK_UI_MANAGER_POPUP = Main.Base.convert(Main.Base.Int32,16) - const MENUITEM = const GTK_UI_MANAGER_MENUITEM = Main.Base.convert(Main.Base.Int32,32) - const TOOLITEM = const GTK_UI_MANAGER_TOOLITEM = Main.Base.convert(Main.Base.Int32,64) - const SEPARATOR = const GTK_UI_MANAGER_SEPARATOR = Main.Base.convert(Main.Base.Int32,128) - const ACCELERATOR = const GTK_UI_MANAGER_ACCELERATOR = Main.Base.convert(Main.Base.Int32,256) - const POPUP_WITH_ACCELS = const GTK_UI_MANAGER_POPUP_WITH_ACCELS = Main.Base.convert(Main.Base.Int32,512) - end))) - $(Expr(:toplevel, :(baremodule GtkCellType - const EMPTY = const GTK_CELL_EMPTY = Main.Base.convert(Main.Base.Int32,0) - const TEXT = const GTK_CELL_TEXT = Main.Base.convert(Main.Base.Int32,1) - const PIXMAP = const GTK_CELL_PIXMAP = Main.Base.convert(Main.Base.Int32,2) - const PIXTEXT = const GTK_CELL_PIXTEXT = Main.Base.convert(Main.Base.Int32,3) - const WIDGET = const GTK_CELL_WIDGET = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkCListDragPos - const NONE = const GTK_CLIST_DRAG_NONE = Main.Base.convert(Main.Base.Int32,0) - const BEFORE = const GTK_CLIST_DRAG_BEFORE = Main.Base.convert(Main.Base.Int32,1) - const INTO = const GTK_CLIST_DRAG_INTO = Main.Base.convert(Main.Base.Int32,2) - const AFTER = const GTK_CLIST_DRAG_AFTER = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkButtonAction - const IGNORED = const GTK_BUTTON_IGNORED = Main.Base.convert(Main.Base.Int32,0) - const SELECTS = const GTK_BUTTON_SELECTS = Main.Base.convert(Main.Base.Int32,1) - const DRAGS = const GTK_BUTTON_DRAGS = Main.Base.convert(Main.Base.Int32,2) - const EXPANDS = const GTK_BUTTON_EXPANDS = Main.Base.convert(Main.Base.Int32,4) - end))) - $(Expr(:toplevel, :(baremodule GtkCTreePos - const BEFORE = const GTK_CTREE_POS_BEFORE = Main.Base.convert(Main.Base.Int32,0) - const AS_CHILD = const GTK_CTREE_POS_AS_CHILD = Main.Base.convert(Main.Base.Int32,1) - const AFTER = const GTK_CTREE_POS_AFTER = Main.Base.convert(Main.Base.Int32,2) - end))) - $(Expr(:toplevel, :(baremodule GtkCTreeLineStyle - const NONE = const GTK_CTREE_LINES_NONE = Main.Base.convert(Main.Base.Int32,0) - const SOLID = const GTK_CTREE_LINES_SOLID = Main.Base.convert(Main.Base.Int32,1) - const DOTTED = const GTK_CTREE_LINES_DOTTED = Main.Base.convert(Main.Base.Int32,2) - const TABBED = const GTK_CTREE_LINES_TABBED = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkCTreeExpanderStyle - const NONE = const GTK_CTREE_EXPANDER_NONE = Main.Base.convert(Main.Base.Int32,0) - const SQUARE = const GTK_CTREE_EXPANDER_SQUARE = Main.Base.convert(Main.Base.Int32,1) - const TRIANGLE = const GTK_CTREE_EXPANDER_TRIANGLE = Main.Base.convert(Main.Base.Int32,2) - const CIRCULAR = const GTK_CTREE_EXPANDER_CIRCULAR = Main.Base.convert(Main.Base.Int32,3) - end))) - $(Expr(:toplevel, :(baremodule GtkCTreeExpansionType - const EXPAND = const GTK_CTREE_EXPANSION_EXPAND = Main.Base.convert(Main.Base.Int32,0) - const EXPAND_RECURSIVE = const GTK_CTREE_EXPANSION_EXPAND_RECURSIVE = Main.Base.convert(Main.Base.Int32,1) - const COLLAPSE = const GTK_CTREE_EXPANSION_COLLAPSE = Main.Base.convert(Main.Base.Int32,2) - const COLLAPSE_RECURSIVE = const GTK_CTREE_EXPANSION_COLLAPSE_RECURSIVE = Main.Base.convert(Main.Base.Int32,3) - const TOGGLE = const GTK_CTREE_EXPANSION_TOGGLE = Main.Base.convert(Main.Base.Int32,4) - const TOGGLE_RECURSIVE = const GTK_CTREE_EXPANSION_TOGGLE_RECURSIVE = Main.Base.convert(Main.Base.Int32,5) - end))) - const G_GNUC_FUNCTION = "" - const G_GNUC_PRETTY_FUNCTION = "" - const G_ANALYZER_ANALYZING = 1 - const G_GINT16_MODIFIER = "h" - const G_GINT16_FORMAT = "hi" - const G_GUINT16_FORMAT = "hu" - const G_GINT32_MODIFIER = "" - const G_GINT32_FORMAT = "i" - const G_GUINT32_FORMAT = "u" - const G_GINT64_MODIFIER = "l" - const G_GINT64_FORMAT = "li" - const G_GUINT64_FORMAT = "lu" - const GLIB_SIZEOF_VOID_P = 8 - const GLIB_SIZEOF_LONG = 8 - const GLIB_SIZEOF_SIZE_T = 8 - const GLIB_SIZEOF_SSIZE_T = 8 - const G_GSIZE_MODIFIER = "l" - const G_GSSIZE_MODIFIER = "l" - const G_GSIZE_FORMAT = "lu" - const G_GSSIZE_FORMAT = "li" - const G_GINTPTR_MODIFIER = "l" - const G_GINTPTR_FORMAT = "li" - const G_GUINTPTR_FORMAT = "lu" - const GLIB_MAJOR_VERSION = 2 - const GLIB_MINOR_VERSION = 40 - const GLIB_MICRO_VERSION = 2 - const G_VA_COPY_AS_ARRAY = 1 - const G_HAVE_INLINE = 1 - const G_HAVE___INLINE = 1 - const G_CAN_INLINE = 1 - const G_HAVE_ISO_VARARGS = 1 - const G_HAVE_GNUC_VARARGS = 1 - const G_HAVE_GROWING_STACK = 0 - const G_HAVE_GNUC_VISIBILITY = 1 - const G_MODULE_SUFFIX = "so" - const GLIB_SYSDEF_AF_UNIX = 1 - const GLIB_SYSDEF_AF_INET = 2 - const GLIB_SYSDEF_MSG_OOB = 1 - const GLIB_SYSDEF_MSG_PEEK = 2 - const GLIB_SYSDEF_MSG_DONTROUTE = 4 - const G_E = 2.718281828459045 - const G_PI = 3.141592653589793 - const G_LITTLE_ENDIAN = 1234 - const G_BIG_ENDIAN = 4321 - const G_PDP_ENDIAN = 3412 - const G_DATALIST_FLAGS_MASK = 0x03 - const G_DATE_BAD_JULIAN = 0 - const G_DATE_BAD_DAY = 0 - const G_DATE_BAD_YEAR = 0 - const G_DIR_SEPARATOR = '/' - const G_DIR_SEPARATOR_S = "/" - const G_SEARCHPATH_SEPARATOR = ':' - const G_SEARCHPATH_SEPARATOR_S = ":" - const G_POLLFD_FORMAT = "%d" - const G_PRIORITY_DEFAULT = 0 - const G_PRIORITY_HIGH_IDLE = 100 - const G_PRIORITY_DEFAULT_IDLE = 200 - const G_PRIORITY_LOW = 300 - const G_UNICHAR_MAX_DECOMPOSITION_LENGTH = 18 - const G_KEY_FILE_DESKTOP_GROUP = "Desktop Entry" - const G_KEY_FILE_DESKTOP_KEY_TYPE = "Type" - const G_KEY_FILE_DESKTOP_KEY_VERSION = "Version" - const G_KEY_FILE_DESKTOP_KEY_NAME = "Name" - const G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME = "GenericName" - const G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY = "NoDisplay" - const G_KEY_FILE_DESKTOP_KEY_COMMENT = "Comment" - const G_KEY_FILE_DESKTOP_KEY_ICON = "Icon" - const G_KEY_FILE_DESKTOP_KEY_HIDDEN = "Hidden" - const G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN = "OnlyShowIn" - const G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN = "NotShowIn" - const G_KEY_FILE_DESKTOP_KEY_TRY_EXEC = "TryExec" - const G_KEY_FILE_DESKTOP_KEY_EXEC = "Exec" - const G_KEY_FILE_DESKTOP_KEY_PATH = "Path" - const G_KEY_FILE_DESKTOP_KEY_TERMINAL = "Terminal" - const G_KEY_FILE_DESKTOP_KEY_MIME_TYPE = "MimeType" - const G_KEY_FILE_DESKTOP_KEY_CATEGORIES = "Categories" - const G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY = "StartupNotify" - const G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS = "StartupWMClass" - const G_KEY_FILE_DESKTOP_KEY_URL = "URL" - const G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE = "DBusActivatable" - const G_KEY_FILE_DESKTOP_KEY_ACTIONS = "Actions" - const G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN = "X-GNOME-Gettext-Domain" - const G_KEY_FILE_DESKTOP_KEY_FULLNAME = "X-GNOME-FullName" - const G_KEY_FILE_DESKTOP_KEY_KEYWORDS = "Keywords" - const G_KEY_FILE_DESKTOP_TYPE_APPLICATION = "Application" - const G_KEY_FILE_DESKTOP_TYPE_LINK = "Link" - const G_KEY_FILE_DESKTOP_TYPE_DIRECTORY = "Directory" - const G_OPTION_REMAINING = "" - const G_CSET_A_2_Z = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - const G_CSET_a_2_z = "abcdefghijklmnopqrstuvwxyz" - const G_CSET_DIGITS = "0123456789" - const G_STR_DELIMITERS = "_-|> <." - const G_USEC_PER_SEC = 1000000 - const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS = ":/?#[]@" - const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS = "!\$&'()*+,;=" - const G_ALLOC_ONLY = 1 - const G_ALLOC_AND_FREE = 2 - const G_ALLOCATOR_LIST = 1 - const G_ALLOCATOR_SLIST = 2 - const G_ALLOCATOR_NODE = 3 - const G_SIGNAL_FLAGS_MASK = 0x1f - const G_SIGNAL_MATCH_MASK = 0x03 - const G_FILE_ATTRIBUTE_STANDARD_TYPE = "standard::type" - const G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN = "standard::is-hidden" - const G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP = "standard::is-backup" - const G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK = "standard::is-symlink" - const G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL = "standard::is-virtual" - const G_FILE_ATTRIBUTE_STANDARD_NAME = "standard::name" - const G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME = "standard::display-name" - const G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME = "standard::edit-name" - const G_FILE_ATTRIBUTE_STANDARD_COPY_NAME = "standard::copy-name" - const G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION = "standard::description" - const G_FILE_ATTRIBUTE_STANDARD_ICON = "standard::icon" - const G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON = "standard::symbolic-icon" - const G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE = "standard::content-type" - const G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE = "standard::fast-content-type" - const G_FILE_ATTRIBUTE_STANDARD_SIZE = "standard::size" - const G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE = "standard::allocated-size" - const G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET = "standard::symlink-target" - const G_FILE_ATTRIBUTE_STANDARD_TARGET_URI = "standard::target-uri" - const G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER = "standard::sort-order" - const G_FILE_ATTRIBUTE_ETAG_VALUE = "etag::value" - const G_FILE_ATTRIBUTE_ID_FILE = "id::file" - const G_FILE_ATTRIBUTE_ID_FILESYSTEM = "id::filesystem" - const G_FILE_ATTRIBUTE_ACCESS_CAN_READ = "access::can-read" - const G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE = "access::can-write" - const G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE = "access::can-execute" - const G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE = "access::can-delete" - const G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH = "access::can-trash" - const G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME = "access::can-rename" - const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT = "mountable::can-mount" - const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT = "mountable::can-unmount" - const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT = "mountable::can-eject" - const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE = "mountable::unix-device" - const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE = "mountable::unix-device-file" - const G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI = "mountable::hal-udi" - const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START = "mountable::can-start" - const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED = "mountable::can-start-degraded" - const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP = "mountable::can-stop" - const G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE = "mountable::start-stop-type" - const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL = "mountable::can-poll" - const G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC = "mountable::is-media-check-automatic" - const G_FILE_ATTRIBUTE_TIME_MODIFIED = "time::modified" - const G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC = "time::modified-usec" - const G_FILE_ATTRIBUTE_TIME_ACCESS = "time::access" - const G_FILE_ATTRIBUTE_TIME_ACCESS_USEC = "time::access-usec" - const G_FILE_ATTRIBUTE_TIME_CHANGED = "time::changed" - const G_FILE_ATTRIBUTE_TIME_CHANGED_USEC = "time::changed-usec" - const G_FILE_ATTRIBUTE_TIME_CREATED = "time::created" - const G_FILE_ATTRIBUTE_TIME_CREATED_USEC = "time::created-usec" - const G_FILE_ATTRIBUTE_UNIX_DEVICE = "unix::device" - const G_FILE_ATTRIBUTE_UNIX_INODE = "unix::inode" - const G_FILE_ATTRIBUTE_UNIX_MODE = "unix::mode" - const G_FILE_ATTRIBUTE_UNIX_NLINK = "unix::nlink" - const G_FILE_ATTRIBUTE_UNIX_UID = "unix::uid" - const G_FILE_ATTRIBUTE_UNIX_GID = "unix::gid" - const G_FILE_ATTRIBUTE_UNIX_RDEV = "unix::rdev" - const G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE = "unix::block-size" - const G_FILE_ATTRIBUTE_UNIX_BLOCKS = "unix::blocks" - const G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT = "unix::is-mountpoint" - const G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE = "dos::is-archive" - const G_FILE_ATTRIBUTE_DOS_IS_SYSTEM = "dos::is-system" - const G_FILE_ATTRIBUTE_OWNER_USER = "owner::user" - const G_FILE_ATTRIBUTE_OWNER_USER_REAL = "owner::user-real" - const G_FILE_ATTRIBUTE_OWNER_GROUP = "owner::group" - const G_FILE_ATTRIBUTE_THUMBNAIL_PATH = "thumbnail::path" - const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED = "thumbnail::failed" - const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID = "thumbnail::is-valid" - const G_FILE_ATTRIBUTE_PREVIEW_ICON = "preview::icon" - const G_FILE_ATTRIBUTE_FILESYSTEM_SIZE = "filesystem::size" - const G_FILE_ATTRIBUTE_FILESYSTEM_FREE = "filesystem::free" - const G_FILE_ATTRIBUTE_FILESYSTEM_USED = "filesystem::used" - const G_FILE_ATTRIBUTE_FILESYSTEM_TYPE = "filesystem::type" - const G_FILE_ATTRIBUTE_FILESYSTEM_READONLY = "filesystem::readonly" - const G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW = "filesystem::use-preview" - const G_FILE_ATTRIBUTE_GVFS_BACKEND = "gvfs::backend" - const G_FILE_ATTRIBUTE_SELINUX_CONTEXT = "selinux::context" - const G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT = "trash::item-count" - const G_FILE_ATTRIBUTE_TRASH_ORIG_PATH = "trash::orig-path" - const G_FILE_ATTRIBUTE_TRASH_DELETION_DATE = "trash::deletion-date" - const G_VOLUME_MONITOR_EXTENSION_POINT_NAME = "gio-volume-monitor" - const G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME = "gio-native-volume-monitor" - const G_NETWORK_MONITOR_EXTENSION_POINT_NAME = "gio-network-monitor" - const G_PROXY_EXTENSION_POINT_NAME = "gio-proxy" - const G_PROXY_RESOLVER_EXTENSION_POINT_NAME = "gio-proxy-resolver" - const G_TLS_BACKEND_EXTENSION_POINT_NAME = "gio-tls-backend" - const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER = "1.3.6.1.5.5.7.3.1" - const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT = "1.3.6.1.5.5.7.3.2" - const G_VFS_EXTENSION_POINT_NAME = "gio-vfs" - const G_VOLUME_IDENTIFIER_KIND_HAL_UDI = "hal-udi" - const G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE = "unix-device" - const G_VOLUME_IDENTIFIER_KIND_LABEL = "label" - const G_VOLUME_IDENTIFIER_KIND_UUID = "uuid" - const G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT = "nfs-mount" - const G_VOLUME_IDENTIFIER_KIND_CLASS = "class" - const G_MENU_ATTRIBUTE_ACTION = "action" - const G_MENU_ATTRIBUTE_ACTION_NAMESPACE = "action-namespace" - const G_MENU_ATTRIBUTE_TARGET = "target" - const G_MENU_ATTRIBUTE_LABEL = "label" - const G_MENU_ATTRIBUTE_ICON = "icon" - const G_MENU_LINK_SUBMENU = "submenu" - const G_MENU_LINK_SECTION = "section" - const GDK_HAVE_WCHAR_H = 1 - const GDK_HAVE_WCTYPE_H = 1 - const GDK_CURRENT_TIME = 0 - const GDK_PARENT_RELATIVE = 1 - const GDK_MAX_TIMECOORD_AXES = 128 - const GDK_PIXBUF_FEATURES_H = 1 - const GDK_PIXBUF_VERSION = "2.30.7" - const GTK_PATH_PRIO_MASK = 0x00 - const GTK_MAX_COMPOSE_LEN = 7 - const GTK_PAPER_NAME_LETTER = "na_letter" - const GTK_PAPER_NAME_EXECUTIVE = "na_executive" - const GTK_PAPER_NAME_LEGAL = "na_legal" - const GTK_PRINT_SETTINGS_PRINTER = "printer" - const GTK_PRINT_SETTINGS_ORIENTATION = "orientation" - const GTK_PRINT_SETTINGS_PAPER_FORMAT = "paper-format" - const GTK_PRINT_SETTINGS_PAPER_WIDTH = "paper-width" - const GTK_PRINT_SETTINGS_PAPER_HEIGHT = "paper-height" - const GTK_PRINT_SETTINGS_N_COPIES = "n-copies" - const GTK_PRINT_SETTINGS_DEFAULT_SOURCE = "default-source" - const GTK_PRINT_SETTINGS_QUALITY = "quality" - const GTK_PRINT_SETTINGS_RESOLUTION = "resolution" - const GTK_PRINT_SETTINGS_USE_COLOR = "use-color" - const GTK_PRINT_SETTINGS_DUPLEX = "duplex" - const GTK_PRINT_SETTINGS_COLLATE = "collate" - const GTK_PRINT_SETTINGS_REVERSE = "reverse" - const GTK_PRINT_SETTINGS_MEDIA_TYPE = "media-type" - const GTK_PRINT_SETTINGS_DITHER = "dither" - const GTK_PRINT_SETTINGS_SCALE = "scale" - const GTK_PRINT_SETTINGS_PRINT_PAGES = "print-pages" - const GTK_PRINT_SETTINGS_PAGE_RANGES = "page-ranges" - const GTK_PRINT_SETTINGS_PAGE_SET = "page-set" - const GTK_PRINT_SETTINGS_FINISHINGS = "finishings" - const GTK_PRINT_SETTINGS_NUMBER_UP = "number-up" - const GTK_PRINT_SETTINGS_NUMBER_UP_LAYOUT = "number-up-layout" - const GTK_PRINT_SETTINGS_OUTPUT_BIN = "output-bin" - const GTK_PRINT_SETTINGS_RESOLUTION_X = "resolution-x" - const GTK_PRINT_SETTINGS_RESOLUTION_Y = "resolution-y" - const GTK_PRINT_SETTINGS_PRINTER_LPI = "printer-lpi" - const GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT = "output-file-format" - const GTK_PRINT_SETTINGS_OUTPUT_URI = "output-uri" - const GTK_PRINT_SETTINGS_WIN32_DRIVER_VERSION = "win32-driver-version" - const GTK_PRINT_SETTINGS_WIN32_DRIVER_EXTRA = "win32-driver-extra" - const GTK_STOCK_ABOUT = "gtk-about" - const GTK_STOCK_ADD = "gtk-add" - const GTK_STOCK_APPLY = "gtk-apply" - const GTK_STOCK_BOLD = "gtk-bold" - const GTK_STOCK_CANCEL = "gtk-cancel" - const GTK_STOCK_CAPS_LOCK_WARNING = "gtk-caps-lock-warning" - const GTK_STOCK_CDROM = "gtk-cdrom" - const GTK_STOCK_CLEAR = "gtk-clear" - const GTK_STOCK_CLOSE = "gtk-close" - const GTK_STOCK_COLOR_PICKER = "gtk-color-picker" - const GTK_STOCK_CONNECT = "gtk-connect" - const GTK_STOCK_CONVERT = "gtk-convert" - const GTK_STOCK_COPY = "gtk-copy" - const GTK_STOCK_CUT = "gtk-cut" - const GTK_STOCK_DELETE = "gtk-delete" - const GTK_STOCK_DIALOG_AUTHENTICATION = "gtk-dialog-authentication" - const GTK_STOCK_DIALOG_INFO = "gtk-dialog-info" - const GTK_STOCK_DIALOG_WARNING = "gtk-dialog-warning" - const GTK_STOCK_DIALOG_ERROR = "gtk-dialog-error" - const GTK_STOCK_DIALOG_QUESTION = "gtk-dialog-question" - const GTK_STOCK_DIRECTORY = "gtk-directory" - const GTK_STOCK_DISCARD = "gtk-discard" - const GTK_STOCK_DISCONNECT = "gtk-disconnect" - const GTK_STOCK_DND = "gtk-dnd" - const GTK_STOCK_DND_MULTIPLE = "gtk-dnd-multiple" - const GTK_STOCK_EDIT = "gtk-edit" - const GTK_STOCK_EXECUTE = "gtk-execute" - const GTK_STOCK_FILE = "gtk-file" - const GTK_STOCK_FIND = "gtk-find" - const GTK_STOCK_FIND_AND_REPLACE = "gtk-find-and-replace" - const GTK_STOCK_FLOPPY = "gtk-floppy" - const GTK_STOCK_FULLSCREEN = "gtk-fullscreen" - const GTK_STOCK_GOTO_BOTTOM = "gtk-goto-bottom" - const GTK_STOCK_GOTO_FIRST = "gtk-goto-first" - const GTK_STOCK_GOTO_LAST = "gtk-goto-last" - const GTK_STOCK_GOTO_TOP = "gtk-goto-top" - const GTK_STOCK_GO_BACK = "gtk-go-back" - const GTK_STOCK_GO_DOWN = "gtk-go-down" - const GTK_STOCK_GO_FORWARD = "gtk-go-forward" - const GTK_STOCK_GO_UP = "gtk-go-up" - const GTK_STOCK_HARDDISK = "gtk-harddisk" - const GTK_STOCK_HELP = "gtk-help" - const GTK_STOCK_HOME = "gtk-home" - const GTK_STOCK_INDEX = "gtk-index" - const GTK_STOCK_INDENT = "gtk-indent" - const GTK_STOCK_INFO = "gtk-info" - const GTK_STOCK_ITALIC = "gtk-italic" - const GTK_STOCK_JUMP_TO = "gtk-jump-to" - const GTK_STOCK_JUSTIFY_CENTER = "gtk-justify-center" - const GTK_STOCK_JUSTIFY_FILL = "gtk-justify-fill" - const GTK_STOCK_JUSTIFY_LEFT = "gtk-justify-left" - const GTK_STOCK_JUSTIFY_RIGHT = "gtk-justify-right" - const GTK_STOCK_LEAVE_FULLSCREEN = "gtk-leave-fullscreen" - const GTK_STOCK_MISSING_IMAGE = "gtk-missing-image" - const GTK_STOCK_MEDIA_FORWARD = "gtk-media-forward" - const GTK_STOCK_MEDIA_NEXT = "gtk-media-next" - const GTK_STOCK_MEDIA_PAUSE = "gtk-media-pause" - const GTK_STOCK_MEDIA_PLAY = "gtk-media-play" - const GTK_STOCK_MEDIA_PREVIOUS = "gtk-media-previous" - const GTK_STOCK_MEDIA_RECORD = "gtk-media-record" - const GTK_STOCK_MEDIA_REWIND = "gtk-media-rewind" - const GTK_STOCK_MEDIA_STOP = "gtk-media-stop" - const GTK_STOCK_NETWORK = "gtk-network" - const GTK_STOCK_NEW = "gtk-new" - const GTK_STOCK_NO = "gtk-no" - const GTK_STOCK_OK = "gtk-ok" - const GTK_STOCK_OPEN = "gtk-open" - const GTK_STOCK_ORIENTATION_PORTRAIT = "gtk-orientation-portrait" - const GTK_STOCK_ORIENTATION_LANDSCAPE = "gtk-orientation-landscape" - const GTK_STOCK_ORIENTATION_REVERSE_LANDSCAPE = "gtk-orientation-reverse-landscape" - const GTK_STOCK_ORIENTATION_REVERSE_PORTRAIT = "gtk-orientation-reverse-portrait" - const GTK_STOCK_PAGE_SETUP = "gtk-page-setup" - const GTK_STOCK_PASTE = "gtk-paste" - const GTK_STOCK_PREFERENCES = "gtk-preferences" - const GTK_STOCK_PRINT = "gtk-print" - const GTK_STOCK_PRINT_ERROR = "gtk-print-error" - const GTK_STOCK_PRINT_PAUSED = "gtk-print-paused" - const GTK_STOCK_PRINT_PREVIEW = "gtk-print-preview" - const GTK_STOCK_PRINT_REPORT = "gtk-print-report" - const GTK_STOCK_PRINT_WARNING = "gtk-print-warning" - const GTK_STOCK_PROPERTIES = "gtk-properties" - const GTK_STOCK_QUIT = "gtk-quit" - const GTK_STOCK_REDO = "gtk-redo" - const GTK_STOCK_REFRESH = "gtk-refresh" - const GTK_STOCK_REMOVE = "gtk-remove" - const GTK_STOCK_REVERT_TO_SAVED = "gtk-revert-to-saved" - const GTK_STOCK_SAVE = "gtk-save" - const GTK_STOCK_SAVE_AS = "gtk-save-as" - const GTK_STOCK_SELECT_ALL = "gtk-select-all" - const GTK_STOCK_SELECT_COLOR = "gtk-select-color" - const GTK_STOCK_SELECT_FONT = "gtk-select-font" - const GTK_STOCK_SORT_ASCENDING = "gtk-sort-ascending" - const GTK_STOCK_SORT_DESCENDING = "gtk-sort-descending" - const GTK_STOCK_SPELL_CHECK = "gtk-spell-check" - const GTK_STOCK_STOP = "gtk-stop" - const GTK_STOCK_STRIKETHROUGH = "gtk-strikethrough" - const GTK_STOCK_UNDELETE = "gtk-undelete" - const GTK_STOCK_UNDERLINE = "gtk-underline" - const GTK_STOCK_UNDO = "gtk-undo" - const GTK_STOCK_UNINDENT = "gtk-unindent" - const GTK_STOCK_YES = "gtk-yes" - const GTK_STOCK_ZOOM_FIT = "gtk-zoom-fit" - const GTK_STOCK_ZOOM_IN = "gtk-zoom-in" - const GTK_STOCK_ZOOM_OUT = "gtk-zoom-out" - end))) -end diff --git a/gen/gconsts3 b/gen/gconsts3 index 48439166..796150bf 100644 --- a/gen/gconsts3 +++ b/gen/gconsts3 @@ -1,6 +1,6 @@ quote $(Expr(:toplevel, :(module GConstants - export GUserDirectory, GFormatSizeFlags, GThreadError, GOnceStatus, GBookmarkFileError, GChecksumType, GConvertError, GDateDMY, GDateWeekday, GDateMonth, GTimeType, GFileError, GFileTest, GTraverseFlags, GTraverseType, GHookFlagMask, GIOCondition, GUnicodeType, GUnicodeBreakType, GUnicodeScript, GNormalizeMode, GIOError, GIOChannelError, GIOStatus, GSeekType, GIOFlags, GKeyFileError, GKeyFileFlags, GMarkupError, GMarkupParseFlags, GMarkupCollectType, GVariantClass, GVariantParseError, GLogLevelFlags, GLogWriterOutput, GOptionFlags, GOptionArg, GOptionError, GRegexError, GRegexCompileFlags, GRegexMatchFlags, GErrorType, GTokenType, GShellError, GSliceConfig, GSpawnError, GSpawnFlags, GAsciiType, GTestTrapFlags, GTestSubprocessFlags, GTestLogType, GTestFileType, GThreadPriority, GTypeDebugFlags, GTypeFundamentalFlags, GTypeFlags, GParamFlags, GSignalFlags, GConnectFlags, GSignalMatchType, GBindingFlags, GAppInfoCreateFlags, GConverterFlags, GConverterResult, GDataStreamByteOrder, GDataStreamNewlineType, GFileAttributeType, GFileAttributeInfoFlags, GFileAttributeStatus, GFileQueryInfoFlags, GFileCreateFlags, GFileMeasureFlags, GMountMountFlags, GMountUnmountFlags, GDriveStartFlags, GDriveStartStopType, GFileCopyFlags, GFileMonitorFlags, GFileType, GFilesystemPreviewType, GFileMonitorEvent, GIOErrorEnum, GAskPasswordFlags, GPasswordSave, GMountOperationResult, GOutputStreamSpliceFlags, GIOStreamSpliceFlags, GEmblemOrigin, GResolverError, GResolverRecordType, GResourceError, GResourceFlags, GResourceLookupFlags, GSocketFamily, GSocketType, GSocketMsgFlags, GSocketProtocol, GZlibCompressorFormat, GUnixSocketAddressType, GBusType, GBusNameOwnerFlags, GBusNameWatcherFlags, GDBusProxyFlags, GDBusError, GDBusConnectionFlags, GDBusCapabilityFlags, GDBusCallFlags, GDBusMessageType, GDBusMessageFlags, GDBusMessageHeaderField, GDBusPropertyInfoFlags, GDBusSubtreeFlags, GDBusServerFlags, GDBusSignalFlags, GDBusSendMessageFlags, GCredentialsType, GDBusMessageByteOrder, GApplicationFlags, GTlsError, GTlsCertificateFlags, GTlsAuthenticationMode, GTlsRehandshakeMode, GTlsPasswordFlags, GTlsInteractionResult, GDBusInterfaceSkeletonFlags, GDBusObjectManagerClientFlags, GTlsDatabaseVerifyFlags, GTlsDatabaseLookupFlags, GTlsCertificateRequestFlags, GIOModuleScopeFlags, GSocketClientEvent, GSocketListenerEvent, GTestDBusFlags, GSubprocessFlags, GNotificationPriority, GNetworkConnectivity, GModuleFlags, GSettingsBindFlags, GdkByteOrder, GdkModifierType, GdkModifierIntent, GdkStatus, GdkGrabStatus, GdkGrabOwnership, GdkEventMask, GdkGLError, GdkWindowTypeHint, GdkAxisUse, GdkAxisFlags, GdkInputSource, GdkInputMode, GdkDeviceType, GdkDragAction, GdkDragCancelReason, GdkDragProtocol, GdkDeviceToolType, GdkFilterReturn, GdkEventType, GdkVisibilityState, GdkTouchpadGesturePhase, GdkScrollDirection, GdkNotifyType, GdkCrossingMode, GdkPropertyState, GdkWindowState, GdkSettingAction, GdkOwnerChange, GdkFrameClockPhase, GdkWindowWindowClass, GdkWindowType, GdkWindowAttributesType, GdkWindowHints, GdkWMDecoration, GdkWMFunction, GdkGravity, GdkAnchorHints, GdkWindowEdge, GdkFullscreenMode, GdkSeatCapabilities, GdkSubpixelLayout, GdkPixbufAlphaMode, GdkColorspace, GdkPixbufError, GdkInterpType, GdkPixbufRotation, GdkCursorType, GdkDevicePadFeature, GdkPropMode, GdkVisualType, GtkAlign, GtkArrowType, GtkBaselinePosition, GtkDeleteType, GtkDirectionType, GtkIconSize, GtkSensitivityType, GtkTextDirection, GtkJustification, GtkMenuDirectionType, GtkMessageType, GtkMovementStep, GtkScrollStep, GtkOrientation, GtkPackType, GtkPositionType, GtkReliefStyle, GtkScrollType, GtkSelectionMode, GtkShadowType, GtkStateType, GtkToolbarStyle, GtkWrapMode, GtkSortType, GtkIMPreeditStyle, GtkIMStatusStyle, GtkPackDirection, GtkPrintPages, GtkPageSet, GtkNumberUpLayout, GtkPageOrientation, GtkPrintQuality, GtkPrintDuplex, GtkUnit, GtkTreeViewGridLines, GtkDragResult, GtkSizeGroupMode, GtkSizeRequestMode, GtkScrollablePolicy, GtkStateFlags, GtkRegionFlags, GtkJunctionSides, GtkBorderStyle, GtkLevelBarMode, GtkInputPurpose, GtkInputHints, GtkPropagationPhase, GtkEventSequenceState, GtkPanDirection, GtkPopoverConstraint, GtkAccelFlags, GtkWidgetHelpType, GtkApplicationInhibitFlags, GtkResizeMode, GtkWindowType, GtkWindowPosition, GtkDialogFlags, GtkResponseType, GtkLicense, GtkArrowPlacement, GtkTreeModelFlags, GtkCellRendererState, GtkCellRendererMode, GtkTreeViewColumnSizing, GtkTextSearchFlags, GtkTargetFlags, GtkImageType, GtkEntryIconPosition, GtkTreeViewDropPosition, GtkAssistantPageType, GtkButtonBoxStyle, GtkBuilderError, GtkCalendarDisplayOptions, GtkCellRendererAccelMode, GtkCssSectionType, GtkCssProviderError, GtkDebugFlag, GtkDestDefaults, GtkFileFilterFlags, GtkFileChooserAction, GtkFileChooserConfirmation, GtkFileChooserError, GtkStyleContextPrintFlags, GtkIconLookupFlags, GtkIconThemeError, GtkIconViewDropPosition, GtkButtonsType, GtkButtonRole, GtkNotebookTab, GtkPadActionType, GtkPlacesOpenFlags, GtkPrintStatus, GtkPrintOperationResult, GtkPrintOperationAction, GtkPrintError, GtkRecentManagerError, GtkRecentFilterFlags, GtkRecentSortType, GtkRecentChooserError, GtkRevealerTransitionType, GtkCornerType, GtkPolicyType, GtkShortcutType, GtkStackTransitionType, GtkSpinButtonUpdatePolicy, GtkSpinType, GtkTextBufferTargetInfo, GtkTextWindowType, GtkTextViewLayer, GtkTextExtendSelection, GtkToolbarSpaceStyle, GtkToolPaletteDragTargets, GtkRcFlags, GtkRcTokenType, GtkPathPriorityType, GtkPathType, GtkExpanderStyle, GtkAttachOptions, GtkUIManagerItemType + export GUserDirectory, GFormatSizeFlags, GThreadError, GOnceStatus, GBookmarkFileError, GChecksumType, GConvertError, GDateDMY, GDateWeekday, GDateMonth, GTimeType, GFileError, GFileTest, GTraverseFlags, GTraverseType, GHookFlagMask, GIOCondition, GUnicodeType, GUnicodeBreakType, GUnicodeScript, GNormalizeMode, GIOError, GIOChannelError, GIOStatus, GSeekType, GIOFlags, GKeyFileError, GKeyFileFlags, GMarkupError, GMarkupParseFlags, GMarkupCollectType, GVariantClass, GVariantParseError, GLogLevelFlags, GLogWriterOutput, GOptionFlags, GOptionArg, GOptionError, GRegexError, GRegexCompileFlags, GRegexMatchFlags, GErrorType, GTokenType, GShellError, GSliceConfig, GSpawnError, GSpawnFlags, GAsciiType, GNumberParserError, GTestTrapFlags, GTestSubprocessFlags, GTestResult, GTestLogType, GTestFileType, GWin32OSType, GThreadPriority, GTypeDebugFlags, GTypeFundamentalFlags, GTypeFlags, GParamFlags, GSignalFlags, GConnectFlags, GSignalMatchType, GBindingFlags, GAppInfoCreateFlags, GConverterFlags, GConverterResult, GDataStreamByteOrder, GDataStreamNewlineType, GFileAttributeType, GFileAttributeInfoFlags, GFileAttributeStatus, GFileQueryInfoFlags, GFileCreateFlags, GFileMeasureFlags, GMountMountFlags, GMountUnmountFlags, GDriveStartFlags, GDriveStartStopType, GFileCopyFlags, GFileMonitorFlags, GFileType, GFilesystemPreviewType, GFileMonitorEvent, GIOErrorEnum, GAskPasswordFlags, GPasswordSave, GMountOperationResult, GOutputStreamSpliceFlags, GIOStreamSpliceFlags, GEmblemOrigin, GResolverError, GResolverRecordType, GResourceError, GResourceFlags, GResourceLookupFlags, GSocketFamily, GSocketType, GSocketMsgFlags, GSocketProtocol, GZlibCompressorFormat, GUnixSocketAddressType, GBusType, GBusNameOwnerFlags, GBusNameWatcherFlags, GDBusProxyFlags, GDBusError, GDBusConnectionFlags, GDBusCapabilityFlags, GDBusCallFlags, GDBusMessageType, GDBusMessageFlags, GDBusMessageHeaderField, GDBusPropertyInfoFlags, GDBusSubtreeFlags, GDBusServerFlags, GDBusSignalFlags, GDBusSendMessageFlags, GCredentialsType, GDBusMessageByteOrder, GApplicationFlags, GTlsError, GTlsCertificateFlags, GTlsAuthenticationMode, GTlsRehandshakeMode, GTlsPasswordFlags, GTlsInteractionResult, GDBusInterfaceSkeletonFlags, GDBusObjectManagerClientFlags, GTlsDatabaseVerifyFlags, GTlsDatabaseLookupFlags, GTlsCertificateRequestFlags, GIOModuleScopeFlags, GSocketClientEvent, GSocketListenerEvent, GTestDBusFlags, GSubprocessFlags, GNotificationPriority, GNetworkConnectivity, GModuleFlags, GResolverNameLookupFlags, GSettingsBindFlags, GdkByteOrder, GdkModifierType, GdkModifierIntent, GdkStatus, GdkGrabStatus, GdkGrabOwnership, GdkEventMask, GdkGLError, GdkWindowTypeHint, GdkAxisUse, GdkAxisFlags, GdkInputSource, GdkInputMode, GdkDeviceType, GdkDragAction, GdkDragCancelReason, GdkDragProtocol, GdkDeviceToolType, GdkFilterReturn, GdkEventType, GdkVisibilityState, GdkTouchpadGesturePhase, GdkScrollDirection, GdkNotifyType, GdkCrossingMode, GdkPropertyState, GdkWindowState, GdkSettingAction, GdkOwnerChange, GdkFrameClockPhase, GdkWindowWindowClass, GdkWindowType, GdkWindowAttributesType, GdkWindowHints, GdkWMDecoration, GdkWMFunction, GdkGravity, GdkAnchorHints, GdkWindowEdge, GdkFullscreenMode, GdkSeatCapabilities, GdkSubpixelLayout, GdkPixbufAlphaMode, GdkColorspace, GdkPixbufError, GdkInterpType, GdkPixbufRotation, GdkCursorType, GdkDevicePadFeature, GdkPropMode, GdkVisualType, GtkAlign, GtkArrowType, GtkBaselinePosition, GtkDeleteType, GtkDirectionType, GtkIconSize, GtkSensitivityType, GtkTextDirection, GtkJustification, GtkMenuDirectionType, GtkMessageType, GtkMovementStep, GtkScrollStep, GtkOrientation, GtkPackType, GtkPositionType, GtkReliefStyle, GtkScrollType, GtkSelectionMode, GtkShadowType, GtkStateType, GtkToolbarStyle, GtkWrapMode, GtkSortType, GtkIMPreeditStyle, GtkIMStatusStyle, GtkPackDirection, GtkPrintPages, GtkPageSet, GtkNumberUpLayout, GtkPageOrientation, GtkPrintQuality, GtkPrintDuplex, GtkUnit, GtkTreeViewGridLines, GtkDragResult, GtkSizeGroupMode, GtkSizeRequestMode, GtkScrollablePolicy, GtkStateFlags, GtkRegionFlags, GtkJunctionSides, GtkBorderStyle, GtkLevelBarMode, GtkInputPurpose, GtkInputHints, GtkPropagationPhase, GtkEventSequenceState, GtkPanDirection, GtkPopoverConstraint, GtkAccelFlags, GtkWidgetHelpType, GtkApplicationInhibitFlags, GtkResizeMode, GtkWindowType, GtkWindowPosition, GtkDialogFlags, GtkResponseType, GtkLicense, GtkArrowPlacement, GtkTreeModelFlags, GtkCellRendererState, GtkCellRendererMode, GtkTreeViewColumnSizing, GtkTextSearchFlags, GtkTargetFlags, GtkImageType, GtkEntryIconPosition, GtkTreeViewDropPosition, GtkAssistantPageType, GtkButtonBoxStyle, GtkBuilderError, GtkCalendarDisplayOptions, GtkCellRendererAccelMode, GtkCssSectionType, GtkCssProviderError, GtkDebugFlag, GtkDestDefaults, GtkEventControllerScrollFlags, GtkFileFilterFlags, GtkFileChooserAction, GtkFileChooserConfirmation, GtkFileChooserError, GtkFontChooserLevel, GtkStyleContextPrintFlags, GtkIconLookupFlags, GtkIconThemeError, GtkIconViewDropPosition, GtkButtonsType, GtkButtonRole, GtkNotebookTab, GtkPadActionType, GtkPlacesOpenFlags, GtkPrintStatus, GtkPrintOperationResult, GtkPrintOperationAction, GtkPrintError, GtkRecentManagerError, GtkRecentFilterFlags, GtkRecentSortType, GtkRecentChooserError, GtkRevealerTransitionType, GtkCornerType, GtkPolicyType, GtkShortcutType, GtkStackTransitionType, GtkSpinButtonUpdatePolicy, GtkSpinType, GtkTextBufferTargetInfo, GtkTextWindowType, GtkTextViewLayer, GtkTextExtendSelection, GtkToolbarSpaceStyle, GtkToolPaletteDragTargets, GtkRcFlags, GtkRcTokenType, GtkPathPriorityType, GtkPathType, GtkExpanderStyle, GtkAttachOptions, GtkUIManagerItemType $(Expr(:toplevel, :(baremodule GUserDirectory const DIRECTORY_DESKTOP = const G_USER_DIRECTORY_DESKTOP = Main.Base.convert(Main.Base.Int32, 0) const DIRECTORY_DOCUMENTS = const G_USER_DIRECTORY_DOCUMENTS = Main.Base.convert(Main.Base.Int32, 1) @@ -16,6 +16,7 @@ $(Expr(:toplevel, :(module GConstants const DEFAULT = const G_FORMAT_SIZE_DEFAULT = Main.Base.convert(Main.Base.Int32, 0) const LONG_FORMAT = const G_FORMAT_SIZE_LONG_FORMAT = Main.Base.convert(Main.Base.Int32, 1) const IEC_UNITS = const G_FORMAT_SIZE_IEC_UNITS = Main.Base.convert(Main.Base.Int32, 2) + const BITS = const G_FORMAT_SIZE_BITS = Main.Base.convert(Main.Base.Int32, 4) end))) $(Expr(:toplevel, :(baremodule GThreadError const AGAIN = const G_THREAD_ERROR_AGAIN = Main.Base.convert(Main.Base.Int32, 0) @@ -40,6 +41,7 @@ $(Expr(:toplevel, :(module GConstants const SHA1 = const G_CHECKSUM_SHA1 = Main.Base.convert(Main.Base.Int32, 1) const SHA256 = const G_CHECKSUM_SHA256 = Main.Base.convert(Main.Base.Int32, 2) const SHA512 = const G_CHECKSUM_SHA512 = Main.Base.convert(Main.Base.Int32, 3) + const SHA384 = const G_CHECKSUM_SHA384 = Main.Base.convert(Main.Base.Int32, 4) end))) $(Expr(:toplevel, :(baremodule GConvertError const NO_CONVERSION = const G_CONVERT_ERROR_NO_CONVERSION = Main.Base.convert(Main.Base.Int32, 0) @@ -49,6 +51,7 @@ $(Expr(:toplevel, :(module GConstants const BAD_URI = const G_CONVERT_ERROR_BAD_URI = Main.Base.convert(Main.Base.Int32, 4) const NOT_ABSOLUTE_PATH = const G_CONVERT_ERROR_NOT_ABSOLUTE_PATH = Main.Base.convert(Main.Base.Int32, 5) const NO_MEMORY = const G_CONVERT_ERROR_NO_MEMORY = Main.Base.convert(Main.Base.Int32, 6) + const EMBEDDED_NUL = const G_CONVERT_ERROR_EMBEDDED_NUL = Main.Base.convert(Main.Base.Int32, 7) end))) $(Expr(:toplevel, :(baremodule GDateDMY const DAY = const G_DATE_DAY = Main.Base.convert(Main.Base.Int32, 0) @@ -363,6 +366,17 @@ $(Expr(:toplevel, :(module GConstants const NEWA = const G_UNICODE_SCRIPT_NEWA = Main.Base.convert(Main.Base.Int32, 135) const OSAGE = const G_UNICODE_SCRIPT_OSAGE = Main.Base.convert(Main.Base.Int32, 136) const TANGUT = const G_UNICODE_SCRIPT_TANGUT = Main.Base.convert(Main.Base.Int32, 137) + const MASARAM_GONDI = const G_UNICODE_SCRIPT_MASARAM_GONDI = Main.Base.convert(Main.Base.Int32, 138) + const NUSHU = const G_UNICODE_SCRIPT_NUSHU = Main.Base.convert(Main.Base.Int32, 139) + const SOYOMBO = const G_UNICODE_SCRIPT_SOYOMBO = Main.Base.convert(Main.Base.Int32, 140) + const ZANABAZAR_SQUARE = const G_UNICODE_SCRIPT_ZANABAZAR_SQUARE = Main.Base.convert(Main.Base.Int32, 141) + const DOGRA = const G_UNICODE_SCRIPT_DOGRA = Main.Base.convert(Main.Base.Int32, 142) + const GUNJALA_GONDI = const G_UNICODE_SCRIPT_GUNJALA_GONDI = Main.Base.convert(Main.Base.Int32, 143) + const HANIFI_ROHINGYA = const G_UNICODE_SCRIPT_HANIFI_ROHINGYA = Main.Base.convert(Main.Base.Int32, 144) + const MAKASAR = const G_UNICODE_SCRIPT_MAKASAR = Main.Base.convert(Main.Base.Int32, 145) + const MEDEFAIDRIN = const G_UNICODE_SCRIPT_MEDEFAIDRIN = Main.Base.convert(Main.Base.Int32, 146) + const OLD_SOGDIAN = const G_UNICODE_SCRIPT_OLD_SOGDIAN = Main.Base.convert(Main.Base.Int32, 147) + const SOGDIAN = const G_UNICODE_SCRIPT_SOGDIAN = Main.Base.convert(Main.Base.Int32, 148) end))) $(Expr(:toplevel, :(baremodule GNormalizeMode const DEFAULT = const G_NORMALIZE_DEFAULT = Main.Base.convert(Main.Base.Int32, 0) @@ -723,6 +737,10 @@ $(Expr(:toplevel, :(module GConstants const UPPER = const G_ASCII_UPPER = Main.Base.convert(Main.Base.Int32, 512) const XDIGIT = const G_ASCII_XDIGIT = Main.Base.convert(Main.Base.Int32, 1024) end))) + $(Expr(:toplevel, :(baremodule GNumberParserError + const INVALID = const G_NUMBER_PARSER_ERROR_INVALID = Main.Base.convert(Main.Base.Int32, 0) + const OUT_OF_BOUNDS = const G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS = Main.Base.convert(Main.Base.Int32, 1) + end))) $(Expr(:toplevel, :(baremodule GTestTrapFlags const SILENCE_STDOUT = const G_TEST_TRAP_SILENCE_STDOUT = Main.Base.convert(Main.Base.Int32, 128) const SILENCE_STDERR = const G_TEST_TRAP_SILENCE_STDERR = Main.Base.convert(Main.Base.Int32, 256) @@ -733,6 +751,12 @@ $(Expr(:toplevel, :(module GConstants const STDOUT = const G_TEST_SUBPROCESS_INHERIT_STDOUT = Main.Base.convert(Main.Base.Int32, 2) const STDERR = const G_TEST_SUBPROCESS_INHERIT_STDERR = Main.Base.convert(Main.Base.Int32, 4) end))) + $(Expr(:toplevel, :(baremodule GTestResult + const SUCCESS = const G_TEST_RUN_SUCCESS = Main.Base.convert(Main.Base.Int32, 0) + const SKIPPED = const G_TEST_RUN_SKIPPED = Main.Base.convert(Main.Base.Int32, 1) + const FAILURE = const G_TEST_RUN_FAILURE = Main.Base.convert(Main.Base.Int32, 2) + const INCOMPLETE = const G_TEST_RUN_INCOMPLETE = Main.Base.convert(Main.Base.Int32, 3) + end))) $(Expr(:toplevel, :(baremodule GTestLogType const NONE = const G_TEST_LOG_NONE = Main.Base.convert(Main.Base.Int32, 0) const ERROR = const G_TEST_LOG_ERROR = Main.Base.convert(Main.Base.Int32, 1) @@ -751,6 +775,11 @@ $(Expr(:toplevel, :(module GConstants const DIST = const G_TEST_DIST = Main.Base.convert(Main.Base.Int32, 0) const BUILT = const G_TEST_BUILT = Main.Base.convert(Main.Base.Int32, 1) end))) + $(Expr(:toplevel, :(baremodule GWin32OSType + const ANY = const G_WIN32_OS_ANY = Main.Base.convert(Main.Base.Int32, 0) + const WORKSTATION = const G_WIN32_OS_WORKSTATION = Main.Base.convert(Main.Base.Int32, 1) + const SERVER = const G_WIN32_OS_SERVER = Main.Base.convert(Main.Base.Int32, 2) + end))) $(Expr(:toplevel, :(baremodule GThreadPriority const LOW = const G_THREAD_PRIORITY_LOW = Main.Base.convert(Main.Base.Int32, 0) const NORMAL = const G_THREAD_PRIORITY_NORMAL = Main.Base.convert(Main.Base.Int32, 1) @@ -998,6 +1027,7 @@ $(Expr(:toplevel, :(module GConstants const NEED_DOMAIN = const G_ASK_PASSWORD_NEED_DOMAIN = Main.Base.convert(Main.Base.Int32, 4) const SAVING_SUPPORTED = const G_ASK_PASSWORD_SAVING_SUPPORTED = Main.Base.convert(Main.Base.Int32, 8) const ANONYMOUS_SUPPORTED = const G_ASK_PASSWORD_ANONYMOUS_SUPPORTED = Main.Base.convert(Main.Base.Int32, 16) + const TCRYPT = const G_ASK_PASSWORD_TCRYPT = Main.Base.convert(Main.Base.Int32, 32) end))) $(Expr(:toplevel, :(baremodule GPasswordSave const NEVER = const G_PASSWORD_SAVE_NEVER = Main.Base.convert(Main.Base.Int32, 0) @@ -1053,7 +1083,7 @@ $(Expr(:toplevel, :(module GConstants const INVALID = const G_SOCKET_FAMILY_INVALID = Main.Base.convert(Main.Base.Int32, 0) const UNIX = const G_SOCKET_FAMILY_UNIX = Main.Base.convert(Main.Base.Int32, 1) const IPV4 = const G_SOCKET_FAMILY_IPV4 = Main.Base.convert(Main.Base.Int32, 2) - const IPV6 = const G_SOCKET_FAMILY_IPV6 = Main.Base.convert(Main.Base.Int32, 10) + const IPV6 = const G_SOCKET_FAMILY_IPV6 = Main.Base.convert(Main.Base.Int32, 23) end))) $(Expr(:toplevel, :(baremodule GSocketType const INVALID = const G_SOCKET_TYPE_INVALID = Main.Base.convert(Main.Base.Int32, 0) @@ -1096,6 +1126,7 @@ $(Expr(:toplevel, :(module GConstants const NONE = const G_BUS_NAME_OWNER_FLAGS_NONE = Main.Base.convert(Main.Base.Int32, 0) const ALLOW_REPLACEMENT = const G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT = Main.Base.convert(Main.Base.Int32, 1) const REPLACE = const G_BUS_NAME_OWNER_FLAGS_REPLACE = Main.Base.convert(Main.Base.Int32, 2) + const DO_NOT_QUEUE = const G_BUS_NAME_OWNER_FLAGS_DO_NOT_QUEUE = Main.Base.convert(Main.Base.Int32, 4) end))) $(Expr(:toplevel, :(baremodule GBusNameWatcherFlags const NONE = const G_BUS_NAME_WATCHER_FLAGS_NONE = Main.Base.convert(Main.Base.Int32, 0) @@ -1243,6 +1274,8 @@ $(Expr(:toplevel, :(module GConstants const SEND_ENVIRONMENT = const G_APPLICATION_SEND_ENVIRONMENT = Main.Base.convert(Main.Base.Int32, 16) const NON_UNIQUE = const G_APPLICATION_NON_UNIQUE = Main.Base.convert(Main.Base.Int32, 32) const CAN_OVERRIDE_APP_ID = const G_APPLICATION_CAN_OVERRIDE_APP_ID = Main.Base.convert(Main.Base.Int32, 64) + const ALLOW_REPLACEMENT = const G_APPLICATION_ALLOW_REPLACEMENT = Main.Base.convert(Main.Base.Int32, 128) + const REPLACE = const G_APPLICATION_REPLACE = Main.Base.convert(Main.Base.Int32, 256) end))) $(Expr(:toplevel, :(baremodule GTlsError const UNAVAILABLE = const G_TLS_ERROR_UNAVAILABLE = Main.Base.convert(Main.Base.Int32, 0) @@ -1252,6 +1285,7 @@ $(Expr(:toplevel, :(module GConstants const HANDSHAKE = const G_TLS_ERROR_HANDSHAKE = Main.Base.convert(Main.Base.Int32, 4) const CERTIFICATE_REQUIRED = const G_TLS_ERROR_CERTIFICATE_REQUIRED = Main.Base.convert(Main.Base.Int32, 5) const EOF = const G_TLS_ERROR_EOF = Main.Base.convert(Main.Base.Int32, 6) + const INAPPROPRIATE_FALLBACK = const G_TLS_ERROR_INAPPROPRIATE_FALLBACK = Main.Base.convert(Main.Base.Int32, 7) end))) $(Expr(:toplevel, :(baremodule GTlsCertificateFlags const UNKNOWN_CA = const G_TLS_CERTIFICATE_UNKNOWN_CA = Main.Base.convert(Main.Base.Int32, 1) @@ -1354,6 +1388,11 @@ $(Expr(:toplevel, :(module GConstants const LOCAL = const G_MODULE_BIND_LOCAL = Main.Base.convert(Main.Base.Int32, 2) const MASK = const G_MODULE_BIND_MASK = Main.Base.convert(Main.Base.Int32, 3) end))) + $(Expr(:toplevel, :(baremodule GResolverNameLookupFlags + const DEFAULT = const G_RESOLVER_NAME_LOOKUP_FLAGS_DEFAULT = Main.Base.convert(Main.Base.Int32, 0) + const IPV4_ONLY = const G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY = Main.Base.convert(Main.Base.Int32, 1) + const IPV6_ONLY = const G_RESOLVER_NAME_LOOKUP_FLAGS_IPV6_ONLY = Main.Base.convert(Main.Base.Int32, 2) + end))) $(Expr(:toplevel, :(baremodule GSettingsBindFlags const DEFAULT = const G_SETTINGS_BIND_DEFAULT = Main.Base.convert(Main.Base.Int32, 0) const GET = const G_SETTINGS_BIND_GET = Main.Base.convert(Main.Base.Int32, 1) @@ -1456,7 +1495,7 @@ $(Expr(:toplevel, :(module GConstants const SMOOTH_SCROLL = const GDK_SMOOTH_SCROLL_MASK = Main.Base.convert(Main.Base.Int32, 8388608) const TOUCHPAD_GESTURE = const GDK_TOUCHPAD_GESTURE_MASK = Main.Base.convert(Main.Base.Int32, 16777216) const TABLET_PAD = const GDK_TABLET_PAD_MASK = Main.Base.convert(Main.Base.Int32, 33554432) - const ALL_EVENTS = const GDK_ALL_EVENTS_MASK = Main.Base.convert(Main.Base.Int32, 16777214) + const ALL_EVENTS = const GDK_ALL_EVENTS_MASK = Main.Base.convert(Main.Base.Int32, 67108862) end))) $(Expr(:toplevel, :(baremodule GdkGLError const NOT_AVAILABLE = const GDK_GL_ERROR_NOT_AVAILABLE = Main.Base.convert(Main.Base.Int32, 0) @@ -1666,6 +1705,14 @@ $(Expr(:toplevel, :(module GConstants const BELOW = const GDK_WINDOW_STATE_BELOW = Main.Base.convert(Main.Base.Int32, 64) const FOCUSED = const GDK_WINDOW_STATE_FOCUSED = Main.Base.convert(Main.Base.Int32, 128) const TILED = const GDK_WINDOW_STATE_TILED = Main.Base.convert(Main.Base.Int32, 256) + const TOP_TILED = const GDK_WINDOW_STATE_TOP_TILED = Main.Base.convert(Main.Base.Int32, 512) + const TOP_RESIZABLE = const GDK_WINDOW_STATE_TOP_RESIZABLE = Main.Base.convert(Main.Base.Int32, 1024) + const RIGHT_TILED = const GDK_WINDOW_STATE_RIGHT_TILED = Main.Base.convert(Main.Base.Int32, 2048) + const RIGHT_RESIZABLE = const GDK_WINDOW_STATE_RIGHT_RESIZABLE = Main.Base.convert(Main.Base.Int32, 4096) + const BOTTOM_TILED = const GDK_WINDOW_STATE_BOTTOM_TILED = Main.Base.convert(Main.Base.Int32, 8192) + const BOTTOM_RESIZABLE = const GDK_WINDOW_STATE_BOTTOM_RESIZABLE = Main.Base.convert(Main.Base.Int32, 16384) + const LEFT_TILED = const GDK_WINDOW_STATE_LEFT_TILED = Main.Base.convert(Main.Base.Int32, 32768) + const LEFT_RESIZABLE = const GDK_WINDOW_STATE_LEFT_RESIZABLE = Main.Base.convert(Main.Base.Int32, 65536) end))) $(Expr(:toplevel, :(baremodule GdkSettingAction const NEW = const GDK_SETTING_ACTION_NEW = Main.Base.convert(Main.Base.Int32, 0) @@ -2253,6 +2300,8 @@ $(Expr(:toplevel, :(module GConstants const UPPERCASE_SENTENCES = const GTK_INPUT_HINT_UPPERCASE_SENTENCES = Main.Base.convert(Main.Base.Int32, 64) const INHIBIT_OSK = const GTK_INPUT_HINT_INHIBIT_OSK = Main.Base.convert(Main.Base.Int32, 128) const VERTICAL_WRITING = const GTK_INPUT_HINT_VERTICAL_WRITING = Main.Base.convert(Main.Base.Int32, 256) + const EMOJI = const GTK_INPUT_HINT_EMOJI = Main.Base.convert(Main.Base.Int32, 512) + const NO_EMOJI = const GTK_INPUT_HINT_NO_EMOJI = Main.Base.convert(Main.Base.Int32, 1024) end))) $(Expr(:toplevel, :(baremodule GtkPropagationPhase const NONE = const GTK_PHASE_NONE = Main.Base.convert(Main.Base.Int32, 0) @@ -2339,6 +2388,7 @@ $(Expr(:toplevel, :(module GConstants const LGPL_2_1_ONLY = const GTK_LICENSE_LGPL_2_1_ONLY = Main.Base.convert(Main.Base.Int32, 11) const LGPL_3_0_ONLY = const GTK_LICENSE_LGPL_3_0_ONLY = Main.Base.convert(Main.Base.Int32, 12) const AGPL_3_0 = const GTK_LICENSE_AGPL_3_0 = Main.Base.convert(Main.Base.Int32, 13) + const AGPL_3_0_ONLY = const GTK_LICENSE_AGPL_3_0_ONLY = Main.Base.convert(Main.Base.Int32, 14) end))) $(Expr(:toplevel, :(baremodule GtkArrowPlacement const BOTH = const GTK_ARROWS_BOTH = Main.Base.convert(Main.Base.Int32, 0) @@ -2491,6 +2541,14 @@ $(Expr(:toplevel, :(module GConstants const DROP = const GTK_DEST_DEFAULT_DROP = Main.Base.convert(Main.Base.Int32, 4) const ALL = const GTK_DEST_DEFAULT_ALL = Main.Base.convert(Main.Base.Int32, 7) end))) + $(Expr(:toplevel, :(baremodule GtkEventControllerScrollFlags + const NONE = const GTK_EVENT_CONTROLLER_SCROLL_NONE = Main.Base.convert(Main.Base.Int32, 0) + const VERTICAL = const GTK_EVENT_CONTROLLER_SCROLL_VERTICAL = Main.Base.convert(Main.Base.Int32, 1) + const HORIZONTAL = const GTK_EVENT_CONTROLLER_SCROLL_HORIZONTAL = Main.Base.convert(Main.Base.Int32, 2) + const DISCRETE = const GTK_EVENT_CONTROLLER_SCROLL_DISCRETE = Main.Base.convert(Main.Base.Int32, 4) + const KINETIC = const GTK_EVENT_CONTROLLER_SCROLL_KINETIC = Main.Base.convert(Main.Base.Int32, 8) + const BOTH_AXES = const GTK_EVENT_CONTROLLER_SCROLL_BOTH_AXES = Main.Base.convert(Main.Base.Int32, 3) + end))) $(Expr(:toplevel, :(baremodule GtkFileFilterFlags const FILENAME = const GTK_FILE_FILTER_FILENAME = Main.Base.convert(Main.Base.Int32, 1) const URI = const GTK_FILE_FILTER_URI = Main.Base.convert(Main.Base.Int32, 2) @@ -2514,6 +2572,13 @@ $(Expr(:toplevel, :(module GConstants const ALREADY_EXISTS = const GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS = Main.Base.convert(Main.Base.Int32, 2) const INCOMPLETE_HOSTNAME = const GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME = Main.Base.convert(Main.Base.Int32, 3) end))) + $(Expr(:toplevel, :(baremodule GtkFontChooserLevel + const FAMILY = const GTK_FONT_CHOOSER_LEVEL_FAMILY = Main.Base.convert(Main.Base.Int32, 0) + const STYLE = const GTK_FONT_CHOOSER_LEVEL_STYLE = Main.Base.convert(Main.Base.Int32, 1) + const SIZE = const GTK_FONT_CHOOSER_LEVEL_SIZE = Main.Base.convert(Main.Base.Int32, 2) + const VARIATIONS = const GTK_FONT_CHOOSER_LEVEL_VARIATIONS = Main.Base.convert(Main.Base.Int32, 4) + const FEATURES = const GTK_FONT_CHOOSER_LEVEL_FEATURES = Main.Base.convert(Main.Base.Int32, 8) + end))) $(Expr(:toplevel, :(baremodule GtkStyleContextPrintFlags const NONE = const GTK_STYLE_CONTEXT_PRINT_NONE = Main.Base.convert(Main.Base.Int32, 0) const RECURSE = const GTK_STYLE_CONTEXT_PRINT_RECURSE = Main.Base.convert(Main.Base.Int32, 1) @@ -2816,36 +2881,54 @@ $(Expr(:toplevel, :(module GConstants const G_GINT32_MODIFIER = "" const G_GINT32_FORMAT = "i" const G_GUINT32_FORMAT = "u" - const G_GINT64_MODIFIER = "l" - const G_GINT64_FORMAT = "li" - const G_GUINT64_FORMAT = "lu" + const G_GINT64_MODIFIER = "ll" + const G_GINT64_FORMAT = "lli" + const G_GUINT64_FORMAT = "llu" const GLIB_SIZEOF_VOID_P = 8 - const GLIB_SIZEOF_LONG = 8 + const GLIB_SIZEOF_LONG = 4 const GLIB_SIZEOF_SIZE_T = 8 const GLIB_SIZEOF_SSIZE_T = 8 - const G_GSIZE_MODIFIER = "l" - const G_GSSIZE_MODIFIER = "l" - const G_GSIZE_FORMAT = "lu" - const G_GSSIZE_FORMAT = "li" - const G_POLLFD_FORMAT = "%d" - const G_GINTPTR_MODIFIER = "l" - const G_GINTPTR_FORMAT = "li" - const G_GUINTPTR_FORMAT = "lu" + const G_GSIZE_MODIFIER = "ll" + const G_GSSIZE_MODIFIER = "ll" + const G_GSIZE_FORMAT = "llu" + const G_GSSIZE_FORMAT = "lli" + const G_POLLFD_FORMAT = "%#llx" + const G_GINTPTR_MODIFIER = "ll" + const G_GINTPTR_FORMAT = "lli" + const G_GUINTPTR_FORMAT = "llu" const GLIB_MAJOR_VERSION = 2 - const GLIB_MINOR_VERSION = 50 - const GLIB_MICRO_VERSION = 3 - const G_VA_COPY_AS_ARRAY = 1 + const GLIB_MINOR_VERSION = 59 + const GLIB_MICRO_VERSION = 0 const G_HAVE_ISO_VARARGS = 1 const G_HAVE_GNUC_VARARGS = 1 const G_HAVE_GROWING_STACK = 0 - const G_HAVE_GNUC_VISIBILITY = 1 - const G_MODULE_SUFFIX = "so" - const G_PID_FORMAT = "i" + const G_MODULE_SUFFIX = if Sys.iswindows() + "dll" + else + "so" + end + const G_PID_FORMAT = if Sys.iswindows() + "p" + else + "i" + end const GLIB_SYSDEF_AF_UNIX = 1 const GLIB_SYSDEF_AF_INET = 2 const GLIB_SYSDEF_MSG_OOB = 1 const GLIB_SYSDEF_MSG_PEEK = 2 const GLIB_SYSDEF_MSG_DONTROUTE = 4 + const G_DIR_SEPARATOR = Base.Filesystem.path_separator[1] + const G_DIR_SEPARATOR_S = Base.Filesystem.path_separator + const G_SEARCHPATH_SEPARATOR = if Sys.iswindows() + ';' + else + ':' + end + const G_SEARCHPATH_SEPARATOR_S = if Sys.iswindows() + ";" + else + ":" + end const G_E = 2.718281828459045 const G_PI = 3.141592653589793 const G_LITTLE_ENDIAN = 1234 @@ -2855,15 +2938,12 @@ $(Expr(:toplevel, :(module GConstants const G_DATE_BAD_JULIAN = UInt32(0) const G_DATE_BAD_DAY = UInt32(0) const G_DATE_BAD_YEAR = UInt32(0) - const G_DIR_SEPARATOR = '/' - const G_DIR_SEPARATOR_S = "/" - const G_SEARCHPATH_SEPARATOR = ':' - const G_SEARCHPATH_SEPARATOR_S = ":" const G_PRIORITY_DEFAULT = 0 const G_PRIORITY_HIGH_IDLE = 100 const G_PRIORITY_DEFAULT_IDLE = 200 const G_PRIORITY_LOW = 300 const G_UNICHAR_MAX_DECOMPOSITION_LENGTH = 18 + const G_WIN32_MSG_HANDLE = 19981206 const G_KEY_FILE_DESKTOP_GROUP = "Desktop Entry" const G_KEY_FILE_DESKTOP_KEY_TYPE = "Type" const G_KEY_FILE_DESKTOP_KEY_VERSION = "Version" @@ -2886,9 +2966,6 @@ $(Expr(:toplevel, :(module GConstants const G_KEY_FILE_DESKTOP_KEY_URL = "URL" const G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE = "DBusActivatable" const G_KEY_FILE_DESKTOP_KEY_ACTIONS = "Actions" - const G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN = "X-GNOME-Gettext-Domain" - const G_KEY_FILE_DESKTOP_KEY_FULLNAME = "X-GNOME-FullName" - const G_KEY_FILE_DESKTOP_KEY_KEYWORDS = "Keywords" const G_KEY_FILE_DESKTOP_TYPE_APPLICATION = "Application" const G_KEY_FILE_DESKTOP_TYPE_LINK = "Link" const G_KEY_FILE_DESKTOP_TYPE_DIRECTORY = "Directory" @@ -2897,6 +2974,7 @@ $(Expr(:toplevel, :(module GConstants const G_CSET_a_2_z = "abcdefghijklmnopqrstuvwxyz" const G_CSET_DIGITS = "0123456789" const G_STR_DELIMITERS = "_-|> <." + const G_TEST_OPTION_ISOLATE_DIRS = "isolate_dirs" const G_USEC_PER_SEC = 1000000 const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS = ":/?#[]@" const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS = "!\$&'()*+,;=" @@ -2907,6 +2985,7 @@ $(Expr(:toplevel, :(module GConstants const G_ALLOCATOR_NODE = 3 const G_SIGNAL_FLAGS_MASK = Float32(0x1f) const G_SIGNAL_MATCH_MASK = Float32(0x03) + const G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE = "unix-device" const G_FILE_ATTRIBUTE_STANDARD_TYPE = "standard::type" const G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN = "standard::is-hidden" const G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP = "standard::is-backup" @@ -2968,6 +3047,8 @@ $(Expr(:toplevel, :(module GConstants const G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT = "unix::is-mountpoint" const G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE = "dos::is-archive" const G_FILE_ATTRIBUTE_DOS_IS_SYSTEM = "dos::is-system" + const G_FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT = "dos::is-mountpoint" + const G_FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG = "dos::reparse-point-tag" const G_FILE_ATTRIBUTE_OWNER_USER = "owner::user" const G_FILE_ATTRIBUTE_OWNER_USER_REAL = "owner::user-real" const G_FILE_ATTRIBUTE_OWNER_GROUP = "owner::group" @@ -2987,6 +3068,7 @@ $(Expr(:toplevel, :(module GConstants const G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT = "trash::item-count" const G_FILE_ATTRIBUTE_TRASH_ORIG_PATH = "trash::orig-path" const G_FILE_ATTRIBUTE_TRASH_DELETION_DATE = "trash::deletion-date" + const G_FILE_ATTRIBUTE_RECENT_MODIFIED = "recent::modified" const G_VOLUME_MONITOR_EXTENSION_POINT_NAME = "gio-volume-monitor" const G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME = "gio-native-volume-monitor" const G_NETWORK_MONITOR_EXTENSION_POINT_NAME = "gio-network-monitor" @@ -3013,7 +3095,7 @@ $(Expr(:toplevel, :(module GConstants const GDK_PARENT_RELATIVE = Int32(1) const GDK_MAX_TIMECOORD_AXES = 128 const GDK_PIXBUF_FEATURES_H = 1 - const GDK_PIXBUF_VERSION = "2.36.5" + const GDK_PIXBUF_VERSION = "2.39.3" const GDK_KEY_VoidSymbol = Float32(0x000fffff) const GDK_KEY_BackSpace = 0xff08 const GDK_KEY_Tab = 0xff09 diff --git a/gen/gtk2_julia_ser1 b/gen/gtk2_julia_ser1 deleted file mode 100644 index 5ca64366..00000000 Binary files a/gen/gtk2_julia_ser1 and /dev/null differ diff --git a/gen/gtk2_julia_ser2 b/gen/gtk2_julia_ser2 deleted file mode 100644 index eb67f5a8..00000000 Binary files a/gen/gtk2_julia_ser2 and /dev/null differ diff --git a/gen/gtk3_julia_ser1 b/gen/gtk3_julia_ser1 deleted file mode 100644 index b397f619..00000000 Binary files a/gen/gtk3_julia_ser1 and /dev/null differ diff --git a/gen/gtk3_julia_ser10 b/gen/gtk3_julia_ser10 new file mode 100644 index 00000000..4f8c0e5a Binary files /dev/null and b/gen/gtk3_julia_ser10 differ diff --git a/gen/gtk3_julia_ser2 b/gen/gtk3_julia_ser2 deleted file mode 100644 index 3bb3f6cb..00000000 Binary files a/gen/gtk3_julia_ser2 and /dev/null differ diff --git a/gen/gtk_auto_gen.jl b/gen/gtk_auto_gen.jl index 83965441..ddd17466 100644 --- a/gen/gtk_auto_gen.jl +++ b/gen/gtk_auto_gen.jl @@ -1,6 +1,7 @@ -#!/usr/bin/env julia +using Clang +using GTK3_jll +import Serialization -import Clang, Clang.cindex include("gtk_list_gen.jl") include("gtk_get_set_gen.jl") include("gtk_consts_gen.jl") @@ -19,72 +20,74 @@ function without_linenums!(ex::Expr) ex end -gtk_libpaths = ("/opt/local", "/usr/lib") +# If there is an error about missing some std headers, e.g. fatal error: 'time.h' file not found, +# set this to `stdlib/include/on/your/specific/platform` (see https://github.com/JuliaInterop/Clang.jl) +const STD_INCLUDE = "" + +const LIBGTK3_INCLUDE = joinpath(GTK3_jll.artifact_dir, "include", "gtk-3.0", "gtk") +const SOURCES = vcat(GTK3_jll.PATH_list, GTK3_jll.LIBPATH_list) +const DEPENDENCIES = vcat([readdir(dep; join=true) for dep in joinpath.(SOURCES, "..", "include") if isdir(dep)]...) .|> normpath +# glibconfig.h +const ADDITIONAL = vcat([joinpath.(readdir(dep; join=true), "include") for dep in joinpath.(SOURCES, "..", "lib") if isdir(dep)]...) .|> normpath +const gtk_h = joinpath(LIBGTK3_INCLUDE, "gtk.h") toplevels = Any[] -cppargs = [] let gtk_version = 3 - header = gtk_libdir = "" - for pth in gtk_libpaths - header = joinpath(pth,"..","include","gtk-$gtk_version.0","gtk","gtk.h") - if isfile(header) - gtk_libdir = pth - break - end - end - isfile(header) || error("gtk.h not found, please specify path") - args = read(`pkg-config --cflags gtk+-$gtk_version.0`, String) - if args[end] == '\n' - args = args[1:end-1] - end - args = ASCIIString[split(args,' ')...,cppargs...] - global gtk_h, gtk_macro_h + global trans_unit, root_cursor + # parse headers cd(Sys.BINDIR) do - gtk_h = cindex.parse_header(header, diagnostics=true, args=args, flags=0x41) + global trans_unit = parse_header(gtk_h, + args=["-I", joinpath(LIBGTK3_INCLUDE, ".."), "-I$(STD_INCLUDE)"], + includes=vcat(LIBGTK3_INCLUDE, CLANG_INCLUDE, DEPENDENCIES, ADDITIONAL), + flags=0x41) end + + root_cursor = getcursor(trans_unit) + gboxpath = "gbox$(gtk_version)" gconstspath = "gconsts$(gtk_version)" cachepath = "gtk$(gtk_version)" - - g_types = gen_g_type_lists(gtk_h) + + g_types = gen_g_type_lists(root_cursor) for z in g_types for (s, ex) in z without_linenums!(ex) end end - + body = Expr(:block, - Expr(:import, :., :., :Gtk), - Expr(:import, :., :., :Gtk, :GObject), + Meta.parse("import ..Gtk"), + Meta.parse("import ..Gtk.GObject"), ) + gbox = Expr(:toplevel,Expr(:module, true, :GAccessor, body)) - count_fcns = gen_get_set(body, gtk_h) + count_fcns = gen_get_set(body, root_cursor) println("Generated $gboxpath with $count_fcns function definitions") without_linenums!(gbox) - + body = Expr(:block) gconsts = Expr(:toplevel,Expr(:module, true, :GConstants, body)) - count_consts = gen_consts(body, gtk_h) + count_consts = gen_consts(body, root_cursor) println("Generated $gconstspath with $count_consts constants") without_linenums!(gconsts) - - open(joinpath(splitdir(@__FILE__)[1], gboxpath), "w") do cache + + open(joinpath(@__DIR__, gboxpath), "w") do cache Base.println(cache,"quote") Base.show_unquoted(cache, gbox) println(cache) Base.println(cache,"end") end - open(joinpath(splitdir(@__FILE__)[1], gconstspath), "w") do cache + open(joinpath(@__DIR__, gconstspath), "w") do cache Base.println(cache,"quote") Base.show_unquoted(cache, gconsts) println(cache) Base.println(cache,"end") end - ser_version = Base.Serializer.ser_version - open(joinpath(splitdir(@__FILE__)[1], "$(cachepath)_julia_ser$(ser_version)"), "w") do cache - serialize(cache, gbox) - serialize(cache, gconsts) + ser_version = Serialization.ser_version + open(joinpath(@__DIR__, "$(cachepath)_julia_ser$(ser_version)"), "w") do cache + Serialization.serialize(cache, gbox) + Serialization.serialize(cache, gconsts) end - push!(toplevels,(gbox,gconsts,g_types,gtk_h)) + push!(toplevels, (gbox, gconsts, g_types, gtk_h)) end toplevels diff --git a/gen/gtk_consts_gen.jl b/gen/gtk_consts_gen.jl index 286c2763..f850adb0 100644 --- a/gen/gtk_consts_gen.jl +++ b/gen/gtk_consts_gen.jl @@ -1,13 +1,22 @@ +const PLATFORM_SPECIFIC = Dict{String, Any}( + "G_DIR_SEPARATOR" => :(Base.Filesystem.path_separator[1]), + "G_DIR_SEPARATOR_S" => :(Base.Filesystem.path_separator), + "G_SEARCHPATH_SEPARATOR" => :(Sys.iswindows() ? ';' : ':'), + "G_SEARCHPATH_SEPARATOR_S" => :(Sys.iswindows() ? ";" : ":"), + "G_MODULE_SUFFIX" => :(Sys.iswindows() ? "dll" : "so"), #For "most" Unices and Linux this is "so". + "G_PID_FORMAT" => :(Sys.iswindows() ? "p" : "i"), #Incorrectly stated as only "i" in Glib reference. +) + function gen_consts(body, gtk_h) count = 0 exports = Expr(:export) push!(body.args,exports) - - tdecls = cindex.search(gtk_h, cindex.TypedefDecl) + + tdecls = Clang.search(gtk_h, Clang.CXCursor_TypedefDecl) for tdecl in tdecls - ctype = cindex.getCanonicalType(cindex.getCursorType(tdecl)) - if isa(ctype,cindex.Enum) - name = cindex.spelling(tdecl) + ctype = canonical(type(tdecl)) + if isa(ctype, CLEnum) + name = spelling(tdecl) m = match(r"^(G\w+)$", name) if m === nothing continue @@ -16,13 +25,13 @@ function gen_consts(body, gtk_h) push!(exports.args, name) consts = Expr(:block) push!(body.args, Expr(:toplevel, Expr(:module, false, name, consts))) - children = cindex.children(cindex.getTypeDeclaration(ctype)) + children = Clang.children(typedecl(ctype)) mask = true - c1 = cindex.spelling(children[1]) + c1 = spelling(children[1]) splitc1 = split(c1,'_') prefix = length(splitc1) for child in children - c2 = cindex.spelling(child) + c2 = spelling(child) if !endswith(c2,"_MASK") mask = false end @@ -44,13 +53,13 @@ function gen_consts(body, gtk_h) lprefix += length(splitc1[i])+1 end for child in children - decl = cindex.spelling(child) + decl = spelling(child) if mask shortdecl = decl[lprefix:end-5] else shortdecl = decl[lprefix:end] end - jldecl = Expr(:const, Expr(:(=), Symbol(decl), Expr(:call, :(Main.Base.convert), :(Main.Base.Int32), cindex.value(child)))) + jldecl = Expr(:const, Expr(:(=), Symbol(decl), Expr(:call, :(Main.Base.convert), :(Main.Base.Int32), value(child)))) if occursin(r"^[A-Za-z]", shortdecl) push!(consts.args, Expr(:const, Expr(:(=), Symbol(shortdecl), jldecl))) else @@ -63,14 +72,19 @@ function gen_consts(body, gtk_h) count += 1 end end - mdecls = cindex.search(gtk_h, cindex.MacroDefinition) + + mdecls = Clang.search(gtk_h, Clang.CXCursor_MacroDefinition) for mdecl in mdecls - name = cindex.spelling(mdecl) + name = spelling(mdecl) if occursin(r"^G\w*[A-Za-z]$", name) - tokens = cindex.tokenize(mdecl) - if length(tokens) == 3 && isa(tokens[2], cindex.Literal) - tok2 = Clang.wrap_c.handle_macro_exprn(tokens, 2)[1] - tok2 = replace(tok2, "\$", "\\\$") + if haskey(PLATFORM_SPECIFIC, name) + push!(body.args, Expr(:const, Expr(:(=), Symbol(name), PLATFORM_SPECIFIC[name]))) + continue + end + tokens = tokenize(mdecl) + if length(tokens) == 2 && isa(tokens[2], Literal) + tok2 = Clang.handle_macro_exprn(tokens, 2)[1] + tok2 = replace(tok2, "\$"=>"\\\$") push!(body.args, Expr(:const, Expr(:(=), Symbol(name), Meta.parse(tok2)))) else #println("Skipping: ", name, " = ", [tokens...]) diff --git a/gen/gtk_get_set_gen.jl b/gen/gtk_get_set_gen.jl index 4c9022da..e9f2f518 100644 --- a/gen/gtk_get_set_gen.jl +++ b/gen/gtk_get_set_gen.jl @@ -124,43 +124,45 @@ const GtkBoxedMap = Set{Symbol}([ :GtkWidgetPath, ]) cl_to_jl = Dict( - cindex.VoidType => :Nothing, - cindex.BoolType => :Bool, - cindex.Char_U => :UInt8, - cindex.UChar => :Cuchar, - cindex.Char16 => :UInt16, - cindex.Char32 => :UInt32, - cindex.UShort => :UInt16, - cindex.UInt => :UInt32, - cindex.ULong => :Culong, - cindex.ULongLong => :Culonglong, - cindex.Char_S => :UInt8, - cindex.SChar => :UInt8, - cindex.WChar => :Char, - cindex.Short => :Int16, - cindex.IntType => :Cint, - cindex.Long => :Clong, - cindex.LongLong => :Clonglong, - cindex.Float => :Cfloat, - cindex.Double => :Cdouble, - cindex.LongDouble => :Float64, - cindex.Enum => :Cint, - cindex.UInt128 => :UInt128, - cindex.FirstBuiltin => :Nothing, + CLVoid => :Nothing, + CLBool => :Bool, + CLChar_U => :UInt8, + CLUChar => :Cuchar, + CLChar16 => :UInt16, + CLChar32 => :UInt32, + CLUShort => :UInt16, + CLUInt => :UInt32, + CLULong => :Culong, + CLULongLong => :Culonglong, + CLChar_S => :UInt8, + CLSChar => :UInt8, + CLWChar => :Char, + CLShort => :Int16, + CLInt => :Cint, + CLLong => :Clong, + CLLongLong => :Clonglong, + CLFloat => :Cfloat, + CLDouble => :Cdouble, + CLLongDouble => :Float64, + CLEnum => :Cint, + CLUInt128 => :UInt128, + CLFirstBuiltin => :Nothing, ) -c_typdef_to_jl = Dict{ASCIIString,Any}( +c_typdef_to_jl = Dict{String,Any}( "va_list" => :Nothing, "size_t" => :Csize_t, "ptrdiff_t" => :Cptrdiff_t, "GError" => :(Gtk.GError), "GdkRectangle" => :(Gtk.GdkRectangle), "GdkPoint" => :(Gtk.GdkPoint), + "GdkRGBA" => :(Gtk.GdkRGBA), "GdkEventAny" => :(Gtk.GdkEventAny), "GdkEventButton" => :(Gtk.GdkEventButton), "GdkEventScroll" => :(Gtk.GdkEventScroll), "GdkEventKey" => :(Gtk.GdkEventKey), "GdkEventMotion" => :(Gtk.GdkEventMotion), "GdkEventCrossing" => :(Gtk.GdkEventCrossing), + "GtkRequisition" => :(Gtk.GtkRequisition), "GtkTextIter" => :(Gtk.GtkTextIter), "GtkTreeIter" => :(Gtk.GtkTreeIter), "GList" => :(Gtk._GList{Nothing}), @@ -188,7 +190,7 @@ for typsym in values(c_typdef_to_jl) push!(reserved_names, typsym) end end -const gtklibname = Dict{ASCIIString,Any}( +const gtklibname = Dict{String,Any}( "gtk" => :(Gtk.libgtk), "gdk" => :(Gtk.libgdk), "gobject" => :(Gtk.GLib.libgobject), @@ -197,27 +199,27 @@ const gtklibname = Dict{ASCIIString,Any}( "deprecated" => nothing, ) -g_type_to_jl(ctype::cindex.Invalid) = :Nothing -g_type_to_jl(ctype::cindex.Unexposed) = :Nothing -function g_type_to_jl(ctype::cindex.Pointer) - typ = g_type_to_jl(cindex.pointee_type(ctype)) +g_type_to_jl(ctype::CLInvalid) = :Nothing +g_type_to_jl(ctype::CLUnexposed) = :Nothing +function g_type_to_jl(ctype::CLPointer) + typ = g_type_to_jl(pointee_type(ctype)) if typ == :Nothing return :(Ptr{Nothing}) end :(Ptr{$typ}) end -function g_type_to_jl(ctype::cindex.Typedef) - decl = cindex.getTypeDeclaration(ctype) - if isa(decl,cindex.NoDeclFound) +function g_type_to_jl(ctype::CLTypedef) + decl = typedecl(ctype) + if isa(decl,CLNoDeclFound) return :Nothing end - typname = cindex.spelling(decl) + typname = spelling(decl) if typname in keys(c_typdef_to_jl) return c_typdef_to_jl[typname] end - decl = g_type_to_jl(cindex.getTypedefDeclUnderlyingType(decl)) + decl = g_type_to_jl(underlying_type(decl)) if decl === :Nothing || decl === :Nothing - return g_type_to_jl(cindex.getCanonicalType(ctype)) + return g_type_to_jl(canonical(ctype)) end decl end @@ -229,14 +231,14 @@ function g_get_gtype(ctype) if is_gbool(ctype) return :Bool end - if !isa(ctype, cindex.Pointer) + if !isa(ctype, CLPointer) return :Nothing end - arg1ty = cindex.pointee_type(ctype) - if !isa(arg1ty, cindex.Typedef) + arg1ty = pointee_type(ctype) + if !isa(arg1ty, CLTypedef) return :Nothing end - arg1ty = Symbol(cindex.spelling(cindex.getTypeDeclaration(arg1ty))) + arg1ty = Symbol(spelling(typedecl(arg1ty))) if !(arg1ty in GtkTypeMap) return :Nothing end @@ -244,44 +246,54 @@ function g_get_gtype(ctype) end function is_gstring(ctype) - if !isa(ctype, cindex.Pointer) + if !isa(ctype, CLPointer) return false end - ctype = cindex.pointee_type(ctype) - if cindex.isConstQualifiedType(ctype) == 0 + ctype = pointee_type(ctype) + if isconst(ctype) == 0 return false end - ctypedecl = cindex.getTypeDeclaration(ctype) - if cindex.spelling(ctypedecl) != "gchar" + ctypedecl = typedecl(ctype) + if spelling(ctypedecl) != "gchar" return false end true end function is_gbool(ctype) - ctypedecl = cindex.getTypeDeclaration(ctype) - if cindex.spelling(ctypedecl) != "gboolean" + ctypedecl = typedecl(ctype) + if spelling(ctypedecl) != "gboolean" return false end true end +function isduplicatedef(expr, name, arg1ty, argcount) + if expr.head == :function + fargs = expr.args[1].args + return fargs[1] == name && + fargs[2].args[2] == arg1ty && + length(fargs[2:end]) == argcount + end + false +end + function gen_get_set(body, gtk_h) - fdecls = cindex.search(gtk_h, cindex.FunctionDecl) + fdecls = Clang.search(gtk_h, Clang.CXCursor_FunctionDecl) exports = Set{Symbol}([:default_icon_list, :position]) export_stmt = Expr(:export) push!(body.args,export_stmt) count = 0 for fdecl in fdecls - fargs = cindex.search(fdecl, cindex.ParmDecl) + fargs = Clang.search(fdecl, Clang.CXCursor_ParmDecl) if length(fargs) < 1 continue end - arg1ty = g_get_gtype(cindex.getCursorType(fargs[1])) + arg1ty = g_get_gtype(type(fargs[1])) if arg1ty === :Nothing continue end - spell = cindex.spelling(fdecl) + spell = spelling(fdecl) if startswith(spell,"gtk_test_") || startswith(spell,"_") continue end @@ -290,26 +302,26 @@ function gen_get_set(body, gtk_h) continue end method_name = Symbol(m.captures[2]) - header_file = cindex.cu_file(fdecl) + header_file = filename(fdecl) libname = gtklibname[basename(splitdir(header_file)[1])] - if libname == nothing + if libname === nothing continue end - rettype = g_type_to_jl(cindex.return_type(fdecl)) - argnames = [Symbol(cindex.name(arg)) for arg in fargs] + rettype = g_type_to_jl(return_type(fdecl)) + argnames = [Symbol(name(arg)) for arg in fargs] for i = 1:length(argnames) if argnames[i] == method_name || argnames[i] in reserved_names argnames[i] = Symbol(string(argnames[i],'_')) end end - argtypes = [g_type_to_jl(cindex.getCursorType(arg)) for arg in fargs] + argtypes = [g_type_to_jl(type(arg)) for arg in fargs] @assert length(argnames) == length(argtypes) if any(argtypes .== :Nothing) || any(argtypes .== :Nothing) continue end if m.captures[1] == "get" fbody = :( ccall(($(QuoteNode(Symbol(spell))),$libname),$rettype,($(argtypes...),),$(argnames...)) ) - gtype = g_get_gtype(cindex.return_type(fdecl)) + gtype = g_get_gtype(return_type(fdecl)) if gtype != :Nothing fbody = :( convert($gtype, $fbody) ) end @@ -318,17 +330,17 @@ function gen_get_set(body, gtk_h) multiret = false last_inarg = 1 for i = 2:length(argnames) - atype = cindex.getCursorType(fargs[i]) - if !isa(atype, cindex.Pointer) || is_gstring(atype) + atype = type(fargs[i]) + if !isa(atype, CLPointer) || is_gstring(atype) last_inarg = i end end for i = 2:length(argnames) - atype = cindex.getCursorType(fargs[i]) + atype = type(fargs[i]) if i > last_inarg - atype = cindex.getPointeeType(atype) + atype = pointee_type(atype) T = g_type_to_jl(atype) - if T !== :Nothing && T !== :Nothing && T != :(Gtk.GObject) + if T !== :Nothing && T != :(Gtk.GObject) retval = argnames[i] pushfirst!(fbody.args, :( $retval = Gtk.mutable($T) )) retval = :( $retval[] ) @@ -352,13 +364,17 @@ function gen_get_set(body, gtk_h) push!(fargnames, argnames[i]) end fbody.args[end] = Expr(:return,fbody.args[end]) - push!(body.args, Expr(:function, Expr(:call, method_name, Expr(:(::),argnames[1],arg1ty), fargnames...), fbody)) + if !any(ex -> isduplicatedef(ex, method_name, arg1ty, length(fargnames)+1), body.args) + push!(body.args, Expr(:function, Expr(:call, method_name, Expr(:(::),argnames[1],arg1ty), fargnames...), fbody)) + end elseif m.captures[1] == "set" fbody = Expr(:block, :( ccall(($(QuoteNode(Symbol(spell))),$libname),$rettype,($(argtypes...),),$(argnames...)) ), Expr(:return, argnames[1]) ) - push!(body.args, Expr(:function, Expr(:call, method_name, Expr(:(::),argnames[1],arg1ty), argnames[2:end]...), fbody)) + if !any(ex -> isduplicatedef(ex, method_name, arg1ty, length(argnames)), body.args) + push!(body.args, Expr(:function, Expr(:call, method_name, Expr(:(::),argnames[1],arg1ty), argnames[2:end]...), fbody)) + end else @assert false end diff --git a/gen/gtk_list_gen.jl b/gen/gtk_list_gen.jl index fe4336a1..b0d3bfbe 100644 --- a/gen/gtk_list_gen.jl +++ b/gen/gtk_list_gen.jl @@ -1,42 +1,43 @@ import Gtk import Gtk.GLib: g_type, g_type_from_name, g_isa, GObject, get_fn_ptr -import Clang, Clang.cindex function gen_g_type_lists(gtk_h) replacelist = Dict{Symbol,Symbol}( :GVariant => :nothing, :GType => :g_gtype, - ) - tdecls = cindex.search(gtk_h, cindex.TypedefDecl) + ) + tdecls = Clang.search(gtk_h, Clang.CXCursor_TypedefDecl) leafs = Tuple{Symbol,Expr}[] ifaces = Tuple{Symbol,Expr}[] boxes = Tuple{Symbol,Expr}[] gpointers = Tuple{Symbol,Expr}[] for tdecl in tdecls - ty = cindex.getTypedefDeclUnderlyingType(tdecl) - if isa(ty,cindex.Pointer) - ty = cindex.getPointeeType(ty) + ty = underlying_type(tdecl) + if isa(ty, CLPointer) + ty = pointee_type(ty) isptr = true else isptr = false end - sdecl = cindex.getTypeDeclaration(cindex.getCanonicalType(ty)) - isa(sdecl, cindex.StructDecl) || continue - typname = cindex.spelling(tdecl) + + sdecl = typedecl(canonical(ty)) + isa(sdecl, CLStructDecl) || continue + typname = spelling(tdecl) if endswith(typname,"Iface")||endswith(typname,"Class")||endswith(typname,"Private") continue end typname = Symbol(typname) - header_file = cindex.cu_file(tdecl) + header_file = filename(tdecl) libname = get(gtklibname,basename(splitdir(header_file)[1]),nothing) - libname == nothing && continue + libname === nothing && continue if typname in keys(replacelist) symname = replacelist[typname] symname == :nothing && continue else symname = Symbol(join([lowercase(s) for s in split(string(typname), r"(?=[A-Z])")],"_")) end - gtyp = g_type(typname, libname, symname) + + gtyp = g_type(typname, libname, symname, Gtk) if gtyp == 0 gtyp = g_type_from_name(typname) if gtyp != 0 && !(gtyp in Gtk.GLib.fundamental_ids) @@ -50,21 +51,21 @@ function gen_g_type_lists(gtk_h) elseif gtyp == 0 || g_isa(gtyp, g_type_from_name(:GBoxed)) unref_fn = Symbol(string(symname,:_free)) has_ref_fn = false - if get_fn_ptr(unref_fn, libname) == C_NULL + if get_fn_ptr(unref_fn, libname, Gtk) == C_NULL unref_fn = Symbol(string(symname,:_unref)) - if get_fn_ptr(unref_fn, libname) == C_NULL + if get_fn_ptr(unref_fn, libname, Gtk) == C_NULL unref_fn = nothing ref_fn = nothing else has_ref_fn = true ref_fn_sym = Symbol(string(symname,:_ref)) - @assert get_fn_ptr(ref_fn_sym, libname) != C_NULL + @assert get_fn_ptr(ref_fn_sym, libname, Gtk) != C_NULL ref_fn = :(ccall(($(QuoteNode(ref_fn_sym)),$libname),Nothing,(Ptr{Nothing},),ref)) end else ref_fn = nothing end - if length(cindex.children(sdecl)) == 0 || has_ref_fn || isptr + if length(children(sdecl)) == 0 || has_ref_fn || isptr # Opaque box if unref_fn === nothing println("WARNING: couldn't detect gc characteristics of $symname") @@ -93,14 +94,14 @@ function gen_g_type_lists(gtk_h) valid = true paramlist = Expr(:block) ex = Expr(:type, false, typname, paramlist) - for cu in cindex.children(sdecl) - name = cindex.spelling(cu) + for cu in children(sdecl) + name = spelling(cu) if isempty(name) name = gensym() end - jtyp = g_type_to_jl(cindex.getCursorType(cu)) + jtyp = g_type_to_jl(type(cu)) if jtyp === :Nothing - jtyp = " < $(cindex.getCursorType(cu)) >" + jtyp = " < $(type(cu)) >" valid = false end push!(paramlist.args, Expr(:(::), Symbol(name), jtyp)) diff --git a/src/GLib/GLib.jl b/src/GLib/GLib.jl index 40b58da7..76b495d7 100644 --- a/src/GLib/GLib.jl +++ b/src/GLib/GLib.jl @@ -1,5 +1,9 @@ module GLib +if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel")) + @eval Base.Experimental.@optlevel 1 +end + # Import `libgobject` and whatnot using Glib_jll @@ -12,7 +16,7 @@ end import Base: convert, copy, show, size, length, getindex, setindex!, get, iterate, eltype, isempty, ndims, stride, strides, popfirst!, - empty!, append!, reverse!, pushfirst!, pop!, push!, splice!, + empty!, append!, reverse!, pushfirst!, pop!, push!, splice!, insert!, sigatomic_begin, sigatomic_end, Sys.WORD_SIZE, unsafe_convert, getproperty, getindex, setindex! @@ -20,7 +24,7 @@ using Libdl export GInterface, GType, GObject, GBoxed, @Gtype, @Gabstract, @Giface export GEnum, GError, GValue, gvalue, make_gvalue, @make_gvalue, g_type -export GList, glist_iter, _GSList, _GList, gobject_ref, gobject_move_ref +export GList, GSList, glist_iter, _GSList, _GList, gobject_ref, gobject_move_ref export signal_connect, signal_emit, signal_handler_disconnect export signal_handler_block, signal_handler_unblock export g_timeout_add, g_idle_add, @idle_add @@ -29,12 +33,16 @@ export GConnectFlags export @sigatom, cfunction_ -cfunction_(f, r, a::Tuple) = cfunction_(f, r, Tuple{a...}) -@noinline function cfunction_(f, r, a) - @nospecialize(f, r, a) - return ccall((:jl_function_ptr,:libjulia), Ptr{Cvoid}, (Any, Any, Any), f, r, a) +cfunction_(@nospecialize(f), r, a::Tuple) = cfunction_(f, r, Tuple{a...}) + +@generated function cfunction_(f, R::Type{rt}, A::Type{at}) where {rt, at<:Tuple} + quote + @cfunction($(Expr(:$,:f)), $rt, ($(at.parameters...),)) + end end +const gtk_eventloop_f = Ref{Function}() + # local function, handles Symbol and makes UTF8-strings easier const AbstractStringLike = Union{AbstractString, Symbol} bytestring(s) = String(s) @@ -45,8 +53,6 @@ bytestring(s::Ptr{UInt8}) = unsafe_string(s) g_malloc(s::Integer) = ccall((:g_malloc, libglib), Ptr{Nothing}, (Csize_t,), s) g_free(p::Ptr) = ccall((:g_free, libglib), Nothing, (Ptr{Nothing},), p) -ccall((:g_type_init, libgobject), Nothing, ()) - include("MutableTypes.jl") using .MutableTypes include("glist.jl") @@ -72,4 +78,9 @@ macro g_type_delegate(eq) end end +if Base.VERSION >= v"1.4.2" + precompile(Tuple{typeof(addref),Any}) # time: 0.003988418 + # precompile(Tuple{typeof(gc_ref),Any}) # time: 0.002649791 +end + end diff --git a/src/GLib/MutableTypes.jl b/src/GLib/MutableTypes.jl index 1ee036a6..0840104e 100644 --- a/src/GLib/MutableTypes.jl +++ b/src/GLib/MutableTypes.jl @@ -1,4 +1,9 @@ module MutableTypes + +if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel")) + @eval Base.Experimental.@optlevel 1 +end + export mutable, Mutable, deref abstract type Mutable{T} end @@ -29,8 +34,8 @@ mutable(x::Ptr{T}, i = 1) where {T} = x + (i - 1) * sizeof(T) mutable(x::T, i) where {T} = (i == 1 ? mutable(x) : error("Object only has one element")) _addrof(b::T) where {T} = pointer_from_objref(b) -Base.cconvert(::Type{P}, b::MutableX{T}) where {P <: Ptr, T} = isbitstype(T) ? convert(P, _addrof(b)) : convert(P, _addrof(b.x)) -Base.cconvert(::Type{P}, b::MutableA{T, N}) where {P <: Ptr, T, N} = convert(P, pointer(b.x, b.i)) +Base.unsafe_convert(::Type{P}, b::MutableX{T}) where {P <: Ptr, T} = isbitstype(T) ? convert(P, _addrof(b)) : convert(P, _addrof(b.x)) +Base.unsafe_convert(::Type{P}, b::MutableA{T, N}) where {P <: Ptr, T, N} = convert(P, pointer(b.x, b.i)) deref(b::Ptr) = unsafe_load(b) deref(b::MutableX) = b.x diff --git a/src/GLib/glist.jl b/src/GLib/glist.jl index af4d5204..5511d8a5 100644 --- a/src/GLib/glist.jl +++ b/src/GLib/glist.jl @@ -32,6 +32,7 @@ mutable struct GList{L <: _LList, T} <: AbstractVector{T} end end GList(list::Type{T}) where {T} = GList(convert(Ptr{_GList{T}}, C_NULL), true) +GSList(list::Type{T}) where {T} = GList(convert(Ptr{_GSList{T}}, C_NULL), true) GList(list::Ptr{L}, transfer_full::Bool = false) where {L <: _LList} = GList{L, eltype(L)}(list, transfer_full) const LList{L <: _LList} = Union{Ptr{L}, GList{L}} @@ -69,19 +70,14 @@ show(io::IO, ::MIME"text/plain", list::GList{L, T}) where {L, T} = show(io, list show(io::IO, list::GList{L, T}) where {L, T} = print(io, "GList{$L => $T}(length = $(length(list)), transfer_full = $(list.transfer_full))") unsafe_convert(::Type{Ptr{L}}, list::GList) where {L <: _LList} = list.handle -endof(list::LList) = length(list) -ndims(list::LList) = 1 -strides(list::LList) = (1,) -stride(list::LList, k::Integer) = (k > 1 ? length(list) : 1) size(list::LList) = (length(list),) isempty(list::LList{L}) where {L} = (unsafe_convert(Ptr{L}, list) == C_NULL) -Base.IteratorSize(::Type{L}) where {L <: LList} = Base.HasLength() popfirst!(list::GList) = splice!(list, nth_first(list)) pop!(list::GList) = splice!(list, nth_last(list)) deleteat!(list::GList, i::Integer) = deleteat!(list, nth(list, i)) -function splice!(list::GList, item::Ptr) +function splice!(list::GList, item::Ptr) x = deref(item) deleteat!(list, item) x @@ -97,8 +93,7 @@ length(list::LList{L}) where {L <: _GList} = Int(ccall((:g_list_length, libglib) copy(list::GList{L}) where {L <: _GSList} = typeof(list)(ccall((:g_slist_copy, libglib), Ptr{L}, (Ptr{L},), list), false) copy(list::GList{L}) where {L <: _GList} = typeof(list)(ccall((:g_list_copy, libglib), Ptr{L}, (Ptr{L},), list), false) check_undefref(p::Ptr) = (p == C_NULL ? error(UndefRefError()) : p) -nth_first(list::LList{L}) where {L <: _GSList} = - check_undefref(ccall((:g_slist_first, libglib), Ptr{L}, (Ptr{L},), list)) +nth_first(list::LList{L}) where {L <: _GSList} = unsafe_convert(Ptr{L}, list) nth_first(list::LList{L}) where {L <: _GList} = check_undefref(ccall((:g_list_first, libglib), Ptr{L}, (Ptr{L},), list)) nth_last(list::LList{L}) where {L <: _GSList} = @@ -158,13 +153,15 @@ function empty!(list::GList{L}) where L <: _GList return list end function append!(l1::GList{L}, l2::GList{L}) where L <: _GSList - (l1.transfer_full & l2.transfer_full) && error("cannot combine two lists with transfer_full = true") + (l1.transfer_full | l2.transfer_full) && error("cannot combine lists with transfer_full = true") l1.handle = ccall((:g_slist_concat, libglib), Ptr{L}, (Ptr{L}, Ptr{L}), l1, l2) + l2.handle = C_NULL return l1 end function append!(l1::GList{L}, l2::GList{L}) where L <: _GList - (l1.transfer_full & l2.transfer_full) && error("cannot combine two lists with transfer_full = true") + (l1.transfer_full | l2.transfer_full) && error("cannot combine lists with transfer_full = true") l1.handle = ccall((:g_list_concat, libglib), Ptr{L}, (Ptr{L}, Ptr{L}), l1, l2) + l2.handle = C_NULL return l1 end function reverse!(list::GList{L}) where L <: _GSList @@ -253,7 +250,7 @@ deref_to(::Type{P}, x::Ptr) where {P <: Ptr} = x empty!(li::Ptr{_LList{P}}) where {P <: Ptr} = nothing ### Store numbers directly inside the pointer bits (assuming convert(N, x) exists) -ref_to(::Type{N}, x) where {N <: Number} = x +ref_to(::Type{N}, x) where {N <: Number} = Ptr{N}(x) deref_to(::Type{N}, x::Ptr) where {N <: Number} = x empty!(li::Ptr{_LList{N}}) where {N <: Number} = nothing @@ -265,14 +262,26 @@ empty!(li::Ptr{_GSList{Ptr{N}}}) where {N <: Number} = g_free(unsafe_load(li).da empty!(li::Ptr{_GList{Ptr{N}}}) where {N <: Number} = g_free(unsafe_load(li).data) ### Store (byte)strings as pointers -deref_to(::Type{S}, p::Ptr) where {S <: String} = bytestring(convert(Ptr{UInt8}, p)) +function deref_to(::Type{S}, p::Ptr) where {S <: String} + p==C_NULL && return "" + bytestring(convert(Ptr{UInt8}, p)) +end function ref_to(::Type{S}, x) where S <: String s = bytestring(x) - l = sizeof(s) - p = convert(Ptr{UInt8}, g_malloc(l + 1)) - unsafe_copy!(p, convert(Ptr{UInt8}, pointer(s)), l) - unsafe_store!(p, '\0', l + 1) + p = ccall((:g_strdup, libglib), Ptr{UInt8}, (Cstring,), s) return p end -empty!(li::Ptr{_GSList{S}}) where {S <: String} = g_free(unsafe_load(li).data) -empty!(li::Ptr{_GList{S}}) where {S <: String} = g_free(unsafe_load(li).data) + +function empty!(li::Ptr{_GSList{S}}) where {S <: String} + gl=unsafe_load(li) + g_free(gl.data) + gl = _GSList{S}(C_NULL, gl.next) # set to NULL to prevent Julia from trying to access this while finalizing + unsafe_store!(li, gl) +end + +function empty!(li::Ptr{_GList{S}}) where {S <: String} + gl=unsafe_load(li) + g_free(gl.data) + gl = _GList{S}(C_NULL, gl.next, gl.prev) # set to NULL to prevent Julia from trying to access this while finalizing + unsafe_store!(li, gl) +end diff --git a/src/GLib/gtype.jl b/src/GLib/gtype.jl index e0403e77..89d88c03 100644 --- a/src/GLib/gtype.jl +++ b/src/GLib/gtype.jl @@ -107,7 +107,7 @@ end end function g_type(name::Symbol, lib, symname::Symbol, cm) if name in keys(gtype_wrappers) - return g_type(gtype_wrappers[name], cm) + return g_type(gtype_wrappers[name]) end fnptr = get_fn_ptr(string(symname, "_get_type"), lib, cm) if fnptr != C_NULL @@ -285,10 +285,12 @@ convert(::Type{GBoxed}, unbox::Ptr{T}) where {T <: GBoxed} = GBoxedUnkown(unbox) convert(::Type{T}, unbox::Ptr{GBoxed}) where {T <: GBoxed} = convert(T, convert(Ptr{T}, unbox)) convert(::Type{T}, unbox::Ptr{T}) where {T <: GBoxed} = T(unbox) +cconvert(::Type{Ptr{GObject}}, @nospecialize(x::GObject)) = x + # All GObjects are expected to have a 'handle' field # of type Ptr{GObject} corresponding to the GLib object # or to override this method (e.g. GtkNullContainer, AbstractString) -unsafe_convert(::Type{Ptr{GObject}}, w::GObject) = w.handle +unsafe_convert(::Type{Ptr{GObject}}, w::GObject) = getfield(w, :handle) # this method should be used by gtk methods returning widgets of unknown type # and/or that might have been wrapped by julia before, @@ -366,6 +368,7 @@ function gc_unref(@nospecialize(x)) nothing end _gc_unref(@nospecialize(x), ::Ptr{Nothing}) = gc_unref(x) +gc_ref_closure(@nospecialize(cb::Function)) = (invoke(gc_ref, Tuple{Any}, cb), @cfunction(_gc_unref, Nothing, (Any, Ptr{Nothing}))) gc_ref_closure(x::T) where {T} = (gc_ref(x), @cfunction(_gc_unref, Nothing, (Any, Ptr{Nothing}))) # generally, you shouldn't be calling gc_ref(::Ptr{GObject}) @@ -375,9 +378,11 @@ gc_unref(x::Ptr{GObject}) = ccall((:g_object_unref, libgobject), Nothing, (Ptr{G const gc_preserve_glib = Dict{Union{WeakRef, GObject}, Bool}() # glib objects const gc_preserve_glib_lock = Ref(false) # to satisfy this lock, must never decrement a ref counter while it is held const topfinalizer = Ref(true) # keep recursion to a minimum by only iterating from the top -const await_finalize = Any[] +const await_finalize = Set{Any}() + +Base.isequal(x::GObject, w::WeakRef) = x === w.value # cuts the number of MethodInstances from O(N^2) to O(N) -function finalize_gc_unref(@nospecialize(x)) +function finalize_gc_unref(@nospecialize(x::GObject)) # this records that the are no user references left to the object from Julia # and notifies GLib that it can free the object (if no reference exist from C) # it is intended to be called by GC, not in user code function @@ -385,7 +390,7 @@ function finalize_gc_unref(@nospecialize(x)) topfinalizer[] = false gc_preserve_glib_lock[] = true delete!(gc_preserve_glib, x) - if x.handle != C_NULL + if getfield(x, :handle) != C_NULL gc_preserve_glib[x] = true # convert to a strong-reference gc_preserve_glib_lock[] = false gc_unref(unsafe_convert(Ptr{GObject}, x)) # may clear the strong reference @@ -397,7 +402,7 @@ function finalize_gc_unref(@nospecialize(x)) nothing end -function delref(@nospecialize(x)) +function delref(@nospecialize(x::GObject)) # internal helper function exiting[] && return # unnecessary to cleanup if we are about to die anyways if gc_preserve_glib_lock[] || g_yielded[] @@ -407,7 +412,7 @@ function delref(@nospecialize(x)) finalize_gc_unref(x) nothing end -function addref(@nospecialize(x)) +function addref(@nospecialize(x::GObject)) # internal helper function ccall((:g_object_ref_sink, libgobject), Ptr{GObject}, (Ptr{GObject},), x) finalizer(delref, x) @@ -419,15 +424,23 @@ function gobject_ref(x::T) where T <: GObject gc_preserve_glib_lock[] = true strong = get(gc_preserve_glib, x, nothing) if strong === nothing - # we haven't seen this before, setup the metadata - deref = @cfunction(gc_unref, Nothing, (Ref{T},)) - ccall((:g_object_set_qdata_full, libgobject), Nothing, - (Ptr{GObject}, UInt32, Any, Ptr{Nothing}), x, jlref_quark::UInt32, x, - deref) # add a circular reference to the Julia object in the GObject - addref(x) + if ccall((:g_object_get_qdata, libgobject), Ptr{Cvoid}, + (Ptr{GObject}, UInt32), x, jlref_quark::UInt32) != C_NULL + # have set up metadata for this before, but its weakref has been cleared. restore the ref. + delete!(await_finalize, x) + finalizer(delref, x) + gc_preserve_glib[WeakRef(x)] = false # record the existence of the object, but allow the finalizer + else + # we haven't seen this before, setup the metadata + deref = @cfunction(gc_unref, Nothing, (Ref{T},)) + ccall((:g_object_set_qdata_full, libgobject), Nothing, + (Ptr{GObject}, UInt32, Any, Ptr{Nothing}), x, jlref_quark::UInt32, x, + deref) # add a circular reference to the Julia object in the GObject + addref(Ref{GObject}(x)[]) + end elseif strong # oops, we previously deleted the link, but now it's back - addref(x) + addref(Ref{GObject}(x)[]) else # already gc-protected, nothing to do end diff --git a/src/GLib/gvalues.jl b/src/GLib/gvalues.jl index 08bb72f9..10333e64 100644 --- a/src/GLib/gvalues.jl +++ b/src/GLib/gvalues.jl @@ -159,21 +159,23 @@ function getindex(gv::GV, ::Type{Any}) end #end -get_gtk_property(w::GObject, name::AbstractString, ::Type{T}) where T = get_gtk_property(w, Symbol(name), T) -function get_gtk_property(w::GObject, name::Symbol, ::Type{T}) where T +get_gtk_property(w::GObject, name::AbstractString, ::Type{T}) where T = get_gtk_property(w, String(name)::String, T) +get_gtk_property(w::GObject, name::Symbol, ::Type{T}) where T = get_gtk_property(w, String(name), T) +function get_gtk_property(w::GObject, name::String, ::Type{T}) where T v = gvalue(T) ccall((:g_object_get_property, libgobject), Nothing, - (Ptr{GObject}, Ptr{UInt8}, Ptr{GValue}), w, GLib.bytestring(name), v) + (Ptr{GObject}, Ptr{UInt8}, Ptr{GValue}), w, name, v) val = v[T] ccall((:g_value_unset, libgobject), Nothing, (Ptr{GValue},), v) return val end set_gtk_property!(w::GObject, name, ::Type{T}, value) where T = set_gtk_property!(w, name, convert(T, value)) -set_gtk_property!(w::GObject, name::AbstractString, value) = set_gtk_property!(w::GObject, Symbol(name), value) -function set_gtk_property!(w::GObject, name::Symbol, value) +set_gtk_property!(w::GObject, name::AbstractString, value) = set_gtk_property!(w::GObject, String(name)::String, value) +set_gtk_property!(w::GObject, name::Symbol, value) = set_gtk_property!(w::GObject, String(name), value) +function set_gtk_property!(w::GObject, name::String, value) ccall((:g_object_set_property, libgobject), Nothing, - (Ptr{GObject}, Ptr{UInt8}, Ptr{GValue}), w, GLib.bytestring(name), gvalue(value)) + (Ptr{GObject}, Ptr{UInt8}, Ptr{GValue}), w, name, gvalue(value)) w end @@ -186,7 +188,7 @@ struct FieldRef{T} isdefined(obj, field) && return getfield(obj, field) new{T}(obj, field) end - + FieldRef(obj::T, field::Symbol) where T = new{T}(obj, field) end diff --git a/src/GLib/signals.jl b/src/GLib/signals.jl index 3b3a0084..f7f86593 100644 --- a/src/GLib/signals.jl +++ b/src/GLib/signals.jl @@ -1,12 +1,12 @@ # id = VERSION >= v"0.4-"get, :event, Nothing, (ArgsT...)) do ptr, evt_args..., closure # stuff # end -function signal_connect(cb::Function, w::GObject, sig::AbstractStringLike, +function signal_connect(@nospecialize(cb::Function), w::GObject, sig::AbstractStringLike, ::Type{RT}, param_types::Tuple, after::Bool = false, user_data::CT = w) where {CT, RT} signal_connect_generic(cb, w, sig, RT, param_types, after, user_data) end -function signal_connect_generic(cb::Function, w::GObject, sig::AbstractStringLike, +function signal_connect_generic(@nospecialize(cb::Function), w::GObject, sig::AbstractStringLike, ::Type{RT}, param_types::Tuple, after::Bool = false, user_data::CT = w) where {CT, RT} #TODO: assert that length(param_types) is correct callback = cfunction_(cb, RT, tuple(Ptr{GObject}, param_types..., Ref{CT})) ref, deref = gc_ref_closure(user_data) @@ -23,10 +23,10 @@ end # id = signal_connect(widget, :event) do obj, evt_args... # stuff # end -function signal_connect(cb::Function, w::GObject, sig::AbstractStringLike, after::Bool = false) +function signal_connect(@nospecialize(cb::Function), w::GObject, sig::AbstractStringLike, after::Bool = false) _signal_connect(cb, w, sig, after, false, nothing, nothing) end -function _signal_connect(cb::Function, w::GObject, sig::AbstractStringLike, after::Bool, gtk_call_conv::Bool, param_types, user_data) +function _signal_connect(@nospecialize(cb::Function), w::GObject, sig::AbstractStringLike, after::Bool, gtk_call_conv::Bool, param_types, user_data) @assert sizeof_gclosure > 0 closuref = ccall((:g_closure_new_object, libgobject), Ptr{Nothing}, (Cuint, Ptr{GObject}), sizeof_gclosure::Int + GLib.WORD_SIZE * 2, w) closure_env = convert(Ptr{Ptr{Nothing}}, closuref + sizeof_gclosure) @@ -39,7 +39,7 @@ function _signal_connect(cb::Function, w::GObject, sig::AbstractStringLike, afte else unsafe_store!(convert(Ptr{Int}, closure_env), 0, 2) end - ref_cb, deref_cb = gc_ref_closure(cb) + ref_cb, deref_cb = invoke(gc_ref_closure, Tuple{Function}, cb) unsafe_store!(closure_env, ref_cb, 1) ccall((:g_closure_add_invalidate_notifier, libgobject), Nothing, (Ptr{Nothing}, Ptr{Nothing}, Ptr{Nothing}), closuref, ref_cb, deref_cb) @@ -52,10 +52,9 @@ function GClosureMarshal(closuref::Ptr{Nothing}, return_value::Ptr{GValue}, n_pa param_values::Ptr{GValue}, invocation_hint::Ptr{Nothing}, marshal_data::Ptr{Nothing}) @assert sizeof_gclosure > 0 closure_env = convert(Ptr{Any}, closuref + sizeof_gclosure) - cb = unsafe_load(closure_env, 1) + cb = unsafe_load(closure_env, 1)::Function gtk_calling_convention = (0 != unsafe_load(convert(Ptr{Int}, closure_env), 2)) params = Vector{Any}(undef, n_param_values) - local retval = nothing g_siginterruptible(cb) do if gtk_calling_convention # compatibility mode, if we must @@ -103,8 +102,8 @@ function GClosureMarshal(closuref::Ptr{Nothing}, return_value::Ptr{GValue}, n_pa return nothing end -function blame(cb) - warn("Executing ", cb, ":") +function blame(@nospecialize(cb)) + @warn "Executing $cb:" end # Signals API for the cb pointer @@ -133,7 +132,7 @@ the given `id`. signal_handler_is_connected(w::GObject, handler_id::Culong) = ccall((:g_signal_handler_is_connected, libgobject), Cint, (Ptr{GObject}, Culong), w, handler_id) == 1 -function signal_emit(w::GObject, sig::AbstractStringLike, RT::Type, args...) +function signal_emit(w::GObject, sig::AbstractStringLike, ::Type{RT}, args...) where RT i = isa(sig, AbstractString) ? something(findfirst("::", sig), 0:-1) : (0:-1) if !isempty(i) detail = @quark_str sig[last(i) + 1:end] @@ -143,7 +142,8 @@ function signal_emit(w::GObject, sig::AbstractStringLike, RT::Type, args...) end signal_id = ccall((:g_signal_lookup, libgobject), Cuint, (Ptr{UInt8}, Csize_t), sig, G_OBJECT_CLASS_TYPE(w)) return_value = RT === Nothing ? C_NULL : gvalue(RT) - ccall((:g_signal_emitv, libgobject), Nothing, (Ptr{GValue}, Cuint, UInt32, Ptr{GValue}), gvalues(w, args...), signal_id, detail, return_value) + gvals = gvalues(w, args...) + GC.@preserve gvals return_value ccall((:g_signal_emitv, libgobject), Nothing, (Ptr{GValue}, Cuint, UInt32, Ptr{GValue}), gvals, signal_id, detail, return_value) RT === Nothing ? nothing : return_value[RT] end @@ -203,7 +203,7 @@ macro sigatom(f) end end -function g_siginterruptible(f::Base.Callable, cb) # calls f (which may throw), but this function never throws +function g_siginterruptible(f::Base.Callable, @nospecialize(cb)) # calls f (which may throw), but this function never throws global g_sigatom_flag, g_stack prev = g_sigatom_flag[] @assert xor(prev, (current_task() !== g_stack)) @@ -297,7 +297,7 @@ function uv_prepare(src::Ptr{Nothing}, timeout::Ptr{Cint}) else ccall(:uv_update_time, Nothing, (Ptr{Nothing},), evt) tmout_ms = ccall(:uv_backend_timeout, Cint, (Ptr{Nothing},), evt) - tmout_min::Cint = (uv_pollfd::_GPollFD).fd == -1 ? 100 : 5000 + tmout_min::Cint = (uv_pollfd::_GPollFD).fd == -1 ? 10 : 5000 if tmout_ms < 0 || tmout_ms > tmout_min tmout_ms = tmout_min end @@ -329,13 +329,12 @@ function uv_check(src::Ptr{Nothing}) return Int32(ex <= now) end end -function uv_dispatch(src::Ptr{Nothing}, callback::Ptr{Nothing}, data::T) where T - return ccall(callback, Cint, (T,), data) +function uv_dispatch(src::Ptr{Nothing}, callback::Ptr{Nothing}, data) + return ccall(callback, Cint, (UInt,), data) end sizeof_gclosure = 0 function __init__gtype__() - ccall((:g_type_init, libgobject), Nothing, ()) global jlref_quark = quark"julia_ref" global sizeof_gclosure = GLib.WORD_SIZE closure = C_NULL @@ -358,7 +357,9 @@ function __init__gmainloop__() ccall((:g_source_set_callback, GLib.libglib), Nothing, (Ptr{Nothing}, Ptr{Nothing}, UInt, Ptr{Nothing}), src, @cfunction(g_yield, Cint, (UInt,)), 1, C_NULL) - uv_fd = Sys.iswindows() ? -1 : ccall(:uv_backend_fd, Cint, (Ptr{Nothing},), Base.eventloop()) + uv_fd = -1 + # TODO: renable this after fixing integration with the default scheduler backend + # uv_fd = Sys.iswindows() ? -1 : ccall(:uv_backend_fd, Cint, (Ptr{Nothing},), Base.eventloop()) global uv_pollfd = _GPollFD(uv_fd, 0x1) if (uv_pollfd::_GPollFD).fd != -1 ccall((:g_source_add_poll, GLib.libglib), Nothing, (Ptr{Nothing}, Ptr{_GPollFD}), src, Ref(uv_pollfd::_GPollFD)) @@ -381,6 +382,7 @@ end @deprecate g_timeout_add(interval, cb, user_data) g_timeout_add(() -> cb(user_data), interval) function g_idle_add(cb::Function) + gtk_eventloop_f[](true) callback = @cfunction(_g_callback, Cint, (Ref{Function},)) ref, deref = gc_ref_closure(cb) return ccall((:g_idle_add_full , libglib),Cint, diff --git a/src/Gtk.jl b/src/Gtk.jl index 2a824ee6..1492ce9c 100644 --- a/src/Gtk.jl +++ b/src/Gtk.jl @@ -1,11 +1,18 @@ # julia Gtk interface module Gtk +if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel")) + @eval Base.Experimental.@optlevel 1 +end + # Import binary definitions using GTK3_jll, Glib_jll, Xorg_xkeyboard_config_jll, gdk_pixbuf_jll, adwaita_icon_theme_jll, hicolor_icon_theme_jll -using Pkg.Artifacts +using Librsvg_jll +using JLLWrappers +using Pkg.Artifacts, Scratch const libgdk = libgdk3 const libgtk = libgtk3 +const libgdk_pixbuf = libgdkpixbuf const suffix = :Leaf @@ -70,76 +77,152 @@ include("gio.jl") include("application.jl") function __init__() - if Sys.iswindows() - @warn "You are using Gtk on Windows which is currently not recommended. Your REPL/IDE and anything depending on task switches will become sluggish and much slower (up to ~85x slower)." - end + in(:Gtk4, names(Main, imported=true)) && error("Gtk is incompatible with Gtk4.") + # Set XDG_DATA_DIRS so that Gtk can find its icons and schemas - ENV["XDG_DATA_DIRS"] = join(filter(x -> x != nothing, [ + ENV["XDG_DATA_DIRS"] = join(filter(x -> x !== nothing, [ dirname(adwaita_icons_dir), dirname(hicolor_icons_dir), - joinpath(dirname(GTK3_jll.libgdk3_path), "..", "share"), - get(ENV, "XDG_DATA_DIRS", nothing), + joinpath(dirname(GTK3_jll.libgdk3_path::String), "..", "share"), + get(ENV, "XDG_DATA_DIRS", nothing)::Union{String,Nothing}, ]), Sys.iswindows() ? ";" : ":") # Next, ensure that gdk-pixbuf has its loaders.cache file; we generate a # MutableArtifacts.toml file that maps in a loaders.cache we dynamically # generate by running `gdk-pixbuf-query-loaders:` - mutable_artifacts_toml = joinpath(dirname(@__DIR__), "MutableArtifacts.toml") - loaders_cache_name = "gdk-pixbuf-loaders-cache" - loaders_cache_hash = artifact_hash(loaders_cache_name, mutable_artifacts_toml) - if loaders_cache_hash === nothing - # Run gdk-pixbuf-query-loaders, capture output, - loader_cache_contents = gdk_pixbuf_query_loaders() do gpql - withenv("GDK_PIXBUF_MODULEDIR" => gdk_pixbuf_loaders_dir) do - return String(read(`$gpql`)) - end + cache_dir = @get_scratch!("gdk-pixbuf-cache") + treehash_cache_path = joinpath(cache_dir, "gdk_pixbuf_treehash.cache") + loaders_cache_path = joinpath(cache_dir, "loaders.cache") + gdk_pixbuf_treehash = basename(gdk_pixbuf_jll.artifact_dir) + if !isfile(treehash_cache_path) || read(treehash_cache_path) != gdk_pixbuf_treehash + function query_pixbuf_loaders(dir::String; + extra_env::Vector{Pair{String,String}} = Pair{String,String}[]) + gpql = gdk_pixbuf_query_loaders() + return readchomp(addenv(gpql, "GDK_PIXBUF_MODULEDIR" => dir, extra_env...)) end - # Write cache out to file in new artifact - loaders_cache_hash = create_artifact() do art_dir - open(joinpath(art_dir, "loaders.cache"), "w") do io - write(io, loader_cache_contents) + open(loaders_cache_path, write=true) do io + # Cache builtin gdx-pixbuf modules + write(io, query_pixbuf_loaders(gdk_pixbuf_loaders_dir)) + println(io) + + # If Librsvg_jll is available, cache that one too + if Librsvg_jll.is_available() + librsvg_module_dir = dirname(Librsvg_jll.libpixbufloader_svg) + write(io, query_pixbuf_loaders(librsvg_module_dir; extra_env = [ + JLLWrappers.LIBPATH_env=>Librsvg_jll.LIBPATH[], + ])) + println(io) end end - bind_artifact!(mutable_artifacts_toml, - loaders_cache_name, - loaders_cache_hash; - force=true - ) + + # TODO: I think this is unnecessary + #Sys.iswindows() && chmod(artifact_path(loaders_dir_hash), 0o755; recursive=true) + + rm(treehash_cache_path; force=true) + open(treehash_cache_path, write=true) do io + write(io, gdk_pixbuf_treehash) + end end # Point gdk to our cached loaders - ENV["GDK_PIXBUF_MODULE_FILE"] = joinpath(artifact_path(loaders_cache_hash), "loaders.cache") - ENV["GDK_PIXBUF_MODULEDIR"] = gdk_pixbuf_loaders_dir + ENV["GDK_PIXBUF_MODULE_FILE"] = loaders_cache_path + + # TODO: I think this is unnecessary + #ENV["GDK_PIXBUF_MODULEDIR"] = gdk_pixbuf_loaders_dir if Sys.islinux() || Sys.isfreebsd() # Needed by xkbcommon: # https://xkbcommon.org/doc/current/group__include-path.html. Related # to issue https://github.com/JuliaGraphics/Gtk.jl/issues/469 - ENV["XKB_CONFIG_ROOT"] = joinpath(Xorg_xkeyboard_config_jll.artifact_dir, + ENV["XKB_CONFIG_ROOT"] = joinpath(Xorg_xkeyboard_config_jll.artifact_dir::String, "share", "X11", "xkb") end GError() do error_check ccall((:gtk_init_with_args, libgtk), Bool, - (Ptr{Nothing}, Ptr{Nothing}, Ptr{UInt8}, Ptr{Nothing}, Ptr{UInt8}, Ptr{GError}), + (Ptr{Nothing}, Ptr{Nothing}, Ptr{UInt8}, Ptr{Nothing}, Ptr{UInt8}, Ptr{Ptr{GError}}), C_NULL, C_NULL, "Julia Gtk Bindings", C_NULL, C_NULL, error_check) end - # if g_main_depth > 0, a glib main-loop is already running, - # so we don't need to start a new one - if ccall((:g_main_depth, GLib.libglib), Cint, ()) == 0 - global gtk_main_task = schedule(Task(gtk_main)) + # if g_main_depth > 0, a glib main-loop is already running. + # unfortunately this call does not reliably reflect the state after the + # loop has been stopped or restarted, so only use it once at the start + gtk_main_running[] = ccall((:g_main_depth, GLib.libglib), Cint, ()) > 0 + + # Given GLib provides `g_idle_add` to specify what happens during idle, this allows + # that call to also start the eventloop + GLib.gtk_eventloop_f[] = enable_eventloop + + auto_idle[] = get(ENV, "GTK_AUTO_IDLE", "true") == "true" + + # by default, defer starting the event loop until either `show`, `showall`, or `g_idle_add` is called + enable_eventloop(!auto_idle[]) +end + +const auto_idle = Ref{Bool}(true) # control default via ENV["GTK_AUTO_IDLE"] +const gtk_main_running = Ref{Bool}(false) +const quit_task = Ref{Task}() +const enable_eventloop_lock = Base.ReentrantLock() +""" + Gtk.enable_eventloop(b::Bool = true) + +Set whether Gtk's event loop is running. +""" +function enable_eventloop(b::Bool = true; wait_stopped::Bool = false) + lock(enable_eventloop_lock) do # handle widgets that are being shown/destroyed from different threads + isassigned(quit_task) && wait(quit_task[]) # prevents starting while the async is still stopping + if b + if !is_eventloop_running() + global gtk_main_task = schedule(Task(gtk_main)) + gtk_main_running[] = true + end + else + if is_eventloop_running() + # @async and short sleep is needer on MacOS at least, otherwise + # the window doesn't always finish closing before the eventloop stops. + quit_task[] = @async begin + sleep(0.2) + gtk_quit() + gtk_main_running[] = false + end + wait_stopped && wait(quit_task[]) + end + end + end +end + +""" + Gtk.pause_eventloop(f; force = false) + +Pauses the eventloop around a function. Restores the state of the eventloop after +pausing. Respects whether Gtk.jl is configured to allow auto-stopping of the +eventloop, unless `force = true`. +""" +function pause_eventloop(f; force = false) + was_running = is_eventloop_running() + (force || auto_idle[]) && enable_eventloop(false, wait_stopped = true) + try + f() + finally + (force || auto_idle[]) && enable_eventloop(was_running) end end +""" + Gtk.is_eventloop_running()::Bool + +Check whether Gtk's event loop is running. +""" +is_eventloop_running() = gtk_main_running[] + const ser_version = Serialization.ser_version let cachedir = joinpath(splitdir(@__FILE__)[1], "..", "gen") fastgtkcache = joinpath(cachedir, "gtk$(libgtk_version.major)_julia_ser$(ser_version)") if isfile(fastgtkcache) && true open(fastgtkcache) do cache while !eof(cache) - Core.eval(deserialize(cache)) + Core.eval(Gtk, deserialize(cache)) end end else @@ -155,8 +238,10 @@ using .GConstants include("windows.jl") include("gl_area.jl") -include("precompile.jl") -_precompile_() +if Base.VERSION >= v"1.4.2" + include("precompile.jl") + _precompile_() +end # Alternative Interface (`using Gtk.ShortNames`) module ShortNames diff --git a/src/base.jl b/src/base.jl index 2a565d34..d44760b4 100644 --- a/src/base.jl +++ b/src/base.jl @@ -3,19 +3,11 @@ unsafe_convert(::Type{Ptr{GObject}}, w::AbstractStringLike) = unsafe_convert(Ptr destroy(w::GtkWidget) = @sigatom ccall((:gtk_widget_destroy, libgtk), Nothing, (Ptr{GObject},), w) parent(w::GtkWidget) = convert(GtkWidget, ccall((:gtk_widget_get_parent, libgtk), Ptr{GObject}, (Ptr{GObject},), w)) hasparent(w::GtkWidget) = ccall((:gtk_widget_get_parent, libgtk), Ptr{Nothing}, (Ptr{GObject},), w) != C_NULL -function toplevel(w::GtkWidget) - p = unsafe_convert(Ptr{GObject}, w) - pp = p - while pp != C_NULL - p = pp - pp = ccall((:gtk_widget_get_parent, libgtk), Ptr{GObject}, (Ptr{GObject},), p) - end - convert(GtkWidget, p) -end +toplevel(w::GtkWidget) = convert(GtkWidget, ccall((:gtk_widget_get_toplevel, libgtk), Ptr{GObject}, (Ptr{GObject},), w)) function allocation(widget::Gtk.GtkWidget) - allocation_ = Array(GdkRectangle) + allocation_ = Ref{GdkRectangle}() ccall((:gtk_widget_get_allocation, libgtk), Nothing, (Ptr{GObject}, Ptr{GdkRectangle}), widget, allocation_) - return allocation_[1] + return allocation_[] end width(w::GtkWidget) = ccall((:gtk_widget_get_allocated_width, libgtk), Cint, (Ptr{GObject},), w) height(w::GtkWidget) = ccall((:gtk_widget_get_allocated_height, libgtk), Cint, (Ptr{GObject},), w) @@ -27,8 +19,40 @@ screen_size(w::GtkWindowLeaf) = screen_size(Gtk.GAccessor.screen(w)) ### Functions and methods common to all GtkWidget objects visible(w::GtkWidget) = Bool(ccall((:gtk_widget_get_visible, libgtk), Cint, (Ptr{GObject},), w)) visible(w::GtkWidget, state::Bool) = @sigatom ccall((:gtk_widget_set_visible, libgtk), Nothing, (Ptr{GObject}, Cint), w, state) -show(w::GtkWidget) = (@sigatom ccall((:gtk_widget_show, libgtk), Nothing, (Ptr{GObject},), w); w) -showall(w::GtkWidget) = (@sigatom ccall((:gtk_widget_show_all, libgtk), Nothing, (Ptr{GObject},), w); w) + +const shown_widgets = WeakKeyDict() +function handle_auto_idle(w::GtkWidget) + if auto_idle[] + signal_connect(w, :realize) do w + enable_eventloop(true) + shown_widgets[w] = nothing + signal_connect(w, :destroy, #= after =# true) do w + delete!(shown_widgets, w) + isempty(shown_widgets) && enable_eventloop(false) + end + end + @static Sys.iswindows() && yield() # issue #610 + end +end +function show(w::GtkWidget) + handle_auto_idle(w) + @sigatom ccall((:gtk_widget_show, libgtk), Nothing, (Ptr{GObject},), w) + w +end + +""" + showall(w::Gtk.GtkWidget) +Recursively show a widget, and any child widgets (if the widget is a container). + +This function overrides the `visible` property in all widgets in the hierarchy. Widgets can be +protected from `showall` by setting the `no_show_all` property on the object to `true`. +""" +function showall(w::GtkWidget) + handle_auto_idle(w) + @sigatom ccall((:gtk_widget_show_all, libgtk), Nothing, (Ptr{GObject},), w) + w +end + hide(w::GtkWidget) = (@sigatom ccall((:gtk_widget_hide , libgtk),Cvoid,(Ptr{GObject},),w); w) grab_focus(w::GtkWidget) = (@sigatom ccall((:gtk_widget_grab_focus , libgtk), Cvoid, (Ptr{GObject},), w); w) @@ -87,8 +111,7 @@ function _guarded(ex, retval) try $(ex.args[2]) catch err - @warn("Error in @guarded callback") - Base.display_error(err, catch_backtrace()) + @warn("Error in @guarded callback", exception=(err, catch_backtrace())) $retval end end diff --git a/src/basic_exports.jl b/src/basic_exports.jl index fe7229c1..df46257c 100644 --- a/src/basic_exports.jl +++ b/src/basic_exports.jl @@ -11,7 +11,7 @@ export new, width, height, #minsize, maxsize convert_iter_to_child_iter, convert_child_iter_to_iter, pulse, buffer, cells, search, place_cursor, select_range, selection_bounds, - create_mark + create_mark, scroll_to #property, margin, padding, align #raise, focus, destroy, enabled diff --git a/src/builder.jl b/src/builder.jl index 88653e3e..ef188784 100644 --- a/src/builder.jl +++ b/src/builder.jl @@ -35,7 +35,7 @@ function push!(builder::GtkBuilder; buffer = nothing, filename = nothing, resour end start_(builder::GtkBuilder) = glist_iter(ccall((:gtk_builder_get_objects, libgtk), Ptr{_GSList{GObject}}, (Ptr{GObject},), builder)) -iterate(w::GtkBuilder, list=start_(builder)) = +iterate(builder::GtkBuilder, list=start_(builder)) = iterate(list[1], list) diff --git a/src/buttons.jl b/src/buttons.jl index e96025a2..ddc7aca7 100644 --- a/src/buttons.jl +++ b/src/buttons.jl @@ -1,5 +1,3 @@ -#https://developer.gnome.org/gtk2/stable/ButtonWidgets.html - #GtkButton — A widget that creates a signal when clicked on #GtkCheckButton — Create widgets with a discrete toggle button #GtkRadioButton — A choice from multiple check buttons @@ -163,3 +161,7 @@ function GtkVolumeButtonLeaf(value::Real) # 0 <= value <= 1 end GtkFontButtonLeaf() = GtkFontButtonLeaf(ccall((:gtk_font_button_new, libgtk), Ptr{GObject}, ())) + +GtkColorButtonLeaf() = GtkColorButtonLeaf(ccall((:gtk_color_button_new, libgtk), Ptr{GObject}, ())) +GtkColorButtonLeaf(color::GdkRGBA) = GtkColorButtonLeaf(ccall((:gtk_color_button_new_with_rgba, libgtk), Ptr{GObject}, + (Ref{GdkRGBA},), color)) diff --git a/src/cairo.jl b/src/cairo.jl index 45cdf79b..23c85d2d 100644 --- a/src/cairo.jl +++ b/src/cairo.jl @@ -17,10 +17,10 @@ mutable struct GtkCanvas <: GtkDrawingArea # NOT an @GType ids = Vector{Culong}(undef, 0) widget = new(da, false, false, MouseHandler(ids), nothing, nothing) widget.mouse.widget = widget - signal_connect(notify_realize, widget, "realize", Nothing, ()) - signal_connect(notify_unrealize, widget, "unrealize", Nothing, ()) + signal_connect(Base.inferencebarrier(notify_realize), widget, "realize", Nothing, ()) + signal_connect(Base.inferencebarrier(notify_unrealize), widget, "unrealize", Nothing, ()) on_signal_resize(notify_resize, widget) - signal_connect(canvas_on_draw_event, widget, "draw", Cint, (Ptr{Nothing},)) + signal_connect(Base.inferencebarrier(canvas_on_draw_event), widget, "draw", Cint, (Ptr{Nothing},)) push!(ids, on_signal_button_press(mousedown_cb, widget, false, widget.mouse)) push!(ids, on_signal_button_release(mouseup_cb, widget, false, widget.mouse)) push!(ids, on_signal_motion(mousemove_cb, widget, 0, 0, false, widget.mouse)) diff --git a/src/container.jl b/src/container.jl index a07ee41d..afa13022 100644 --- a/src/container.jl +++ b/src/container.jl @@ -6,12 +6,30 @@ function delete!(w::GtkContainer, child::GtkWidget) ccall((:gtk_container_remove, libgtk), Nothing, (Ptr{GObject}, Ptr{GObject},), w, child) w end -function empty!(w::GtkContainer) - for child in w + +function Base.deleteat!(w::GtkContainer, i::Integer) + i isa Bool && Base.depwarn("passing Bool as an index is deprecated", :deleteat!) + delete!(w, w[i]) + w +end +function Base.deleteat!(w::GtkContainer, iterator) + for child in [w[i] for i in iterator] delete!(w, child) end w end +Base.firstindex(w::GtkContainer) = 1 +Base.lastindex(w::GtkContainer) = length(w) +function _remove_widget(w, con) + ccall((:gtk_container_remove, Gtk.libgtk), Nothing, (Ref{GObject}, Ref{GtkWidget}), con, w) +end + +function empty!(c::GtkContainer) + remove_widget_c = @cfunction(_remove_widget, Nothing, (Ptr{GtkWidget}, Ptr{GObject})) + + ccall((:gtk_container_foreach, Gtk.libgtk), Nothing, (Ptr{GObject}, Ptr{Cvoid}, Ptr{GObject}), c, remove_widget_c, c) + c +end function append!(w::GtkContainer, children) for child in children push!(w, child) @@ -23,6 +41,7 @@ Base.:|>(parent::GtkContainer, child::Union{GObject, AbstractString}) = push!(pa start_(w::GtkContainer) = glist_iter(ccall((:gtk_container_get_children, libgtk), Ptr{_GList{GObject}}, (Ptr{GObject},), w)) iterate(w::GtkContainer, list=start_(w)) = iterate(list[1], list) length(w::GtkContainer) = length(start_(w)[1]) +Base.keys(w::GtkContainer) = Base.OneTo(length(w)) getindex(w::GtkContainer, i::Integer) = convert(GtkWidget, start_(w)[1][i])::GtkWidget function start_(w::GtkBin) diff --git a/src/displays.jl b/src/displays.jl index b76edae7..bcd14026 100644 --- a/src/displays.jl +++ b/src/displays.jl @@ -1,5 +1,3 @@ -#https://developer.gnome.org/gtk2/stable/DisplayWidgets.html - #GtkImage — A widget displaying an image #GtkProgressBar — A widget which indicates progress visually #GtkStatusbar — Report messages of minor importance to the user @@ -306,8 +304,8 @@ slice!(status::GtkStatusbar, context, message_id) = ccall((:gtk_statusbar_remove, libgtk), Ptr{GObject}, (Ptr{GObject}, Cuint, Cuint), status, context_id(status, context), message_id) empty!(status::GtkStatusbar, context) = - ccall((:gtk_statusbar_remove_all, libgtk), Ptr{GObject}, (Ptr{GObject}, Cuint, Cuint), - status, context_id(status, context), context_id(context)) + ccall((:gtk_statusbar_remove_all, libgtk), Ptr{GObject}, (Ptr{GObject}, Cuint), + status, context_id(status, context)) #GtkInfoBarLeaf() = GtkInfoBarLeaf(ccall((:gtk_info_bar_new, libgtk), Ptr{GObject}, ()) diff --git a/src/events.jl b/src/events.jl index 5552a98f..da9bd0e0 100644 --- a/src/events.jl +++ b/src/events.jl @@ -16,26 +16,26 @@ add_events(widget::GtkWidget, mask::Integer) = ccall((:gtk_widget_add_events, li #end -function on_signal_resize(resize_cb::Function, widget::GtkWidget, vargs...) +function on_signal_resize(@nospecialize(resize_cb::Function), widget::GtkWidget, vargs...) signal_connect(resize_cb, widget, "size-allocate", Nothing, (Ptr{GdkRectangle},), vargs...) end -function on_signal_destroy(destroy_cb::Function, widget::GObject, vargs...) +function on_signal_destroy(@nospecialize(destroy_cb::Function), widget::GObject, vargs...) signal_connect(destroy_cb, widget, "destroy", Nothing, (), vargs...) end -function on_signal_button_press(press_cb::Function, widget::GtkWidget, vargs...) +function on_signal_button_press(@nospecialize(press_cb::Function), widget::GtkWidget, vargs...) add_events(widget, GdkEventMask.BUTTON_PRESS) signal_connect(press_cb, widget, "button-press-event", Cint, (Ptr{GdkEventButton},), vargs...) end -function on_signal_button_release(release_cb::Function, widget::GtkWidget, vargs...) +function on_signal_button_release(@nospecialize(release_cb::Function), widget::GtkWidget, vargs...) add_events(widget, GdkEventMask.BUTTON_RELEASE) signal_connect(release_cb, widget, "button-release-event", Cint, (Ptr{GdkEventButton},), vargs...) end mutable struct Gtk_signal_motion{T} closure::T - callback::Ptr{Nothing} + callback::Function include::UInt32 exclude::UInt32 end @@ -43,11 +43,7 @@ function notify_motion(p::Ptr{GObject}, eventp::Ptr{GdkEventMotion}, closure::Gt event = unsafe_load(eventp) if event.state & closure.include == closure.include && event.state & closure.exclude == 0 - if isbitstype(T) - ret = ccall(closure.callback, Cint, (Ptr{GObject}, Ptr{GdkEventMotion}, T), p, eventp, closure.closure) - else - ret = ccall(closure.callback, Cint, (Ptr{GObject}, Ptr{GdkEventMotion}, Any), p, eventp, closure.closure) - end + ret = closure.callback(p, eventp, closure.closure) else ret = Int32(false) end @@ -70,14 +66,8 @@ function on_signal_motion(move_cb::Function, widget::GtkWidget, mask |= GdkEventMask.BUTTON_MOTION end add_events(widget, mask) - @assert Base.isstructtype(T) - if isbitstype(T) - cb = cfunction_(move_cb, Cint, (Ptr{GObject}, Ptr{GdkEventMotion}, T)) - else - cb = cfunction_(move_cb, Cint, (Ptr{GObject}, Ptr{GdkEventMotion}, Ref{T})) - end closure = Gtk_signal_motion{T}( - closure, cb, + closure, move_cb, UInt32(include), UInt32(exclude) ) diff --git a/src/gdk.jl b/src/gdk.jl index e7e9eb87..43c4a287 100644 --- a/src/gdk.jl +++ b/src/gdk.jl @@ -15,6 +15,16 @@ struct GdkPoint end # GdkPoint is not a GBoxed type +struct GdkRGBA + r::Cdouble + g::Cdouble + b::Cdouble + a::Cdouble + GdkRGBA(r, g, b, a) = new(r, g, b, a) +end +@make_gvalue(GdkRGBA, Ptr{GdkRGBA}, :boxed, (:gdk_rgba,:libgdk)) +convert(::Type{GdkRGBA}, rgba::Ptr{GdkRGBA}) = unsafe_load(rgba) + baremodule GdkKeySyms const VoidSymbol = 0xffffff const BackSpace = 0xff08 @@ -186,3 +196,13 @@ function screen_size(screen::Ptr{Nothing}) return (ccall((:gdk_screen_get_width, libgdk), Cint, (Ptr{Nothing},), screen), ccall((:gdk_screen_get_height, libgdk), Cint, (Ptr{Nothing},), screen)) end + +function get_origin(window) + window_x, window_y = mutable(Cint), mutable(Cint) + ccall( + (:gdk_window_get_origin, libgdk), Cint, + (Ptr{GObject}, Ptr{Cint}, Ptr{Cint}), + window, window_x, window_y + ) + return (window_x[], window_y[]) +end \ No newline at end of file diff --git a/src/gtktypes.jl b/src/gtktypes.jl index 8c85afcb..765b304f 100644 --- a/src/gtktypes.jl +++ b/src/gtktypes.jl @@ -110,6 +110,8 @@ end @gtktype GtkScrolledWindow @gtktype GtkAboutDialog @gtktype GtkMessageDialog +@gtktype GtkColorChooserDialog +@gtktype GtkColorButton @Gtype GApplication libgio g_application @Gtype GdkPixbuf libgdkpixbuf gdk_pixbuf #TODO: @gtktype GtkScaleButton @@ -125,6 +127,11 @@ end @gtktype GtkCssProvider @gtktype GtkStyleContext +struct GtkRequisition + width::Int32 + height::Int32 + GtkRequisition(width, height) = new(width, height) +end if libgtk_version >= v"3.16.0" @gtktype_custom_symname GtkGLArea gtk_gl_area diff --git a/src/input.jl b/src/input.jl index 5fac59e5..331d277d 100644 --- a/src/input.jl +++ b/src/input.jl @@ -1,5 +1,3 @@ -#https://developer.gnome.org/gtk2/stable/NumericEntry.html - #GtkEntry — A single line text entry field #GtkEntryBuffer — Text buffer for GtkEntry #GtkEntryCompletion — Completion functionality for GtkEntry diff --git a/src/layout.jl b/src/layout.jl index 6784afbc..81986b95 100644 --- a/src/layout.jl +++ b/src/layout.jl @@ -53,22 +53,23 @@ function insert!(grid::GtkGrid, i::Integer, side::Symbol) elseif side == :bottom ccall((:gtk_grid_insert_row, libgtk), Nothing, (Ptr{GObject}, Cint), grid, i) else - error(string("invalid GtkPositionType ", s)) + error(string("Unknown side parameter $side: must be left, right, top or bottom ")) end end -function deleteat!(grid::GtkGrid, i::Integer, side::Symbol) - if side == :row - ccall((:gtk_grid_remove_row, libgtk), Nothing, (Ptr{GObject}, Cint), grid, i) - elseif side == :col - ccall((:gtk_grid_remove_column, libgtk), Nothing, (Ptr{GObject}, Cint), grid, i) +function deleteat!(grid::GtkGrid, i::Integer, rowcol::Symbol) + if rowcol == :row + ccall((:gtk_grid_remove_row, libgtk), Nothing, (Ptr{GObject}, Cint), grid, i-1) + elseif rowcol == :col + ccall((:gtk_grid_remove_column, libgtk), Nothing, (Ptr{GObject}, Cint), grid, i-1) else - error(string("invalid GtkPositionType ", s)) + error(string("rowcol must be row or col, got ", rowcol)) end end function insert!(grid::GtkGrid, sibling, side::Symbol) - ccall((:gtk_grid_insert_next_to, libgtk), Nothing, (Ptr{GObject}, Ptr{GObject}, Cint), grid, sibling, GtkPositionType.(side)) + pos=getfield(GtkPositionType,Symbol(uppercase(string(side)))) + ccall((:gtk_grid_insert_next_to, libgtk), Nothing, (Ptr{GObject}, Ptr{GObject}, Cint), grid, sibling, pos) end if libgtk_version >= v"3.16.0" @@ -161,6 +162,8 @@ function setindex!(pane::GtkPaned, child, i::Integer, resize::Bool, shrink::Bool end end +Base.keys(::GtkPaned) = Base.OneTo(2) + ### GtkLayout function GtkLayoutLeaf(width::Real, height::Real) layout = ccall((:gtk_layout_new, libgtk), Ptr{GObject}, @@ -211,11 +214,11 @@ function splice!(w::GtkNotebook, i::Integer) end pagenumber(w::GtkNotebook, child::GtkWidget) = - ccall((:gtk_notebook_page_num, libgtk), Cint, (Ptr{GObject}, Ptr{GObject}), w, child) + ccall((:gtk_notebook_page_num, libgtk), Cint, (Ptr{GObject}, Ptr{GObject}), w, child) + 1 ### GtkOverlay GtkOverlayLeaf() = GtkOverlayLeaf(ccall((:gtk_overlay_new, libgtk), Ptr{GObject}, () )) -GtkOverlayLeaf(w::GtkWidget) = invoke(push!, (GtkContainer,), GtkOverlayLeaf(), w) +GtkOverlayLeaf(w::GtkWidget) = invoke(push!, Tuple{GtkContainer,Any}, GtkOverlayLeaf(), w) function push!(w::GtkOverlay, x::GtkWidget) ccall((:gtk_overlay_add_overlay, libgtk), Cint, (Ptr{GObject}, Ptr{GObject}), w, x) diff --git a/src/lists.jl b/src/lists.jl index 83526ff1..f440825b 100644 --- a/src/lists.jl +++ b/src/lists.jl @@ -1,5 +1,3 @@ -#https://developer.gnome.org/gtk2/stable/TreeWidgetObjects.html - #Tree and List Widget Overview — Overview of GtkTreeModel, GtkTreeView, and friends #GtkTreeModel — The tree interface used by GtkTreeView #GtkTreeSelection — The selection object for GtkTreeView @@ -183,7 +181,7 @@ end deleteat!(listStore::GtkListStoreLeaf, index::Int) = delete!(listStore, iter_from_index(listStore, index)) pop!(listStore::GtkListStoreLeaf) = deleteat!(listStore, length(listStore)) -popfirst!(listSTore::GtkListStoreLeaf) = deleteat!(listStore, 1) +popfirst!(listStore::GtkListStoreLeaf) = deleteat!(listStore, 1) isvalid(listStore::GtkListStore, iter::TRI) = @@ -196,6 +194,10 @@ function length(listStore::GtkListStore) end size(listStore::GtkListStore) = (length(listStore), ncolumns(GtkTreeModel(listStore))) +Base.axes(listStore::GtkListStore) = Base.OneTo.(size(listStore)) +Base.axes(listStore::GtkListStore, d::Integer) = axes(listStore)[d] + +Base.keys(listStore::GtkListStore) = CartesianIndices(size(listStore)) getindex(store::GtkListStore, row::Int, column) = getindex(store, iter_from_index(store, row), column) getindex(store::GtkListStore, row::Int) = getindex(store, iter_from_index(store, row)) @@ -203,6 +205,13 @@ getindex(store::GtkListStore, row::Int) = getindex(store, iter_from_index(store, function setindex!(store::GtkListStore, value, index::Int, column::Integer) setindex!(store, value, Gtk.iter_from_index(store, index), column) end +setindex!(store::GtkListStore, value, index::Union{Int,CartesianIndex{1}}, column::Union{Integer,CartesianIndex{1}}) = + setindex!(store, value, _integer(index), _integer(column)) +setindex!(store::GtkListStore, value, index::CartesianIndex{2}) = + setindex!(store, value, Tuple(index)...) + +_integer(i::Integer) = i +_integer(i::CartesianIndex{1}) = convert(Int, i) ### GtkTreeStore @@ -280,7 +289,7 @@ deleteat!(treeStore::GtkTreeStore, iter::TRI) = delete!(treeStore, iter) ## insert by index function insert!(treeStore::GtkTreeStoreLeaf, index::Vector{Int}, values; how::Symbol = :parent, where::Symbol = :after) - piter = iter_from_index(treeStore, index) + iter = iter_from_index(treeStore, index) insert!(treeStore, iter, values; how = how, where = where) end @@ -443,13 +452,14 @@ function iter_n_children(treeModel::GtkTreeModel, iter::TRI) ret end - ## update iter pointing to nth child n in 1:nchildren) +## As a special case, if parent is NULL, then the n-th root node is set ## return boolean -function iter_nth_child(treeModel::GtkTreeModel, iter::Mutable{GtkTreeIter}, piter::TRI, n::Int) +function iter_nth_child(treeModel::GtkTreeModel, iter::Mutable{GtkTreeIter}, parent_iter::Union{TRI, Nothing}, n::Int) + parent_iter = isnothing(parent_iter) ? C_NULL : mutable(parent_iter) ret = ccall((:gtk_tree_model_iter_nth_child, libgtk), Cint, (Ptr{GObject}, Ptr{GtkTreeIter}, Ptr{GtkTreeIter}, Cint), - treeModel, iter, mutable(piter), n - 1) # 0-based + treeModel, iter, parent_iter, n - 1) # 0-based ret != 0 end @@ -652,17 +662,19 @@ end function selected_rows(selection::GtkTreeSelection) hasselection(selection) || return GtkTreeIter[] - model = mutable(Ptr{GtkTreeModel}) + model = Ref{Ptr{GtkTreeModel}}() paths = GLib.GList(ccall((:gtk_tree_selection_get_selected_rows, libgtk), - Ptr{GLib._GList{GtkTreePath}}, - (Ptr{GObject}, Ptr{GtkTreeModel}), + Ptr{GLib._GList{Ptr{GtkTreePath}}}, + (Ptr{GObject}, Ptr{Ptr{GtkTreeModel}}), selection, model)) iters = GtkTreeIter[] for path in paths - ret, it = iter(model, path) - ret && push!(iters, it) + it = Ref{GtkTreeIter}() + ret = ccall((:gtk_tree_model_get_iter, libgtk), Cint, (Ptr{GObject}, Ptr{GtkTreeIter}, Ptr{GtkTreePath}), + model[], it, path) != 0 + ret && push!(iters, it[]) end iters @@ -700,6 +712,44 @@ function push!(treeView::GtkTreeView, treeColumns::GtkTreeViewColumn...) treeView end +function insert!(treeView::GtkTreeView, index::Integer, treeColumn::GtkTreeViewColumn) + ccall((:gtk_tree_view_insert_column, libgtk), Nothing, (Ptr{GObject}, Ptr{GObject}, Cint), treeView, treeColumn, index - 1) + treeView +end + +function delete!(treeView::GtkTreeView, treeColumns::GtkTreeViewColumn...) + for col in treeColumns + ccall((:gtk_tree_view_remove_column, libgtk), Nothing, (Ptr{GObject}, Ptr{GObject}), treeView, col) + end + treeView +end + +function expand_to_path(tree_view::GtkTreeView, path::GtkTreePath) + return ccall( + (:gtk_tree_view_expand_to_path, libgtk), Cvoid, + (Ptr{GObject}, Ptr{GtkTreePath}), tree_view, path + ) +end + +function treepath(path::AbstractString) + ptr = ccall( + (:gtk_tree_path_new_from_string, libgtk), Ptr{GtkTreePath}, + (Ptr{UInt8},), bytestring(path) + ) + return ptr == C_NULL ? GtkTreePath() : convert(GtkTreePath, ptr) +end + +# There's a method wrapped in GAccessor but tries to convert to a GtkTreeModel, which +# is an interface in Gtk +function model(tree_view::GtkTreeView) + return convert(GtkTreeStore, ccall( + (:gtk_tree_view_get_model, Gtk.libgtk), + Ptr{Gtk.GObject}, + (Ptr{Gtk.GObject},), + tree_view) + ) +end + # TODO Use internal accessor with default values? function path_at_pos(treeView::GtkTreeView, x::Integer, y::Integer) pathPtr = Ref{Ptr{GtkTreePath}}(0) @@ -710,7 +760,7 @@ function path_at_pos(treeView::GtkTreeView, x::Integer, y::Integer) if ret path = GtkTreePath(pathPtr[], true) else - path = GtkTreePath() + path = GtkTreePath() end ret, path end diff --git a/src/long_exports.jl b/src/long_exports.jl index 6d0c40cf..c9b2357e 100644 --- a/src/long_exports.jl +++ b/src/long_exports.jl @@ -76,7 +76,9 @@ export GObject, GtkToggleToolButton, GtkTreeIter, GtkWindow, - GtkEventBox + GtkEventBox, + GtkColorChooserDialog, + GtkColorButton # Gtk interfaces export GTypePlugin, diff --git a/src/long_leaf_exports.jl b/src/long_leaf_exports.jl index 9e051eb8..11a0a760 100644 --- a/src/long_leaf_exports.jl +++ b/src/long_leaf_exports.jl @@ -74,7 +74,9 @@ export @GtkTextBuffer, @GtkToggleButton, @GtkToggleToolButton, - @GtkWindow + @GtkWindow, + @GtkColorChooserDialog, + @GtkColorButton # Gtk objects export @@ -152,7 +154,9 @@ export GtkToggleButtonLeaf, GtkToggleToolButtonLeaf, GtkWindowLeaf, - GtkEventBoxLeaf + GtkEventBoxLeaf, + GtkColorChooserDialogLeaf, + GtkColorButtonLeaf # Gtk3 objects diff --git a/src/menus.jl b/src/menus.jl index 2deeb2ca..aacc8ad5 100644 --- a/src/menus.jl +++ b/src/menus.jl @@ -1,5 +1,3 @@ -#https://developer.gnome.org/gtk2/stable/MenusAndCombos.html - #GtkMenu — A menu widget #GtkMenuBar — A subclass widget for GtkMenuShell which holds GtkMenuItem widgets #GtkMenuItem — The widget used for item in menus diff --git a/src/misc.jl b/src/misc.jl index 66512cb5..6ef899b2 100644 --- a/src/misc.jl +++ b/src/misc.jl @@ -1,5 +1,3 @@ -#https://developer.gnome.org/gtk2/stable/MiscObjects.html - #GtkAdjustment — A GObject representing an adjustable bounded value #GtkArrow — Displays an arrow #GtkCalendar — Displays a calendar and allows the user to select a date @@ -14,5 +12,5 @@ #GtkAccessible — Accessibility support for widgets #GtkEventBox — A widget used to catch events for widgets which do not have their own window -Gtk.@gtktype GtkEventBox +Gtk.@gtktype GtkEventBox GtkEventBoxLeaf() = GtkEventBoxLeaf(ccall((:gtk_event_box_new ,libgtk), Ptr{GObject}, ())) diff --git a/src/precompile.jl b/src/precompile.jl index 42f33b4f..afdf88ff 100644 --- a/src/precompile.jl +++ b/src/precompile.jl @@ -3,17 +3,63 @@ function _precompile_() precompile(Tuple{typeof(__init__)}) precompile(Tuple{typeof(gtk_main)}) precompile(Tuple{Type{GtkWindow},String}) + precompile(Tuple{Type{GtkWindowLeaf},String,Int,Int}) precompile(Tuple{Type{GtkMenu}}) precompile(Tuple{Type{GtkMenuItem},String}) precompile(Tuple{Type{GtkFrameLeaf},Ptr{GObject}}) precompile(Tuple{Type{GtkBox},Symbol}) precompile(Tuple{Type{GtkButtonLeaf},Ptr{GObject}}) precompile(Tuple{Type{GtkToolButton},String}) - precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventScroll}) - precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventMotion}) - precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventButton}) - precompile(Tuple{typeof(signal_emit),GtkEntryLeaf,Symbol,Type}) + precompile(Tuple{Type{GtkToolbar}}) + precompile(Tuple{Type{GtkCanvas},Int,Int}) + # precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventScroll}) + # precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventMotion}) + # precompile(Tuple{typeof(signal_emit),GtkCanvas,String,Type,GdkEventButton}) + # precompile(Tuple{typeof(signal_emit),GtkEntryLeaf,Symbol,Type}) precompile(Tuple{typeof(signal_connect),Function,GtkComboBoxTextLeaf,Symbol}) precompile(Tuple{typeof(setindex!),Dict{Union{WeakRef, GObject},Bool},Bool,GtkTextBufferLeaf}) precompile(Tuple{typeof(notify_realize),Ptr{GObject},GtkCanvas}) + precompile(Tuple{typeof(mouseup_cb),Ptr{GObject},Ptr{GdkEventButton},MouseHandler}) # time: 0.026400313 + precompile(Tuple{typeof(toplevel),GtkCanvas}) # time: 0.023317223 + precompile(Tuple{typeof(notify_motion),Ptr{GObject},Ptr{GdkEventMotion},Gtk_signal_motion{MouseHandler}}) # time: 0.001248276 + precompile(Tuple{typeof(canvas_on_draw_event),Ptr{GObject},Ptr{Nothing},GtkCanvas}) # time: 0.001126875 + precompile(Tuple{typeof(mousedown_cb),Ptr{GObject},Ptr{GdkEventButton},MouseHandler}) # time: 0.001090291 + precompile(Tuple{typeof(signal_connect),typeof(notify_realize), GtkCanvas, String, Type{Nothing}, Tuple{}}) + precompile(Tuple{typeof(open_dialog),String,GtkWindowLeaf,Tuple{String}}) + precompile(Tuple{typeof(open_dialog),String,GtkWindowLeaf,Tuple{String,String}}) + precompile(Tuple{typeof(save_dialog),String,GtkWindowLeaf,Tuple{String}}) + precompile(Tuple{Type{GtkFileChooserDialogLeaf},String,GtkWindowLeaf,Int32,Tuple{Tuple{String, Int32}, Tuple{String, Int32}}}) + precompile(Tuple{Type{GtkFileFilterLeaf},String}) + precompile(Tuple{typeof(makefilters!),GtkFileChooser,Tuple{String, String}}) + precompile(Tuple{typeof(draw),GtkCanvas,Bool}) + for T in Any[ + GtkWindowLeaf, + GtkMenuLeaf, + GtkMenuItemLeaf, + GtkFrameLeaf, + GtkBoxLeaf, + GtkButtonLeaf, + GtkToolButtonLeaf, + GtkCanvas, + # GtkWidget, + GtkProgressBarLeaf, + GtkLabelLeaf, + GtkScaleLeaf, + GtkBuilderLeaf, + GtkEntryLeaf, + GtkSpinButtonLeaf, + GtkToggleButtonLeaf, + GtkCheckButtonLeaf, + GtkComboBoxTextLeaf, + GtkAspectFrameLeaf, + # GtkLabel, + GtkAdjustmentLeaf, + # GObject, + GtkTextBufferLeaf, + GtkTextViewLeaf, + # GtkTextBuffer, + GtkGridLeaf, + ] + precompile(Tuple{typeof(GLib.gobject_ref), T}) + end end diff --git a/src/selectors.jl b/src/selectors.jl index 0be181a5..e5ec4fd5 100755 --- a/src/selectors.jl +++ b/src/selectors.jl @@ -1,5 +1,3 @@ -#https://developer.gnome.org/gtk2/stable/SelectorWidgets.html - #GtkColorButton — A button to launch a color selection dialog #GtkColorSelectionDialog — A standard dialog box for selecting a color #GtkColorSelection — A widget used to select a color @@ -178,3 +176,21 @@ function save_dialog_native(title::AbstractString, parent = GtkNullContainer(), GLib.gc_unref(dlg) #destroy(dlg) return selection end + +function GtkColorChooserDialogLeaf(title::AbstractString, parent::GtkContainer; kwargs...) + return GtkColorChooserDialogLeaf(ccall((:gtk_color_chooser_dialog_new, libgtk), Ptr{GObject}, + (Ptr{UInt8}, Ptr{GObject}), + title, parent); kwargs...) +end + +function color_chooser_dialog(title::AbstractString, parent = GtkNullContainer(); kwargs...) + dlg = GtkColorChooserDialog(title, parent; kwargs...) + response = run(dlg) + if response == GConstants.GtkResponseType.OK + selection = GAccessor.rgba(dlg) + else + selection = nothing + end + destroy(dlg) + return selection +end diff --git a/src/short_exports.jl b/src/short_exports.jl index 5d5afd02..16cd0b5d 100644 --- a/src/short_exports.jl +++ b/src/short_exports.jl @@ -78,6 +78,8 @@ const TreeViewColumn = GtkTreeViewColumn const VolumeButton = GtkVolumeButton const Window = GtkWindow const EventBox = GtkEventBox +const ColorChooserDialog = GtkColorChooserDialog +const ColorButton = GtkColorButton export G_, GObject, AboutDialog, @@ -156,7 +158,9 @@ export G_, GObject, TreeViewColumn, VolumeButton, Window, - EventBox + EventBox, + ColorChooserDialog, + ColorButton const TypePlugin = GTypePlugin const Buildable = GtkBuildable diff --git a/src/short_leaf_exports.jl b/src/short_leaf_exports.jl index be191420..f06ecb5a 100644 --- a/src/short_leaf_exports.jl +++ b/src/short_leaf_exports.jl @@ -74,6 +74,8 @@ @g_type_delegate TreeViewColumn = GtkTreeViewColumn @g_type_delegate VolumeButton = GtkVolumeButton @g_type_delegate Window = GtkWindow +@g_type_delegate ColorChooserDialog = GtkColorChooserDialog +@g_type_delegate ColorButton = GtkColorButton export @G_, @AboutDialog, @@ -149,7 +151,9 @@ export @G_, @TreeView, @TreeViewColumn, @VolumeButton, - @Window + @Window, + @ColorChooserDialog, + @ColorButton export G_Leaf, AboutDialogLeaf, @@ -222,7 +226,9 @@ export G_Leaf, TreeViewLeaf, TreeViewColumnLeaf, VolumeButtonLeaf, - WindowLeaf + WindowLeaf, + ColorChooserDialog, + ColorButton # Gtk 3 @g_type_delegate Grid = GtkGrid diff --git a/src/text.jl b/src/text.jl index 953cd110..1f5c6a7e 100644 --- a/src/text.jl +++ b/src/text.jl @@ -1,5 +1,3 @@ -#https://developer.gnome.org/gtk2/stable/TextWidgetObjects.html - #GtkAccelLabel — A label which displays an accelerator key on the right of the text #GtkLabel — A widget that displays a small to medium amount of text @@ -187,7 +185,7 @@ function get_gtk_property(text::TI, key::Symbol, outtype::Type = Any) elseif key === :pixbuf convert(GdkPixbuf, ccall((:gtk_text_iter_get_char, libgtk), Ptr{GdkPixbuf}, (Ptr{GtkTextIter},), text)) else - warn("GtkTextIter doesn't have attribute with key $key") + @warn "GtkTextIter doesn't have attribute with key $key" false end)::outtype end @@ -207,7 +205,7 @@ function set_gtk_property!(text::Mutable{GtkTextIter}, key::Symbol, value) elseif key === :visible_line_offset ccall((:gtk_text_iter_set_visible_line_offset, libgtk), Cint, (Ptr{GtkTextIter}, Cint), text, value) else - warn("GtkTextIter doesn't have attribute with key $key") + @warn "GtkTextIter doesn't have attribute with key $key" false end return text @@ -215,7 +213,6 @@ end Base.:(==)(lhs::TI, rhs::TI) = Bool(ccall((:gtk_text_iter_equal, libgtk), Cint, (Ref{GtkTextIter}, Ref{GtkTextIter}), lhs, rhs)) -Base.:(!=)(lhs::TI, rhs::TI) = !(lhs == rhs) Base.:(<)(lhs::TI, rhs::TI) = ccall((:gtk_text_iter_compare, libgtk), Cint, (Ref{GtkTextIter}, Ref{GtkTextIter}), lhs, rhs) < 0 Base.:(<=)(lhs::TI, rhs::TI) = ccall((:gtk_text_iter_compare, libgtk), Cint, @@ -235,7 +232,7 @@ Base.:-(iter::TI, count::Integer) = (iter = mutable(copy(iter)); skip(iter, -cou """ skip(iter::Mutable{GtkTextIter}, count::Integer) -Moves `iter` `count` characters. Returns a Bool indicating if the move was +Moves `iter` `count` characters. Returns a Bool indicating if the move was successful. """ Base.skip(iter::Mutable{GtkTextIter}, count::Integer) = @@ -248,15 +245,15 @@ Base.skip(iter::Mutable{GtkTextIter}, count::Integer) = Moves `iter` according to the operation specified by `what`. Operations are : -* :forward_line (gtk_text_iter_forward_line) -* :backward_line (gtk_text_iter_backward_line) -* :forward_to_line_end (gtk_text_iter_forward_to_line_end) -* :backward_word_start (gtk_text_iter_forward_word_end) -* :forward_word_end (gtk_text_iter_backward_word_start) -* :backward_sentence_start (gtk_text_iter_backward_sentence_start) -* :forward_sentence_end (gtk_text_iter_forward_sentence_end) +* `:forward_line` (`gtk_text_iter_forward_line`) +* `:backward_line` (`gtk_text_iter_backward_line`) +* `:forward_to_line_end` (`gtk_text_iter_forward_to_line_end`) +* `:backward_word_start` (`gtk_text_iter_forward_word_end`) +* `:forward_word_end` (`gtk_text_iter_backward_word_start`) +* `:backward_sentence_start` (`gtk_text_iter_backward_sentence_start`) +* `:forward_sentence_end` (`gtk_text_iter_forward_sentence_end`) """ -function Base.skip(iter::Mutable{GtkTextIter}, what::Symbol) +function Base.skip(iter::Mutable{GtkTextIter}, what::Symbol) if what === :backward_line Bool(ccall((:gtk_text_iter_backward_line, libgtk), Cint, (Ptr{GtkTextIter},), iter)) @@ -292,15 +289,15 @@ Moves `iter` according to the operation specified by `what` and `count`. Operations are : -* :chars (gtk_text_iter_forward_chars) -* :lines (gtk_text_iter_forward_lines) -* :words (gtk_text_iter_forward_word_ends) -* :word_cursor_positions (gtk_text_iter_forward_cursor_positions) -* :sentences (gtk_text_iter_forward_sentence_ends) -* :visible_words (gtk_text_iter_forward_visible_word_ends) -* :visible_cursor_positions (gtk_text_iter_forward_visible_cursor_positions) -* :visible_lines (gtk_text_iter_forward_visible_lines) -* :line_ends (gtk_text_iter_forward_visible_lines) +* `:chars` (`gtk_text_iter_forward_chars`) +* `:lines` (`gtk_text_iter_forward_lines`) +* `:words` (`gtk_text_iter_forward_word_ends`) +* `:word_cursor_positions` (`gtk_text_iter_forward_cursor_positions`) +* `:sentences` (`gtk_text_iter_forward_sentence_ends`) +* `:visible_words` (`gtk_text_iter_forward_visible_word_ends`) +* `:visible_cursor_positions` (`gtk_text_iter_forward_visible_cursor_positions`) +* `:visible_lines` (`gtk_text_iter_forward_visible_lines`) +* `:line_ends` (`gtk_text_iter_forward_visible_lines`) """ function Base.skip(iter::Mutable{GtkTextIter}, count::Integer, what::Symbol) if what === :char || what === :chars @@ -343,7 +340,7 @@ function Base.skip(iter::Mutable{GtkTextIter}, count::Integer, what::Symbol) # ccall((:gtk_text_iter_set_offset, libgtk), Nothing, (Ptr{Nothing}, Cint), iter, 0) # true else - warn("GtkTextIter doesn't have iterator of type $what") + @warn "GtkTextIter doesn't have iterator of type $what" false end::Bool end @@ -352,13 +349,13 @@ end """ - forward_search(iter::Mutable{GtkTextIter}, + forward_search(iter::Mutable{GtkTextIter}, str::AbstractString, start::Mutable{GtkTextIter}, stop::Mutable{GtkTextIter}, limit::Mutable{GtkTextIter}, flag::Int32) - Implements `gtk_text_iter_forward_search`. +Implements `gtk_text_iter_forward_search`. """ -function forward_search(iter::Mutable{GtkTextIter}, +function forward_search(iter::Mutable{GtkTextIter}, str::AbstractString, start::Mutable{GtkTextIter}, stop::Mutable{GtkTextIter}, limit::Mutable{GtkTextIter}, flag::Int32) @@ -370,13 +367,13 @@ function forward_search(iter::Mutable{GtkTextIter}, end """ - backward_search(iter::Mutable{GtkTextIter}, + backward_search(iter::Mutable{GtkTextIter}, str::AbstractString, start::Mutable{GtkTextIter}, stop::Mutable{GtkTextIter}, limit::Mutable{GtkTextIter}, flag::Int32) - Implements `gtk_text_iter_backward_search`. +Implements `gtk_text_iter_backward_search`. """ -function backward_search(iter::Mutable{GtkTextIter}, +function backward_search(iter::Mutable{GtkTextIter}, str::AbstractString, start::Mutable{GtkTextIter}, stop::Mutable{GtkTextIter}, limit::Mutable{GtkTextIter}, flag::Int32) @@ -392,7 +389,7 @@ end flag = GtkTextSearchFlags.GTK_TEXT_SEARCH_TEXT_ONLY) Search text `str` in buffer in `direction` :forward or :backward starting from -the cursor position in the buffer. +the cursor position in the buffer. Returns a tuple `(found, start, stop)` where `found` indicates whether the search was successful and `start` and `stop` are GtkTextIters containing the location of the match. @@ -449,7 +446,7 @@ done_(r::GtkTextRange, i) = (i == last(r) || done(i, i)) iterate(r::GtkTextRange, i=start_(r)) = done_(r, i) ? nothing : next_(r, i) # this enable the (its:ite).text[String] syntax -function getproperty(obj::GtkTextRange, field::Symbol) +function getproperty(obj::GtkTextRange, field::Symbol) isdefined(obj,field) && return getfield(obj,field) FieldRef(obj, field) end @@ -459,7 +456,7 @@ function get_gtk_property(text::GtkTextRange, key::Symbol, outtype::Type = Any) starttext = first(text) endtext = last(text) return convert(outtype, - if key === :slice + if key === :slice bytestring(ccall((:gtk_text_iter_get_slice, libgtk), Ptr{UInt8}, (Ptr{GtkTextIter}, Ptr{GtkTextIter}), starttext, endtext)) elseif key === :visible_slice @@ -511,12 +508,15 @@ function splice!(text::GtkTextBuffer) text end +setindex!(buffer::GtkTextBuffer, content::String, ::Type{String}) = + ccall((:gtk_text_buffer_set_text, Gtk.libgtk), Nothing, (Ptr{Gtk.GObject}, Ptr{UInt8}, Cint), buffer, content, -1) + """ selection_bounds(buffer::GtkTextBuffer) Returns a tuple `(selected, start, stop)` indicating if text is selected -in the `buffer`, and if so sets the GtkTextIter `start` and `stop` to point to -the selected text. +in the `buffer`, and if so sets the GtkTextIter `start` and `stop` to point to +the selected text. Implements `gtk_text_buffer_get_selection_bounds`. """ @@ -539,15 +539,15 @@ Implements `gtk_text_buffer_select_range`. function select_range(buffer::GtkTextBuffer, ins::TI, bound::TI) ccall((:gtk_text_buffer_select_range, libgtk), Cvoid, (Ptr{GObject}, Ref{GtkTextIter}, Ref{GtkTextIter}), buffer, ins, bound) end -select_range(buffer::GtkTextBuffer, range::GtkTextRange) = select_range(buffer, range.a, range.b) +select_range(buffer::GtkTextBuffer, range::GtkTextRange) = select_range(buffer, range.a, range.b) """ place_cursor(buffer::GtkTextBuffer, it::GtkTextIter) place_cursor(buffer::GtkTextBuffer, pos::Int) -Place the cursor at indicated position. +Place the cursor at indicated position. """ -place_cursor(buffer::GtkTextBuffer, it::GtkTextIter) = +place_cursor(buffer::GtkTextBuffer, it::GtkTextIter) = ccall((:gtk_text_buffer_place_cursor, libgtk), Cvoid, (Ptr{GObject}, Ref{GtkTextIter}), buffer, it) place_cursor(buffer::GtkTextBuffer, pos::Int) = place_cursor(buffer, GtkTextIter(buffer, pos)) place_cursor(buffer::GtkTextBuffer, it::Mutable{GtkTextIter}) = place_cursor(buffer, convert(GtkTextIter,it)) @@ -601,7 +601,7 @@ end Impements `gtk_text_buffer_create_mark`. """ -create_mark(buffer::GtkTextBuffer, mark_name, it::TI, left_gravity::Bool) = +create_mark(buffer::GtkTextBuffer, mark_name, it::TI, left_gravity::Bool) = GtkTextMarkLeaf(ccall((:gtk_text_buffer_create_mark, libgtk), Ptr{GObject}, (Ptr{Gtk.GObject}, Ptr{UInt8}, Ref{GtkTextIter}, Cint), buffer, mark_name, it, left_gravity)) @@ -618,6 +618,16 @@ function gtk_text_view_get_editable(text::GtkTextView) # This is an internal function. Users should use text[:editable, Bool] instead Bool(ccall((:gtk_text_view_get_editable, libgtk), Cint, (Ptr{GObject},), text)) end + +function getindex(text::GtkTextView, sym::Symbol, ::Type{GtkTextBuffer}) + sym === :buffer || error("must supply :buffer, got ", sym) + return convert(GtkTextBuffer, gtk_text_view_get_buffer(text))::GtkTextBuffer +end +function getindex(text::GtkTextView, sym::Symbol, ::Type{Bool}) + sym === :editable || error("must supply :editable, got ", sym) + return convert(Bool, gtk_text_view_get_editable(text))::Bool +end + function insert!(text::GtkTextView, index::TI, child::GtkWidget) index = mutable(index) anchor = ccall((:gtk_text_buffer_create_child_anchor, libgtk), Ptr{Nothing}, @@ -652,6 +662,93 @@ function splice!(text::GtkTextView) text end +""" + scroll_to(view::GtkTextView, mark::GtkTextMark, within_margin::Real, + use_align::Bool, xalign::Real, yalign::Real) + + scroll_to(view::GtkTextView, iter::TI, within_margin::Real, + use_align::Bool, xalign::Real, yalign::Real) + +Implements `gtk_text_view_scroll_to_mark` and `gtk_text_view_scroll_to_iter`. +""" +function scroll_to(view::GtkTextView, mark::GtkTextMark, within_margin::Real, + use_align::Bool, xalign::Real, yalign::Real) + + ccall((:gtk_text_view_scroll_to_mark, libgtk), Nothing, + (Ptr{GObject}, Ptr{GObject}, Cdouble, Cint, Cdouble, Cdouble), + view, mark, within_margin, use_align, xalign, yalign) +end + +function scroll_to(view::GtkTextView, iter::TI, within_margin::Real, + use_align::Bool, xalign::Real, yalign::Real) + + ccall((:gtk_text_view_scroll_to_iter, libgtk), Nothing, + (Ptr{GObject}, Ptr{GtkTextIter}, Cdouble, Cint, Cdouble, Cdouble), + view, iter, within_margin, use_align, xalign, yalign) +end + + +""" + buffer_to_window_coords(view::GtkTextView, buffer_x::Integer, buffer_y::Integer, wintype::Integer = 0) + +Implements `gtk_text_view_buffer_to_window_coords`. +""" +function buffer_to_window_coords(view::GtkTextView, buffer_x::Integer, buffer_y::Integer, wintype::Integer = 0) + window_x, window_y = Gtk.mutable(Cint), Gtk.mutable(Cint) + ccall( + (:gtk_text_view_buffer_to_window_coords, libgtk), Cvoid, + (Ptr{Gtk.GObject}, Cint, Cint, Cint, Ptr{Cint}, Ptr{Cint}), + view, Int32(wintype), buffer_x, buffer_y, window_x, window_y + ) + return (window_x[], window_y[]) +end + +""" + window_to_buffer_coords(view::Gtk.GtkTextView, window_x::Integer, window_y::Integer, wintype::Integer = 2) + +Implements `gtk_text_view_window_to_buffer_coords`. +""" +function window_to_buffer_coords(view::GtkTextView, window_x::Integer, window_y::Integer, wintype::Integer = 2) + buffer_x, buffer_y = Gtk.mutable(Cint), Gtk.mutable(Cint) + ccall( + (:gtk_text_view_window_to_buffer_coords, libgtk), Cvoid, + (Ptr{GObject}, Cint, Cint, Cint, Ptr{Cint}, Ptr{Cint}), + view, Int32(wintype), window_x, window_y, buffer_x, buffer_y + ) + return (buffer_x[],buffer_y[]) +end + +""" + text_iter_at_position(view::GtkTextView, x::Integer, y::Integer) + +Implements `gtk_text_view_get_iter_at_position`. +""" +function text_iter_at_position(view::GtkTextView, x::Integer, y::Integer) + buffer = view.buffer[GtkTextBuffer] + iter = mutable(GtkTextIter(buffer)) + text_iter_at_position(view, iter, C_NULL, Int32(x), Int32(y)) + return GtkTextIter(buffer, char_offset(iter)) +end + +text_iter_at_position(view::GtkTextView, iter::Mutable{GtkTextIter}, trailing, x::Int32, y::Int32) = ccall( + (:gtk_text_view_get_iter_at_position, libgtk), Cvoid, + (Ptr{GObject}, Ptr{GtkTextIter}, Ptr{Cint}, Cint, Cint), + view, iter, trailing, x, y +) + +function cursor_locations(view::GtkTextView) + weak = Gtk.mutable(GdkRectangle) + strong = Gtk.mutable(GdkRectangle) + buffer = view.buffer[GtkTextBuffer] + iter = mutable(GtkTextIter(buffer, buffer.cursor_position[Int])) + + ccall( + (:gtk_text_view_get_cursor_locations, libgtk), Cvoid, + (Ptr{GObject}, Ptr{GtkTextIter}, Ptr{Gtk.GdkRectangle}, Ptr{GdkRectangle}), + view, iter, strong, weak + ) + return (iter, strong[], weak[]) +end #### GtkTextMark #### diff --git a/src/theme.jl b/src/theme.jl index eebdc797..ba886270 100644 --- a/src/theme.jl +++ b/src/theme.jl @@ -3,16 +3,16 @@ function GtkCssProviderLeaf(; data = nothing, filename = nothing) source_count = (data !== nothing) + (filename !== nothing) @assert(source_count <= 1, "GtkCssProvider must have at most one data or filename argument") - provider = GtkCssProviderLeaf(ccall((:gtk_css_provider_get_default, libgtk), Ptr{GObject}, ())) + provider = GtkCssProviderLeaf(ccall((:gtk_css_provider_new, libgtk), Ptr{GObject}, ())) if data !== nothing GError() do error_check - ccall((:gtk_css_provider_load_from_data, libgtk), Bool, + ccall((:gtk_css_provider_load_from_data, libgtk), Bool, (Ptr{GObject}, Ptr{UInt8}, Clong, Ptr{Ptr{GError}}), provider, bytestring(data), -1, error_check) end elseif filename !== nothing GError() do error_check - ccall((:gtk_css_provider_load_from_path, libgtk), Bool, + ccall((:gtk_css_provider_load_from_path, libgtk), Bool, (Ptr{GObject}, Ptr{UInt8}, Ptr{Ptr{GError}}), provider, bytestring(filename), error_check) end @@ -22,6 +22,28 @@ end GtkStyleContextLeaf() = GtkStyleContextLeaf(ccall((:gtk_style_context_new, libgtk), Ptr{GObject}, ())) -push!(context::GtkStyleContext, provider::GObject, priority::Integer) = - ccall((:gtk_style_context_add_provider, libgtk), Nothing, (Ptr{GObject}, Ptr{GObject}, Cuint), - context, provider, priority) +push!(context::GtkStyleContext, provider::GObject, priority::Integer) = ccall( + (:gtk_style_context_add_provider, libgtk), Nothing, (Ptr{GObject}, Ptr{GObject}, Cuint), + context, provider, priority +) + +icon_theme_get_default() = ccall((:gtk_icon_theme_get_default, Gtk.libgtk), Ptr{GObject}, ()) + +icon_theme_append_search_path(icon_theme, path::AbstractString) = ccall( + (:gtk_icon_theme_append_search_path, libgtk), Cvoid, (Ptr{GObject}, Ptr{UInt8}), + icon_theme, path +) + +function icon_theme_load_icon_for_scale(icon_theme, icon_name::AbstractString, size::Integer, scale::Integer, flags::Integer) + local pixbuf::Ptr{GObject} + Gtk.GError() do error_check + pixbuf = ccall( + (:gtk_icon_theme_load_icon_for_scale, libgtk), + Ptr{GObject}, + (Ptr{GObject}, Ptr{UInt8}, Cint, Cint, Cint, Ptr{Ptr{GError}}), + icon_theme, bytestring(icon_name), size, scale, flags, error_check + ) + return pixbuf !== C_NULL + end + return convert(GdkPixbuf, pixbuf) +end \ No newline at end of file diff --git a/src/toolbar.jl b/src/toolbar.jl index d63f2645..8adb4afd 100644 --- a/src/toolbar.jl +++ b/src/toolbar.jl @@ -31,6 +31,7 @@ end length(toolbar::GtkToolbar) = ccall((:gtk_toolbar_get_n_items, libgtk), Cint, (Ptr{GObject},), toolbar) +Base.keys(toolbar::GtkToolbar) = 0:length(toolbar)-1 # FIXME zero-based indexing ### GtkToolButton GtkToolButtonLeaf(stock_id::AbstractString) = GtkToolButtonLeaf( diff --git a/src/windows.jl b/src/windows.jl index 0defc677..1e8198ae 100644 --- a/src/windows.jl +++ b/src/windows.jl @@ -17,9 +17,9 @@ end resize!(win::GtkWindow, w::Integer, h::Integer) = ccall((:gtk_window_resize, libgtk), Nothing, (Ptr{GObject}, Int32, Int32), win, w, h) -present(win::GtkWindow) = ccall((:gtk_window_present, libgtk), Nothing, (Ptr{GObject},), win) +present(win::GtkWindow) = (handle_auto_idle(win); ccall((:gtk_window_present, libgtk), Nothing, (Ptr{GObject},), win)) -fullscreen(win::GtkWindow) = ccall((:gtk_window_fullscreen, libgtk), Nothing, (Ptr{GObject},), win) +fullscreen(win::GtkWindow) = (handle_auto_idle(win); ccall((:gtk_window_fullscreen, libgtk), Nothing, (Ptr{GObject},), win)) unfullscreen(win::GtkWindow) = ccall((:gtk_window_unfullscreen, libgtk), Nothing, (Ptr{GObject},), win) maximize(win::GtkWindow) = ccall((:gtk_window_maximize, libgtk), Nothing, (Ptr{GObject},), win) diff --git a/test/glist.jl b/test/glist.jl new file mode 100644 index 00000000..c2875fac --- /dev/null +++ b/test/glist.jl @@ -0,0 +1,228 @@ +using Gtk.GLib +using Gtk +using Gtk.ShortNames +using Test + +@testset "glist" begin + +@testset "pointers" begin + +w = Window("Window", 400, 300) +nb = Notebook() +w = push!(Window("Notebook"),nb) +l = ccall((:gtk_container_get_children,Gtk.libgtk),Ptr{Gtk._GList{Gtk.GtkWidget}},(Ptr{Gtk.GObject},),w) + +@test eltype(l)==Gtk.GtkWidget + +@test !isempty(l) +@test length(l)==1 +@test l[1]==nb + +for item in l + @test item==nb +end + +end + +@testset "string" begin + +g = GList(String) + +@test ndims(g)==1 + +@test isempty(g) + +for i=1:10 + push!(g,string(i)) +end + +@test !isempty(g) + +@test g[1]==string(1) +@test g[2]==string(2) + +@test length(g)==10 +@test g[end]==string(10) + +for (i,item) = enumerate(g) + @test string(i)==item +end + +g2=copy(g) + +for (i,item) = enumerate(g2) + @test string(i)==item +end + +@test popfirst!(g2)==string(1) +@test length(g2)==9 +@test pop!(g2)==string(10) +@test length(g2)==8 + +@test length(g)==10 +@test eachindex(g) == 1:10 + +insert!(g,8,string(25)) +@test length(g)==11 +@test g[8]==string(25) +@test g[9]==string(8) + +pushfirst!(g,string(24)) +@test length(g)==12 +@test g[1]==string(24) +@test g[9]==string(25) + +g[8]="hello" +@test g[8]=="hello" +@test g[9]==string(25) + +reverse!(g) +@test g[end]==string(24) + +g[2]="test" +@test g[2]=="test" + +g3=copy(g) + +append!(g2,g3) +@test length(g2)==20 + +empty!(g) +@test isempty(g) + +# repeat above for GSList +g = GSList(String) + +@test ndims(g)==1 + +@test isempty(g) + +for i=1:10 + push!(g,string(i)) +end + +@test !isempty(g) + +@test g[1]==string(1) +@test g[2]==string(2) + +@test length(g)==10 +@test g[end]==string(10) + +for (i,item) = enumerate(g) + @test string(i)==item +end + +g2=copy(g) + +for (i,item) = enumerate(g2) + @test string(i)==item +end + +@test popfirst!(g2)==string(1) +@test length(g2)==9 +@test pop!(g2)==string(10) +@test length(g2)==8 + +@test length(g)==10 + +insert!(g,8,string(25)) +@test length(g)==11 +@test g[8]==string(25) +@test g[9]==string(8) + +pushfirst!(g,string(24)) +@test length(g)==12 +@test g[1]==string(24) +@test g[9]==string(25) + +g[8]="hello" +@test g[8]=="hello" +@test g[9]==string(25) + +reverse!(g) +@test g[end]==string(24) + +g[2]="test" +@test g[2]=="test" + +g3=copy(g) + +append!(g2,g3) +@test length(g2)==20 + +empty!(g) +@test isempty(g) + +end + +@testset "numbers" begin + +g = GList(Int64) + +@test ndims(g)==1 + +@test isempty(g) + +for i=1:10 + push!(g,i) +end + +@test !isempty(g) + +@test g[1]==1 +@test g[2]==2 + +@test length(g)==10 +@test g[end]==10 + +for (i,item) = enumerate(g) + @test i==item +end + +g2=copy(g) + +for (i,item) = enumerate(g2) + @test i==item +end + +empty!(g) +@test isempty(g) + +# repeat above for SList +g = GSList(Int64) + +@test ndims(g)==1 + +@test isempty(g) + +for i=1:10 + push!(g,i) +end + +@test !isempty(g) + +@test g[1]==1 +@test g[2]==2 + +@test length(g)==10 +@test g[end]==10 + +for (i,item) = enumerate(g) + @test i==item +end + +g2=copy(g) + +for (i,item) = enumerate(g2) + @test i==item +end + +empty!(g) +@test isempty(g) + +end + +GC.gc() + +end diff --git a/test/gui.jl b/test/gui.jl index d4f39f78..0eb42e3c 100755 --- a/test/gui.jl +++ b/test/gui.jl @@ -1,4 +1,5 @@ ## Tests +using Test using Gtk.ShortNames, Gtk.GConstants, Gtk.Graphics import Gtk.deleteat!, Gtk.libgtk_version, Gtk.GtkToolbarStyle, Gtk.GtkFileChooserAction, Gtk.GtkResponseType @@ -48,6 +49,9 @@ mutable struct MyWindow <: Window end end +# For testing callbacks +click(b::Button) = ccall((:gtk_button_clicked,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},),b) + @testset "gui" begin wdth, hght = screen_size() @@ -85,6 +89,9 @@ visible(w,false) visible(w,true) @test visible(w) == true +gw = Gtk.gdk_window(w) +ox, oy = Gtk.get_origin(gw) + hide(w) show(w) grab_focus(w) @@ -125,21 +132,32 @@ end end @testset "Frame" begin +fr=Frame() w = Window( - Frame(), + fr, "Frame", 400, 400) +widgets=[f for f in w] # test iteration over GtkBin +@test length(widgets)==1 +e=[c for c in fr] # test iteration over an empty GtkBin +@test length(e)==0 showall(w) destroy(w) end @testset "Initially Hidden Canvas" begin nb = Notebook() +@test hasparent(nb)==false vbox = Gtk.GtkBox(:v) c = Canvas() push!(nb, vbox, "A") push!(nb, c, "B") +insert!(nb, 2, Label("Something in the middle"), "A*") +pushfirst!(nb, Label("Something at the beginning"), "First") +splice!(nb, 3) w = Window("TestDataViewer",600,600) +@test pagenumber(nb,c)==3 push!(w,nb) +@test parent(nb)==w showall(w) destroy(w) end @@ -165,6 +183,8 @@ showall(w) set_gtk_property!(nb,:page,2) @test get_gtk_property(nb,:page,Int) == 2 showall(w) +empty!(nb) +@test length(nb) == 0 destroy(w) end @@ -175,8 +195,24 @@ pw2 = Paned(:v) push!(w, pw) push!(pw, Button("one")) push!(pw, pw2) -push!(pw2,Button("two")) -push!(pw2,Button("three")) +@test pw[2]==pw2 +@test length(pw) == 2 +@test eachindex(pw) == 1:2 +pw2[1]=Button("two") +pw2[2,true,false]=Button("three") +showall(w) +destroy(w) +end + +@testset "Layout" begin +w = Window("Layout", 400, 400) +l = Layout(600,600) +push!(w,l) +l[300,300]=Button("Button") +s=size(l) +@test s == (600, 600) +@test width(l)==600 +@test height(l)==600 showall(w) destroy(w) end @@ -191,6 +227,9 @@ g1 = Gtk.GtkBox(:h) g2 = Gtk.GtkBox(:h) push!(f,g1) push!(f,g2) +@test f[1]==g1 +@test length(f) == 2 +@test eachindex(f) == 1:2 b11 = Button("first") push!(g1, b11) @@ -212,6 +251,11 @@ set_gtk_property!(g1,:pack_type,b11,0) #GTK_PACK_START set_gtk_property!(g1,:pack_type,b12,0) #GTK_PACK_START set_gtk_property!(g2,:pack_type,b21,1) #GTK_PACK_END set_gtk_property!(g2,:pack_type,b22,1) #GTK_PACK_END +@test get_gtk_property(g1,:pack_type, b11, Int) == 0 + +@test length(g1)==2 +deleteat!(g1,1) +@test length(g1)==1 ## Now shrink window showall(w) @@ -224,8 +268,7 @@ bb = ButtonBox(:h) w = Window(bb, "ButtonBox") cancel = Button("Cancel") ok = Button("OK") -push!(bb, cancel) -push!(bb, ok) +append!(bb, [cancel,ok]) # Expander delete!(w, bb) @@ -238,12 +281,22 @@ end @testset "Grid" begin grid = Grid() w = Window(grid, "Grid", 400, 400) - grid[2,2] = Button("2,2") + b=Button("2,2") + grid[2,2] = b + @test grid[2,2] == b grid[2,3] = Button("2,3") grid[1,1] = "grid" + grid[3,1:3] = Button("Tall button") + @test_broken eachindex(grid) == CartesianIndices(size(grid)) insert!(grid,1,:top) + insert!(grid,3,:bottom) + insert!(grid,grid[1,2],:right) + @test_throws ErrorException insert!(grid,6,:above) + @test_throws ErrorException deleteat!(grid,6,:below) libgtk_version >= v"3.10.0" && deleteat!(grid,1,:row) showall(w) + empty!(grid) + @test length(grid)==0 destroy(w) end @@ -266,8 +319,6 @@ id = signal_connect(b, "clicked") do widget counter::Int += 1 end @test signal_handler_is_connected(b, id) -# For testing callbacks -click(b::Button) = ccall((:gtk_button_clicked,Gtk.libgtk),Nothing,(Ptr{Gtk.GObject},),b) @test counter == 0 click(b) @@ -289,12 +340,37 @@ end icon = Matrix{Gtk.RGB}(undef, 40, 20) fill!(icon, Gtk.RGB(0,0xff,0)) icon[5:end-5, 3:end-3] .= Ref(Gtk.RGB(0,0,0xff)) -b = Button(Image(Pixbuf(data=icon, has_alpha=false))) -w = Window(b, "Icon button", 60, 40) +pb=Pixbuf(data=icon, has_alpha=false) +@test eltype(pb) == Gtk.RGB +@test size(pb) == (40, 20) +@test pb[1,1].g==0xff +pb[10,10]=Gtk.RGB(0,0,0) +pb[20:30,1:5]=Gtk.RGB(0xff,0,0) +w = Window(Button(Image(pb)), "Icon button", 60, 40) showall(w) +pb2=copy(pb) +@test size(pb2,2) == size(pb)[2] +pb3=Gtk.slice(pb2,11:20,11:20) +@test size(pb3) == (10,10) +fill!(pb3,Gtk.RGB(0,0,0)) destroy(w) end +@testset "Transparent pixbuf" begin +icon = Matrix{Gtk.RGBA}(undef, 40, 20) +fill!(icon, Gtk.RGBA(0,0xff,0, 0xff)) +icon[5:end-5, 3:end-3] .= Ref(Gtk.RGBA(0,0,0xff,0x80)) +pb=Pixbuf(data=icon, has_alpha=true) +@test eltype(pb) == Gtk.RGBA +end + +@testset "Icon theme" begin +img = Image(; icon_name = "document-open", size=:BUTTON) +icon_theme = Gtk.icon_theme_get_default() +pb=Gtk.icon_theme_load_icon_for_scale(icon_theme, "document-open", 60, 60, Gtk.GConstants.GtkIconLookupFlags.GTK_ICON_LOOKUP_NO_SVG) +@test isa(pb,GdkPixbuf) +end + @testset "checkbox" begin w = Window("Checkbutton") check = CheckButton("check me"); push!(w,check) @@ -416,6 +492,13 @@ w = Window(b, "VolumeButton", 50, 50)|>showall destroy(w) end +@testset "ColorButton" begin +b = ColorButton(Gtk.GdkRGBA(0, 0.8, 1.0, 0.3)) +w = Window(b, "ColorButton", 50, 50)|>showall +GAccessor.rgba(ColorChooser(b), GLib.mutable(Gtk.GdkRGBA(0, 0, 0, 0))) +destroy(w) +end + @testset "combobox" begin combo = ComboBoxText() choices = ["Strawberry", "Vanilla", "Chocolate"] @@ -423,11 +506,13 @@ for c in choices push!(combo, c) end c = cells(CellLayout(combo)) +@test eachindex(c) == 1:1 set_gtk_property!(c[1],"max_width_chars", 5) w = Window(combo, "ComboGtkBoxText")|>showall lsl = ListStoreLeaf(combo) @test length(lsl) == 3 +@test eachindex(lsl) == CartesianIndices(size(lsl)) empty!(combo) @test length(lsl) == 0 @@ -437,6 +522,9 @@ combo = ComboBoxText(true) for c in choices push!(combo, c) end +pushfirst!(combo, "Rocky road") +insert!(combo, 3, "Pistachio") +delete!(combo, 3) w = Window(combo, "ComboBoxText with entry")|>showall destroy(w) end @@ -465,16 +553,18 @@ pb = ProgressBar() w = Window(pb, "Progress bar")|>showall set_gtk_property!(pb,:fraction,0.7) @test get_gtk_property(pb,:fraction,Float64) == 0.7 +pulse(pb) destroy(w) end @testset "spinner" begin s = Spinner() w = Window(s, "Spinner")|>showall -set_gtk_property!(s,:active,true) +start(s) @test get_gtk_property(s,:active,Bool) == true -set_gtk_property!(s,:active,false) +stop(s) @test get_gtk_property(s,:active,Bool) == false + destroy(w) end @@ -517,6 +607,10 @@ function cb_sbpop(ptr,evt,id) end on_signal_button_press(cb_sbpush, bpush, false, ctxid) on_signal_button_press(cb_sbpop, bpop, false, ctxid) + +click(bpush) +click(bpop) +empty!(sb,ctxid) destroy(w) end @@ -541,14 +635,12 @@ end Gtk.showall(win) sleep(0.5) mtrx = Gtk.Cairo.get_matrix(getgc(cnvs)) - if get(ENV, "CI", nothing) === nothing || !Sys.islinux() - @test mtrx.xx == 300 - @test mtrx.yy == 280 - else - @test_broken mtrx.xx == 300 - @test_broken mtrx.yy == 280 - end + @test mtrx.xx == 300 + @test mtrx.yy == 280 @test mtrx.xy == mtrx.yx == mtrx.x0 == mtrx.y0 == 0 + surf = Gtk.cairo_surface(cnvs) + a = Gtk.allocation(cnvs) + @test isa(a,Gtk.GdkRectangle) end @testset "Menus" begin @@ -615,17 +707,28 @@ end #@test get_value(tr)[1] == choices[2] #destroy(w) -@testset "Selectors" begin +@testset "File Chooser" begin dlg = FileChooserDialog("Select file", Null(), GtkFileChooserAction.OPEN, (("_Cancel", GtkResponseType.CANCEL), ("_Open", GtkResponseType.ACCEPT))) destroy(dlg) end +@testset "Color Chooser" begin +dlg = ColorChooserDialog("Select color", Null()) +destroy(dlg) +end + @testset "List view" begin ls=ListStore(Int32,Bool) -push!(ls,(44,true)) +push!(ls,(42,true)) +ls[1,1]=44 push!(ls,(33,true)) +pushfirst!(ls,(22,false)) +popfirst!(ls) +@test size(ls)==(2,2) +@test eachindex(ls) == CartesianIndices(size(ls)) +@test axes(ls, 1) == axes(ls, 2) == 1:2 insert!(ls, 2, (35, false)) tv=TreeView(TreeModel(ls)) r1=CellRendererText() @@ -634,6 +737,8 @@ c1=TreeViewColumn("A", r1, Dict([("text",0)])) c2=TreeViewColumn("B", r2, Dict([("active",1)])) push!(tv,c1) push!(tv,c2) +delete!(tv, c1) +insert!(tv, 1, c1) w = Window(tv, "List View")|>showall ## selection @@ -646,16 +751,27 @@ iter = selected(selmodel) @test Gtk.index_from_iter(ls, iter) == 1 @test ls[iter, 1] == 44 deleteat!(ls, iter) -@test isvalid(ls, iter) == false +select!(selmodel, Gtk.iter_from_index(ls, 1)) +iter = selected(selmodel) +@test ls[iter, 1] == 35 + +G_.mode(selmodel,Gtk.GConstants.GtkSelectionMode.MULTIPLE) +selectall!(selmodel) +iters = Gtk.selected_rows(selmodel) +@test length(iters) == 2 +@test ls[iters[1],1] == 35 +unselectall!(selmodel) tmSorted=TreeModelSort(ls) G_.model(tv,tmSorted) G_.sort_column_id(TreeSortable(tmSorted),0,GtkSortType.ASCENDING) it = convert_child_iter_to_iter(tmSorted,Gtk.iter_from_index(ls, 1)) +G_.mode(selmodel,Gtk.GConstants.GtkSelectionMode.SINGLE) select!(selmodel, it) iter = selected(selmodel) @test TreeModel(tmSorted)[iter, 1] == 35 +empty!(ls) destroy(w) end @@ -675,6 +791,7 @@ iter = Gtk.iter_from_index(ts, [1]) ts[iter,1] = "ONE" @test ts[iter,1] == "ONE" @test map(i -> ts[i, 1], Gtk.TreeIterator(ts, iter)) == ["two", "three"] +@test Gtk.iter_n_children(TreeModel(ts), iter)==1 destroy(w) end @@ -688,6 +805,9 @@ push!(toolbar,tb1) pushfirst!(toolbar,tb2) push!(toolbar,tb3) push!(toolbar,SeparatorToolItem(), ToggleToolButton("gtk-open"), MenuToolButton("gtk-new")) +@test toolbar[0]==tb2 # FIXME: uses zero based indexing +@test length(toolbar)==6 +@test eachindex(toolbar) == 0:5 # FIXME zero-based indexing G_.style(toolbar,GtkToolbarStyle.BOTH) w = Window(toolbar, "Toolbar")|>showall destroy(w) @@ -762,7 +882,9 @@ destroy(w) end @testset "overlay" begin -o = Overlay() +c = Canvas() +o = Overlay(c) +push!(o,Button("Button")) w = Window(o, "overlay")|>showall destroy(w) end @@ -789,6 +911,17 @@ end destroy(w) end +@testset "Builder" begin +b=Builder(;filename="test.glade") +widgets = [w for w in b] +@test length(widgets)==length(b) +button = b["a_button"] +@test isa(button,Button) +@test isa(b[1],Gtk.GtkWidget) + +@test_throws ErrorException b2 = Builder(;filename="test2.glade") +end + @testset "Subtyping from GObject" begin w = MyWindow() diff --git a/test/list.jl b/test/list.jl index 88a246bf..2d1b882e 100644 --- a/test/list.jl +++ b/test/list.jl @@ -1,4 +1,5 @@ using Gtk +using Test @testset "list" begin diff --git a/test/misc.jl b/test/misc.jl index b785bee0..347fed78 100644 --- a/test/misc.jl +++ b/test/misc.jl @@ -18,19 +18,13 @@ end x+y+k end -printstyled(""" -The following messages: - WARNING: Error in @guarded callback -are expected and a sign of normal operation. -""", color=:green) - @test foo1(3,5) == 8 -@test bar1(3,5) == nothing +@test @test_logs (:warn, "Error in @guarded callback") bar1(3,5) == nothing @test foo2(3,5) == 8 -@test bar2(3,5) == nothing +@test @test_logs (:warn, "Error in @guarded callback") bar2(3,5) == nothing @test foo3(3,5) == 8 -@test bar3(3,5) == nothing -@test bar4(3,5) == unhandled +@test @test_logs (:warn, "Error in @guarded callback") bar3(3,5) == nothing +@test @test_logs (:warn, "Error in @guarded callback") bar4(3,5) == unhandled # Do-block syntax c = GtkCanvas() @@ -44,4 +38,30 @@ destroy(win) @test isa(Gtk.GdkEventKey(), Gtk.GdkEventKey) +@testset "Eventloop control" begin + before = Gtk.auto_idle[] + + Gtk.enable_eventloop(true) + @test Gtk.is_eventloop_running() + + Gtk.auto_idle[] = true + Gtk.pause_eventloop() do + @test !Gtk.is_eventloop_running() + end + @test Gtk.is_eventloop_running() + + Gtk.auto_idle[] = false + Gtk.pause_eventloop() do + @test Gtk.is_eventloop_running() + end + @test Gtk.is_eventloop_running() + + Gtk.pause_eventloop(force = true) do + @test !Gtk.is_eventloop_running() + end + @test Gtk.is_eventloop_running() + + Gtk.auto_idle[] = before +end + end diff --git a/test/runtests.jl b/test/runtests.jl index 04f1bebe..bb838d94 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,9 +2,9 @@ module GtkTestModule using Test, Gtk include("glib.jl") +include("glist.jl") include("gui.jl") include("list.jl") include("misc.jl") include("text.jl") - end diff --git a/test/test.glade b/test/test.glade new file mode 100644 index 00000000..e456fc6a --- /dev/null +++ b/test/test.glade @@ -0,0 +1,57 @@ + + + + + + 100 + 1 + 10 + + + False + + + True + False + vertical + + + Text + True + True + True + + + False + True + 0 + + + + + True + True + + + False + True + 1 + + + + + True + True + adjustment1 + 1 + + + False + True + 2 + + + + + + diff --git a/test/text.jl b/test/text.jl index 0e009306..468d4742 100644 --- a/test/text.jl +++ b/test/text.jl @@ -9,6 +9,7 @@ w = GtkWindow() b = GtkTextBuffer() b.text[String] = "test" v = GtkTextView(b) +@test v[:buffer, GtkTextBuffer] == b push!(w, v) showall(w) @@ -21,7 +22,7 @@ ite = GtkTextIter(b, 2) @test (its:ite).text[String] == "t" splice!(b, its:ite) -@test b.text[String] == "est" +@test b.text[String] == "est" insert!(b, GtkTextIter(b, 1), "t") @test b.text[String] == "test" @@ -44,6 +45,15 @@ it2 = GtkTextIter(b, 2) it2 -= 1 @test mutable(it1) == it2 +# tags +Gtk.create_tag(b, "big"; size_points = 24) +Gtk.create_tag(b, "red"; foreground = "red") +f(buffer)=Gtk.apply_tag(buffer, "big", GtkTextIter(b, 1), GtkTextIter(b, 6)) +user_action(f, b) +Gtk.apply_tag(b, "red", GtkTextIter(b, 1), GtkTextIter(b, 6)) +Gtk.remove_tag(b, "red", GtkTextIter(b, 1), GtkTextIter(b, 3)) +Gtk.remove_all_tags(b, GtkTextIter(b, 4), GtkTextIter(b, 6)) + # getproperty @test it1.offset[Int] == 0 #Gtk indices are zero based @test it2.offset[Int] == 0 @@ -52,7 +62,9 @@ it1 = mutable(it1) it1.offset[Int] = 1 @test it1.offset[Int] == 1 -create_mark(b,it) +mark = create_mark(b, it) +scroll_to(v, mark, 0, true, 0.0, 0.15) +scroll_to(v, it, 0, true, 0.0, 0.15) # skip skip(it2, 1, :line) @@ -68,12 +80,22 @@ it1 = GtkTextIter(b, get_gtk_property(it2, :offset)-1) itc = convert(GtkTextIter, it2) @test get_gtk_property(it2, :offset) == get_gtk_property(itc, :offset) +whats = [:forward_word_end, :backward_word_start, :backward_sentence_start, :forward_sentence_end] +for what in whats + skip(mutable(it1), what) +end +whats = [:char,:line,:word,:word_cursor_position,:sentence,:visible_word,:visible_cursor_position,:visible_line,:line_end] +for what in whats + skip(mutable(it1), 0, what) +end + # place_cursor place_cursor(b, it2) +iter, strong, weak = Gtk.cursor_locations(v) @test get_gtk_property(it2, :is_cursor_position) == true @test b.cursor_position[Int] == get_gtk_property(it2, :offset) -# search +# search (found, its, ite) = Gtk.search(b, "line1", :backward) @test found == true @test (its:ite).text[String] == "line1" @@ -83,13 +105,29 @@ place_cursor(b, ite) @test found == true @test (its:ite).text[String] == "line2" +# GtkTextRange +range=its:ite +@test_broken eachindex(range) == 1:5 +@test range[1] == 'l' +@test range[5] == '2' +@test_throws BoundsError range[10] + # selection select_range(b, its, ite) (selected, start, stop) = selection_bounds(b) @test selected == true @test (start:stop).text[String] == "line2" +insert!(v, start, "inserted text") + +# coords +wx, wy = Gtk.buffer_to_window_coords(v, 3, 2, 2) +bx, by = Gtk.window_to_buffer_coords(v, wx, wy) +@test bx == 3 && by == 2 + +iter = Gtk.text_iter_at_position(v, 3, 2) + destroy(w) end -end \ No newline at end of file +end diff --git a/test/tree.jl b/test/tree.jl index 074ccde0..cf6bd66b 100644 --- a/test/tree.jl +++ b/test/tree.jl @@ -1,5 +1,7 @@ #using Gtk, Test +@testset "tree" begin + window = GtkWindow("GtkTree", 300, 100) boxtop = GtkBox(:v) # vertical box, basic structure @@ -40,6 +42,8 @@ showall(window); push!(store, (1, "London")) iter = push!(store, (2, "Grenoble")) +iter2 = pushfirst!(store, (0, "Slough")) +deleteat!(store, iter2) @test isvalid(store,iter) @test Gtk.ncolumns(treeModel) == 2 @@ -61,9 +65,17 @@ iter = Gtk.iter_from_string_index(store,"0") iter = insert!(store, iter, (0,"Paris"); how = :sibling, where=:before) @test store[iter] == (0,"Paris") +@test store[[1]] == (0,"Paris") + iter = insert!(store, iter, (3,"Paris child"); how = :parent, where=:after) path = Gtk.path(treeModel,iter) @test depth(path) == 2 +@test depth(store, iter) == 1 + +iter = insert!(store, [3], (4, "Barcelona"); how = :sibling, where=:after) +@test store[[4],2] == "Barcelona" +store[[4],2] = "Madrid" +splice!(store, [4]) ## @@ -75,5 +87,10 @@ select!(selection, iter) @test length(selection) == 1 -# this crashes -# iters = Gtk.selected_rows(selection) \ No newline at end of file +iters = Gtk.selected_rows(selection) +@test length(iters) == 1 +@test store[iters[1],1] == 0 + +empty!(store) + +end