~ubuntu-branches/ubuntu/trusty/pango1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to pango/pango-tabs.c

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-03-09 10:39:11 UTC
  • mfrom: (1.6.4) (63.3.30 sid)
  • Revision ID: package-import@ubuntu.com-20120309103911-0jpxqwnix351v3se
Tags: 1.29.5-1
* New upstream release.
  - Fix GI annotation syntax. Closes: #640855
* debian/control.in: Bump Build-Depends on libglib2.0-dev to (>= 2.31.0).
* debian/patches/00git_transfer_annotations.patch: Removed, merged upstream.
* Set pkg-gnome-maintainers@lists.alioth.debian.org as Maintainer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
 * @positions_in_pixels: whether positions are in pixel units
104
104
 * @first_alignment: alignment of first tab stop
105
105
 * @first_position: position of first tab stop
106
 
 * @varargs: additional alignment/position pairs
 
106
 * @...: additional alignment/position pairs
107
107
 *
108
108
 * This is a convenience function that creates a #PangoTabArray
109
109
 * and allows you to specify the alignment and position of each
156
156
  return array;
157
157
}
158
158
 
159
 
GType
160
 
pango_tab_array_get_type (void)
161
 
{
162
 
  static GType our_type = 0;
163
 
 
164
 
  if (G_UNLIKELY (our_type == 0))
165
 
    our_type = g_boxed_type_register_static (I_("PangoTabArray"),
166
 
                                             (GBoxedCopyFunc)pango_tab_array_copy,
167
 
                                             (GBoxedFreeFunc)pango_tab_array_free);
168
 
  return our_type;
169
 
}
 
159
G_DEFINE_BOXED_TYPE (PangoTabArray, pango_tab_array,
 
160
                     pango_tab_array_copy,
 
161
                     pango_tab_array_free);
170
162
 
171
163
/**
172
164
 * pango_tab_array_copy:
291
283
 * pango_tab_array_get_tab:
292
284
 * @tab_array: a #PangoTabArray
293
285
 * @tab_index: tab stop index
294
 
 * @alignment: location to store alignment, or %NULL
295
 
 * @location: location to store tab position, or %NULL
 
286
 * @alignment: (out) (allow-none): location to store alignment, or %NULL
 
287
 * @location: (out) (allow-none): location to store tab position, or %NULL
296
288
 *
297
289
 * Gets the alignment and position of a tab stop.
298
290
 *
317
309
/**
318
310
 * pango_tab_array_get_tabs:
319
311
 * @tab_array: a #PangoTabArray
320
 
 * @alignments: location to store an array of tab stop alignments, or %NULL
321
 
 * @locations: location to store an array of tab positions, or %NULL
 
312
 * @alignments: (out) (allow-none): location to store an array of tab stop
 
313
 *                                  alignments, or %NULL
 
314
 * @locations: (out) (allow-none): location to store an array of tab positions,
 
315
 *                                 or %NULL
322
316
 *
323
317
 * If non-%NULL, @alignments and @locations are filled with allocated
324
318
 * arrays of length pango_tab_array_get_size(). You must free the