Changeset 480 for trunk/src/gdk/Pixbuf.d
- Timestamp:
- 03/25/08 18:16:02 (8 months ago)
- Files:
-
- trunk/src/gdk/Pixbuf.d (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/gdk/Pixbuf.d
r429 r480 63 63 * module aliases: 64 64 * local aliases: 65 * overrides: 65 66 */ 66 67 … … 795 796 * Returns: the value associated with key. This is a nul-terminated string that should not be freed or NULL if key was not found. 796 797 */ 797 public char[] getOption(char[]key)798 public string getOption(string key) 798 799 { 799 800 // const gchar* gdk_pixbuf_get_option (GdkPixbuf *pixbuf, const gchar *key); 800 return Str.toString(gdk_pixbuf_get_option(gdkPixbuf, Str.toStringz(key))) .dup;801 return Str.toString(gdk_pixbuf_get_option(gdkPixbuf, Str.toStringz(key))); 801 802 } 802 803 … … 809 810 * error = Return location for an error 810 811 */ 811 public this ( char[]filename, GError** error)812 public this (string filename, GError** error) 812 813 { 813 814 // GdkPixbuf* gdk_pixbuf_new_from_file (const char *filename, GError **error); … … 835 836 * error = Return location for an error 836 837 */ 837 public this ( char[]filename, int width, int height, GError** error)838 public this (string filename, int width, int height, GError** error) 838 839 { 839 840 // GdkPixbuf* gdk_pixbuf_new_from_file_at_size (const char *filename, int width, int height, GError **error); … … 868 869 * error = Return location for an error 869 870 */ 870 public this ( char[]filename, int width, int height, int preserveAspectRatio, GError** error)871 public this (string filename, int width, int height, int preserveAspectRatio, GError** error) 871 872 { 872 873 // GdkPixbuf* gdk_pixbuf_new_from_file_at_scale (const char *filename, int width, int height, gboolean preserve_aspect_ratio, GError **error); … … 893 894 * Returns: whether an error was set 894 895 */ 895 public int savev( char[] filename, char[]type, char** optionKeys, char** optionValues, GError** error)896 public int savev(string filename, string type, char** optionKeys, char** optionValues, GError** error) 896 897 { 897 898 // gboolean gdk_pixbuf_savev (GdkPixbuf *pixbuf, const char *filename, const char *type, char **option_keys, char **option_values, GError **error); … … 910 911 * Returns: whether an error was set 911 912 */ 912 public int save( char[] filename, char[]type, GError** error, ... )913 public int save(string filename, string type, GError** error, ... ) 913 914 { 914 915 // gboolean gdk_pixbuf_save (GdkPixbuf *pixbuf, const char *filename, const char *type, GError **error, ...); … … 934 935 * Returns: whether an error was set 935 936 */ 936 public int saveToCallback(GdkPixbufSaveFunc saveFunc, void* userData, char[]type, GError** error, ... )937 public int saveToCallback(GdkPixbufSaveFunc saveFunc, void* userData, string type, GError** error, ... ) 937 938 { 938 939 // gboolean gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf, GdkPixbufSaveFunc save_func, gpointer user_data, const char *type, GError **error, ...); … … 955 956 * Returns: whether an error was set 956 957 */ 957 public int saveToCallbackv(GdkPixbufSaveFunc saveFunc, void* userData, char[]type, char** optionKeys, char** optionValues, GError** error)958 public int saveToCallbackv(GdkPixbufSaveFunc saveFunc, void* userData, string type, char** optionKeys, char** optionValues, GError** error) 958 959 { 959 960 // gboolean gdk_pixbuf_save_to_callbackv (GdkPixbuf *pixbuf, GdkPixbufSaveFunc save_func, gpointer user_data, const char *type, char **option_keys, char **option_values, GError **error); … … 979 980 * Returns: whether an error was set 980 981 */ 981 public int saveToBuffer(char** buffer, uint* bufferSize, char[]type, GError** error, ... )982 public int saveToBuffer(char** buffer, uint* bufferSize, string type, GError** error, ... ) 982 983 { 983 984 // gboolean gdk_pixbuf_save_to_buffer (GdkPixbuf *pixbuf, gchar **buffer, gsize *buffer_size, const char *type, GError **error, ...); … … 998 999 * Returns: whether an error was set 999 1000 */ 1000 public int saveToBufferv(char** buffer, uint* bufferSize, char[]type, char** optionKeys, char** optionValues, GError** error)1001 public int saveToBufferv(char** buffer, uint* bufferSize, string type, char** optionKeys, char** optionValues, GError** error) 1001 1002 { 1002 1003 // gboolean gdk_pixbuf_save_to_bufferv (GdkPixbuf *pixbuf, gchar **buffer, gsize *buffer_size, const char *type, char **option_keys, char **option_values, GError **error);
