diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-04-18 09:42:40 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-04-18 11:46:58 -0400 |
commit | bbb45a2b2dfd2976a7ff29ff4b71ba3f6e3f1db2 (patch) | |
tree | 3ec8efa1151198fc165639885a94b4cfb222b776 /gdk/gdkpango.c | |
parent | f7108d4d43d233868f4d3dbf7c3b73e19ab1ba05 (diff) | |
download | gtk+-bbb45a2b2dfd2976a7ff29ff4b71ba3f6e3f1db2.tar.gz |
Add docs for new API
Diffstat (limited to 'gdk/gdkpango.c')
-rw-r--r-- | gdk/gdkpango.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c index 63e33c7b1b..3d6a909245 100644 --- a/gdk/gdkpango.c +++ b/gdk/gdkpango.c @@ -367,6 +367,28 @@ gdk_pango_context_get_for_screen (GdkScreen *screen) return context; } +/** + * gdk_pango_context_get_for_display: + * @display: the #GdkDisplay for which the context is to be created + * + * Creates a #PangoContext for @display. + * + * The context must be freed when you’re finished with it. + * + * When using GTK+, normally you should use gtk_widget_get_pango_context() + * instead of this function, to get the appropriate context for + * the widget you intend to render text onto. + * + * The newly created context will have the default font options + * (see #cairo_font_options_t) for the display; if these options + * change it will not be updated. Using gtk_widget_get_pango_context() + * is more convenient if you want to keep a context around and track + * changes to the font rendering settings. + * + * Returns: (transfer full): a new #PangoContext for @display + * + * Since: 3.22 + */ PangoContext * gdk_pango_context_get_for_display (GdkDisplay *display) { |