C
Qul::PlatformInterface Namespace
Qt Quick Ultralite コアライブラリから、プラットフォーム実装で使用するインターフェースを提供します。さらに...
| Header: | #include <platforminterface/platforminterface.h> |
クラス
(since Qt Quick Ultralite (Platform) 1.8) struct | Allocator |
(since Qt Quick Ultralite (Platform) 1.8) class | Brush |
(since Qt Quick Ultralite (Platform) 2.12) class | DateTime |
(since Qt Quick Ultralite (Platform) 1.8) class | DefaultPathDataStroker |
(since Qt Quick Ultralite (Platform) 1.5) class | DrawingDevice |
(since Qt Quick Ultralite (Platform) 1.5) class | DrawingEngine |
(since Qt Quick Ultralite (Platform) 2.6) class | File |
(since Qt Quick Ultralite (Platform) 2.6) class | Filesystem |
(since Qt Quick Ultralite (Platform) 1.7) struct | GenericMatrix |
(since Qt Quick Ultralite (Platform) 2.7) class | GradientStop |
(since Qt Quick Ultralite (Platform) 2.7) class | GradientStops |
(since Qt Quick Ultralite (Platform) 2.7) class | ImageDecoder |
(since Qt Quick Ultralite (Platform) 1.7) class | LayerEngine |
(since Qt Quick Ultralite (Platform) 2.7) class | LinearGradient |
(since Qt Quick Ultralite (Platform) 1.9) class | MemoryAllocator |
(since Qt Quick Ultralite (Platform) 1.8) class | PathData |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataArcSegment |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataCubicBezierSegment |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataIterator |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataLargeClockWiseArcSegment |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataLargeCounterClockWiseArcSegment |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataLineSegment |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataMoveSegment |
(since Qt Quick Ultralite (Platform) 1.9) class | PathDataPathSeparatorSegment |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataQuadraticBezierSegment |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataSegment |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataSmallClockWiseArcSegment |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataSmallCounterClockWiseArcSegment |
(since Qt Quick Ultralite (Platform) 1.8) class | PathDataStroker |
(since Qt Quick Ultralite (Platform) 1.9) struct | PixelDataPointer |
(since Qt Quick Ultralite (Platform) 1.5) class | Point |
(since Qt Quick Ultralite (Platform) 1.5) class | PointF |
(since Qt Quick Ultralite (Platform) 1.5) class | Rect |
(since Qt Quick Ultralite (Platform) 1.5) class | RectF |
(since Qt Quick Ultralite (Platform) 1.5) struct | Rgba32 |
(since Qt Quick Ultralite (Platform) 1.5) class | Screen |
(since Qt Quick Ultralite (Platform) 1.5) class | Size |
(since Qt Quick Ultralite (Platform) 1.5) class | SizeF |
(since Qt Quick Ultralite (Platform) 1.8) struct | StrokeProperties |
(since Qt Quick Ultralite (Platform) 1.5) class | Texture |
(since Qt Quick Ultralite (Platform) 1.5) struct | TouchPoint |
(since Qt Quick Ultralite (Platform) 1.5) class | Transform |
型
| enum | GradientSpread { PadSpread, RepeatSpread, ReflectSpread } |
(since Qt Quick Ultralite (Platform) 1.5) enum | KeyEventType { KeyPressEvent, KeyReleaseEvent } |
(since Qt Quick Ultralite (Platform) 1.5) enum | KeyboardModifier { NoKeyboardModifier, ShiftKeyboardModifier, ControlKeyboardModifier, AltKeyboardModifier, MetaKeyboardModifier, …, GroupSwitchKeyboardModifier } |
(since Qt Quick Ultralite (Platform) 1.8) enum | LineCapStyle { FlatCap, RoundCap, SquareCap } |
(since Qt Quick Ultralite (Platform) 1.8) enum | LineJoinStyle { MiterJoin, RoundJoin, BevelJoin } |
(since Qt Quick Ultralite (Platform) 1.8) enum | PathFillRule { PathOddEvenFill, PathWindingFill } |
(since Qt Quick Ultralite (Platform) 1.8) enum | PathOptimizationHints { PathOptimizationHints_None, PathOptimizationHints_NotSelfIntersecting, PathOptimizationHints_NoOverlappingSubPaths } |
(since Qt Quick Ultralite 2.12) enum class | RenderHint { SafeRendering } |
(since Qt Quick Ultralite 2.12) | RenderHints |
(since Qt Quick Ultralite (Platform) 1.8) | Vector |
関数
(since Qt Quick Ultralite (Platform) 1.5) void | blendRectTiled(Qul::PlatformInterface::DrawingDevice *buffer, const Qul::PlatformInterface::Rect &rect, Qul::PlatformInterface::Rgba32 color, void (*)() finish, void (*)(void *, int) invalidateCache) |
(since Qt Quick Ultralite (Platform) 1.5) void | blendRectTiledAlphaMap(Qul::PlatformInterface::DrawingDevice *buffer, const Qul::PlatformInterface::Rect &rect, Qul::PlatformInterface::Rgba32 color, void (*)() finish, void (*)(void *, int) invalidateCache) |
| void | deviceLinkBytesReceived(const uint8_t *data, int size) |
(since Qt Quick Ultralite (Platform) 2.2) void | error(unsigned int lineNumber, QulError code, int param1 = 0, int param2 = 0, int param3 = 0) |
(since Qt Quick Ultralite (Platform) 2.7) void | generateGradientColorTable(const Qul::PlatformInterface::GradientStops &gradientStops, float opacity, Qul::PlatformInterface::Rgba32 *colorTable, int size, bool premultipliedAlpha) |
(since Qt Quick Ultralite (Platform) 1.5) void | handleKeyEvent(uint64_t timestamp, Qul::PlatformInterface::KeyEventType type, int key, uint32_t nativeScanCode = 0, unsigned int modifiers = NoKeyboardModifier, const char *textUtf8 = NULL, bool autoRepeat = false, uint32_t ucs4 = 0) |
(since Qt Quick Ultralite (Platform) 1.5) void | handleTouchCancelEvent(Qul::PlatformInterface::Screen *screen, uint64_t timestamp) |
(since Qt Quick Ultralite (Platform) 1.5) void | handleTouchEvent(Qul::PlatformInterface::Screen *screen, uint64_t timestamp, const Qul::PlatformInterface::TouchPoint *touchPoints, unsigned int numTouchPoints) |
(since Qt Quick Ultralite (Platform) 2.9) void | initializeArgb32CpuFallbackDrawingEngine() |
(since Qt Quick Ultralite (Platform) 2.9) void | initializeArgb4444CpuFallbackDrawingEngine() |
(since Qt Quick Ultralite (Platform) 2.9) void | initializeBgr888CpuFallbackDrawingEngine() |
(since Qt Quick Ultralite (Platform) 2.9) void | initializeRgb16CpuFallbackDrawingEngine() |
(since Qt Quick Ultralite (Platform) 2.9) void | initializeRgb32CpuFallbackDrawingEngine() |
(since Qt Quick Ultralite (Platform) 2.9) void | initializeRgb332CpuFallbackDrawingEngine() |
(since Qt Quick Ultralite (Platform) 2.9) void | initializeRgb888CpuFallbackDrawingEngine() |
(since Qt Quick Ultralite (Platform) 1.9) int | log(const char *format, ...) |
(since Qt Quick Ultralite (Platform) 1.8) void | pathArcToBeziers(Qul::PlatformInterface::cubicToPath func, void *data, float radiusX, float radiusY, float xAxisRotation, bool useLargeArc, bool clockwise, const Qul::PlatformInterface::PointF &source, const Qul::PlatformInterface::PointF &target) |
| void | qul_delete(T *t) |
| T * | qul_new() |
| T * | qul_new(Arg1 arg1) |
| T * | qul_new(Args &&... args) |
| T * | qul_new(Arg1 arg1, Arg2 arg2) |
| T * | qul_new(Arg1 arg1, Arg2 arg2, Arg3 arg3) |
| T * | qul_new(Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4) |
(since Qt Quick Ultralite (Platform) 2.2) QulErrorHandler * | setErrorHandler(QulErrorHandler *handler) |
(since Qt Quick Ultralite (Platform) 1.5) void | updateEngine(uint64_t timestamp) |
| bool | operator!=(const Qul::PlatformInterface::Rect &r1, const Qul::PlatformInterface::Rect &r2) |
| bool | operator!=(const Qul::PlatformInterface::RectF &r1, const Qul::PlatformInterface::RectF &r2) |
| Qul::PlatformInterface::GenericMatrix<M, N, T2> | operator*(T1 factor, const Qul::PlatformInterface::GenericMatrix<M, N, T2> &matrix) |
| Qul::PlatformInterface::GenericMatrix<M, N2, T> | operator*(const Qul::PlatformInterface::GenericMatrix<M, N1, T> &m1, const Qul::PlatformInterface::GenericMatrix<N1, N2, T> &m2) |
| Qul::PlatformInterface::GenericMatrix<M, N, T> | operator+(const Qul::PlatformInterface::GenericMatrix<M, N, T> &m1, const Qul::PlatformInterface::GenericMatrix<M, N, T> &m2) |
| bool | operator==(const Qul::PlatformInterface::Rect &r1, const Qul::PlatformInterface::Rect &r2) |
| bool | operator==(const Qul::PlatformInterface::RectF &r1, const Qul::PlatformInterface::RectF &r2) |
クラス
クラスAllocator
C++ 標準コンテナで使用するメモリ・アロケータです。詳細...
クラスBrush
DrawingEngine を使用して描画される図形の塗りつぶしパターンを表します。詳細はこちら
クラスDateTime
DateTime クラスは、ミリ秒単位のデータと時刻をネイティブに表現します。詳細はこちら
クラスDefaultPathDataStroker
DefaultPathDataStroker はPathDataStroker のデフォルト実装を提供します。
クラスDrawingDevice
DrawingDevice クラスは、描画可能なデバイスを定義します。詳細
クラスDrawingEngine
このクラスはブレンド関数の抽象インターフェイスを提供します。詳細はこちら
クラスFile
File クラスはファイルへのアクセスを実装するための抽象 API を提供します。詳細
クラスFilesystem
Filesystem クラスは、カスタムファイルシステムを実装するための抽象 API を提供します。詳細
クラスGenericMatrix
GenericMatrix クラスは行列を表すテンプレートクラスです。さらに...
クラスGradientStop
グラデーション内の単一のグラデーションストップを表します。詳細はこちら
クラスGradientStops
グラデーションの色の遷移を定義するために使用される停止点のセットを表します。詳細はこちら
クラスImageDecoder
ImageDecoderクラスは、カスタム画像デコーダを実装するための抽象APIを提供します。詳細はこちら
クラスLayerEngine
このクラスはハードウェアレイヤーを管理するための抽象インターフェースを提供します。詳細はこちら
クラスLinearGradient
Brush で使用される線形グラデーションを表します。詳細はこちら
クラスMemoryAllocator
メモリ割り当ての抽象インターフェイスを提供します。詳細はこちら
クラスPathData
ベクターのパスデータを表します。詳細はこちら
クラスPathDataArcSegment
パスデータのアークセグメントを表します。詳細はこちら
クラスPathDataCubicBezierSegment
パスデータのキュービックベジェセグメントを表します。詳細
クラスPathDataIterator
パスデータセグメントを繰り返し処理するための便利なクラスです。詳細
クラスPathDataLargeClockWiseArcSegment
パスデータの大きな時計回りの円弧セグメントを表します。詳細
クラスPathDataLargeCounterClockWiseArcSegment
パスデータの大きな反時計回りのアークセグメントを表します。詳細...
クラスPathDataLineSegment
パスデータのラインセグメントを表します。詳細
クラスPathDataMoveSegment
パスデータの移動セグメントを表します。詳細
クラスPathDataPathSeparatorSegment
パスデータのパスセパレータセグメントを表します。詳細
クラスPathDataQuadraticBezierSegment
パスデータの二次ベジエセグメントを表します。詳細
クラスPathDataSegment
Qul::PlatformInterface::PathData クラスの単一のパスデータセグメントを表します。詳細
クラスPathDataSmallClockWiseArcSegment
パスデータの時計回りの小さな円弧セグメントを表します。詳細
クラスPathDataSmallCounterClockWiseArcSegment
パスデータの反時計回りの小さなアークセグメントを表します。詳細はこちら
クラスPathDataStroker
PathDataStroker は図形のストローク表現を生成します。詳細はこちら
クラスPixelDataPointer
正確な(ビットパーフェクトな)ピクセルデータの位置に関する情報を含む構造体です。詳細はこちら
クラスPoint
Point クラスは平面上の点を整数精度で定義します。詳細はこちら
クラスPointF
PointFクラスは、平面上の点を浮動小数点精度で定義します。点は x 座標と y 座標で指定され、x() とy() 関数を使用してアクセスできます。点の座標は、精度のために浮動小数点数を使用して指定されます。x と y の両方が 0.0 に設定されている場合、isNull() 関数はtrue を返す。座標を設定(または変更)するには、setX() およびsetY() 関数を使用するか、座標への参照を返すrx() およびry() 関数を使用します(直接操作可能)。詳細
クラスRect
Rect クラスは、平面上の矩形を整数精度で定義します。詳細はこちら
クラスRectF
RectF クラスは、浮動小数点精度を使用した平面上の矩形を定義します。詳細はこちら
クラスRgba32
Rgba32 クラスは RGBA カラーの記憶領域を提供します。詳細はこちら
Screenクラス
Screenクラスは、ピクセル単位の表示サイズに関する情報を保持します。詳細
Sizeクラス
Sizeクラスは、整数点精度で2次元オブジェクトのサイズを定義します。詳細
SizeFクラス
SizeF クラスは、浮動小数点精度を使用した 2 次元オブジェクトのサイズを定義します。詳細はこちら
クラスStrokeProperties
パスのストロークのプロパティを指定する構造体です。詳細
クラスTexture
テクスチャに関する情報を含むクラスです。詳細はこちら
クラスTouchPoint
単一のタッチポイントを表します。詳細はこちら
クラスTransform
Transformクラスは座標系の2次元変換を指定します。詳細はこちら
型に関するドキュメント
enum PlatformInterface::GradientSpread
サポートされるさまざまなグラデーションの広がりを定義します。
| 定数 | 値 | 説明 |
|---|---|---|
Qul::PlatformInterface::PadSpread | 0 | 最も近いストップカラーで塗りつぶされます。これはデフォルトです。 |
Qul::PlatformInterface::RepeatSpread | 1 | グラデーションはグラデーション領域の外側で繰り返されます。 |
Qul::PlatformInterface::ReflectSpread | 2 | グラデーションはグラデーション領域の外側に反映されます。 |
[since Qt Quick Ultralite (Platform) 1.5] enum KeyEventType
キーイベントの種類を表す列挙型。
| 定数 | 値 | 説明 |
|---|---|---|
KeyPressEvent | 0 | キー押下イベントを表します。 |
KeyReleaseEvent | 1 | キーリリースイベントを表します。 |
この列挙型はQt Quick Ultralite (Platform) 1.5で導入されました。
[since Qt Quick Ultralite (Platform) 1.5] enum KeyboardModifier
| 定数 | 値 | 説明 |
|---|---|---|
NoKeyboardModifier | 0x00000000 | 修飾子が押されていない |
ShiftKeyboardModifier | 0x02000000 | キーボードのShiftキーが押されている |
ControlKeyboardModifier | 0x04000000 | キーボードのCtrlキーが押されている |
AltKeyboardModifier | 0x08000000 | キーボードのAltキーが押されている |
MetaKeyboardModifier | 0x10000000 | キーボードのMetaキーが押された |
KeypadKeyboardModifier | 0x20000000 | キーパッドのボタンが押された |
GroupSwitchKeyboardModifier | 0x40000000 | キーボードのMode_switchキーが押された。 |
この enum はQt Quick Ultralite (Platform) 1.5 で導入されました。
[since Qt Quick Ultralite (Platform) 1.8] enum LineCapStyle
この列挙型は、Qul::PlatformInterface::DrawingEngine を使って描画できる、サポートされるラインキャップのスタイルを定義します。
| 定数 | 値 | 説明 |
|---|---|---|
FlatCap | 0 | 行末からはみ出さない四角い線端。 |
RoundCap | 1 | 線幅の半分に等しい半径を持つ丸みを帯びた線端。 |
SquareCap | 2 | 線幅の半分だけ線端からはみ出した四角い線端。 |
この enum はQt Quick Ultralite (Platform) 1.8 で導入されました。
[since Qt Quick Ultralite (Platform) 1.8] enum LineJoinStyle
この列挙型は、Qul::PlatformInterface::DrawingEngine を使って描画できる、サポートされる線結合スタイルを定義します。
| 定数 | 値 | 説明 |
|---|---|---|
MiterJoin | 0 | 線の外縁が斜めになるように延長され、その部分が塗りつぶされます。 |
RoundJoin | 1 | 2本の線の間の円弧が塗りつぶされます。 |
BevelJoin | 2 | 2本の線の間の三角形の切り欠きが塗りつぶされる。 |
この列挙型はQt Quick Ultralite (Platform) 1.8 で導入されました。
[since Qt Quick Ultralite (Platform) 1.8] enum PlatformInterface::PathFillRule
この列挙型は、パスをどのように埋めるかを定義する。
| 定数 | 値 | 説明 |
|---|---|---|
Qul::PlatformInterface::PathOddEvenFill | 0 | 奇数偶数塗りつぶし規則を用いて領域を塗りつぶすことを指定する。このルールでは、点が図形の内側にあるかどうかは、以下の方法で決定される。点から図形の外側に水平線を引き、交点の数を数える。交点の数が奇数であれば、その点はシェイプの内側にある。このモードがデフォルトである。 |
Qul::PlatformInterface::PathWindingFill | 1 | 非ゼロ巻きルールで領域を塗りつぶすことを指定する。この規則では、点が図形の内側にあるかどうかは、次の方法で決定される。点から図形の外側に水平線を引く。各交点における線の方向が上か下かを判断する。各交点の方向を合計して巻き数を求める。巻き数が0でなければ、その点は図形の内側にある。この塗りつぶしモードは、ほとんどの場合、閉じた形状の交点とみなすこともできる。 |
このenumはQt Quick Ultralite (Platform) 1.8で導入されました。
[since Qt Quick Ultralite (Platform) 1.8] enum PathOptimizationHints
この列挙型はパス最適化のヒントを定義する。
| 定数 | 値 | 説明 |
|---|---|---|
PathOptimizationHints_None | 0 | パス最適化のヒントなし。 |
PathOptimizationHints_NotSelfIntersecting | 1 | パスに自己交差する線がない。 |
PathOptimizationHints_NoOverlappingSubPaths | 2 | パスが重複するサブパスを持たない。 |
この enum はQt Quick Ultralite (Platform) 1.8 で導入されました。
[since Qt Quick Ultralite 2.12] enum class PlatformInterface::RenderHint
この列挙型は、利用可能なすべてのレンダーヒントを指定します。
| 定数 | 値 | 説明 |
|---|---|---|
Qul::PlatformInterface::RenderHint::SafeRendering | (1 << 0) | レンダリングは安全なアイテムのためのものである。DrawingEngine 実装は、出力がfallbackDrawingEngine によるレンダリングと一致することを保証しなければならない。 |
この列挙型はQt Quick Ultralite 2.12 で導入された。
[since Qt Quick Ultralite 2.12] PlatformInterface::RenderHints
RenderHint 値の集合を含むflag オブジェクト。
この型定義はQt Quick Ultralite 2.12で導入された。
[alias, since Qt Quick Ultralite (Platform) 1.8] template <typename T> PlatformInterface::Vector
std::vector テンプレートの特殊化で、Qul::Platform::qul_malloc とQul::Platform::qul_free を使ってそれぞれメモリの確保と解放を行います。
C++ バージョン C++11 以降でのみ使用可能。
この型定義はQt Quick Ultralite (Platform) 1.8 で導入されました。
関数ドキュメント
[since Qt Quick Ultralite (Platform) 1.5] void blendRectTiled(Qul::PlatformInterface::DrawingDevice *buffer, const Qul::PlatformInterface::Rect &rect, Qul::PlatformInterface::Rgba32 color, void (*)() finish, void (*)(void *, int) invalidateCache)
色を直接ブレンドする方法を持たない2Dアクセラレータのための回避策。
color 、適切な大きさのバッファをソースカラーで満たし、そのバッファをソースとして使用することで、rect 。
buffer finish はブレンド操作の最後に呼び出される。非同期ブレンディング操作を待つために使用されるかもしれません。 は、割り当てられたタイル・メモリのキャッシュを無効にするために呼び出されます。不要な場合は を指定する。NULL invalidateCache NULL
この関数はQt Quick Ultralite (Platform) 1.5 で導入されました。
[since Qt Quick Ultralite (Platform) 1.5] void blendRectTiledAlphaMap(Qul::PlatformInterface::DrawingDevice *buffer, const Qul::PlatformInterface::Rect &rect, Qul::PlatformInterface::Rgba32 color, void (*)() finish, void (*)(void *, int) invalidateCache)
色を直接ブレンドする方法を持たない2Dアクセラレータのための回避策。
blendRectTiled と同じですが、DrawingEngine::blendAlphaMap を使います。
ARGB32をブレンドする必要がないため、帯域幅が節約されます。
適切な大きさのバッファをソースカラーで満たし、そのバッファをソースとして使用し、出力矩形全体をタイル化するために複数の呼び出しを行う可能性があることによって、rect にcolor をブレンドします。
buffer finish はブレンド操作の最後に呼び出される。非同期ブレンディング操作を待つために使用されるかもしれません。 は、割り当てられたタイル・メモリのキャッシュを無効にするために呼び出されます。不要な場合は を指定する。NULL invalidateCache NULL
この関数はQt Quick Ultralite (Platform) 1.5 で導入されました。
void PlatformInterface::deviceLinkBytesReceived(const uint8_t *data, int size)
シリアル・ポートで受信したデータをさらにデコードして送信する。
この関数は、ホストから文字が受信されたときに、シリアル・ポート受信関数によって呼び出されなければならない。data は受信データで、size はその長さである。この関数はデータをQul::Platform::DeviceLink::charsReceived に転送します。
デバイスリンク通信の移植」も参照してください 。
[since Qt Quick Ultralite (Platform) 2.2] void error(unsigned int lineNumber, QulError code, int param1 = 0, int param2 = 0, int param3 = 0)
エラーメッセージをデフォルトまたはカスタムハンドラに報告します。
デフォルトのエラー・ハンドラは、エラーcode 、lineNumber 、および追加のparam1 、param2 、param3 をQul::Platform::PlatformContext::consoleWrite に出力する。
デフォルト・ハンドラは、エラー・メッセージを表示した後にプログラムを停止し、デバッグ用にバックトレースを保存するために無限ループに入ります。
カスタム・エラー・ハンドラがQul::setErrorHandler を使用して設定されている場合、そのハンドラを呼び出します。
この関数はQt Quick Ultralite (Platform) 2.2で導入されました。
エラー処理も参照してください 、 Qt Quick Ultralite error codesおよびQUL_ASSERT も参照してください。
[since Qt Quick Ultralite (Platform) 2.7] void generateGradientColorTable(const Qul::PlatformInterface::GradientStops &gradientStops, float opacity, Qul::PlatformInterface::Rgba32 *colorTable, int size, bool premultipliedAlpha)
グラデーションストップからグラデーションカラーテーブルを生成します。
与えられたgradientStops と不透明値opacity に基づいてグラデーションカラーテーブルを生成します。
colorTable パラ メ タは色テーブルを指 し 示 し 、size は色テーブルが持つべき項目の数を指定します。
premultipliedAlpha パラメータは、出力データにアルファ値を事前乗算するかどうかを指定します。
この関数はQt Quick Ultralite (Platform) 2.7 で導入されました。
[since Qt Quick Ultralite (Platform) 1.5] void handleKeyEvent(uint64_t timestamp, Qul::PlatformInterface::KeyEventType type, int key, uint32_t nativeScanCode = 0, unsigned int modifiers = NoKeyboardModifier, const char *textUtf8 = NULL, bool autoRepeat = false, uint32_t ucs4 = 0)
キーイベントの処理
プラットフォームレイヤーから受け取ったキーイベントは、この関数を通してコアエンジンに渡されなければならない。timestamp はイベントが発生した時刻である。これは通常、プラットフォームのネイティブタイムスタンプ関数から読み取られた時刻です。type は、これがキーの押下イベントなのか、離鍵イベントなのかを指定します。key は、Qul::PlatformInterface::Key enumの値に従った、実際のキー識別子です。 nativeScanCode Qul::Key_unknown modifiers は、Qul::PlatformInterface::KeyModifier の値の OR の組み合わせによって、キーイベントの時にどのキー修飾子が押されたままになっているかを指定します。
textUtf8 は未使用で、次のメジャーリリースで削除される予定です。
autoRepeat は、このキーが自動繰り返しキーであるかどうかを指定します。
ucs4 はキーが生成するテキストのucs4表現で、さまざまな国際キーボードサポートや文字ケーシングに役立ちます。コアエンジンはキーボードの状態を保持しないことに注意してください。プラットフォーム統合は、現在アクティブな修飾子の状態を追跡し、それに基づいて関連するucs4値を選択する責任を負います。コントロールキーや、完全なテキスト入力をサポートしたくない場合は、NULLのままにしておく必要があります(QMLに送られるキーイベントは空のテキストプロパティを持ちますが、key とnativeScanCode の値に基づいてアクションを選択することは可能です)。
この関数はQt Quick Ultralite (Platform) 1.5 で導入されました。
Qul::Platform::PlatformContext::currentTimestampも参照して ください。
[since Qt Quick Ultralite (Platform) 1.5] void handleTouchCancelEvent(Qul::PlatformInterface::Screen *screen, uint64_t timestamp)
タッチイベントをキャンセル
screen のタッチイベントをキャンセルします。timestamp はイベントが発生した時刻です。これは通常、プラットフォームのネイティブタイムスタンプ機能から読み取られた時刻です。screen がNULL の場合、プラットフォームのプライマリ画面が使用されます。
この関数はQt Quick Ultralite (Platform) 1.5で導入されました。
Qul::Platform::PlatformContext::currentTimestamp およびQul::Platform::PlatformContext::availableScreensも参照してください 。
[since Qt Quick Ultralite (Platform) 1.5] void handleTouchEvent(Qul::PlatformInterface::Screen *screen, uint64_t timestamp, const Qul::PlatformInterface::TouchPoint *touchPoints, unsigned int numTouchPoints)
タッチイベントを処理する
プラットフォームレイヤーから受信したタッチイベントは、この関数を通してコアエンジンに渡す必要がある。screen はタッチイベントが発行されたスクリーンである。timestamp はイベントが発生した時間である。これは通常、プラットフォームのネイティブタイムスタンプ機能から読み取られた時刻である。touchPoints とnumTouchPoints には、現在アクティブなタッチポイントのリストが含まれる。タッチポイントの所有権は呼び出し関数にある。screen がNULL の場合、プラットフォームのプライマリー・スクリーンが使用される。
この関数はQt Quick Ultralite (Platform) 1.5で導入されました。
Qul::Platform::PlatformContext::currentTimestamp およびQul::Platform::PlatformContext::availableScreensも参照してください 。
[since Qt Quick Ultralite (Platform) 2.9] void initializeArgb32CpuFallbackDrawingEngine()
ARGB32 フォーマットの 32 BPP レンダリング用にQt Quick Ultralite を初期化します。
デフォルトでは、Qt Quick Ultralite はフォールバック レンダラーを参照しないため、フォールバック レンダラーが使用されない場合は破棄されます。
この関数は、ARGB32フォーマットの32 BPP描画デバイス用のフォールバックレンダラを設定します。ARGB32 CPU フォールバック描画エンジンは、RGB32 CPU フォールバック描画エンジンと同じ描画エンジンとブレンド関数を使用します。
この関数はQt Quick Ultralite (Platform) 2.9 で導入されました。
Qul::PlatformInterface::initializeRgb332CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb16CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb4444CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeBgr888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb32CpuFallbackDrawingEngineも参照してください 。
[since Qt Quick Ultralite (Platform) 2.9] void initializeArgb4444CpuFallbackDrawingEngine()
ARGB4444 フォーマットの 16 BPP レンダリング用にQt Quick Ultralite を初期化します。
デフォルトでは、Qt Quick Ultralite はフォールバック レンダラーを参照しないため、フォールバック レンダラーが使用されない場合は破棄されます。
この関数は、ARGB4444フォーマットの16 BPP描画デバイス用のフォールバックレンダラを設定します。
この関数はQt Quick Ultralite (Platform) 2.9 で導入されました。
Qul::PlatformInterface::initializeRgb332CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb16CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeBgr888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb32CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb32CpuFallbackDrawingEngineも参照してください 。
[since Qt Quick Ultralite (Platform) 2.9] void initializeBgr888CpuFallbackDrawingEngine()
BGR888 フォーマットの 24 BPP レンダリング用にQt Quick Ultralite を初期化します。
デフォルトでは、Qt Quick Ultralite はフォールバック レンダラーを参照しないため、フォールバック レンダラーが使用されない場合は破棄されます。
この関数は、BGR888フォーマットの24 BPP描画デバイス用のフォールバックレンダラを設定します。RGB888フォーマットにはQul::PlatformInterface::initializeRgb888CpuFallbackDrawingEngine 。
この関数はQt Quick Ultralite (Platform) 2.9 で導入されました。
Qul::PlatformInterface::initializeRgb332CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb16CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb4444CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb32CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb32CpuFallbackDrawingEngineも参照してください 。
[since Qt Quick Ultralite (Platform) 2.9] void initializeRgb16CpuFallbackDrawingEngine()
RGB565 フォーマットの 16 BPP レンダリング用にQt Quick Ultralite を初期化します。
デフォルトでは、Qt Quick Ultralite はフォールバック レンダラーを参照しないため、フォールバック レンダラーが使用されない場合は破棄されます。
この関数は、RGB565フォーマットの16 BPP描画デバイス用のフォールバックレンダラを設定します。
この関数はQt Quick Ultralite (Platform) 2.9 で導入されました。
Qul::PlatformInterface::initializeRgb332CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb4444CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeBgr888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb32CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb32CpuFallbackDrawingEngineも参照してください 。
[since Qt Quick Ultralite (Platform) 2.9] void initializeRgb32CpuFallbackDrawingEngine()
RGB32 フォーマットの 32 BPP レンダリング用にQt Quick Ultralite を初期化します。
デフォルトでは、Qt Quick Ultralite はフォールバック レンダラーを参照しないため、フォールバック レンダラーが使用されない場合は破棄されます。
この関数は、RGB32フォーマットの32 BPP描画デバイス用のフォールバックレンダラを設定します。RGB32 CPU フォールバック描画エンジンは、ARGB32 CPU フォールバック描画エンジンと同じ描画エンジンとブレンド関数を使用します。
この関数はQt Quick Ultralite (Platform) 2.9 で導入されました。
Qul::PlatformInterface::initializeRgb332CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb16CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb4444CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeBgr888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb32CpuFallbackDrawingEngineも参照してください 。
[since Qt Quick Ultralite (Platform) 2.9] void initializeRgb332CpuFallbackDrawingEngine()
RGB332 フォーマットの 8 BPP レンダリング用にQt Quick Ultralite を初期化します。
デフォルトでは、Qt Quick Ultralite はフォールバック レンダラーを参照しないため、フォールバック レンダラーが使用されない場合は破棄されます。
この関数は、RGB332フォーマットの8 BPP描画デバイス用のフォールバックレンダラを設定します。
この関数はQt Quick Ultralite (Platform) 2.9 で導入されました。
Qul::PlatformInterface::initializeRgb16CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb4444CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeBgr888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb32CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb32CpuFallbackDrawingEngineも参照してください 。
[since Qt Quick Ultralite (Platform) 2.9] void initializeRgb888CpuFallbackDrawingEngine()
RGB888 フォーマットの 24 BPP レンダリング用にQt Quick Ultralite を初期化します。
デフォルトでは、Qt Quick Ultralite はフォールバック レンダラーを参照しないため、フォールバック レンダラーが使用されない場合は破棄されます。
この関数は、RGB888フォーマットの24 BPP描画デバイス用のフォールバックレンダラを設定します。BGR888フォーマットにはQul::PlatformInterface::initializeBgr888CpuFallbackDrawingEngine 。
この関数はQt Quick Ultralite (Platform) 2.9 で導入されました。
Qul::PlatformInterface::initializeRgb332CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb16CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb4444CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeBgr888CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeArgb32CpuFallbackDrawingEngine,Qul::PlatformInterface::initializeRgb32CpuFallbackDrawingEngineも参照してください 。
[since Qt Quick Ultralite (Platform) 1.9] int log(const char *format, ...)
format の文字列に従って ... で定義された引数を出力する。出力をQul::Platform::PlatformContext::consoleWrite に書き込む。
format はヌル終端マルチバイト文字列へのポインタで、データの解釈方法を指定します。
... には、印刷するデータを指定する引数が含まれる。
正常に書き込まれた文字数を返すか、エラーが発生した場合は負の値を返す。
注: 書式文字列解析は、C++11std::printf と同等です。
この関数はQt Quick Ultralite (Platform) 1.9 で導入されました。
Qul::Platform::PlatformContext::consoleWrite()も参照して ください。
[since Qt Quick Ultralite (Platform) 1.8] void pathArcToBeziers(Qul::PlatformInterface::cubicToPath func, void *data, float radiusX, float radiusY, float xAxisRotation, bool useLargeArc, bool clockwise, const Qul::PlatformInterface::PointF &source, const Qul::PlatformInterface::PointF &target)
円弧セグメントを一連のベジエ曲線に変換します。
提供されたコールバックfunc は、3次ベジエ曲線パラメータで最大4回呼び出されます。data ハンドルもコールバックの最初の引数として与えられ、必然的なaradiusYコンテキスト情報を提供するために使用することができます。
radiusX,radiusY,xAxisRotation,useLargeArc,clockwise,source andtarget パラメータは SVG 標準に従って弧セグメントを定義する。
この関数はQt Quick Ultralite (Platform) 1.8 で導入されました。
Qul::PlatformInterface::PathDataArcSegmentも参照 。
template <typename T> void PlatformInterface::qul_delete(T *t)
型のメモリを解放し、デストラクタを呼び出すためのヘルパー関数。
t は、qul_new で以前に割り当てられた型へのポインタです。
template <typename T> T *PlatformInterface::qul_new()
T 型のQul::Platform::qul_malloc 実装を使用してメモリを確保し、そのコンストラクタを呼び出すヘルパー関数。
この関数は C++03 以下でのみ使用できます。
template <typename T, typename Arg1> T *PlatformInterface::qul_new(Arg1 arg1)
T 型のQul::Platform::qul_malloc 実装を使用してメモリを確保し、引数を指定してコンストラクタを呼び出すヘルパー関数。
この関数は C++03 以下でのみ使用できます。
template <typename T, typename... Args> T *PlatformInterface::qul_new(Args &&... args)
T 型のQul::Platform::qul_malloc 実装を使用してメモリを確保し、args でそのコンストラクタを呼び出すヘルパー関数。
この関数は C++11 以上でのみ使用可能です。
template <typename T, typename Arg1, typename Arg2> T *PlatformInterface::qul_new(Arg1 arg1, Arg2 arg2)
T 型のQul::Platform::qul_malloc 実装を使用してメモリを確保し、引数を指定してコンストラクタを呼び出すヘルパー関数。
この関数は C++03 以下でのみ使用できます。
template <typename T, typename Arg1, typename Arg2, typename Arg3> T *PlatformInterface::qul_new(Arg1 arg1, Arg2 arg2, Arg3 arg3)
T 型のQul::Platform::qul_malloc 実装を使用してメモリを確保し、引数を指定してコンストラクタを呼び出すヘルパー関数。
この関数は C++03 以下でのみ使用できます。
template <typename T, typename Arg1, typename Arg2, typename Arg3, typename Arg4> T *PlatformInterface::qul_new(Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4)
T 型のQul::Platform::qul_malloc 実装を使用してメモリを確保し、引数を指定してコンストラクタを呼び出すヘルパー関数。
この関数は C++03 以下でのみ使用できます。
[since Qt Quick Ultralite (Platform) 2.2] QulErrorHandler *setErrorHandler(QulErrorHandler *handler)
エラーハンドラをhandler に設定する。
引数としてNULL を渡すと、デフォルトのエラーハンドリングに戻る。
以前のエラーハンドラへのポインタを返します。 デフォルトのエラーハンドラが使用されている場合は、NULL が返されます。
によって呼び出される。Qul::setErrorHandler
この関数はQt Quick Ultralite (Platform) 2.2で導入されました。
エラー処理も参照してください 。
[since Qt Quick Ultralite (Platform) 1.5] void updateEngine(uint64_t timestamp)
Qt Quick Ultralite エンジンのアップデート
Qt Quick Ultraliteエンジンは、タイマーと表示アニメーションを更新するために定期的に更新する必要があります。
timestamp パラメーターは、Qul::Platform::PlatformContext::currentTimestamp() によって報告された、ミリ秒単位の現在のプラットフォームのタイムスタンプです。
この例では、メイン・ループからエンジンの更新を実行する典型的なセクションを示しています。
static uint64_t nextUpdate = 0; void scheduleEngineUpdate(uint64_t timeout) { nextUpdate = timeout; } while_loop { const uint64_t timestamp = Qul::Platform::PlatformContext::currentTimestamp(); if (timestamp >= nextUpdate) { Qul::PlatformInterface::updateEngine(timestamp); } else { // Device could sleep until time in 'nextUpdate'. enterSleepMode(nextUpdate); } }
コールバックQul::Platform::PlatformContext::scheduleEngineUpdate は、Qul::PlatformInterface::updateEngineを介して、次にQt Quick Ultraliteエンジンの更新が必要になったことをプラットフォーム実装に通知します。
この関数はQt Quick Ultralite (Platform) 1.5 で導入されました。
Qul::Platform::PlatformContext::scheduleEngineUpdate およびQul::Platform::PlatformContext::currentTimestampも参照してください 。
bool operator!=(const Qul::PlatformInterface::Rect &r1, const Qul::PlatformInterface::Rect &r2)
長方形r1 r2 が異なる場合はtrue を返し、そうでない場合はfalse を返す。
bool operator!=(const Qul::PlatformInterface::RectF &r1, const Qul::PlatformInterface::RectF &r2)
長方形r1 r2 が異なる場合はtrue を返し、そうでない場合はfalse を返す。
template <int M, int N, typename T1, typename T2> Qul::PlatformInterface::GenericMatrix<M, N, T2> operator*(T1 factor, const Qul::PlatformInterface::GenericMatrix<M, N, T2> &matrix)
matrix の全要素にスカラーfactor を掛けた結果を返す。
template <int M, int N1, int N2, typename T> Qul::PlatformInterface::GenericMatrix<M, N2, T> operator*(const Qul::PlatformInterface::GenericMatrix<M, N1, T> &m1, const Qul::PlatformInterface::GenericMatrix<N1, N2, T> &m2)
m1 とm2 の全要素を乗算した結果を返す。
template <int M, int N, typename T> Qul::PlatformInterface::GenericMatrix<M, N, T> operator+(const Qul::PlatformInterface::GenericMatrix<M, N, T> &m1, const Qul::PlatformInterface::GenericMatrix<M, N, T> &m2)
m1 とm2 の和を返す。
bool operator==(const Qul::PlatformInterface::Rect &r1, const Qul::PlatformInterface::Rect &r2)
長方形r1 r2 が等しい場合はtrue を返し、そうでない場合はfalse を返す。
bool operator==(const Qul::PlatformInterface::RectF &r1, const Qul::PlatformInterface::RectF &r2)
長方形r1 とr2 が等しい場合はtrue を返し、そうでない場合はfalse を返します。
特定の Qt ライセンスの下で利用可能です。
詳細を見る。