C
Qul::PlatformInterface::DrawingDevice Class
class Qul::PlatformInterface::DrawingDeviceDrawingDeviceクラスは、描画可能なデバイスを定義します。詳細...
| Header: | #include <platforminterface/drawingdevice.h> |
| Since: | Qt Quick Ultralite (Platform) 1.5 |
パブリック関数
| DrawingDevice(Qul::PixelFormat format, const Qul::PlatformInterface::Size &size, uchar *bits, int32_t bytesPerLine, Qul::PlatformInterface::DrawingEngine *drawingEngine, void *platformContext = NULL) | |
| uchar * | bits() const |
| int32_t | bitsPerPixel() const |
| int32_t | bytesPerLine() const |
| Qul::PlatformInterface::DrawingEngine * | drawingEngine() const |
| Qul::PlatformInterface::DrawingEngine * | fallbackDrawingEngine() const |
| Qul::PixelFormat | format() const |
| int32_t | height() const |
| Qul::PlatformInterface::PixelDataPointer | pixelDataAt(Qul::PlatformInterface::Point pos) const |
| Qul::PlatformInterface::PixelDataPointer | pixelDataAt(int32_t x, int32_t y) const |
| void * | platformContext() const |
| Qul::PlatformInterface::RenderHints | renderHints() const |
| uchar * | scanLine(int32_t y) const |
| void | setBits(uchar *bits) |
| void | setBytesPerLine(int32_t bytesPerLine) |
| void | setPlatformContext(void *context) |
| void | setRenderHint(Qul::PlatformInterface::RenderHint hint, bool on = true) |
| void | setSize(Qul::PlatformInterface::Size size) |
| const Qul::PlatformInterface::Size & | size() const |
| bool | testRenderHint(Qul::PlatformInterface::RenderHint hint) const |
| int32_t | width() const |
メンバ関数のドキュメント
DrawingDevice::DrawingDevice(Qul::PixelFormat format, const Qul::PlatformInterface::Size &size, uchar *bits, int32_t bytesPerLine, Qul::PlatformInterface::DrawingEngine *drawingEngine, void *platformContext = NULL)
描画デバイスを構築する。
format,size,bits,bytesPerLine,platformContext およびdrawingEngine から、必要な情報をすべて含む描画デバイスが構築される。
bits またはdrawingEngine には所有権はありません。
size bytesPerLine は 0 より大きくなければならない。 はこのデバイスのピクセルデータへの有効なポインタでなければならない。bits
uchar *DrawingDevice::bits() const
ピクセルデータの開始アドレスを返す。
setBits()も参照 。
int32_t DrawingDevice::bitsPerPixel() const
このデバイスのピクセルあたりのビット数を返します。値は、このクラスを構築するときに指定したフォーマットによって決まります。
Qul::PixelFormatも参照してください 。
int32_t DrawingDevice::bytesPerLine() const
このデバイスの 1 行あたりのバイト数を返します。
この数値を指定するには、このクラスを作成する必要があります。
setBytesPerLine()も参照 。
Qul::PlatformInterface::DrawingEngine *DrawingDevice::drawingEngine() const
このデバイスの描画エンジンを返します。
Qul::PlatformInterface::DrawingEngine *DrawingDevice::fallbackDrawingEngine() const
このデバイスのフォールバック描画エンジンを返します。
Qul::PixelFormat DrawingDevice::format() const
このデバイスのピクセルフォーマットを返します。
int32_t DrawingDevice::height() const
このデバイスの高さを返します。
Qul::PlatformInterface::PixelDataPointer DrawingDevice::pixelDataAt(Qul::PlatformInterface::Point pos) const
指定されたピクセルの開始アドレスを返します。
ピクセルはpos
Qul::PlatformInterface::PixelDataPointer DrawingDevice::pixelDataAt(int32_t x, int32_t y) const
与えられたピクセルの開始アドレスを返す。
ピクセルは座標x とy で指定する。
void *DrawingDevice::platformContext() const
下位プラットフォーム・コンテキスト・オブジェクトへのポインタを返します。
グラフィックス・デバイスからbeginFrame()が呼ばれると、描画デバイスは下位レベルのプラットフォーム・コンテキストでインスタンス化されます。この関数を使用して、プラットフォームコンテキストを取得することができます。これは、プラットフォームに固有のデータ型に型キャストすることができる。
setPlatformContext()も参照 。
Qul::PlatformInterface::RenderHints DrawingDevice::renderHints() const
このブレンド操作に必要なレンダリングヒントを指定するフラグを返します。
testRenderHint() およびHardware accelerated blendingも参照して ください。
uchar *DrawingDevice::scanLine(int32_t y) const
与えられた走査線の開始アドレスを返す。
y は0からデバイスの高さまでの範囲でなければならない。
void DrawingDevice::setBits(uchar *bits)
ピクセルデータの開始アドレスをbits に設定する。
この関数は、切り替えるフレームバッファが複数ある場合にのみ、プラットフォームの beginFrame() 関数から使用する。
所有権はありません。
bits()も参照 。
void DrawingDevice::setBytesPerLine(int32_t bytesPerLine)
デバイスの 1 行あたりのバイト数をbytesPerLine に設定する。
この関数は、部分フレームバッファ戦略を使用する場合にのみ、プラットフォームの beginFrame() 関数から使用されるべきである。
bytesPerLine()も参照 。
void DrawingDevice::setPlatformContext(void *context)
下位レベルのプラットフォーム・コンテキスト・オブジェクトへのポインタをcontext に設定する。
この関数は、プラットフォームがプラットフォーム・コンテキストを設定するために使用できる。
platformContext()も参照のこと 。
void DrawingDevice::setRenderHint(Qul::PlatformInterface::RenderHint hint, bool on = true)
on が true の場合、指定されたレンダーhint をDrawingEngine に設定します。そうでない場合、レンダーヒントをクリアします。
注意: レンダリング関数の前に呼び出され、レンダリングプロセスをガイドするヒントを提供します。
void DrawingDevice::setSize(Qul::PlatformInterface::Size size)
デバイスのサイズをsize に設定する。
この関数は、部分フレームバッファ戦略を使用する場合にのみ、プラットフォームの beginFrame() 関数から使用されるべきである。
size()も参照 。
const Qul::PlatformInterface::Size &DrawingDevice::size() const
このデバイスのサイズを返す。
setSize()も参照 。
bool DrawingDevice::testRenderHint(Qul::PlatformInterface::RenderHint hint) const
ブレンド操作にhint が必要な場合はtrue を返し、そうでない場合はfalse を返す。
renderHints() およびHardware accelerated blendingも参照 。
int32_t DrawingDevice::width() const
このデバイスの幅を返します。
特定の Qt ライセンスの下で利用可能です。
詳細はこちら。