comparison generator/typesystem_gui-java.java @ 409:4a943393a167

Added wrapper for QImage::save. It has been private back from QtJambi because the format argument is a plain char pointer instead of a QString, but unlike QPixmap, wrappers were missing.
author David Nadlinger <code@klickverbot.at>
date Sun, 20 Mar 2011 20:39:44 +0100
parents e67ce7c21758
children
comparison
equal deleted inserted replaced
408:ba1abf81d0e0 409:4a943393a167
310 } 310 }
311 311
312 public this(string fileName, string format = null) { 312 public this(string fileName, string format = null) {
313 this(fileName, format == null ? null : toStringz(format)); 313 this(fileName, format == null ? null : toStringz(format));
314 } 314 }
315
316 public final bool save(string fileName, string format, int quality = -1) {
317 return private_save(fileName, toStringz(format), quality);
318 }
319
320 public final bool save(QIODevice dev, string format, int quality = -1) {
321 return private_save(dev, toStringz(format), quality);
322 }
315 }// class 323 }// class
316 324
317 class QPen___ extends QPen { 325 class QPen___ extends QPen {
318 /* 326 /*
319 public QPen(QColor color, double width, qt.core.Qt.PenStyle s, qt.core.Qt.PenCapStyle c, qt.core.Qt.PenJoinStyle j) { 327 public QPen(QColor color, double width, qt.core.Qt.PenStyle s, qt.core.Qt.PenCapStyle c, qt.core.Qt.PenJoinStyle j) {