mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 07:38:22 +02:00
Clarify that extra elements in cairo_path_data is only available in cairo >= 1.4
This commit is contained in:
parent
0578929fa4
commit
d0d2c40307
1 changed files with 7 additions and 7 deletions
14
src/cairo.h
14
src/cairo.h
|
|
@ -1333,13 +1333,13 @@ typedef enum _cairo_path_data_type {
|
|||
* cairo_path_destroy (path);
|
||||
* </programlisting></informalexample>
|
||||
*
|
||||
* Cairo does not mind if there are more elements in a portion
|
||||
* of the path than needed. Such elements can be used by users of
|
||||
* the cairo API to hold extra values in the path data structure.
|
||||
* For this reason, it is recommended that applications always use
|
||||
* <literal>data->header.length</literal> to advance iterate over
|
||||
* the path data, instead of hardcoding the number of elements for
|
||||
* each element type.
|
||||
* As of cairo 1.4, cairo does not mind if there are more elements in
|
||||
* a portion of the path than needed. Such elements can be used by
|
||||
* users of the cairo API to hold extra values in the path data
|
||||
* structure. For this reason, it is recommended that applications
|
||||
* always use <literal>data->header.length</literal> to advance
|
||||
* iterate over the path data, instead of hardcoding the number of
|
||||
* elements for each element type.
|
||||
**/
|
||||
typedef union _cairo_path_data_t cairo_path_data_t;
|
||||
union _cairo_path_data_t {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue