gdk3 3.1.6-x86-mingw32 → 3.1.7-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/gdk3/loader.rb +1 -0
- data/vendor/local/bin/gtk-builder-tool.exe +0 -0
- data/vendor/local/bin/gtk-encode-symbolic-svg.exe +0 -0
- data/vendor/local/bin/gtk-launch.exe +0 -0
- data/vendor/local/bin/gtk-query-immodules-3.0.exe +0 -0
- data/vendor/local/bin/gtk-query-settings.exe +0 -0
- data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
- data/vendor/local/bin/gtk3-demo-application.exe +0 -0
- data/vendor/local/bin/gtk3-demo.exe +0 -0
- data/vendor/local/bin/gtk3-icon-browser.exe +0 -0
- data/vendor/local/bin/gtk3-widget-factory.exe +0 -0
- data/vendor/local/bin/libepoxy-0.dll +0 -0
- data/vendor/local/bin/libgailutil-3-0.dll +0 -0
- data/vendor/local/bin/libgdk-3-0.dll +0 -0
- data/vendor/local/bin/libgtk-3-0.dll +0 -0
- data/vendor/local/bin/libgtkreftestprivate-0.dll +0 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkversionmacros.h +1 -1
- data/vendor/local/include/gtk-3.0/gtk/gtktextview.h +1 -2
- data/vendor/local/include/gtk-3.0/gtk/gtkversion.h +3 -3
- data/vendor/local/lib/girepository-1.0/Gtk-3.0.typelib +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules.cache +1 -1
- data/vendor/local/lib/libepoxy.dll.a +0 -0
- data/vendor/local/lib/libgailutil-3.dll.a +0 -0
- data/vendor/local/lib/libgdk-3.dll.a +0 -0
- data/vendor/local/lib/libgdk-3.la +1 -1
- data/vendor/local/lib/libgtk-3.dll.a +0 -0
- data/vendor/local/lib/libgtk-3.la +1 -1
- data/vendor/local/lib/libgtkreftestprivate.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gail-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-win32-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-win32-3.0.pc +1 -1
- data/vendor/local/share/gir-1.0/Gtk-3.0.gir +39 -35
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailMisc.html +22 -22
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailTextUtil.html +4 -4
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDevice.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDeviceManager.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDevicePad.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplay.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDrawingContext.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk3/GdkFrameClock.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/GdkScreen.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cairo-Interaction.html +39 -39
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cursors.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Event-Structures.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Events.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-General.html +7 -7
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Keyboard-Handling.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pango-Interaction.html +54 -54
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pixbufs.html +9 -9
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Points-Rectangles-and-Regions.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Selections.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Threads.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Windows.html +73 -73
- data/vendor/local/share/gtk-doc/html/gdk3/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAboutDialog.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAccelLabel.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkActionable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkActivatable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooser.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAssistant.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBuildable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBuilder.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkButton.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellArea.html +24 -24
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellEditable.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellLayout.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRenderer.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererAccel.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererPixbuf.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererText.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellView.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorButton.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooser.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelection.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBox.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkContainer.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCssProvider.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkDialog.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkDrawingArea.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEditable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEntry.html +42 -42
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEventBox.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEventController.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooser.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontButton.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooser.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelection.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelectionDialog.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGLArea.html +21 -21
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGesture.html +48 -48
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGestureMultiPress.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGestureSingle.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHeaderBar.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContext.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIconTheme.html +66 -66
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIconView.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkImage.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk3/GtkInvisible.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLabel.html +35 -35
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLayout.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkListStore.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenu.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuShell.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMessageDialog.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkOffscreenWindow.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkOverlay.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPadController.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPaned.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPaperSize.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPlacesSidebar.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPlug.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPopover.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintContext.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintJob.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkProgressBar.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRange.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooser.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentManager.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScale.html +19 -21
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrolledWindow.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchBar.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchEntry.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSettings.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSocket.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinButton.html +10 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusIcon.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyle.html +77 -77
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleContext.html +94 -94
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleProvider.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextBuffer.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextIter.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTag.html +51 -51
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextView.html +38 -32
- data/vendor/local/share/gtk-doc/html/gtk3/GtkThemingEngine.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItem.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItemGroup.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolPalette.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolShell.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTooltip.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModel.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSortable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeStore.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeView.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeViewColumn.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkViewport.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWidget.html +323 -323
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWindow.html +61 -59
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWindowGroup.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/ch01s05.html +0 -2
- data/vendor/local/share/gtk-doc/html/gtk3/ch02.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/ch26s02.html +59 -59
- data/vendor/local/share/gtk-doc/html/gtk3/ch32s05.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/chap-drawing-model.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/chap-input-handling.html +37 -37
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-compiling.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-2-to-3.html +46 -46
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-bonus-points.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-css.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parser-extensions.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-theme-GtkStyleContext-engines.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-question-index.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Accelerator-Maps.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Bindings.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Clipboards.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Drag-and-Drop.html +46 -46
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Feature-Test-Macros.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Filesystem-utilities.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-General.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkGradient.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkSymbolicColor.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkTreeView-drag-and-drop.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-High-level-Printing-API.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html +33 -33
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Orientable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Resource-Files.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Selections.html +46 -46
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Stock-Items.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Testing.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Themeable-Stock-Images.html +21 -21
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3.devhelp2 +1 -0
- data/vendor/local/share/gtk-doc/html/gtk3/index.html +1 -1
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/man/man1/broadwayd.1 +1 -1
- data/vendor/local/share/man/man1/gtk-builder-tool.1 +1 -1
- data/vendor/local/share/man/man1/gtk-encode-symbolic-svg.1 +1 -1
- data/vendor/local/share/man/man1/gtk-launch.1 +1 -1
- data/vendor/local/share/man/man1/gtk-query-immodules-3.0.1 +1 -1
- data/vendor/local/share/man/man1/gtk-query-settings.1 +1 -1
- data/vendor/local/share/man/man1/gtk-update-icon-cache.1 +1 -1
- data/vendor/local/share/man/man1/gtk3-demo-application.1 +1 -1
- data/vendor/local/share/man/man1/gtk3-demo.1 +1 -1
- data/vendor/local/share/man/man1/gtk3-icon-browser.1 +1 -1
- data/vendor/local/share/man/man1/gtk3-widget-factory.1 +1 -1
- metadata +10 -10
@@ -242,7 +242,7 @@
|
|
242
242
|
<span class="lineart">├──</span> <a class="link" href="GtkWindowGroup.html" title="GtkWindowGroup">GtkWindowGroup</a>
|
243
243
|
<span class="lineart">├──</span> <a class="link" href="GtkTooltip.html" title="GtkTooltip">GtkTooltip</a>
|
244
244
|
<span class="lineart">╰──</span> <a class="link" href="GtkPrinter.html#GtkPrintBackend">GtkPrintBackend</a>
|
245
|
-
<a href="/home/
|
245
|
+
<a href="/home/mclasen/gnome/share/gtk-doc/html/gobject/GTypeModule.html">GInterface</a>
|
246
246
|
<span class="lineart">├──</span> <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>
|
247
247
|
<span class="lineart">├──</span> <a class="link" href="GtkActionable.html" title="GtkActionable">GtkActionable</a>
|
248
248
|
<span class="lineart">├──</span> <a class="link" href="GtkActivatable.html" title="GtkActivatable">GtkActivatable</a>
|
@@ -263,7 +263,7 @@
|
|
263
263
|
<span class="lineart">├──</span> <a class="link" href="gtk3-High-level-Printing-API.html#GtkPrintOperationPreview">GtkPrintOperationPreview</a>
|
264
264
|
<span class="lineart">├──</span> <a class="link" href="GtkRecentChooser.html" title="GtkRecentChooser">GtkRecentChooser</a>
|
265
265
|
<span class="lineart">╰──</span> <a class="link" href="GtkToolShell.html" title="GtkToolShell">GtkToolShell</a>
|
266
|
-
<a href="/home/
|
266
|
+
<a href="/home/mclasen/gnome/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a>
|
267
267
|
<span class="lineart">├──</span> <a class="link" href="GtkPaperSize.html" title="GtkPaperSize">GtkPaperSize</a>
|
268
268
|
<span class="lineart">├──</span> <a class="link" href="GtkTextIter.html" title="GtkTextIter">GtkTextIter</a>
|
269
269
|
<span class="lineart">├──</span> <a class="link" href="gtk3-Selections.html#GtkSelectionData">GtkSelectionData</a>
|
@@ -415,86 +415,86 @@
|
|
415
415
|
<tbody>
|
416
416
|
<tr>
|
417
417
|
<td><span class="type">GdkRegion</span></td>
|
418
|
-
<td><
|
418
|
+
<td><span class="type">cairo_region_t</span></td>
|
419
419
|
</tr>
|
420
420
|
<tr>
|
421
|
-
<td><a href="../
|
422
|
-
<td><
|
421
|
+
<td><a href="../gdk4/gdk4-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a></td>
|
422
|
+
<td><span class="type">cairo_rectangle_int_t</span></td>
|
423
423
|
</tr>
|
424
424
|
<tr>
|
425
|
-
<td><a href="../
|
425
|
+
<td><a href="../gdk4/gdk4-Points-Rectangles-and-Regions.html#gdk-rectangle-intersect"><code class="function">gdk_rectangle_intersect()</code></a></td>
|
426
426
|
<td>this function is still there</td>
|
427
427
|
</tr>
|
428
428
|
<tr>
|
429
|
-
<td><a href="../
|
429
|
+
<td><a href="../gdk4/gdk4-Points-Rectangles-and-Regions.html#gdk-rectangle-union"><code class="function">gdk_rectangle_union()</code></a></td>
|
430
430
|
<td>this function is still there</td>
|
431
431
|
</tr>
|
432
432
|
<tr>
|
433
433
|
<td><code class="function">gdk_region_new()</code></td>
|
434
|
-
<td><
|
434
|
+
<td><code class="function">cairo_region_create()</code></td>
|
435
435
|
</tr>
|
436
436
|
<tr>
|
437
437
|
<td><code class="function">gdk_region_copy()</code></td>
|
438
|
-
<td><
|
438
|
+
<td><code class="function">cairo_region_copy()</code></td>
|
439
439
|
</tr>
|
440
440
|
<tr>
|
441
441
|
<td><code class="function">gdk_region_destroy()</code></td>
|
442
|
-
<td><
|
442
|
+
<td><code class="function">cairo_region_destroy()</code></td>
|
443
443
|
</tr>
|
444
444
|
<tr>
|
445
445
|
<td><code class="function">gdk_region_rectangle()</code></td>
|
446
|
-
<td><
|
446
|
+
<td><code class="function">cairo_region_create_rectangle()</code></td>
|
447
447
|
</tr>
|
448
448
|
<tr>
|
449
449
|
<td><code class="function">gdk_region_get_clipbox()</code></td>
|
450
|
-
<td><
|
450
|
+
<td><code class="function">cairo_region_get_extents()</code></td>
|
451
451
|
</tr>
|
452
452
|
<tr>
|
453
453
|
<td><code class="function">gdk_region_get_rectangles()</code></td>
|
454
454
|
<td>
|
455
|
-
<
|
456
|
-
<
|
455
|
+
<code class="function">cairo_region_num_rectangles()</code> and
|
456
|
+
<code class="function">cairo_region_get_rectangle()</code>
|
457
457
|
</td>
|
458
458
|
</tr>
|
459
459
|
<tr>
|
460
460
|
<td><code class="function">gdk_region_empty()</code></td>
|
461
|
-
<td><
|
461
|
+
<td><code class="function">cairo_region_is_empty()</code></td>
|
462
462
|
</tr>
|
463
463
|
<tr>
|
464
464
|
<td><code class="function">gdk_region_equal()</code></td>
|
465
|
-
<td><
|
465
|
+
<td><code class="function">cairo_region_equal()</code></td>
|
466
466
|
</tr>
|
467
467
|
<tr>
|
468
468
|
<td><code class="function">gdk_region_point_in()</code></td>
|
469
|
-
<td><
|
469
|
+
<td><code class="function">cairo_region_contains_point()</code></td>
|
470
470
|
</tr>
|
471
471
|
<tr>
|
472
472
|
<td><code class="function">gdk_region_rect_in()</code></td>
|
473
|
-
<td><
|
473
|
+
<td><code class="function">cairo_region_contains_rectangle()</code></td>
|
474
474
|
</tr>
|
475
475
|
<tr>
|
476
476
|
<td><code class="function">gdk_region_offset()</code></td>
|
477
|
-
<td><
|
477
|
+
<td><code class="function">cairo_region_translate()</code></td>
|
478
478
|
</tr>
|
479
479
|
<tr>
|
480
480
|
<td><code class="function">gdk_region_union_with_rect()</code></td>
|
481
|
-
<td><
|
481
|
+
<td><code class="function">cairo_region_union_rectangle()</code></td>
|
482
482
|
</tr>
|
483
483
|
<tr>
|
484
484
|
<td><code class="function">gdk_region_intersect()</code></td>
|
485
|
-
<td><
|
485
|
+
<td><code class="function">cairo_region_intersect()</code></td>
|
486
486
|
</tr>
|
487
487
|
<tr>
|
488
488
|
<td><code class="function">gdk_region_union()</code></td>
|
489
|
-
<td><
|
489
|
+
<td><code class="function">cairo_region_union()</code></td>
|
490
490
|
</tr>
|
491
491
|
<tr>
|
492
492
|
<td><code class="function">gdk_region_subtract()</code></td>
|
493
|
-
<td><
|
493
|
+
<td><code class="function">cairo_region_subtract()</code></td>
|
494
494
|
</tr>
|
495
495
|
<tr>
|
496
496
|
<td><code class="function">gdk_region_xor()</code></td>
|
497
|
-
<td><
|
497
|
+
<td><code class="function">cairo_region_xor()</code></td>
|
498
498
|
</tr>
|
499
499
|
<tr>
|
500
500
|
<td><code class="function">gdk_region_shrink()</code></td>
|
@@ -551,10 +551,10 @@ GdkColor fg <span class="gtkdoc opt">= {</span> <span class="number">0</span><sp
|
|
551
551
|
|
552
552
|
pixmap <span class="gtkdoc opt">=</span> <span class="function">gdk_pixmap_new</span> <span class="gtkdoc opt">(</span>NULL<span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">);</span>
|
553
553
|
|
554
|
-
cr <span class="gtkdoc opt">=</span> <span class="function"
|
555
|
-
<span class="function"
|
556
|
-
<span class="function"
|
557
|
-
<span class="function"
|
554
|
+
cr <span class="gtkdoc opt">=</span> <span class="function">gdk_cairo_create</span> <span class="gtkdoc opt">(</span>pixmap<span class="gtkdoc opt">);</span>
|
555
|
+
<span class="function">cairo_rectangle</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">);</span>
|
556
|
+
<span class="function">cairo_fill</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
557
|
+
<span class="function">cairo_destroy</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
558
558
|
|
559
559
|
cursor <span class="gtkdoc opt">=</span> <span class="function">gdk_cursor_new_from_pixmap</span> <span class="gtkdoc opt">(</span>pixmap<span class="gtkdoc opt">,</span> pixmap<span class="gtkdoc opt">, &</span>fg<span class="gtkdoc opt">, &</span>fg<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
|
560
560
|
|
@@ -597,19 +597,19 @@ cairo_surface_t <span class="gtkdoc opt">*</span>s<span class="gtkdoc opt">;</sp
|
|
597
597
|
cairo_t <span class="gtkdoc opt">*</span>cr<span class="gtkdoc opt">;</span>
|
598
598
|
GdkPixbuf <span class="gtkdoc opt">*</span>pixbuf<span class="gtkdoc opt">;</span>
|
599
599
|
|
600
|
-
s <span class="gtkdoc opt">=</span> <span class="function"
|
601
|
-
cr <span class="gtkdoc opt">=</span> <span class="function"
|
602
|
-
<span class="function"
|
603
|
-
<span class="function"
|
604
|
-
<span class="function"
|
600
|
+
s <span class="gtkdoc opt">=</span> <span class="function">cairo_image_surface_create</span> <span class="gtkdoc opt">(</span>CAIRO_FORMAT_A1<span class="gtkdoc opt">,</span> <span class="number">3</span><span class="gtkdoc opt">,</span> <span class="number">3</span><span class="gtkdoc opt">);</span>
|
601
|
+
cr <span class="gtkdoc opt">=</span> <span class="function">cairo_create</span> <span class="gtkdoc opt">(</span>s<span class="gtkdoc opt">);</span>
|
602
|
+
<span class="function">cairo_arc</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> <span class="number">1.5</span><span class="gtkdoc opt">,</span> <span class="number">1.5</span><span class="gtkdoc opt">,</span> <span class="number">1.5</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">2</span> <span class="gtkdoc opt">*</span> M_PI<span class="gtkdoc opt">);</span>
|
603
|
+
<span class="function">cairo_fill</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
604
|
+
<span class="function">cairo_destroy</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
605
605
|
|
606
|
-
pixbuf <span class="gtkdoc opt">=</span> <span class="function"><a href="../
|
606
|
+
pixbuf <span class="gtkdoc opt">=</span> <span class="function"><a href="../gdk4/gdk4-Pixbufs.html#gdk-pixbuf-get-from-surface">gdk_pixbuf_get_from_surface</a></span> <span class="gtkdoc opt">(</span>s<span class="gtkdoc opt">,</span>
|
607
607
|
<span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span>
|
608
608
|
<span class="number">3</span><span class="gtkdoc opt">,</span> <span class="number">3</span><span class="gtkdoc opt">);</span>
|
609
609
|
|
610
|
-
<span class="function"
|
610
|
+
<span class="function">cairo_surface_destroy</span> <span class="gtkdoc opt">(</span>s<span class="gtkdoc opt">);</span>
|
611
611
|
|
612
|
-
cursor <span class="gtkdoc opt">=</span> <span class="function"><a href="../
|
612
|
+
cursor <span class="gtkdoc opt">=</span> <span class="function"><a href="../gdk4/gdk4-Cursors.html#gdk-cursor-new-from-pixbuf">gdk_cursor_new_from_pixbuf</a></span> <span class="gtkdoc opt">(</span>display<span class="gtkdoc opt">,</span> pixbuf<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
|
613
613
|
|
614
614
|
<span class="function"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span> <span class="gtkdoc opt">(</span>pixbuf<span class="gtkdoc opt">);</span></pre></td>
|
615
615
|
</tr>
|
@@ -628,7 +628,7 @@ cursor <span class="gtkdoc opt">=</span> <span class="function"><a href="../html
|
|
628
628
|
<a name="id-1.6.3.4.6"></a>Replace GdkColormap by GdkVisual</h3></div></div></div>
|
629
629
|
<p>
|
630
630
|
For drawing with cairo, it is not necessary to allocate colors, and
|
631
|
-
a <a href="../
|
631
|
+
a <a href="../gdk4/gdk4-Visuals.html#GdkVisual-struct"><span class="type">GdkVisual</span></a> provides enough information for cairo to handle colors
|
632
632
|
in 'native' surfaces. Therefore, <span class="type">GdkColormap</span> and related functions
|
633
633
|
have been removed in GTK+ 3, and visuals are used instead. The
|
634
634
|
colormap-handling functions of <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> (<code class="function">gtk_widget_set_colormap()</code>,
|
@@ -701,10 +701,10 @@ cursor <span class="gtkdoc opt">=</span> <span class="function"><a href="../html
|
|
701
701
|
GtkWidget <span class="gtkdoc opt">*</span>label<span class="gtkdoc opt">)</span>
|
702
702
|
<span class="gtkdoc opt">{</span>
|
703
703
|
GdkScreen <span class="gtkdoc opt">*</span>screen <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidget.html#gtk-widget-get-screen">gtk_widget_get_screen</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_WIDGET</span> <span class="gtkdoc opt">(</span>window<span class="gtkdoc opt">));</span>
|
704
|
-
GdkVisual <span class="gtkdoc opt">*</span>visual <span class="gtkdoc opt">=</span> <span class="function"
|
704
|
+
GdkVisual <span class="gtkdoc opt">*</span>visual <span class="gtkdoc opt">=</span> <span class="function">gdk_screen_get_rgba_visual</span> <span class="gtkdoc opt">(</span>screen<span class="gtkdoc opt">);</span>
|
705
705
|
|
706
706
|
<span class="keyword">if</span> <span class="gtkdoc opt">(</span>visual <span class="gtkdoc opt">==</span> NULL<span class="gtkdoc opt">)</span>
|
707
|
-
visual <span class="gtkdoc opt">=</span> <span class="function"
|
707
|
+
visual <span class="gtkdoc opt">=</span> <span class="function">gdk_screen_get_system_visual</span> <span class="gtkdoc opt">(</span>screen<span class="gtkdoc opt">);</span>
|
708
708
|
|
709
709
|
<span class="function"><a href="GtkWidget.html#gtk-widget-set-visual">gtk_widget_set_visual</a></span> <span class="gtkdoc opt">(</span>window<span class="gtkdoc opt">,</span> visual<span class="gtkdoc opt">);</span>
|
710
710
|
<span class="gtkdoc opt">}</span></pre></td>
|
@@ -722,9 +722,9 @@ cursor <span class="gtkdoc opt">=</span> <span class="function"><a href="../html
|
|
722
722
|
<a name="id-1.6.3.4.7"></a>GdkDrawable is gone</h3></div></div></div>
|
723
723
|
<p>
|
724
724
|
<span class="type">GdkDrawable</span> has been removed in GTK+ 3, together with <span class="type">GdkPixmap</span>
|
725
|
-
and <span class="type">GdkImage</span>. The only remaining drawable class is <a href="../
|
726
|
-
For dealing with image data, you should use a <
|
727
|
-
a <a href="
|
725
|
+
and <span class="type">GdkImage</span>. The only remaining drawable class is <a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a>.
|
726
|
+
For dealing with image data, you should use a <span class="type">cairo_surface_t</span> or
|
727
|
+
a <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a>.
|
728
728
|
</p>
|
729
729
|
<p>
|
730
730
|
GdkDrawable functions that are useful with windows have been replaced
|
@@ -744,26 +744,26 @@ cursor <span class="gtkdoc opt">=</span> <span class="function"><a href="../html
|
|
744
744
|
<tbody>
|
745
745
|
<tr>
|
746
746
|
<td><code class="function">gdk_drawable_get_visual()</code></td>
|
747
|
-
<td><
|
747
|
+
<td><code class="function">gdk_window_get_visual()</code></td>
|
748
748
|
</tr>
|
749
749
|
<tr>
|
750
750
|
<td><code class="function">gdk_drawable_get_size()</code></td>
|
751
751
|
<td>
|
752
|
-
<a href="../
|
753
|
-
<a href="../
|
752
|
+
<a href="../gdk4/gdk4-Windows.html#gdk-window-get-width"><code class="function">gdk_window_get_width()</code></a>
|
753
|
+
<a href="../gdk4/gdk4-Windows.html#gdk-window-get-height"><code class="function">gdk_window_get_height()</code></a>
|
754
754
|
</td>
|
755
755
|
</tr>
|
756
756
|
<tr>
|
757
757
|
<td><code class="function">gdk_pixbuf_get_from_drawable()</code></td>
|
758
|
-
<td><
|
758
|
+
<td><code class="function">gdk_pixbuf_get_from_window()</code></td>
|
759
759
|
</tr>
|
760
760
|
<tr>
|
761
761
|
<td><code class="function">gdk_drawable_get_clip_region()</code></td>
|
762
|
-
<td><a href="../
|
762
|
+
<td><a href="../gdk4/gdk4-Windows.html#gdk-window-get-clip-region"><code class="function">gdk_window_get_clip_region()</code></a></td>
|
763
763
|
</tr>
|
764
764
|
<tr>
|
765
765
|
<td><code class="function">gdk_drawable_get_visible_region()</code></td>
|
766
|
-
<td><a href="../
|
766
|
+
<td><a href="../gdk4/gdk4-Windows.html#gdk-window-get-visible-region"><code class="function">gdk_window_get_visible_region()</code></a></td>
|
767
767
|
</tr>
|
768
768
|
</tbody>
|
769
769
|
</table></div>
|
@@ -781,7 +781,7 @@ cursor <span class="gtkdoc opt">=</span> <span class="function"><a href="../html
|
|
781
781
|
<p>
|
782
782
|
The special-purpose GdkEventClient events and the <code class="function">gdk_add_client_message_filter()</code> and <code class="function">gdk_display_add_client_message_filter()</code> functions have been
|
783
783
|
removed. Receiving X11 ClientMessage events is still possible, using
|
784
|
-
the general <a href="../
|
784
|
+
the general <a href="../gdk4/gdk4-Windows.html#gdk-window-add-filter"><code class="function">gdk_window_add_filter()</code></a> API. A client message filter like
|
785
785
|
</p>
|
786
786
|
<div class="informalexample">
|
787
787
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
@@ -809,7 +809,7 @@ cursor <span class="gtkdoc opt">=</span> <span class="function"><a href="../html
|
|
809
809
|
|
810
810
|
<span class="gtkdoc opt">...</span>
|
811
811
|
|
812
|
-
message_type <span class="gtkdoc opt">=</span> <span class="function"><a href="../
|
812
|
+
message_type <span class="gtkdoc opt">=</span> <span class="function"><a href="../gdk4/gdk4-Properties-and-Atoms.html#gdk-atom-intern">gdk_atom_intern</a></span> <span class="gtkdoc opt">(</span><span class="string">"MANAGER"</span><span class="gtkdoc opt">,</span> FALSE<span class="gtkdoc opt">);</span>
|
813
813
|
<span class="function">gdk_display_add_client_message_filter</span> <span class="gtkdoc opt">(</span>display<span class="gtkdoc opt">,</span> message_type<span class="gtkdoc opt">,</span> message_filter<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span></pre></td>
|
814
814
|
</tr>
|
815
815
|
</tbody>
|
@@ -864,7 +864,7 @@ message_type <span class="gtkdoc opt">=</span> <span class="function"><a href=".
|
|
864
864
|
|
865
865
|
<span class="gtkdoc opt">...</span>
|
866
866
|
|
867
|
-
<span class="function"><a href="../
|
867
|
+
<span class="function"><a href="../gdk4/gdk4-Windows.html#gdk-window-add-filter">gdk_window_add_filter</a></span> <span class="gtkdoc opt">(</span>NULL<span class="gtkdoc opt">,</span> message_filter<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span></pre></td>
|
868
868
|
</tr>
|
869
869
|
</tbody>
|
870
870
|
</table>
|
@@ -873,7 +873,7 @@ message_type <span class="gtkdoc opt">=</span> <span class="function"><a href=".
|
|
873
873
|
<p>
|
874
874
|
One advantage of using an event filter is that you can actually
|
875
875
|
remove the filter when you don't need it anymore, using
|
876
|
-
<a href="../
|
876
|
+
<a href="../gdk4/gdk4-Windows.html#gdk-window-remove-filter"><code class="function">gdk_window_remove_filter()</code></a>.
|
877
877
|
</p>
|
878
878
|
<p>
|
879
879
|
The other difference to be aware of when working with event filters
|
@@ -881,7 +881,7 @@ message_type <span class="gtkdoc opt">=</span> <span class="function"><a href=".
|
|
881
881
|
means that your application does not receive core X11 key or button
|
882
882
|
events. Instead, all input events are delivered as XIDeviceEvents.
|
883
883
|
As a short-term workaround for this, you can force your application
|
884
|
-
to not use XI2, with <a href="../
|
884
|
+
to not use XI2, with <a href="../gdk4/GdkDeviceManager.html#gdk-disable-multidevice"><code class="function">gdk_disable_multidevice()</code></a>. In the long term,
|
885
885
|
you probably want to rewrite your event filter to deal with
|
886
886
|
XIDeviceEvents.
|
887
887
|
</p>
|
@@ -891,7 +891,7 @@ message_type <span class="gtkdoc opt">=</span> <span class="function"><a href=".
|
|
891
891
|
<a name="id-1.6.3.4.9"></a>Backend-specific code</h3></div></div></div>
|
892
892
|
<p>
|
893
893
|
In GTK+ 2.x, GDK could only be compiled for one backend at a time,
|
894
|
-
and the <a href="../
|
894
|
+
and the <a href="../gdk4/gdk4-General.html#GDK-WINDOWING-X11:CAPS"><code class="literal">GDK_WINDOWING_X11</code></a> or <code class="literal">GDK_WINDOWING_WIN32</code> macros could
|
895
895
|
be used to find out which one you are dealing with:
|
896
896
|
</p>
|
897
897
|
<div class="informalexample">
|
@@ -907,7 +907,7 @@ message_type <span class="gtkdoc opt">=</span> <span class="function"><a href=".
|
|
907
907
|
7</pre></td>
|
908
908
|
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc ppc">#ifdef GDK_WINDOWING_X11</span>
|
909
909
|
<span class="keyword">if</span> <span class="gtkdoc opt">(</span>timestamp <span class="gtkdoc opt">!=</span> GDK_CURRENT_TIME<span class="gtkdoc opt">)</span>
|
910
|
-
<span class="function"><a href="../
|
910
|
+
<span class="function"><a href="../gdk4/gdk4-X-Window-System-Interaction.html#gdk-x11-window-set-user-time">gdk_x11_window_set_user_time</a></span> <span class="gtkdoc opt">(</span>gdk_window<span class="gtkdoc opt">,</span> timestamp<span class="gtkdoc opt">);</span>
|
911
911
|
<span class="gtkdoc ppc">#endif</span>
|
912
912
|
<span class="gtkdoc ppc">#ifdef GDK_WINDOWING_WIN32</span>
|
913
913
|
<span class="comment">/* ... win32 specific code ... */</span>
|
@@ -920,7 +920,7 @@ message_type <span class="gtkdoc opt">=</span> <span class="function"><a href=".
|
|
920
920
|
<p>
|
921
921
|
In GTK+ 3, GDK can be built with multiple backends, and currently
|
922
922
|
used backend has to be determined at runtime, typically using
|
923
|
-
type-check macros on a <a href="../
|
923
|
+
type-check macros on a <a href="../gdk4/GdkDisplay.html#GdkDisplay-struct"><span class="type">GdkDisplay</span></a> or <a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a>. You still need
|
924
924
|
to use the GDK_WINDOWING macros to only compile code referring
|
925
925
|
to supported backends:
|
926
926
|
</p>
|
@@ -950,7 +950,7 @@ message_type <span class="gtkdoc opt">=</span> <span class="function"><a href=".
|
|
950
950
|
<span class="keyword">if</span> <span class="gtkdoc opt">(</span><span class="function">GDK_IS_X11_DISPLAY</span> <span class="gtkdoc opt">(</span>display<span class="gtkdoc opt">))</span>
|
951
951
|
<span class="gtkdoc opt">{</span>
|
952
952
|
<span class="keyword">if</span> <span class="gtkdoc opt">(</span>timestamp <span class="gtkdoc opt">!=</span> GDK_CURRENT_TIME<span class="gtkdoc opt">)</span>
|
953
|
-
<span class="function"><a href="../
|
953
|
+
<span class="function"><a href="../gdk4/gdk4-X-Window-System-Interaction.html#gdk-x11-window-set-user-time">gdk_x11_window_set_user_time</a></span> <span class="gtkdoc opt">(</span>gdk_window<span class="gtkdoc opt">,</span> timestamp<span class="gtkdoc opt">);</span>
|
954
954
|
<span class="gtkdoc opt">}</span>
|
955
955
|
<span class="keyword">else</span>
|
956
956
|
<span class="gtkdoc ppc">#endif</span>
|
@@ -1021,7 +1021,7 @@ message_type <span class="gtkdoc opt">=</span> <span class="function"><a href=".
|
|
1021
1021
|
<a name="id-1.6.3.4.11"></a>The GtkWidget::draw signal</h3></div></div></div>
|
1022
1022
|
<p>
|
1023
1023
|
The GtkWidget <span class="type">“expose-event”</span> signal has been replaced by
|
1024
|
-
a new <a class="link" href="GtkWidget.html#GtkWidget-draw" title="The “draw” signal"><span class="type">“draw”</span></a> signal, which takes a <
|
1024
|
+
a new <a class="link" href="GtkWidget.html#GtkWidget-draw" title="The “draw” signal"><span class="type">“draw”</span></a> signal, which takes a <span class="type">cairo_t</span> instead of
|
1025
1025
|
an expose event. The cairo context is being set up so that the origin
|
1026
1026
|
at (0, 0) coincides with the upper left corner of the widget, and
|
1027
1027
|
is properly clipped.
|
@@ -1109,12 +1109,12 @@ message_type <span class="gtkdoc opt">=</span> <span class="function"><a href=".
|
|
1109
1109
|
Another convenience function that can help when implementing
|
1110
1110
|
::draw for multi-window widgets is <a class="link" href="GtkWidget.html#gtk-cairo-transform-to-window" title="gtk_cairo_transform_to_window ()"><code class="function">gtk_cairo_transform_to_window()</code></a>,
|
1111
1111
|
which transforms a cairo context from widget-relative coordinates
|
1112
|
-
to window-relative coordinates. You may want to use <
|
1113
|
-
<
|
1112
|
+
to window-relative coordinates. You may want to use <code class="function">cairo_save()</code> and
|
1113
|
+
<code class="function">cairo_restore()</code> when modifying the cairo context in your draw function.
|
1114
1114
|
</p>
|
1115
1115
|
<p>
|
1116
1116
|
All GtkStyle drawing functions (<a class="link" href="GtkStyle.html#gtk-paint-box" title="gtk_paint_box ()"><code class="function">gtk_paint_box()</code></a>, etc) have been changed
|
1117
|
-
to take a <
|
1117
|
+
to take a <span class="type">cairo_t</span> instead of a window and a clip area. ::draw
|
1118
1118
|
implementations will usually just use the cairo context that has been
|
1119
1119
|
passed in for this.
|
1120
1120
|
</p>
|
@@ -60,8 +60,8 @@
|
|
60
60
|
behavior than before.
|
61
61
|
</p>
|
62
62
|
<p>
|
63
|
-
The Gtk+ scrolling implementation has changed. <a href="../
|
64
|
-
and <a href="../
|
63
|
+
The Gtk+ scrolling implementation has changed. <a href="../gdk4/gdk4-Windows.html#gdk-window-scroll"><code class="function">gdk_window_scroll()</code></a>
|
64
|
+
and <a href="../gdk4/gdk4-Windows.html#gdk-window-move-region"><code class="function">gdk_window_move_region()</code></a> no longer copy the region on the
|
65
65
|
window, but rather invalidate the entire scrolled region. This is
|
66
66
|
slightly slower, but allowed us to implement a offscreen surface
|
67
67
|
scrolling method which better fits modern hardware. Most scrolling
|
@@ -92,7 +92,7 @@
|
|
92
92
|
<p>
|
93
93
|
The windowing system generates events for native windows. The GDK
|
94
94
|
interface to the windowing system translates such native events into
|
95
|
-
<a href="../
|
95
|
+
<a href="../gdk4/gdk4-Event-Structures.html#GdkEvent"><span class="structname">GdkEvent</span></a>
|
96
96
|
structures and sends them on to the GTK layer. In turn, the GTK layer
|
97
97
|
finds the widget that corresponds to a particular
|
98
98
|
<code class="classname">GdkWindow</code> and emits the corresponding event
|
@@ -44,7 +44,7 @@
|
|
44
44
|
The most basic input devices that every computer user has interacted with are
|
45
45
|
keyboards and mice; beyond these, GTK+ supports touchpads, touchscreens and
|
46
46
|
more exotic input devices such as graphics tablets. Inside GTK+, every such
|
47
|
-
input device is represented by a <a href="../
|
47
|
+
input device is represented by a <a href="../gdk4/GdkDevice.html#GdkDevice-struct"><span class="type">GdkDevice</span></a> object.
|
48
48
|
</p>
|
49
49
|
<p>
|
50
50
|
To simplify dealing with the variability between these input devices, GTK+
|
@@ -67,16 +67,16 @@
|
|
67
67
|
the window with the keyboard focus.
|
68
68
|
</p>
|
69
69
|
<p>
|
70
|
-
GDK translates these raw windowing system events into <a href="../
|
70
|
+
GDK translates these raw windowing system events into <a href="../gdk4/gdk4-Event-Structures.html#GdkEvent"><span class="type">GdkEvents</span></a>.
|
71
71
|
Typical input events are:
|
72
72
|
</p>
|
73
73
|
<table border="0" summary="Simple list" class="simplelist">
|
74
|
-
<tr><td><a href="../
|
75
|
-
<tr><td><a href="../
|
76
|
-
<tr><td><a href="../
|
77
|
-
<tr><td><a href="../
|
78
|
-
<tr><td><a href="../
|
79
|
-
<tr><td><a href="../
|
74
|
+
<tr><td><a href="../gdk4/gdk4-Event-Structures.html#GdkEventButton"><span class="type">GdkEventButton</span></a></td></tr>
|
75
|
+
<tr><td><a href="../gdk4/gdk4-Event-Structures.html#GdkEventMotion"><span class="type">GdkEventMotion</span></a></td></tr>
|
76
|
+
<tr><td><a href="../gdk4/gdk4-Event-Structures.html#GdkEventCrossing"><span class="type">GdkEventCrossing</span></a></td></tr>
|
77
|
+
<tr><td><a href="../gdk4/gdk4-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a></td></tr>
|
78
|
+
<tr><td><a href="../gdk4/gdk4-Event-Structures.html#GdkEventFocus"><span class="type">GdkEventFocus</span></a></td></tr>
|
79
|
+
<tr><td><a href="../gdk4/gdk4-Event-Structures.html#GdkEventTouch"><span class="type">GdkEventTouch</span></a></td></tr>
|
80
80
|
</table>
|
81
81
|
<p>
|
82
82
|
</p>
|
@@ -85,14 +85,14 @@
|
|
85
85
|
grabs (system-wide or in-app) are taking input away:
|
86
86
|
</p>
|
87
87
|
<table border="0" summary="Simple list" class="simplelist">
|
88
|
-
<tr><td><a href="../
|
88
|
+
<tr><td><a href="../gdk4/gdk4-Event-Structures.html#GdkEventGrabBroken"><span class="type">GdkEventGrabBroken</span></a></td></tr>
|
89
89
|
<tr><td><a class="link" href="GtkWidget.html#GtkWidget-grab-notify" title="The “grab-notify” signal"><span class="type">“grab-notify”</span></a></td></tr>
|
90
90
|
</table>
|
91
91
|
<p>
|
92
92
|
</p>
|
93
93
|
<p>
|
94
94
|
When GTK+ is initialized, it sets up an event handler function with
|
95
|
-
<a href="../
|
95
|
+
<a href="../gdk4/gdk4-Events.html#gdk-event-handler-set"><code class="function">gdk_event_handler_set()</code></a>, which receives all of these input events
|
96
96
|
(as well as others, for instance window management related events).
|
97
97
|
</p>
|
98
98
|
</div>
|
@@ -100,7 +100,7 @@
|
|
100
100
|
<div class="refsect2">
|
101
101
|
<a name="event-propagation"></a><h3>Event propagation</h3>
|
102
102
|
<p>
|
103
|
-
For widgets which have a <a href="../
|
103
|
+
For widgets which have a <a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> set, events are received from the
|
104
104
|
windowing system and passed to <a class="link" href="gtk3-General.html#gtk-main-do-event" title="gtk_main_do_event ()"><code class="function">gtk_main_do_event()</code></a>. See its documentation
|
105
105
|
for details of what it does: compression of enter/leave events,
|
106
106
|
identification of the widget receiving the event, pushing the event onto a
|
@@ -108,26 +108,26 @@
|
|
108
108
|
widget.
|
109
109
|
</p>
|
110
110
|
<p>
|
111
|
-
When a GDK backend produces an input event, it is tied to a <a href="../
|
112
|
-
a <a href="../
|
111
|
+
When a GDK backend produces an input event, it is tied to a <a href="../gdk4/GdkDevice.html#GdkDevice-struct"><span class="type">GdkDevice</span></a> and
|
112
|
+
a <a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a>, which in turn represents a windowing system surface in the
|
113
113
|
backend. If a widget has grabbed the current input device, or all input
|
114
114
|
devices, the event is propagated to that <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>. Otherwise, it is
|
115
115
|
propagated to the the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> which called <a class="link" href="GtkWidget.html#gtk-widget-register-window" title="gtk_widget_register_window ()"><code class="function">gtk_widget_register_window()</code></a>
|
116
|
-
on the <a href="../
|
116
|
+
on the <a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> receiving the event.
|
117
117
|
</p>
|
118
118
|
<p>
|
119
119
|
Grabs are implemented for each input device, and globally. A grab for a
|
120
120
|
specific input device (<a class="link" href="gtk3-General.html#gtk-device-grab-add" title="gtk_device_grab_add ()"><code class="function">gtk_device_grab_add()</code></a>), is sent events in
|
121
121
|
preference to a global grab (<a class="link" href="gtk3-General.html#gtk-grab-add" title="gtk_grab_add ()"><code class="function">gtk_grab_add()</code></a>). Input grabs only have effect
|
122
122
|
within the <a class="link" href="GtkWindowGroup.html" title="GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> containing the <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> which registered the
|
123
|
-
event’s <a href="../
|
123
|
+
event’s <a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a>. If this <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> is a child of the grab widget, the
|
124
124
|
event is propagated to the child — this is the basis for propagating
|
125
125
|
events within modal dialogs.
|
126
126
|
</p>
|
127
127
|
<p>
|
128
128
|
An event is propagated to a widget using <a class="link" href="gtk3-General.html#gtk-propagate-event" title="gtk_propagate_event ()"><code class="function">gtk_propagate_event()</code></a>.
|
129
|
-
Propagation differs between event types: key events (<a href="../
|
130
|
-
<a href="../
|
129
|
+
Propagation differs between event types: key events (<a href="../gdk4/gdk4-Events.html#GDK-KEY-PRESS:CAPS"><code class="literal">GDK_KEY_PRESS</code></a>,
|
130
|
+
<a href="../gdk4/gdk4-Events.html#GDK-KEY-RELEASE:CAPS"><code class="literal">GDK_KEY_RELEASE</code></a>) are delivered to the top-level <a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>; other events
|
131
131
|
are propagated down and up the widget hierarchy in three phases (see
|
132
132
|
<a class="link" href="GtkEventController.html#GtkPropagationPhase" title="enum GtkPropagationPhase"><span class="type">GtkPropagationPhase</span></a>).
|
133
133
|
</p>
|
@@ -173,7 +173,7 @@
|
|
173
173
|
<p>
|
174
174
|
Any time during the propagation phase, a widget may indicate that a
|
175
175
|
received event was consumed and propagation should therefore be stopped.
|
176
|
-
In traditional event handlers, this is hinted by returning <a href="../
|
176
|
+
In traditional event handlers, this is hinted by returning <a href="../gdk4/gdk4-Events.html#GDK-EVENT-STOP:CAPS"><code class="literal">GDK_EVENT_STOP</code></a>.
|
177
177
|
If gestures are used, this may happen when the widget tells the gesture
|
178
178
|
to claim the event touch sequence (or the pointer events) for its own. See the
|
179
179
|
"gesture states" section below to know more of the latter.
|
@@ -186,21 +186,21 @@
|
|
186
186
|
Each widget instance has a basic event mask and another per input device,
|
187
187
|
which determine the types of input event it receives. Each event mask set
|
188
188
|
on a widget is added to the corresponding (basic or per-device) event mask
|
189
|
-
for the widget’s <a href="../
|
189
|
+
for the widget’s <a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a>, and all child <a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindows</span></a>.
|
190
190
|
</p>
|
191
191
|
<p>
|
192
192
|
If a widget is windowless (<a class="link" href="GtkWidget.html#gtk-widget-get-has-window" title="gtk_widget_get_has_window ()"><code class="function">gtk_widget_get_has_window()</code></a> returns <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>) and
|
193
193
|
an application wants to receive custom events on it, it must be placed
|
194
194
|
inside a <a class="link" href="GtkEventBox.html" title="GtkEventBox"><span class="type">GtkEventBox</span></a> to receive the events, and an appropriate event mask
|
195
|
-
must be set on the box. When implementing a widget, use a <a href="../
|
196
|
-
<a href="../
|
195
|
+
must be set on the box. When implementing a widget, use a <a href="../gdk4/gdk4-Windows.html#GDK-INPUT-ONLY:CAPS"><code class="literal">GDK_INPUT_ONLY</code></a>
|
196
|
+
<a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> to receive the events instead.
|
197
197
|
</p>
|
198
198
|
<p>
|
199
|
-
Filtering events against event masks happens inside <a href="../
|
199
|
+
Filtering events against event masks happens inside <a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a>, which
|
200
200
|
exposes event masks to the windowing system to reduce the number of events
|
201
201
|
GDK receives from it. On receiving an event, it is filtered against the
|
202
|
-
<a href="../
|
203
|
-
against the <a href="../
|
202
|
+
<a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a>’s mask for the input device, if set. Otherwise, it is filtered
|
203
|
+
against the <a href="../gdk4/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a>’s basic event mask.
|
204
204
|
</p>
|
205
205
|
<p>
|
206
206
|
This means that widgets must add to the event mask for each event type
|
@@ -208,7 +208,7 @@
|
|
208
208
|
<a class="link" href="GtkWidget.html#gtk-widget-add-events" title="gtk_widget_add_events ()"><code class="function">gtk_widget_add_events()</code></a> to preserve the existing mask. Widgets which are
|
209
209
|
aware of floating devices should use <a class="link" href="GtkWidget.html#gtk-widget-set-device-events" title="gtk_widget_set_device_events ()"><code class="function">gtk_widget_set_device_events()</code></a> or
|
210
210
|
<a class="link" href="GtkWidget.html#gtk-widget-add-device-events" title="gtk_widget_add_device_events ()"><code class="function">gtk_widget_add_device_events()</code></a>, and must explicitly enable the device
|
211
|
-
using <a class="link" href="GtkWidget.html#gtk-widget-set-device-enabled" title="gtk_widget_set_device_enabled ()"><code class="function">gtk_widget_set_device_enabled()</code></a>. See the <a href="../
|
211
|
+
using <a class="link" href="GtkWidget.html#gtk-widget-set-device-enabled" title="gtk_widget_set_device_enabled ()"><code class="function">gtk_widget_set_device_enabled()</code></a>. See the <a href="../gdk4/GdkDeviceManager.html#GdkDeviceManager-struct"><span class="type">GdkDeviceManager</span></a>
|
212
212
|
documentation for more information.
|
213
213
|
</p>
|
214
214
|
<p>
|
@@ -221,23 +221,23 @@
|
|
221
221
|
<div class="refsect2">
|
222
222
|
<a name="id-1.2.7.3.6"></a><h3>Touch events</h3>
|
223
223
|
<p>
|
224
|
-
Touch events are emitted as events of type <a href="../
|
225
|
-
<a href="../
|
224
|
+
Touch events are emitted as events of type <a href="../gdk4/gdk4-Events.html#GDK-TOUCH-BEGIN:CAPS"><code class="literal">GDK_TOUCH_BEGIN</code></a>, <a href="../gdk4/gdk4-Events.html#GDK-TOUCH-UPDATE:CAPS"><code class="literal">GDK_TOUCH_UPDATE</code></a> or
|
225
|
+
<a href="../gdk4/gdk4-Events.html#GDK-TOUCH-END:CAPS"><code class="literal">GDK_TOUCH_END</code></a>, those events contain an “event sequence” that univocally identifies
|
226
226
|
the physical touch until it is lifted from the device.
|
227
227
|
</p>
|
228
228
|
<p>
|
229
229
|
On some windowing platforms, multitouch devices perform pointer emulation, this works
|
230
230
|
by granting a “pointer emulating” hint to one of the currently interacting touch
|
231
|
-
sequences, which will be reported on every <a href="../
|
232
|
-
default, if a widget didn't request touch events by setting <a href="../
|
231
|
+
sequences, which will be reported on every <a href="../gdk4/gdk4-Event-Structures.html#GdkEventTouch"><span class="type">GdkEventTouch</span></a> event from that sequence. By
|
232
|
+
default, if a widget didn't request touch events by setting <a href="../gdk4/gdk4-Events.html#GDK-TOUCH-MASK:CAPS"><code class="literal">GDK_TOUCH_MASK</code></a> on its
|
233
233
|
event mask and didn't override <a class="link" href="GtkWidget.html#GtkWidget-touch-event" title="The “touch-event” signal"><span class="type">“touch-event”</span></a>, GTK+ will transform these
|
234
|
-
“pointer emulating” events into semantically similar <a href="../
|
235
|
-
events. Depending on <a href="../
|
234
|
+
“pointer emulating” events into semantically similar <a href="../gdk4/gdk4-Event-Structures.html#GdkEventButton"><span class="type">GdkEventButton</span></a> and <a href="../gdk4/gdk4-Event-Structures.html#GdkEventMotion"><span class="type">GdkEventMotion</span></a>
|
235
|
+
events. Depending on <a href="../gdk4/gdk4-Events.html#GDK-TOUCH-MASK:CAPS"><code class="literal">GDK_TOUCH_MASK</code></a> being in the event mask or not, non-pointer-emulating
|
236
236
|
sequences could still trigger gestures or just get filtered out, regardless of the widget
|
237
237
|
not handling those directly.
|
238
238
|
</p>
|
239
239
|
<p>
|
240
|
-
If the widget sets <a href="../
|
240
|
+
If the widget sets <a href="../gdk4/gdk4-Events.html#GDK-TOUCH-MASK:CAPS"><code class="literal">GDK_TOUCH_MASK</code></a> on its event mask and doesn't chain up on
|
241
241
|
<a class="link" href="GtkWidget.html#GtkWidget-touch-event" title="The “touch-event” signal"><span class="type">“touch-event”</span></a>, only touch events will be received, and no pointer emulation
|
242
242
|
will be performed.
|
243
243
|
</p>
|
@@ -251,8 +251,8 @@
|
|
251
251
|
happen on user interaction, when a <span class="type">GdkEventButtonPress</span> happens, all events from
|
252
252
|
then on, until after the corresponding <span class="type">GdkEventButtonRelease</span>, will be reported
|
253
253
|
to the widget that got the first event. Likewise, on touch events, every
|
254
|
-
<a href="../
|
255
|
-
<a href="../
|
254
|
+
<a href="../gdk4/gdk4-Events.html#GdkEventSequence"><span class="type">GdkEventSequence</span></a> will deliver only events to the widget that received its
|
255
|
+
<a href="../gdk4/gdk4-Events.html#GDK-TOUCH-BEGIN:CAPS"><code class="literal">GDK_TOUCH_BEGIN</code></a> event.
|
256
256
|
</p>
|
257
257
|
<p>
|
258
258
|
Explicit grabs happen programatically (both activation and deactivation),
|
@@ -268,7 +268,7 @@
|
|
268
268
|
This makes it necessary for widgets to handle the cancellation of any ongoing
|
269
269
|
interaction. Depending on whether a GTK or GDK grab is causing this, the
|
270
270
|
widget will respectively receive a <a class="link" href="GtkWidget.html#GtkWidget-grab-notify" title="The “grab-notify” signal"><span class="type">“grab-notify”</span></a> signal, or a
|
271
|
-
<a href="../
|
271
|
+
<a href="../gdk4/gdk4-Event-Structures.html#GdkEventGrabBroken"><span class="type">GdkEventGrabBroken</span></a> event.
|
272
272
|
</p>
|
273
273
|
<p>
|
274
274
|
On gestures, these signals are handled automatically, causing the gesture
|
@@ -284,7 +284,7 @@
|
|
284
284
|
<a name="event-controllers-and-gestures"></a><h3>Event controllers and gestures</h3>
|
285
285
|
<p>
|
286
286
|
Event controllers are standalone objects that can perform specific actions
|
287
|
-
upon received <a href="../
|
287
|
+
upon received <a href="../gdk4/gdk4-Event-Structures.html#GdkEvent"><span class="type">GdkEvents</span></a>. These are tied to a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>, and can be told of
|
288
288
|
the event propagation phase at which they will manage the events.
|
289
289
|
</p>
|
290
290
|
<p>
|
@@ -338,7 +338,7 @@
|
|
338
338
|
Alternatively, or at a later point in time, the widget may choose to deny the touch
|
339
339
|
sequences, thus letting those go through again in event propagation. When this happens
|
340
340
|
in the capture phase, and if there are no other claiming gestures in the widget,
|
341
|
-
a <a href="../
|
341
|
+
a <a href="../gdk4/gdk4-Events.html#GDK-TOUCH-BEGIN:CAPS"><code class="literal">GDK_TOUCH_BEGIN</code></a>/<a href="../gdk4/gdk4-Events.html#GDK-BUTTON-PRESS:CAPS"><code class="literal">GDK_BUTTON_PRESS</code></a> event will be emulated and
|
342
342
|
propagated downwards, in order to preserve consistency.
|
343
343
|
</p>
|
344
344
|
<p>
|