All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QPixmap Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui;

import io.qt.*;


/**
 * 

Off-screen image representation that can be used as a paint device

*

Java wrapper for Qt class QPixmap

*/ public class QPixmap extends QtObject implements io.qt.gui.QPaintDevice, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QPixmap::QPixmap()

*/ public QPixmap(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QPixmap instance); /** *

See QPixmap::QPixmap(QPixmap)

*/ public QPixmap(io.qt.gui.@NonNull QPixmap arg__1){ super((QPrivateConstructor)null); initialize_native(this, arg__1); } private native static void initialize_native(QPixmap instance, io.qt.gui.QPixmap arg__1); /** *

See QPixmap::QPixmap(QSize)

*/ public QPixmap(io.qt.core.@NonNull QSize arg__1){ super((QPrivateConstructor)null); initialize_native(this, arg__1); } private native static void initialize_native(QPixmap instance, io.qt.core.QSize arg__1); /** *

See QPixmap::QPixmap(QString,const char*,Qt::ImageConversionFlags)

*/ public QPixmap(java.lang.@NonNull String fileName, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlags flags){ super((QPrivateConstructor)null); initialize_native(this, fileName, format, flags); } private native static void initialize_native(QPixmap instance, java.lang.String fileName, java.lang.String format, io.qt.core.Qt.ImageConversionFlags flags); /** *

See QPixmap::QPixmap(const char*const[])

*/ public QPixmap(java.lang.String[] xpm){ super((QPrivateConstructor)null); initialize_native(this, xpm); } private native static void initialize_native(QPixmap instance, java.lang.String[] xpm); /** *

See QPixmap::QPixmap(int,int)

*/ public QPixmap(int w, int h){ super((QPrivateConstructor)null); initialize_native(this, w, h); } private native static void initialize_native(QPixmap instance, int w, int h); /** *

See QPixmap::cacheKey()const

*/ @QtUninvokable public final long cacheKey(){ return cacheKey_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long cacheKey_native_constfct(long __this__nativeId); /** *

See QPaintDevice::colorCount()const

*/ @QtUninvokable public final int colorCount(){ return colorCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int colorCount_native_constfct(long __this__nativeId); /** *

See QPixmap::convertFromImage(QImage,Qt::ImageConversionFlags)

*/ @QtUninvokable public final boolean convertFromImage(io.qt.gui.@NonNull QImage img, io.qt.core.Qt.@NonNull ImageConversionFlags flags){ return convertFromImage_native_cref_QImage_Qt_ImageConversionFlags(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(img), flags.value()); } @QtUninvokable private native boolean convertFromImage_native_cref_QImage_Qt_ImageConversionFlags(long __this__nativeId, long img, int flags); /** *

See QPixmap::copy(QRect)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap copy(io.qt.core.@NonNull QRect rect){ return copy_native_cref_QRect_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect)); } @QtUninvokable private native io.qt.gui.QPixmap copy_native_cref_QRect_constfct(long __this__nativeId, long rect); /** *

See QPixmap::copy(int,int,int,int)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap copy(int x, int y, int width, int height){ return copy_native_int_int_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, width, height); } @QtUninvokable private native io.qt.gui.QPixmap copy_native_int_int_int_int_constfct(long __this__nativeId, int x, int y, int width, int height); /** *

See QPixmap::createHeuristicMask(bool)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap createHeuristicMask(boolean clipTight){ return createHeuristicMask_native_bool_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), clipTight); } @QtUninvokable private native io.qt.gui.QBitmap createHeuristicMask_native_bool_constfct(long __this__nativeId, boolean clipTight); /** *

See QPixmap::createMaskFromColor(QColor,Qt::MaskMode)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap createMaskFromColor(io.qt.gui.@NonNull QColor maskColor, io.qt.core.Qt.@NonNull MaskMode mode){ return createMaskFromColor_native_cref_QColor_Qt_MaskMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(maskColor), mode.value()); } @QtUninvokable private native io.qt.gui.QBitmap createMaskFromColor_native_cref_QColor_Qt_MaskMode_constfct(long __this__nativeId, long maskColor, int mode); /** *

See QPaintDevice::depth()const

*/ @QtUninvokable public final int depth(){ return depth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int depth_native_constfct(long __this__nativeId); /** *

See QPixmap::detach()

*/ @QtUninvokable public final void detach(){ detach_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void detach_native(long __this__nativeId); /** *

See QPixmap::deviceIndependentSize()const

*/ @QtUninvokable public final io.qt.core.@NonNull QSizeF deviceIndependentSize(){ return deviceIndependentSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSizeF deviceIndependentSize_native_constfct(long __this__nativeId); /** *

See QPaintDevice::devicePixelRatio()const

*/ @QtUninvokable public final double devicePixelRatio(){ return devicePixelRatio_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static double devicePixelRatio_native_constfct(long __this__nativeId); /** *

See QPaintDevice::devicePixelRatioF()const

*/ @QtUninvokable public final double devicePixelRatioF(){ return devicePixelRatioF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static double devicePixelRatioF_native_constfct(long __this__nativeId); /** *

See QPixmap::fill(QColor)

*/ @QtUninvokable public final void fill(io.qt.gui.@NonNull QColor fillColor){ fill_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(fillColor)); } @QtUninvokable private native void fill_native_cref_QColor(long __this__nativeId, long fillColor); /** *

See QPixmap::hasAlpha()const

*/ @QtUninvokable public final boolean hasAlpha(){ return hasAlpha_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean hasAlpha_native_constfct(long __this__nativeId); /** *

See QPixmap::hasAlphaChannel()const

*/ @QtUninvokable public final boolean hasAlphaChannel(){ return hasAlphaChannel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean hasAlphaChannel_native_constfct(long __this__nativeId); /** *

See QPaintDevice::height()const

*/ @QtUninvokable public final int height(){ return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int height_native_constfct(long __this__nativeId); /** *

See QPaintDevice::heightMM()const

*/ @QtUninvokable public final int heightMM(){ return heightMM_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int heightMM_native_constfct(long __this__nativeId); /** *

See QPixmap::isDetached()const

*/ @QtUninvokable public final boolean isDetached(){ return isDetached_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isDetached_native_constfct(long __this__nativeId); /** *

See QPixmap::isNull()const

*/ @QtUninvokable public final boolean isNull(){ return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isNull_native_constfct(long __this__nativeId); /** *

See QPixmap::isQBitmap()const

*/ @QtUninvokable public final boolean isQBitmap(){ return isQBitmap_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isQBitmap_native_constfct(long __this__nativeId); /** *

See QPixmap::load(QString,const char*,Qt::ImageConversionFlags)

*/ @QtUninvokable public final boolean load(java.lang.@NonNull String fileName, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlags flags){ return load_native_cref_QString_const_char_ptr_Qt_ImageConversionFlags(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, format, flags.value()); } @QtUninvokable private native boolean load_native_cref_QString_const_char_ptr_Qt_ImageConversionFlags(long __this__nativeId, java.lang.String fileName, java.lang.String format, int flags); /** *

See QPixmap::loadFromData(QByteArray,const char*,Qt::ImageConversionFlags)

*/ @QtUninvokable public final boolean loadFromData(io.qt.core.@NonNull QByteArray data, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlags flags){ return loadFromData_native_cref_QByteArray_const_char_ptr_Qt_ImageConversionFlags(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), format, flags.value()); } @QtUninvokable private native boolean loadFromData_native_cref_QByteArray_const_char_ptr_Qt_ImageConversionFlags(long __this__nativeId, long data, java.lang.String format, int flags); /** *

See QPixmap::loadFromData(const uchar*,uint,const char*,Qt::ImageConversionFlags)

*/ @QtUninvokable public final boolean loadFromData(java.nio.@Nullable ByteBuffer buf, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlags flags){ return loadFromData_native_const_uchar_ptr_uint_const_char_ptr_Qt_ImageConversionFlags(QtJambi_LibraryUtilities.internal.nativeId(this), buf, format, flags.value()); } @QtUninvokable private native boolean loadFromData_native_const_uchar_ptr_uint_const_char_ptr_Qt_ImageConversionFlags(long __this__nativeId, java.nio.ByteBuffer buf, java.lang.String format, int flags); /** *

See QPaintDevice::logicalDpiX()const

*/ @QtUninvokable public final int logicalDpiX(){ return logicalDpiX_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int logicalDpiX_native_constfct(long __this__nativeId); /** *

See QPaintDevice::logicalDpiY()const

*/ @QtUninvokable public final int logicalDpiY(){ return logicalDpiY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int logicalDpiY_native_constfct(long __this__nativeId); /** *

See QPixmap::mask()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap mask(){ return mask_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QBitmap mask_native_constfct(long __this__nativeId); /** *

See QPixmap::operator!()const

*/ @QtUninvokable public final boolean not(){ return not_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean not_native_constfct(long __this__nativeId); /** *

See operator<<(QDataStream&,QPixmap)

*/ @QtUninvokable public void writeTo(io.qt.core.@StrictNonNull QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QPixmap::operator=(QPixmap)

*/ @QtUninvokable public final void assign(io.qt.gui.@NonNull QPixmap arg__1){ assign_native_cref_QPixmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void assign_native_cref_QPixmap(long __this__nativeId, long arg__1); /** *

See operator>>(QDataStream&,QPixmap&)

*/ @QtUninvokable public void readFrom(io.qt.core.@StrictNonNull QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QPaintDevice::paintingActive()const

*/ @QtUninvokable public final boolean paintingActive(){ return paintingActive_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static boolean paintingActive_native_constfct(long __this__nativeId); /** *

See QPaintDevice::physicalDpiX()const

*/ @QtUninvokable public final int physicalDpiX(){ return physicalDpiX_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int physicalDpiX_native_constfct(long __this__nativeId); /** *

See QPaintDevice::physicalDpiY()const

*/ @QtUninvokable public final int physicalDpiY(){ return physicalDpiY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int physicalDpiY_native_constfct(long __this__nativeId); /** *

See QPixmap::rect()const

*/ @QtUninvokable public final io.qt.core.@NonNull QRect rect(){ return rect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QRect rect_native_constfct(long __this__nativeId); /** *

See QPixmap::save(QIODevice*,const char*,int)const

*/ @QtUninvokable public final boolean save(io.qt.core.@Nullable QIODevice device, java.lang.@Nullable String format, int quality){ return save_native_QIODevice_ptr_const_char_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device), format, quality); } @QtUninvokable private native boolean save_native_QIODevice_ptr_const_char_ptr_int_constfct(long __this__nativeId, long device, java.lang.String format, int quality); /** *

See QPixmap::save(QString,const char*,int)const

*/ @QtUninvokable public final boolean save(java.lang.@NonNull String fileName, java.lang.@Nullable String format, int quality){ return save_native_cref_QString_const_char_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, format, quality); } @QtUninvokable private native boolean save_native_cref_QString_const_char_ptr_int_constfct(long __this__nativeId, java.lang.String fileName, java.lang.String format, int quality); /** *

See QPixmap::scaled(QSize,Qt::AspectRatioMode,Qt::TransformationMode)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap scaled(io.qt.core.@NonNull QSize s, io.qt.core.Qt.@NonNull AspectRatioMode aspectMode, io.qt.core.Qt.@NonNull TransformationMode mode){ return scaled_native_cref_QSize_Qt_AspectRatioMode_Qt_TransformationMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s), aspectMode.value(), mode.value()); } @QtUninvokable private native io.qt.gui.QPixmap scaled_native_cref_QSize_Qt_AspectRatioMode_Qt_TransformationMode_constfct(long __this__nativeId, long s, int aspectMode, int mode); /** *

See QPixmap::scaled(int,int,Qt::AspectRatioMode,Qt::TransformationMode)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap scaled(int w, int h, io.qt.core.Qt.@NonNull AspectRatioMode aspectMode, io.qt.core.Qt.@NonNull TransformationMode mode){ return scaled_native_int_int_Qt_AspectRatioMode_Qt_TransformationMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), w, h, aspectMode.value(), mode.value()); } @QtUninvokable private native io.qt.gui.QPixmap scaled_native_int_int_Qt_AspectRatioMode_Qt_TransformationMode_constfct(long __this__nativeId, int w, int h, int aspectMode, int mode); /** *

See QPixmap::scaledToHeight(int,Qt::TransformationMode)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap scaledToHeight(int h, io.qt.core.Qt.@NonNull TransformationMode mode){ return scaledToHeight_native_int_Qt_TransformationMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), h, mode.value()); } @QtUninvokable private native io.qt.gui.QPixmap scaledToHeight_native_int_Qt_TransformationMode_constfct(long __this__nativeId, int h, int mode); /** *

See QPixmap::scaledToWidth(int,Qt::TransformationMode)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap scaledToWidth(int w, io.qt.core.Qt.@NonNull TransformationMode mode){ return scaledToWidth_native_int_Qt_TransformationMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), w, mode.value()); } @QtUninvokable private native io.qt.gui.QPixmap scaledToWidth_native_int_Qt_TransformationMode_constfct(long __this__nativeId, int w, int mode); /** *

See QPixmap::scroll(int,int,QRect,QRegion*)

*/ @QtUninvokable public final void scroll(int dx, int dy, io.qt.core.@NonNull QRect rect, io.qt.gui.@Nullable QRegion exposed){ scroll_native_int_int_cref_QRect_QRegion_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy, QtJambi_LibraryUtilities.internal.checkedNativeId(rect), QtJambi_LibraryUtilities.internal.checkedNativeId(exposed)); } @QtUninvokable private native void scroll_native_int_int_cref_QRect_QRegion_ptr(long __this__nativeId, int dx, int dy, long rect, long exposed); /** *

See QPixmap::scroll(int,int,int,int,int,int,QRegion*)

*/ @QtUninvokable public final void scroll(int dx, int dy, int x, int y, int width, int height, io.qt.gui.@Nullable QRegion exposed){ scroll_native_int_int_int_int_int_int_QRegion_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy, x, y, width, height, QtJambi_LibraryUtilities.internal.checkedNativeId(exposed)); } @QtUninvokable private native void scroll_native_int_int_int_int_int_int_QRegion_ptr(long __this__nativeId, int dx, int dy, int x, int y, int width, int height, long exposed); /** *

See QPixmap::setDevicePixelRatio(qreal)

*/ @QtUninvokable public final void setDevicePixelRatio(double scaleFactor){ setDevicePixelRatio_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), scaleFactor); } @QtUninvokable private native void setDevicePixelRatio_native_qreal(long __this__nativeId, double scaleFactor); /** *

See QPixmap::setMask(QBitmap)

*/ @QtUninvokable public final void setMask(io.qt.gui.@NonNull QBitmap arg__1){ setMask_native_cref_QBitmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void setMask_native_cref_QBitmap(long __this__nativeId, long arg__1); /** *

See QPixmap::size()const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize size(){ return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize size_native_constfct(long __this__nativeId); /** *

See QPixmap::swap(QPixmap&)

*/ @QtUninvokable public final void swap(io.qt.gui.@StrictNonNull QPixmap other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QPixmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QPixmap(long __this__nativeId, long other); /** *

See QPixmap::toImage()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QImage toImage(){ return toImage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QImage toImage_native_constfct(long __this__nativeId); /** *

See QPixmap::transformed(QTransform,Qt::TransformationMode)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap transformed(io.qt.gui.@NonNull QTransform arg__1, io.qt.core.Qt.@NonNull TransformationMode mode){ return transformed_native_cref_QTransform_Qt_TransformationMode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), mode.value()); } @QtUninvokable private native io.qt.gui.QPixmap transformed_native_cref_QTransform_Qt_TransformationMode_constfct(long __this__nativeId, long arg__1, int mode); /** *

See QPaintDevice::width()const

*/ @QtUninvokable public final int width(){ return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int width_native_constfct(long __this__nativeId); /** *

See QPaintDevice::widthMM()const

*/ @QtUninvokable public final int widthMM(){ return widthMM_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int widthMM_native_constfct(long __this__nativeId); /** *

See QPaintDevice::initPainter(QPainter*)const

*/ @QtUninvokable protected void initPainter(io.qt.gui.@Nullable QPainter painter){ initPainter_native_QPainter_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter)); } private native static void initPainter_native_QPainter_ptr_constfct(long __this__nativeId, long painter); /** *

See QPaintDevice::metric(QPaintDevice::PaintDeviceMetric)const

*/ @QtUninvokable protected int metric(io.qt.gui.QPaintDevice.@NonNull PaintDeviceMetric arg__1){ return metric_native_QPaintDevice_PaintDeviceMetric_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } private native static int metric_native_QPaintDevice_PaintDeviceMetric_constfct(long __this__nativeId, int arg__1); /** *

See QPaintDevice::paintEngine()const

*/ @QtUninvokable @Override public io.qt.gui.@Nullable QPaintEngine paintEngine(){ return paintEngine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.gui.QPaintEngine paintEngine_native_constfct(long __this__nativeId); /** *

See QPaintDevice::redirected(QPoint*)const

*/ @QtUninvokable protected io.qt.gui.@Nullable QPaintDevice redirected(io.qt.core.@Nullable QPoint offset){ return redirected_native_QPoint_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(offset)); } private native static io.qt.gui.QPaintDevice redirected_native_QPoint_ptr_constfct(long __this__nativeId, long offset); /** *

See QPaintDevice::sharedPainter()const

*/ @QtUninvokable protected io.qt.gui.@Nullable QPainter sharedPainter(){ return sharedPainter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.gui.QPainter sharedPainter_native_constfct(long __this__nativeId); /** *

See QPixmap::defaultDepth()

*/ public native static int defaultDepth(); /** *

See QPaintDevice::devicePixelRatioFScale()

*/ public native static double devicePixelRatioFScale(); /** *

See QPixmap::fromImage(QImage,Qt::ImageConversionFlags)

*/ public static io.qt.gui.@NonNull QPixmap fromImage(io.qt.gui.@NonNull QImage image, io.qt.core.Qt.@NonNull ImageConversionFlags flags){ return fromImage_native_cref_QImage_Qt_ImageConversionFlags(QtJambi_LibraryUtilities.internal.checkedNativeId(image), flags.value()); } private native static io.qt.gui.QPixmap fromImage_native_cref_QImage_Qt_ImageConversionFlags(long image, int flags); /** *

See QPixmap::fromImageReader(QImageReader*,Qt::ImageConversionFlags)

*/ public static io.qt.gui.@NonNull QPixmap fromImageReader(io.qt.gui.@Nullable QImageReader imageReader, io.qt.core.Qt.@NonNull ImageConversionFlags flags){ return fromImageReader_native_QImageReader_ptr_Qt_ImageConversionFlags(QtJambi_LibraryUtilities.internal.checkedNativeId(imageReader), flags.value()); } private native static io.qt.gui.QPixmap fromImageReader_native_QImageReader_ptr_Qt_ImageConversionFlags(long imageReader, int flags); /** *

See QPixmap::trueMatrix(QTransform,int,int)

*/ public static io.qt.gui.@NonNull QTransform trueMatrix(io.qt.gui.@NonNull QTransform m, int w, int h){ return trueMatrix_native_cref_QTransform_int_int(QtJambi_LibraryUtilities.internal.checkedNativeId(m), w, h); } private native static io.qt.gui.QTransform trueMatrix_native_cref_QTransform_int_int(long m, int w, int h); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QPixmap(QPrivateConstructor p) { super(p); } /** * Checks for equality by checking object's hash code. */ @Override @QtUninvokable public boolean equals(Object other) { if(other instanceof io.qt.gui.QPixmap) return hashCode()==other.hashCode(); else return super.equals(other); } /** * Returns the objects's hash code computed by qHash(QPixmap). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

See operator<<(QDebug,QPixmap)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QPixmap::QPixmap(QPixmap)

*/ @QtUninvokable @Override public QPixmap clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QPixmap clone_native(long __this_nativeId); /** *

Overloaded constructor for {@link #QPixmap(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)} * with flags = new io.qt.core.Qt.ImageConversionFlags(0).

*/ public QPixmap(java.lang.@NonNull String fileName, java.lang.@Nullable String format) { this(fileName, format, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded constructor for {@link #QPixmap(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}

*

with:

    *
  • format = null
  • *
  • flags = new io.qt.core.Qt.ImageConversionFlags(0)
  • *
*/ public QPixmap(java.lang.@NonNull String fileName) { this(fileName, (java.lang.String)null, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded constructor for {@link #QPixmap(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}.

*/ public QPixmap(java.lang.@NonNull String fileName, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlag @NonNull... flags) { this(fileName, format, new io.qt.core.Qt.ImageConversionFlags(flags)); } /** *

Overloaded function for {@link #convertFromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)} * with flags = new io.qt.core.Qt.ImageConversionFlags(0).

*/ @QtUninvokable public final boolean convertFromImage(io.qt.gui.@NonNull QImage img) { return convertFromImage(img, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #convertFromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)}.

*/ @QtUninvokable public final boolean convertFromImage(io.qt.gui.@NonNull QImage img, io.qt.core.Qt.@NonNull ImageConversionFlag @NonNull... flags) { return convertFromImage(img, new io.qt.core.Qt.ImageConversionFlags(flags)); } /** *

Overloaded function for {@link #copy(io.qt.core.QRect)} * with rect = new io.qt.core.QRect().

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap copy() { return copy(new io.qt.core.QRect()); } /** *

Overloaded function for {@link #createHeuristicMask(boolean)} * with clipTight = true.

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap createHeuristicMask() { return createHeuristicMask((boolean)true); } /** *

Overloaded function for {@link #createMaskFromColor(io.qt.gui.QColor, io.qt.core.Qt.MaskMode)} * with mode = io.qt.core.Qt.MaskMode.MaskInColor.

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap createMaskFromColor(io.qt.gui.@NonNull QColor maskColor) { return createMaskFromColor(maskColor, io.qt.core.Qt.MaskMode.MaskInColor); } /** *

Overloaded function for {@link #createMaskFromColor(io.qt.core.Qt.GlobalColor, io.qt.core.Qt.MaskMode)} * with mode = io.qt.core.Qt.MaskMode.MaskInColor.

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap createMaskFromColor(io.qt.core.Qt.@NonNull GlobalColor maskColor) { return createMaskFromColor(maskColor, io.qt.core.Qt.MaskMode.MaskInColor); } /** *

Overloaded function for {@link #createMaskFromColor(io.qt.gui.QColor, io.qt.core.Qt.MaskMode)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap createMaskFromColor(io.qt.core.Qt.@NonNull GlobalColor maskColor, io.qt.core.Qt.@NonNull MaskMode mode) { return createMaskFromColor(new io.qt.gui.QColor(maskColor), mode); } /** *

Overloaded function for {@link #createMaskFromColor(io.qt.gui.QRgba64, io.qt.core.Qt.MaskMode)} * with mode = io.qt.core.Qt.MaskMode.MaskInColor.

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap createMaskFromColor(io.qt.gui.@NonNull QRgba64 maskColor) { return createMaskFromColor(maskColor, io.qt.core.Qt.MaskMode.MaskInColor); } /** *

Overloaded function for {@link #createMaskFromColor(io.qt.gui.QColor, io.qt.core.Qt.MaskMode)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap createMaskFromColor(io.qt.gui.@NonNull QRgba64 maskColor, io.qt.core.Qt.@NonNull MaskMode mode) { return createMaskFromColor(new io.qt.gui.QColor(maskColor), mode); } /** *

Overloaded function for {@link #createMaskFromColor(java.lang.String, io.qt.core.Qt.MaskMode)} * with mode = io.qt.core.Qt.MaskMode.MaskInColor.

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap createMaskFromColor(java.lang.@NonNull String maskColor) { return createMaskFromColor(maskColor, io.qt.core.Qt.MaskMode.MaskInColor); } /** *

Overloaded function for {@link #createMaskFromColor(io.qt.gui.QColor, io.qt.core.Qt.MaskMode)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap createMaskFromColor(java.lang.@NonNull String maskColor, io.qt.core.Qt.@NonNull MaskMode mode) { return createMaskFromColor(new io.qt.gui.QColor(maskColor), mode); } /** *

Overloaded function for {@link #fill(io.qt.gui.QColor)} * with fillColor = new io.qt.gui.QColor(io.qt.core.Qt.GlobalColor.white).

*/ @QtUninvokable public final void fill() { fill(new io.qt.gui.QColor(io.qt.core.Qt.GlobalColor.white)); } /** *

Overloaded function for {@link #fill(io.qt.gui.QColor)}.

*/ @QtUninvokable public final void fill(io.qt.core.Qt.@NonNull GlobalColor fillColor) { fill(new io.qt.gui.QColor(fillColor)); } /** *

Overloaded function for {@link #fill(io.qt.gui.QColor)}.

*/ @QtUninvokable public final void fill(io.qt.gui.@NonNull QRgba64 fillColor) { fill(new io.qt.gui.QColor(fillColor)); } /** *

Overloaded function for {@link #fill(io.qt.gui.QColor)}.

*/ @QtUninvokable public final void fill(java.lang.@NonNull String fillColor) { fill(new io.qt.gui.QColor(fillColor)); } /** *

Overloaded function for {@link #load(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)} * with flags = new io.qt.core.Qt.ImageConversionFlags(0).

*/ @QtUninvokable public final boolean load(java.lang.@NonNull String fileName, java.lang.@Nullable String format) { return load(fileName, format, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #load(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}

*

with:

    *
  • format = null
  • *
  • flags = new io.qt.core.Qt.ImageConversionFlags(0)
  • *
*/ @QtUninvokable public final boolean load(java.lang.@NonNull String fileName) { return load(fileName, (java.lang.String)null, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #load(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}.

*/ @QtUninvokable public final boolean load(java.lang.@NonNull String fileName, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlag @NonNull... flags) { return load(fileName, format, new io.qt.core.Qt.ImageConversionFlags(flags)); } /** *

Overloaded function for {@link #loadFromData(io.qt.core.QByteArray, java.lang.String, io.qt.core.Qt.ImageConversionFlags)} * with flags = new io.qt.core.Qt.ImageConversionFlags(0).

*/ @QtUninvokable public final boolean loadFromData(io.qt.core.@NonNull QByteArray data, java.lang.@Nullable String format) { return loadFromData(data, format, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #loadFromData(io.qt.core.QByteArray, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}

*

with:

    *
  • format = null
  • *
  • flags = new io.qt.core.Qt.ImageConversionFlags(0)
  • *
*/ @QtUninvokable public final boolean loadFromData(io.qt.core.@NonNull QByteArray data) { return loadFromData(data, (java.lang.String)null, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #loadFromData(io.qt.core.QByteArray, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}.

*/ @QtUninvokable public final boolean loadFromData(io.qt.core.@NonNull QByteArray data, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlag @NonNull... flags) { return loadFromData(data, format, new io.qt.core.Qt.ImageConversionFlags(flags)); } /** *

Overloaded function for {@link #loadFromData(java.nio.ByteBuffer, java.lang.String, io.qt.core.Qt.ImageConversionFlags)} * with flags = new io.qt.core.Qt.ImageConversionFlags(0).

*/ @QtUninvokable public final boolean loadFromData(java.nio.@Nullable ByteBuffer buf, java.lang.@Nullable String format) { return loadFromData(buf, format, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #loadFromData(java.nio.ByteBuffer, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}

*

with:

    *
  • format = null
  • *
  • flags = new io.qt.core.Qt.ImageConversionFlags(0)
  • *
*/ @QtUninvokable public final boolean loadFromData(java.nio.@Nullable ByteBuffer buf) { return loadFromData(buf, (java.lang.String)null, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #loadFromData(byte[], int, int, java.lang.String, io.qt.core.Qt.ImageConversionFlags)} * with flags = new io.qt.core.Qt.ImageConversionFlags(0).

*/ @QtUninvokable public final boolean loadFromData(byte[] buf, int offsetOfBuf, int len, java.lang.@Nullable String format) { return loadFromData(buf==null ? null : java.nio.ByteBuffer.wrap(buf, offsetOfBuf, len), format, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #loadFromData(byte[], int, int, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}

*

with:

    *
  • format = null
  • *
  • flags = new io.qt.core.Qt.ImageConversionFlags(0)
  • *
*/ @QtUninvokable public final boolean loadFromData(byte[] buf, int offsetOfBuf, int len) { return loadFromData(buf==null ? null : java.nio.ByteBuffer.wrap(buf, offsetOfBuf, len), (java.lang.String)null, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #loadFromData(java.nio.ByteBuffer, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}.

*/ @QtUninvokable public final boolean loadFromData(byte[] buf, int offsetOfBuf, int len, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlags flags) { return loadFromData(buf==null ? null : java.nio.ByteBuffer.wrap(buf, offsetOfBuf, len), format, flags); } /** *

Overloaded function for {@link #loadFromData(byte[], java.lang.String, io.qt.core.Qt.ImageConversionFlags)} * with flags = new io.qt.core.Qt.ImageConversionFlags(0).

*/ @QtUninvokable public final boolean loadFromData(byte[] buf, java.lang.@Nullable String format) { return loadFromData(buf==null ? null : java.nio.ByteBuffer.wrap(buf), format, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #loadFromData(byte[], java.lang.String, io.qt.core.Qt.ImageConversionFlags)}

*

with:

    *
  • format = null
  • *
  • flags = new io.qt.core.Qt.ImageConversionFlags(0)
  • *
*/ @QtUninvokable public final boolean loadFromData(byte[] buf) { return loadFromData(buf==null ? null : java.nio.ByteBuffer.wrap(buf), (java.lang.String)null, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #loadFromData(java.nio.ByteBuffer, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}.

*/ @QtUninvokable public final boolean loadFromData(byte[] buf, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlags flags) { return loadFromData(buf==null ? null : java.nio.ByteBuffer.wrap(buf), format, flags); } /** *

Overloaded function for {@link #loadFromData(java.nio.ByteBuffer, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}.

*/ @QtUninvokable public final boolean loadFromData(java.nio.@Nullable ByteBuffer buf, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlag @NonNull... flags) { return loadFromData(buf, format, new io.qt.core.Qt.ImageConversionFlags(flags)); } /** *

Overloaded function for {@link #loadFromData(java.nio.ByteBuffer, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}.

*/ @QtUninvokable public final boolean loadFromData(byte[] buf, int offsetOfBuf, int len, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlag @NonNull... flags) { return loadFromData(buf==null ? null : java.nio.ByteBuffer.wrap(buf, offsetOfBuf, len), format, new io.qt.core.Qt.ImageConversionFlags(flags)); } /** *

Overloaded function for {@link #loadFromData(java.nio.ByteBuffer, java.lang.String, io.qt.core.Qt.ImageConversionFlags)}.

*/ @QtUninvokable public final boolean loadFromData(byte[] buf, java.lang.@Nullable String format, io.qt.core.Qt.@NonNull ImageConversionFlag @NonNull... flags) { return loadFromData(buf==null ? null : java.nio.ByteBuffer.wrap(buf), format, new io.qt.core.Qt.ImageConversionFlags(flags)); } /** *

Overloaded function for {@link #save(io.qt.core.QIODevice, java.lang.String, int)} * with quality = -1.

*/ @QtUninvokable public final boolean save(io.qt.core.@Nullable QIODevice device, java.lang.@Nullable String format) { return save(device, format, (int)-1); } /** *

Overloaded function for {@link #save(io.qt.core.QIODevice, java.lang.String, int)}

*

with:

    *
  • format = null
  • *
  • quality = -1
  • *
*/ @QtUninvokable public final boolean save(io.qt.core.@Nullable QIODevice device) { return save(device, (java.lang.String)null, (int)-1); } /** *

Overloaded function for {@link #save(java.lang.String, java.lang.String, int)} * with quality = -1.

*/ @QtUninvokable public final boolean save(java.lang.@NonNull String fileName, java.lang.@Nullable String format) { return save(fileName, format, (int)-1); } /** *

Overloaded function for {@link #save(java.lang.String, java.lang.String, int)}

*

with:

    *
  • format = null
  • *
  • quality = -1
  • *
*/ @QtUninvokable public final boolean save(java.lang.@NonNull String fileName) { return save(fileName, (java.lang.String)null, (int)-1); } /** *

Overloaded function for {@link #scaled(io.qt.core.QSize, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)} * with mode = io.qt.core.Qt.TransformationMode.FastTransformation.

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap scaled(io.qt.core.@NonNull QSize s, io.qt.core.Qt.@NonNull AspectRatioMode aspectMode) { return scaled(s, aspectMode, io.qt.core.Qt.TransformationMode.FastTransformation); } /** *

Overloaded function for {@link #scaled(io.qt.core.QSize, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)}

*

with:

    *
  • aspectMode = io.qt.core.Qt.AspectRatioMode.IgnoreAspectRatio
  • *
  • mode = io.qt.core.Qt.TransformationMode.FastTransformation
  • *
*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap scaled(io.qt.core.@NonNull QSize s) { return scaled(s, io.qt.core.Qt.AspectRatioMode.IgnoreAspectRatio, io.qt.core.Qt.TransformationMode.FastTransformation); } /** *

Overloaded function for {@link #scaled(int, int, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)} * with mode = io.qt.core.Qt.TransformationMode.FastTransformation.

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap scaled(int w, int h, io.qt.core.Qt.@NonNull AspectRatioMode aspectMode) { return scaled(w, h, aspectMode, io.qt.core.Qt.TransformationMode.FastTransformation); } /** *

Overloaded function for {@link #scaled(int, int, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)}

*

with:

    *
  • aspectMode = io.qt.core.Qt.AspectRatioMode.IgnoreAspectRatio
  • *
  • mode = io.qt.core.Qt.TransformationMode.FastTransformation
  • *
*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap scaled(int w, int h) { return scaled(w, h, io.qt.core.Qt.AspectRatioMode.IgnoreAspectRatio, io.qt.core.Qt.TransformationMode.FastTransformation); } /** *

Overloaded function for {@link #scaledToHeight(int, io.qt.core.Qt.TransformationMode)} * with mode = io.qt.core.Qt.TransformationMode.FastTransformation.

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap scaledToHeight(int h) { return scaledToHeight(h, io.qt.core.Qt.TransformationMode.FastTransformation); } /** *

Overloaded function for {@link #scaledToWidth(int, io.qt.core.Qt.TransformationMode)} * with mode = io.qt.core.Qt.TransformationMode.FastTransformation.

*/ @QtUninvokable public final io.qt.gui.@NonNull QPixmap scaledToWidth(int w) { return scaledToWidth(w, io.qt.core.Qt.TransformationMode.FastTransformation); } /** *

Overloaded function for {@link #scroll(int, int, io.qt.core.QRect, io.qt.gui.QRegion)} * with exposed = null.

*/ @QtUninvokable public final void scroll(int dx, int dy, io.qt.core.@NonNull QRect rect) { scroll(dx, dy, rect, (io.qt.gui.QRegion)null); } /** *

Overloaded function for {@link #scroll(int, int, int, int, int, int, io.qt.gui.QRegion)} * with exposed = null.

*/ @QtUninvokable public final void scroll(int dx, int dy, int x, int y, int width, int height) { scroll(dx, dy, x, y, width, height, (io.qt.gui.QRegion)null); } /** *

Overloaded function for {@link #fromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)} * with flags = new io.qt.core.Qt.ImageConversionFlags(0).

*/ public static io.qt.gui.@NonNull QPixmap fromImage(io.qt.gui.@NonNull QImage image) { return fromImage(image, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #fromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)}.

*/ public static io.qt.gui.@NonNull QPixmap fromImage(io.qt.gui.@NonNull QImage image, io.qt.core.Qt.@NonNull ImageConversionFlag @NonNull... flags) { return fromImage(image, new io.qt.core.Qt.ImageConversionFlags(flags)); } /** *

Overloaded function for {@link #fromImageReader(io.qt.gui.QImageReader, io.qt.core.Qt.ImageConversionFlags)} * with flags = new io.qt.core.Qt.ImageConversionFlags(0).

*/ public static io.qt.gui.@NonNull QPixmap fromImageReader(io.qt.gui.@Nullable QImageReader imageReader) { return fromImageReader(imageReader, new io.qt.core.Qt.ImageConversionFlags(0)); } /** *

Overloaded function for {@link #fromImageReader(io.qt.gui.QImageReader, io.qt.core.Qt.ImageConversionFlags)}.

*/ public static io.qt.gui.@NonNull QPixmap fromImageReader(io.qt.gui.@Nullable QImageReader imageReader, io.qt.core.Qt.@NonNull ImageConversionFlag @NonNull... flags) { return fromImageReader(imageReader, new io.qt.core.Qt.ImageConversionFlags(flags)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy