gdk3 3.1.6-x64-mingw32 → 3.1.7-x64-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
@@ -91,7 +91,7 @@
|
|
91
91
|
</tr>
|
92
92
|
<tr>
|
93
93
|
<td class="function_type">
|
94
|
-
<a href="
|
94
|
+
<a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="returnvalue">GdkPixbuf</span></a> *
|
95
95
|
</td>
|
96
96
|
<td class="function_name">
|
97
97
|
<a class="link" href="gdk3-Cursors.html#gdk-cursor-get-image" title="gdk_cursor_get_image ()">gdk_cursor_get_image</a> <span class="c_punctuation">()</span>
|
@@ -99,7 +99,7 @@
|
|
99
99
|
</tr>
|
100
100
|
<tr>
|
101
101
|
<td class="function_type">
|
102
|
-
<
|
102
|
+
<span class="returnvalue">cairo_surface_t</span> *
|
103
103
|
</td>
|
104
104
|
<td class="function_name">
|
105
105
|
<a class="link" href="gdk3-Cursors.html#gdk-cursor-get-surface" title="gdk_cursor_get_surface ()">gdk_cursor_get_surface</a> <span class="c_punctuation">()</span>
|
@@ -239,7 +239,7 @@ See <a class="link" href="gdk3-Cursors.html#gdk-cursor-new-for-display" title="g
|
|
239
239
|
<a name="gdk-cursor-new-from-pixbuf"></a><h3>gdk_cursor_new_from_pixbuf ()</h3>
|
240
240
|
<pre class="programlisting"><a class="link" href="gdk3-Cursors.html#GdkCursor"><span class="returnvalue">GdkCursor</span></a> *
|
241
241
|
gdk_cursor_new_from_pixbuf (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
|
242
|
-
<em class="parameter"><code><a href="
|
242
|
+
<em class="parameter"><code><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
|
243
243
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
|
244
244
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
|
245
245
|
<p>Creates a new cursor from a pixbuf.</p>
|
@@ -275,7 +275,7 @@ sufficently new version of the X Render extension.</p>
|
|
275
275
|
</tr>
|
276
276
|
<tr>
|
277
277
|
<td class="parameter_name"><p>pixbuf</p></td>
|
278
|
-
<td class="parameter_description"><p>the <a href="
|
278
|
+
<td class="parameter_description"><p>the <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a> containing the cursor image</p></td>
|
279
279
|
<td class="parameter_annotations"> </td>
|
280
280
|
</tr>
|
281
281
|
<tr>
|
@@ -302,7 +302,7 @@ sufficently new version of the X Render extension.</p>
|
|
302
302
|
<a name="gdk-cursor-new-from-surface"></a><h3>gdk_cursor_new_from_surface ()</h3>
|
303
303
|
<pre class="programlisting"><a class="link" href="gdk3-Cursors.html#GdkCursor"><span class="returnvalue">GdkCursor</span></a> *
|
304
304
|
gdk_cursor_new_from_surface (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>,
|
305
|
-
<em class="parameter"><code><
|
305
|
+
<em class="parameter"><code><span class="type">cairo_surface_t</span> *surface</code></em>,
|
306
306
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
|
307
307
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre>
|
308
308
|
<p>Creates a new cursor from a cairo image surface.</p>
|
@@ -499,9 +499,9 @@ gdk_cursor_get_display (<em class="parameter"><code><a class="link" href="gdk3-C
|
|
499
499
|
<hr>
|
500
500
|
<div class="refsect2">
|
501
501
|
<a name="gdk-cursor-get-image"></a><h3>gdk_cursor_get_image ()</h3>
|
502
|
-
<pre class="programlisting"><a href="
|
502
|
+
<pre class="programlisting"><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="returnvalue">GdkPixbuf</span></a> *
|
503
503
|
gdk_cursor_get_image (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>);</pre>
|
504
|
-
<p>Returns a <a href="
|
504
|
+
<p>Returns a <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a> with the image used to display the cursor.</p>
|
505
505
|
<p>Note that depending on the capabilities of the windowing system and
|
506
506
|
on the cursor, GDK may not be able to obtain the image data. In this
|
507
507
|
case, <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.</p>
|
@@ -522,7 +522,7 @@ case, <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/
|
|
522
522
|
</div>
|
523
523
|
<div class="refsect3">
|
524
524
|
<a name="gdk-cursor-get-image.returns"></a><h4>Returns</h4>
|
525
|
-
<p> a <a href="
|
525
|
+
<p> a <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a> representing
|
526
526
|
<em class="parameter"><code>cursor</code></em>
|
527
527
|
, or <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
|
528
528
|
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
@@ -532,7 +532,7 @@ case, <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/
|
|
532
532
|
<hr>
|
533
533
|
<div class="refsect2">
|
534
534
|
<a name="gdk-cursor-get-surface"></a><h3>gdk_cursor_get_surface ()</h3>
|
535
|
-
<pre class="programlisting"><
|
535
|
+
<pre class="programlisting"><span class="returnvalue">cairo_surface_t</span> *
|
536
536
|
gdk_cursor_get_surface (<em class="parameter"><code><a class="link" href="gdk3-Cursors.html#GdkCursor"><span class="type">GdkCursor</span></a> *cursor</code></em>,
|
537
537
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *x_hot</code></em>,
|
538
538
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *y_hot</code></em>);</pre>
|
@@ -571,7 +571,7 @@ or <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/htm
|
|
571
571
|
</div>
|
572
572
|
<div class="refsect3">
|
573
573
|
<a name="gdk-cursor-get-surface.returns"></a><h4>Returns</h4>
|
574
|
-
<p> a <
|
574
|
+
<p> a <span class="type">cairo_surface_t</span>
|
575
575
|
representing <em class="parameter"><code>cursor</code></em>
|
576
576
|
, or <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p>
|
577
577
|
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
@@ -183,7 +183,7 @@
|
|
183
183
|
<a name="gdk3-Event-Structures.description"></a><h2>Description</h2>
|
184
184
|
<p>The event structures contain data specific to each type of event in GDK.</p>
|
185
185
|
<div class="blockquote"><blockquote class="blockquote"><p>A common mistake is to forget to set the event mask of a widget so that
|
186
|
-
the required events are received. See <
|
186
|
+
the required events are received. See <code class="function">gtk_widget_set_events()</code>.</p></blockquote></div>
|
187
187
|
</div>
|
188
188
|
<div class="refsect1">
|
189
189
|
<a name="gdk3-Event-Structures.functions_details"></a><h2>Functions</h2>
|
@@ -506,7 +506,7 @@ complete list of GDK key codes.</p></td>
|
|
506
506
|
<td class="struct_member_name"><p><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *<em class="structfield"><code><a name="GdkEventKey.string"></a>string</code></em>;</p></td>
|
507
507
|
<td class="struct_member_description"><p>a string containing an approximation of the text that
|
508
508
|
would result from this keypress. The only correct way to handle text
|
509
|
-
input of text is using input methods (see <a href="
|
509
|
+
input of text is using input methods (see <a href="../gtk4/GtkIMContext.html#GtkIMContext-struct"><span class="type">GtkIMContext</span></a>), so this
|
510
510
|
field is deprecated and should never be used.
|
511
511
|
(<a class="link" href="gdk3-Keyboard-Handling.html#gdk-unicode-to-keyval" title="gdk_unicode_to_keyval ()"><code class="function">gdk_unicode_to_keyval()</code></a> provides a non-deprecated way of getting
|
512
512
|
an approximate translation for a key.) The string is encoded in the
|
@@ -1057,7 +1057,7 @@ redrawn.</p>
|
|
1057
1057
|
<td class="struct_member_annotations"> </td>
|
1058
1058
|
</tr>
|
1059
1059
|
<tr>
|
1060
|
-
<td class="struct_member_name"><p><
|
1060
|
+
<td class="struct_member_name"><p><span class="type">cairo_region_t</span> *<em class="structfield"><code><a name="GdkEventExpose.region"></a>region</code></em>;</p></td>
|
1061
1061
|
<td class="struct_member_description"><p>the region that needs to be redrawn.</p></td>
|
1062
1062
|
<td class="struct_member_annotations"> </td>
|
1063
1063
|
</tr>
|
@@ -451,7 +451,7 @@
|
|
451
451
|
<p>This section describes functions dealing with events from the window
|
452
452
|
system.</p>
|
453
453
|
<p>In GTK+ applications the events are handled automatically in
|
454
|
-
<a href="
|
454
|
+
<a href="../gtk4/gtk4-General.html#gtk-main-do-event"><code class="function">gtk_main_do_event()</code></a> and passed on to the appropriate widgets, so these
|
455
455
|
functions are rarely needed. Though some of the fields in the
|
456
456
|
<a class="link" href="gdk3-Event-Structures.html" title="Event Structures">Event Structures</a> are useful.</p>
|
457
457
|
</div>
|
@@ -1438,7 +1438,7 @@ gdk_event_handler_set (<em class="parameter"><code><a class="link" href="gdk3-Ev
|
|
1438
1438
|
<p>Sets the function to call to handle all events from GDK.</p>
|
1439
1439
|
<p>Note that GTK+ uses this to install its own event handler, so it is
|
1440
1440
|
usually not useful for GTK+ applications. (Although an application
|
1441
|
-
can call this function then call <a href="
|
1441
|
+
can call this function then call <a href="../gtk4/gtk4-General.html#gtk-main-do-event"><code class="function">gtk_main_do_event()</code></a> to pass
|
1442
1442
|
events to GTK+.)</p>
|
1443
1443
|
<div class="refsect3">
|
1444
1444
|
<a name="gdk-event-handler-set.parameters"></a><h4>Parameters</h4>
|
@@ -349,7 +349,7 @@ terminates with a call to <code class="literal">exit(1)</code>.</p>
|
|
349
349
|
and <em class="parameter"><code>argv</code></em>
|
350
350
|
|
351
351
|
are updated accordingly.</p>
|
352
|
-
<p>GTK+ initializes GDK in <a href="
|
352
|
+
<p>GTK+ initializes GDK in <a href="../gtk4/gtk4-General.html#gtk-init"><code class="function">gtk_init()</code></a> and so this function is not usually
|
353
353
|
needed by GTK+ applications.</p>
|
354
354
|
<div class="refsect3">
|
355
355
|
<a name="gdk-init.parameters"></a><h4>Parameters</h4>
|
@@ -386,7 +386,7 @@ returning <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-
|
|
386
386
|
and <em class="parameter"><code>argv</code></em>
|
387
387
|
|
388
388
|
are updated accordingly.</p>
|
389
|
-
<p>GTK+ initializes GDK in <a href="
|
389
|
+
<p>GTK+ initializes GDK in <a href="../gtk4/gtk4-General.html#gtk-init"><code class="function">gtk_init()</code></a> and so this function is not usually
|
390
390
|
needed by GTK+ applications.</p>
|
391
391
|
<div class="refsect3">
|
392
392
|
<a name="gdk-init-check.parameters"></a><h4>Parameters</h4>
|
@@ -428,7 +428,7 @@ use by calls to <a class="link" href="GdkDisplay.html#gdk-display-open" title="g
|
|
428
428
|
are
|
429
429
|
updated accordingly.</p>
|
430
430
|
<p>You shouldn’t call this function explicitly if you are using
|
431
|
-
<a href="
|
431
|
+
<a href="../gtk4/gtk4-General.html#gtk-init"><code class="function">gtk_init()</code></a>, <a href="../gtk4/gtk4-General.html#gtk-init-check"><code class="function">gtk_init_check()</code></a>, <a class="link" href="gdk3-General.html#gdk-init" title="gdk_init ()"><code class="function">gdk_init()</code></a>, or <a class="link" href="gdk3-General.html#gdk-init-check" title="gdk_init_check ()"><code class="function">gdk_init_check()</code></a>.</p>
|
432
432
|
<div class="refsect3">
|
433
433
|
<a name="gdk-parse-args.parameters"></a><h4>Parameters</h4>
|
434
434
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -479,7 +479,7 @@ loading. If the applications opens windows, this function is
|
|
479
479
|
normally called after opening the application’s initial set of
|
480
480
|
windows.</p>
|
481
481
|
<p>GTK+ will call this function automatically after opening the first
|
482
|
-
<a href="
|
482
|
+
<a href="../gtk4/GtkWindow.html#GtkWindow-struct"><span class="type">GtkWindow</span></a> unless <a href="../gtk4/GtkWindow.html#gtk-window-set-auto-startup-notification"><code class="function">gtk_window_set_auto_startup_notification()</code></a> is called
|
483
483
|
to disable that feature.</p>
|
484
484
|
<p class="since">Since: 2.2</p>
|
485
485
|
</div>
|
@@ -490,9 +490,9 @@ to disable that feature.</p>
|
|
490
490
|
gdk_notify_startup_complete_with_id (<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *startup_id</code></em>);</pre>
|
491
491
|
<p>Indicates to the GUI environment that the application has
|
492
492
|
finished loading, using a given identifier.</p>
|
493
|
-
<p>GTK+ will call this function automatically for <a href="
|
493
|
+
<p>GTK+ will call this function automatically for <a href="../gtk4/GtkWindow.html#GtkWindow-struct"><span class="type">GtkWindow</span></a>
|
494
494
|
with custom startup-notification identifier unless
|
495
|
-
<a href="
|
495
|
+
<a href="../gtk4/GtkWindow.html#gtk-window-set-auto-startup-notification"><code class="function">gtk_window_set_auto_startup_notification()</code></a> is called to
|
496
496
|
disable that feature.</p>
|
497
497
|
<div class="refsect3">
|
498
498
|
<a name="gdk-notify-startup-complete-with-id.parameters"></a><h4>Parameters</h4>
|
@@ -545,7 +545,7 @@ that are specified by this function.</p>
|
|
545
545
|
broadway, wayland. You can also include a * in the
|
546
546
|
list to try all remaining backends.</p>
|
547
547
|
<p>This call must happen prior to <a class="link" href="GdkDisplay.html#gdk-display-open" title="gdk_display_open ()"><code class="function">gdk_display_open()</code></a>,
|
548
|
-
<a href="
|
548
|
+
<a href="../gtk4/gtk4-General.html#gtk-init"><code class="function">gtk_init()</code></a>, <code class="function">gtk_init_with_args()</code> or <a href="../gtk4/gtk4-General.html#gtk-init-check"><code class="function">gtk_init_check()</code></a>
|
549
549
|
in order to take effect.</p>
|
550
550
|
<div class="refsect3">
|
551
551
|
<a name="gdk-set-allowed-backends.parameters"></a><h4>Parameters</h4>
|
@@ -91,7 +91,7 @@
|
|
91
91
|
</tr>
|
92
92
|
<tr>
|
93
93
|
<td class="function_type">
|
94
|
-
<a href="
|
94
|
+
<a href="../pango/pango-Bidirectional-Text.html#PangoDirection"><span class="returnvalue">PangoDirection</span></a>
|
95
95
|
</td>
|
96
96
|
<td class="function_name">
|
97
97
|
<a class="link" href="gdk3-Keyboard-Handling.html#gdk-keymap-get-direction" title="gdk_keymap_get_direction ()">gdk_keymap_get_direction</a> <span class="c_punctuation">()</span>
|
@@ -298,7 +298,7 @@
|
|
298
298
|
<p>Key values are the codes which are sent whenever a key is pressed or released.
|
299
299
|
They appear in the <a class="link" href="gdk3-Event-Structures.html#GdkEventKey.keyval"><span class="type">GdkEventKey.keyval</span></a> field of the
|
300
300
|
<a class="link" href="gdk3-Event-Structures.html#GdkEventKey" title="struct GdkEventKey"><span class="type">GdkEventKey</span></a> structure, which is passed to signal handlers for the
|
301
|
-
<a href="
|
301
|
+
<a href="../gtk4/GtkWidget.html#GtkWidget-key-press-event"><span class="type">“key-press-event”</span></a> and <a href="../gtk4/GtkWidget.html#GtkWidget-key-release-event"><span class="type">“key-release-event”</span></a> signals.
|
302
302
|
The complete list of key values can be found in the
|
303
303
|
<code class="literal">gdk/gdkkeysyms.h</code> header file.</p>
|
304
304
|
<p>Key values are regularly updated from the upstream X.org X11 implementation,
|
@@ -711,7 +711,7 @@ and <em class="parameter"><code>keyvals</code></em>
|
|
711
711
|
<hr>
|
712
712
|
<div class="refsect2">
|
713
713
|
<a name="gdk-keymap-get-direction"></a><h3>gdk_keymap_get_direction ()</h3>
|
714
|
-
<pre class="programlisting"><a href="
|
714
|
+
<pre class="programlisting"><a href="../pango/pango-Bidirectional-Text.html#PangoDirection"><span class="returnvalue">PangoDirection</span></a>
|
715
715
|
gdk_keymap_get_direction (<em class="parameter"><code><a class="link" href="gdk3-Keyboard-Handling.html#GdkKeymap"><span class="type">GdkKeymap</span></a> *keymap</code></em>);</pre>
|
716
716
|
<p>Returns the direction of effective layout of the keymap.</p>
|
717
717
|
<div class="refsect3">
|
@@ -731,8 +731,8 @@ gdk_keymap_get_direction (<em class="parameter"><code><a class="link" href="gdk3
|
|
731
731
|
</div>
|
732
732
|
<div class="refsect3">
|
733
733
|
<a name="gdk-keymap-get-direction.returns"></a><h4>Returns</h4>
|
734
|
-
<p> <a href="
|
735
|
-
if it can determine the direction. <a href="
|
734
|
+
<p> <a href="../pango/pango-Bidirectional-Text.html#PANGO-DIRECTION-LTR:CAPS"><code class="literal">PANGO_DIRECTION_LTR</code></a> or <a href="../pango/pango-Bidirectional-Text.html#PANGO-DIRECTION-RTL:CAPS"><code class="literal">PANGO_DIRECTION_RTL</code></a>
|
735
|
+
if it can determine the direction. <a href="../pango/pango-Bidirectional-Text.html#PANGO-DIRECTION-NEUTRAL:CAPS"><code class="literal">PANGO_DIRECTION_NEUTRAL</code></a>
|
736
736
|
otherwise.</p>
|
737
737
|
</div>
|
738
738
|
</div>
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<tbody>
|
42
42
|
<tr>
|
43
43
|
<td class="function_type">
|
44
|
-
<
|
44
|
+
<span class="returnvalue">cairo_region_t</span> *
|
45
45
|
</td>
|
46
46
|
<td class="function_name">
|
47
47
|
<a class="link" href="gdk3-Pango-Interaction.html#gdk-pango-layout-get-clip-region" title="gdk_pango_layout_get_clip_region ()">gdk_pango_layout_get_clip_region</a> <span class="c_punctuation">()</span>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
</tr>
|
50
50
|
<tr>
|
51
51
|
<td class="function_type">
|
52
|
-
<
|
52
|
+
<span class="returnvalue">cairo_region_t</span> *
|
53
53
|
</td>
|
54
54
|
<td class="function_name">
|
55
55
|
<a class="link" href="gdk3-Pango-Interaction.html#gdk-pango-layout-line-get-clip-region" title="gdk_pango_layout_line_get_clip_region ()">gdk_pango_layout_line_get_clip_region</a> <span class="c_punctuation">()</span>
|
@@ -57,7 +57,7 @@
|
|
57
57
|
</tr>
|
58
58
|
<tr>
|
59
59
|
<td class="function_type">
|
60
|
-
<a href="
|
60
|
+
<a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="returnvalue">PangoContext</span></a> *
|
61
61
|
</td>
|
62
62
|
<td class="function_name">
|
63
63
|
<a class="link" href="gdk3-Pango-Interaction.html#gdk-pango-context-get" title="gdk_pango_context_get ()">gdk_pango_context_get</a> <span class="c_punctuation">()</span>
|
@@ -65,7 +65,7 @@
|
|
65
65
|
</tr>
|
66
66
|
<tr>
|
67
67
|
<td class="function_type">
|
68
|
-
<a href="
|
68
|
+
<a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="returnvalue">PangoContext</span></a> *
|
69
69
|
</td>
|
70
70
|
<td class="function_name">
|
71
71
|
<a class="link" href="gdk3-Pango-Interaction.html#gdk-pango-context-get-for-screen" title="gdk_pango_context_get_for_screen ()">gdk_pango_context_get_for_screen</a> <span class="c_punctuation">()</span>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
</tr>
|
74
74
|
<tr>
|
75
75
|
<td class="function_type">
|
76
|
-
<a href="
|
76
|
+
<a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="returnvalue">PangoContext</span></a> *
|
77
77
|
</td>
|
78
78
|
<td class="function_name">
|
79
79
|
<a class="link" href="gdk3-Pango-Interaction.html#gdk-pango-context-get-for-display" title="gdk_pango_context_get_for_display ()">gdk_pango_context_get_for_display</a> <span class="c_punctuation">()</span>
|
@@ -91,20 +91,20 @@
|
|
91
91
|
<a name="gdk3-Pango-Interaction.description"></a><h2>Description</h2>
|
92
92
|
<p>Pango is the text layout system used by GDK and GTK+. The functions
|
93
93
|
and types in this section are used to obtain clip regions for
|
94
|
-
<a href="
|
94
|
+
<a href="../pango/pango-Layout-Objects.html#PangoLayout-struct"><span class="type">PangoLayouts</span></a>, and to get <a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="type">PangoContexts</span></a> that can be used with
|
95
95
|
GDK.</p>
|
96
|
-
<p>Creating a <a href="
|
97
|
-
and requires getting a handle to a <a href="
|
98
|
-
you’ll usually want to use <a href="
|
99
|
-
<a href="
|
100
|
-
<a class="link" href="gdk3-Pango-Interaction.html#gdk-pango-context-get-for-screen" title="gdk_pango_context_get_for_screen ()"><code class="function">gdk_pango_context_get_for_screen()</code></a>. Once you have a <a href="
|
96
|
+
<p>Creating a <a href="../pango/pango-Layout-Objects.html#PangoLayout-struct"><span class="type">PangoLayout</span></a> object is the first step in rendering text,
|
97
|
+
and requires getting a handle to a <a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="type">PangoContext</span></a>. For GTK+ programs,
|
98
|
+
you’ll usually want to use <a href="../gtk4/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>, or
|
99
|
+
<a href="../gtk4/GtkWidget.html#gtk-widget-create-pango-layout"><code class="function">gtk_widget_create_pango_layout()</code></a>, rather than using the lowlevel
|
100
|
+
<a class="link" href="gdk3-Pango-Interaction.html#gdk-pango-context-get-for-screen" title="gdk_pango_context_get_for_screen ()"><code class="function">gdk_pango_context_get_for_screen()</code></a>. Once you have a <a href="../pango/pango-Layout-Objects.html#PangoLayout-struct"><span class="type">PangoLayout</span></a>, you
|
101
101
|
can set the text and attributes of it with Pango functions like
|
102
|
-
<a href="
|
102
|
+
<a href="../pango/pango-Layout-Objects.html#pango-layout-set-text"><code class="function">pango_layout_set_text()</code></a> and get its size with <a href="../pango/pango-Layout-Objects.html#pango-layout-get-size"><code class="function">pango_layout_get_size()</code></a>.
|
103
103
|
(Note that Pango uses a fixed point system internally, so converting
|
104
104
|
between Pango units and pixels using PANGO_SCALE
|
105
|
-
or the <a href="
|
106
|
-
<p>Rendering a Pango layout is done most simply with <a href="
|
107
|
-
you can also draw pieces of the layout with <a href="
|
105
|
+
or the <a href="../pango/pango-Glyph-Storage.html#PANGO-PIXELS:CAPS"><code class="function">PANGO_PIXELS()</code></a> macro.)</p>
|
106
|
+
<p>Rendering a Pango layout is done most simply with <a href="../pango/pango-Cairo-Rendering.html#pango-cairo-show-layout"><code class="function">pango_cairo_show_layout()</code></a>;
|
107
|
+
you can also draw pieces of the layout with <a href="../pango/pango-Cairo-Rendering.html#pango-cairo-show-layout-line"><code class="function">pango_cairo_show_layout_line()</code></a>.</p>
|
108
108
|
<div class="refsect3">
|
109
109
|
<a name="rotated-example"></a><h4>Draw transformed text with Pango and cairo</h4>
|
110
110
|
<div class="informalexample">
|
@@ -193,18 +193,18 @@ width <span class="gtkdoc opt">=</span> <span class="function"><a href="gdk3-Win
|
|
193
193
|
height <span class="gtkdoc opt">=</span> <span class="function"><a href="gdk3-Windows.html#gdk-window-get-height">gdk_window_get_height</a></span> <span class="gtkdoc opt">(</span>window<span class="gtkdoc opt">);</span>
|
194
194
|
radius <span class="gtkdoc opt">=</span> <span class="function"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#MIN:CAPS">MIN</a></span> <span class="gtkdoc opt">(</span>width<span class="gtkdoc opt">,</span> height<span class="gtkdoc opt">) /</span> <span class="number">2</span><span class="gtkdoc opt">.;</span>
|
195
195
|
|
196
|
-
<span class="function"
|
196
|
+
<span class="function">cairo_translate</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span>
|
197
197
|
radius <span class="gtkdoc opt">+ (</span>width <span class="gtkdoc opt">-</span> <span class="number">2</span> <span class="gtkdoc opt">*</span> radius<span class="gtkdoc opt">) /</span> <span class="number">2</span><span class="gtkdoc opt">,</span>
|
198
198
|
radius <span class="gtkdoc opt">+ (</span>height <span class="gtkdoc opt">-</span> <span class="number">2</span> <span class="gtkdoc opt">*</span> radius<span class="gtkdoc opt">) /</span> <span class="number">2</span><span class="gtkdoc opt">);</span>
|
199
|
-
<span class="function"
|
199
|
+
<span class="function">cairo_scale</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> radius <span class="gtkdoc opt">/</span> RADIUS<span class="gtkdoc opt">,</span> radius <span class="gtkdoc opt">/</span> RADIUS<span class="gtkdoc opt">);</span>
|
200
200
|
|
201
201
|
<span class="gtkdoc slc">// Create a PangoLayout, set the font and text</span>
|
202
202
|
context <span class="gtkdoc opt">=</span> <span class="function"><a href="gdk3-Pango-Interaction.html#gdk-pango-context-get-for-screen">gdk_pango_context_get_for_screen</a></span> <span class="gtkdoc opt">(</span>screen<span class="gtkdoc opt">);</span>
|
203
|
-
layout <span class="gtkdoc opt">=</span> <span class="function"><a href="
|
204
|
-
<span class="function"><a href="
|
205
|
-
desc <span class="gtkdoc opt">=</span> <span class="function"><a href="
|
206
|
-
<span class="function"><a href="
|
207
|
-
<span class="function"><a href="
|
203
|
+
layout <span class="gtkdoc opt">=</span> <span class="function"><a href="../pango/pango-Layout-Objects.html#pango-layout-new">pango_layout_new</a></span> <span class="gtkdoc opt">(</span>context<span class="gtkdoc opt">);</span>
|
204
|
+
<span class="function"><a href="../pango/pango-Layout-Objects.html#pango-layout-set-text">pango_layout_set_text</a></span> <span class="gtkdoc opt">(</span>layout<span class="gtkdoc opt">,</span> <span class="string">"Text"</span><span class="gtkdoc opt">, -</span><span class="number">1</span><span class="gtkdoc opt">);</span>
|
205
|
+
desc <span class="gtkdoc opt">=</span> <span class="function"><a href="../pango/pango-Fonts.html#pango-font-description-from-string">pango_font_description_from_string</a></span> <span class="gtkdoc opt">(</span>FONT<span class="gtkdoc opt">);</span>
|
206
|
+
<span class="function"><a href="../pango/pango-Layout-Objects.html#pango-layout-set-font-description">pango_layout_set_font_description</a></span> <span class="gtkdoc opt">(</span>layout<span class="gtkdoc opt">,</span> desc<span class="gtkdoc opt">);</span>
|
207
|
+
<span class="function"><a href="../pango/pango-Fonts.html#pango-font-description-free">pango_font_description_free</a></span> <span class="gtkdoc opt">(</span>desc<span class="gtkdoc opt">);</span>
|
208
208
|
|
209
209
|
<span class="gtkdoc slc">// Draw the layout N_WORDS times in a circle</span>
|
210
210
|
<span class="keyword">for</span> <span class="gtkdoc opt">(</span>i <span class="gtkdoc opt">=</span> <span class="number">0</span><span class="gtkdoc opt">;</span> i <span class="gtkdoc opt"><</span> N_WORDS<span class="gtkdoc opt">;</span> i<span class="gtkdoc opt">++)</span>
|
@@ -212,25 +212,25 @@ desc <span class="gtkdoc opt">=</span> <span class="function"><a href="/home/mcl
|
|
212
212
|
<span class="gtkdoc kwb">double</span> red<span class="gtkdoc opt">,</span> green<span class="gtkdoc opt">,</span> blue<span class="gtkdoc opt">;</span>
|
213
213
|
<span class="gtkdoc kwb">double</span> angle <span class="gtkdoc opt">=</span> <span class="number">2</span> <span class="gtkdoc opt">*</span> G_PI <span class="gtkdoc opt">*</span> i <span class="gtkdoc opt">/</span> n_words<span class="gtkdoc opt">;</span>
|
214
214
|
|
215
|
-
<span class="function"
|
215
|
+
<span class="function">cairo_save</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
216
216
|
|
217
217
|
<span class="gtkdoc slc">// Gradient from red at angle == 60 to blue at angle == 300</span>
|
218
218
|
red <span class="gtkdoc opt">= (</span><span class="number">1</span> <span class="gtkdoc opt">+</span> <span class="function">cos</span> <span class="gtkdoc opt">(</span>angle <span class="gtkdoc opt">-</span> <span class="number">60</span><span class="gtkdoc opt">)) /</span> <span class="number">2</span><span class="gtkdoc opt">;</span>
|
219
219
|
green <span class="gtkdoc opt">=</span> <span class="number">0</span><span class="gtkdoc opt">;</span>
|
220
220
|
blue <span class="gtkdoc opt">=</span> <span class="number">1</span> <span class="gtkdoc opt">-</span> red<span class="gtkdoc opt">;</span>
|
221
221
|
|
222
|
-
<span class="function"
|
223
|
-
<span class="function"
|
222
|
+
<span class="function">cairo_set_source_rgb</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> red<span class="gtkdoc opt">,</span> green<span class="gtkdoc opt">,</span> blue<span class="gtkdoc opt">);</span>
|
223
|
+
<span class="function">cairo_rotate</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> angle<span class="gtkdoc opt">);</span>
|
224
224
|
|
225
225
|
<span class="gtkdoc slc">// Inform Pango to re-layout the text with the new transformation matrix</span>
|
226
|
-
<span class="function"><a href="
|
226
|
+
<span class="function"><a href="../pango/pango-Cairo-Rendering.html#pango-cairo-update-layout">pango_cairo_update_layout</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> layout<span class="gtkdoc opt">);</span>
|
227
227
|
|
228
|
-
<span class="function"><a href="
|
228
|
+
<span class="function"><a href="../pango/pango-Layout-Objects.html#pango-layout-get-size">pango_layout_get_size</a></span> <span class="gtkdoc opt">(</span>layout<span class="gtkdoc opt">, &</span>width<span class="gtkdoc opt">, &</span>height<span class="gtkdoc opt">);</span>
|
229
229
|
|
230
|
-
<span class="function"
|
231
|
-
<span class="function"><a href="
|
230
|
+
<span class="function">cairo_move_to</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">, -</span> width <span class="gtkdoc opt">/</span> <span class="number">2</span> <span class="gtkdoc opt">/</span> PANGO_SCALE<span class="gtkdoc opt">, -</span> DEFAULT_TEXT_RADIUS<span class="gtkdoc opt">);</span>
|
231
|
+
<span class="function"><a href="../pango/pango-Cairo-Rendering.html#pango-cairo-show-layout">pango_cairo_show_layout</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> layout<span class="gtkdoc opt">);</span>
|
232
232
|
|
233
|
-
<span class="function"
|
233
|
+
<span class="function">cairo_restore</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
234
234
|
<span class="gtkdoc opt">}</span>
|
235
235
|
|
236
236
|
<span class="function"><a href="/home/vagrant/ruby-gnome2.win64/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>layout<span class="gtkdoc opt">);</span>
|
@@ -251,8 +251,8 @@ desc <span class="gtkdoc opt">=</span> <span class="function"><a href="/home/mcl
|
|
251
251
|
<a name="gdk3-Pango-Interaction.functions_details"></a><h2>Functions</h2>
|
252
252
|
<div class="refsect2">
|
253
253
|
<a name="gdk-pango-layout-get-clip-region"></a><h3>gdk_pango_layout_get_clip_region ()</h3>
|
254
|
-
<pre class="programlisting"><
|
255
|
-
gdk_pango_layout_get_clip_region (<em class="parameter"><code><a href="
|
254
|
+
<pre class="programlisting"><span class="returnvalue">cairo_region_t</span> *
|
255
|
+
gdk_pango_layout_get_clip_region (<em class="parameter"><code><a href="../pango/pango-Layout-Objects.html#PangoLayout-struct"><span class="type">PangoLayout</span></a> *layout</code></em>,
|
256
256
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x_origin</code></em>,
|
257
257
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y_origin</code></em>,
|
258
258
|
<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *index_ranges</code></em>,
|
@@ -280,7 +280,7 @@ of text, such as when text is selected.</p>
|
|
280
280
|
<tbody>
|
281
281
|
<tr>
|
282
282
|
<td class="parameter_name"><p>layout</p></td>
|
283
|
-
<td class="parameter_description"><p>a <a href="
|
283
|
+
<td class="parameter_description"><p>a <a href="../pango/pango-Layout-Objects.html#PangoLayout-struct"><span class="type">PangoLayout</span></a> </p></td>
|
284
284
|
<td class="parameter_annotations"> </td>
|
285
285
|
</tr>
|
286
286
|
<tr>
|
@@ -316,8 +316,8 @@ of text, such as when text is selected.</p>
|
|
316
316
|
<hr>
|
317
317
|
<div class="refsect2">
|
318
318
|
<a name="gdk-pango-layout-line-get-clip-region"></a><h3>gdk_pango_layout_line_get_clip_region ()</h3>
|
319
|
-
<pre class="programlisting"><
|
320
|
-
gdk_pango_layout_line_get_clip_region (<em class="parameter"><code><a href="
|
319
|
+
<pre class="programlisting"><span class="returnvalue">cairo_region_t</span> *
|
320
|
+
gdk_pango_layout_line_get_clip_region (<em class="parameter"><code><a href="../pango/pango-Layout-Objects.html#PangoLayoutLine-struct"><span class="type">PangoLayoutLine</span></a> *line</code></em>,
|
321
321
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x_origin</code></em>,
|
322
322
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y_origin</code></em>,
|
323
323
|
<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *index_ranges</code></em>,
|
@@ -350,7 +350,7 @@ of text, such as when text is selected.</p>
|
|
350
350
|
<tbody>
|
351
351
|
<tr>
|
352
352
|
<td class="parameter_name"><p>line</p></td>
|
353
|
-
<td class="parameter_description"><p>a <a href="
|
353
|
+
<td class="parameter_description"><p>a <a href="../pango/pango-Layout-Objects.html#PangoLayoutLine-struct"><span class="type">PangoLayoutLine</span></a> </p></td>
|
354
354
|
<td class="parameter_annotations"> </td>
|
355
355
|
</tr>
|
356
356
|
<tr>
|
@@ -388,38 +388,38 @@ are end indexes. </p></td>
|
|
388
388
|
<hr>
|
389
389
|
<div class="refsect2">
|
390
390
|
<a name="gdk-pango-context-get"></a><h3>gdk_pango_context_get ()</h3>
|
391
|
-
<pre class="programlisting"><a href="
|
391
|
+
<pre class="programlisting"><a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="returnvalue">PangoContext</span></a> *
|
392
392
|
gdk_pango_context_get (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
393
|
-
<p>Creates a <a href="
|
393
|
+
<p>Creates a <a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="type">PangoContext</span></a> for the default GDK screen.</p>
|
394
394
|
<p>The context must be freed when you’re finished with it.</p>
|
395
|
-
<p>When using GTK+, normally you should use <a href="
|
395
|
+
<p>When using GTK+, normally you should use <a href="../gtk4/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>
|
396
396
|
instead of this function, to get the appropriate context for
|
397
397
|
the widget you intend to render text onto.</p>
|
398
398
|
<p>The newly created context will have the default font options (see
|
399
|
-
<
|
400
|
-
change it will not be updated. Using <a href="
|
399
|
+
<span class="type">cairo_font_options_t</span>) for the default screen; if these options
|
400
|
+
change it will not be updated. Using <a href="../gtk4/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>
|
401
401
|
is more convenient if you want to keep a context around and track
|
402
402
|
changes to the screen’s font rendering settings.</p>
|
403
403
|
<div class="refsect3">
|
404
404
|
<a name="gdk-pango-context-get.returns"></a><h4>Returns</h4>
|
405
|
-
<p> a new <a href="
|
405
|
+
<p> a new <a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="type">PangoContext</span></a> for the default display. </p>
|
406
406
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
407
407
|
</div>
|
408
408
|
</div>
|
409
409
|
<hr>
|
410
410
|
<div class="refsect2">
|
411
411
|
<a name="gdk-pango-context-get-for-screen"></a><h3>gdk_pango_context_get_for_screen ()</h3>
|
412
|
-
<pre class="programlisting"><a href="
|
412
|
+
<pre class="programlisting"><a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="returnvalue">PangoContext</span></a> *
|
413
413
|
gdk_pango_context_get_for_screen (<em class="parameter"><code><a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
|
414
|
-
<p>Creates a <a href="
|
414
|
+
<p>Creates a <a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="type">PangoContext</span></a> for <em class="parameter"><code>screen</code></em>
|
415
415
|
.</p>
|
416
416
|
<p>The context must be freed when you’re finished with it.</p>
|
417
|
-
<p>When using GTK+, normally you should use <a href="
|
417
|
+
<p>When using GTK+, normally you should use <a href="../gtk4/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>
|
418
418
|
instead of this function, to get the appropriate context for
|
419
419
|
the widget you intend to render text onto.</p>
|
420
420
|
<p>The newly created context will have the default font options
|
421
|
-
(see <
|
422
|
-
change it will not be updated. Using <a href="
|
421
|
+
(see <span class="type">cairo_font_options_t</span>) for the screen; if these options
|
422
|
+
change it will not be updated. Using <a href="../gtk4/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>
|
423
423
|
is more convenient if you want to keep a context around and track
|
424
424
|
changes to the screen’s font rendering settings.</p>
|
425
425
|
<div class="refsect3">
|
@@ -439,7 +439,7 @@ changes to the screen’s font rendering settings.</p>
|
|
439
439
|
</div>
|
440
440
|
<div class="refsect3">
|
441
441
|
<a name="gdk-pango-context-get-for-screen.returns"></a><h4>Returns</h4>
|
442
|
-
<p> a new <a href="
|
442
|
+
<p> a new <a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="type">PangoContext</span></a> for <em class="parameter"><code>screen</code></em>
|
443
443
|
. </p>
|
444
444
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
445
445
|
</div>
|
@@ -448,17 +448,17 @@ changes to the screen’s font rendering settings.</p>
|
|
448
448
|
<hr>
|
449
449
|
<div class="refsect2">
|
450
450
|
<a name="gdk-pango-context-get-for-display"></a><h3>gdk_pango_context_get_for_display ()</h3>
|
451
|
-
<pre class="programlisting"><a href="
|
451
|
+
<pre class="programlisting"><a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="returnvalue">PangoContext</span></a> *
|
452
452
|
gdk_pango_context_get_for_display (<em class="parameter"><code><a class="link" href="GdkDisplay.html" title="GdkDisplay"><span class="type">GdkDisplay</span></a> *display</code></em>);</pre>
|
453
|
-
<p>Creates a <a href="
|
453
|
+
<p>Creates a <a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="type">PangoContext</span></a> for <em class="parameter"><code>display</code></em>
|
454
454
|
.</p>
|
455
455
|
<p>The context must be freed when you’re finished with it.</p>
|
456
|
-
<p>When using GTK+, normally you should use <a href="
|
456
|
+
<p>When using GTK+, normally you should use <a href="../gtk4/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>
|
457
457
|
instead of this function, to get the appropriate context for
|
458
458
|
the widget you intend to render text onto.</p>
|
459
459
|
<p>The newly created context will have the default font options
|
460
|
-
(see <
|
461
|
-
change it will not be updated. Using <a href="
|
460
|
+
(see <span class="type">cairo_font_options_t</span>) for the display; if these options
|
461
|
+
change it will not be updated. Using <a href="../gtk4/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>
|
462
462
|
is more convenient if you want to keep a context around and track
|
463
463
|
changes to the font rendering settings.</p>
|
464
464
|
<div class="refsect3">
|
@@ -478,7 +478,7 @@ changes to the font rendering settings.</p>
|
|
478
478
|
</div>
|
479
479
|
<div class="refsect3">
|
480
480
|
<a name="gdk-pango-context-get-for-display.returns"></a><h4>Returns</h4>
|
481
|
-
<p> a new <a href="
|
481
|
+
<p> a new <a href="../pango/pango-Text-Processing.html#PangoContext-struct"><span class="type">PangoContext</span></a> for <em class="parameter"><code>display</code></em>
|
482
482
|
. </p>
|
483
483
|
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
|
484
484
|
</div>
|