2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = cairo-Error-handling.html
28 * strct = cairo_status_t
49 module cairoLib
.Status
;
51 private import cairoLib
.cairoLibtypes
;
53 private import lib
.cairoLib
;
55 private import glib
.Str
;
63 /** the main Gtk struct */
64 protected cairo_status_t
* cairo_status
;
67 public cairo_status_t
* getStatusStruct()
73 /** the main Gtk struct as a void* */
74 protected void* getStruct()
76 return cast(void*)cairo_status
;
80 * Sets our main struct and passes it to the parent class
82 public this (cairo_status_t
* cairo_status
)
84 this.cairo_status
= cairo_status
;
92 * Provides a human-readable description of a cairo_status_t.
96 * a string representation of the status
98 public static char[] oString(cairo_status_t status
)
100 // const char* cairo_status_to_string (cairo_status_t status);
101 return Str
.toString(cairo_status_to_string(status
) );
105 * Resets all static data within cairo to its original state,
106 * (ie. identical to the state at the time of program invocation). For
107 * example, all caches within cairo will be flushed empty.
108 * This function is intended to be useful when using memory-checking
109 * tools such as valgrind. When valgrind's memcheck analyzes a
110 * cairo-using program without a call to cairo_debug_reset_static_data,
111 * it will report all data reachable via cairo's static objects as
112 * "still reachable". Calling cairo_debug_reset_static_data just prior
113 * to program termination will make it easier to get squeaky clean
114 * reports from valgrind.
115 * WARNING: It is only safe to call this function when there are no
116 * active cairo objects remaining, (ie. the appropriate destroy
117 * functions have been called as necessary). If there are active cairo
118 * objects, this call is likely to cause a crash, (eg. an assertion
119 * failure due to a hash table being destroyed when non-empty).
121 public static void cairoDebugResetStaticData()
123 // void cairo_debug_reset_static_data (void);
124 cairo_debug_reset_static_data();