「App:Library:FabGL:Class:Canvas」の版間の差分

提供: robot-jp wiki
ナビゲーションに移動検索に移動
(ページの作成:「== class Canvas == ビットマップ表示コントローラーの基本抽象クラスを表します。 {| class="wikitable" |#include <canvas.h> |} BitmappedDisplay…」)
 
1行目: 1行目:
 
== class Canvas ==
 
== class Canvas ==
ビットマップ表示コントローラーの基本抽象クラスを表します。
+
一連の描画メソッドを持つクラス。
 
{| class="wikitable"
 
{| class="wikitable"
|#include <canvas.h>
+
|#include <[http://www.fabglib.org/canvas_8h_source.html '''canvas.h''']>
|}
 
 
 
BitmappedDisplayController の継承図。
 
{| class="wikitable"
 
|   BaseDisplayController     
 
 
 
        ↑
 
 
 
   BitmappedDisplayController
 
 
|}
 
|}
  
17行目: 8行目:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|virtual int [http://www.fabglib.org/classfabgl_1_1_base_display_controller_a332051b311781945a020928d50825adc.html#a332051b311781945a020928d50825adc '''colorsCount'''] ()=0
+
|
:Determines number of colors this display can provide.
 
 
|-
 
|-
|[http://www.fabglib.org/group___enumerations_gadb8147abda8588ce7306a700532148e1.html#gadb8147abda8588ce7306a700532148e1 '''DisplayControllerType'''] [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a2337a67770ebd18e0ced22ba40d79d24.html#a2337a67770ebd18e0ced22ba40d79d24 '''controllerType'''] ()
+
|
:Determines the display controller type.
 
 
|-
 
|-
|void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_abd0898e61591117a7b8dce2fa4b4c4d4.html#abd0898e61591117a7b8dce2fa4b4c4d4 '''enableBackgroundPrimitiveExecution'''] (bool value)
+
|
:Enables or disables drawings inside vertical retracing time.
 
 
|-
 
|-
|void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a1a03e74ed2fb8e2af22e7fd0454ae828.html#a1a03e74ed2fb8e2af22e7fd0454ae828 '''enableBackgroundPrimitiveTimeout'''] (bool value)
+
|
:Enables or disables execution time limitation inside vertical retracing interrupt.
 
 
|-
 
|-
|int [http://www.fabglib.org/classfabgl_1_1_base_display_controller_a0872427e4a351bb3590e8d00096e9cba.html#a0872427e4a351bb3590e8d00096e9cba '''getScreenHeight'''] ()
+
|
:Determines the screen height in pixels.
 
 
|-
 
|-
|int [http://www.fabglib.org/classfabgl_1_1_base_display_controller_a749df909b39fd096bf6e2813f2f5324c.html#a749df909b39fd096bf6e2813f2f5324c '''getScreenWidth'''] ()
+
|
:Determines the screen width in pixels.
 
 
|-
 
|-
|virtual int [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_ada5f99a696a06cbd96b2b86d1e78878a.html#ada5f99a696a06cbd96b2b86d1e78878a '''getViewPortHeight'''] ()=0
+
|
:Determines vertical size of the viewport.
 
 
|-
 
|-
|virtual int [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a9274060e33708f97a1d77ca37f7bf0a8.html#a9274060e33708f97a1d77ca37f7bf0a8 '''getViewPortWidth'''] ()=0
+
|
:Determines horizontal size of the viewport.
 
 
|-
 
|-
|bool [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a37da1545d5037b279fbb10c622121427.html#a37da1545d5037b279fbb10c622121427 '''isDoubleBuffered'''] ()
+
|
:Determines whether [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller.html '''BitmappedDisplayController'''] is on double buffered mode.
 
 
|-
 
|-
|virtual [http://www.fabglib.org/group___enumerations_ga03403b592cc00776d70bc5ad6c177276.html#ga03403b592cc00776d70bc5ad6c177276 '''NativePixelFormat'''] [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_adc1527381cd987281396cd3d894b73b1.html#adc1527381cd987281396cd3d894b73b1 '''nativePixelFormat'''] ()=0
+
|
:Represents the native pixel format used by this display.
 
 
|-
 
|-
|void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a94887c6019244300620e71d52e61a554.html#a94887c6019244300620e71d52e61a554 '''processPrimitives'''] ()
+
|
:Draws immediately all primitives in the queue.
 
 
|-
 
|-
|void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_aeb689cfc2364a4d66e3ac3368146c70d.html#aeb689cfc2364a4d66e3ac3368146c70d '''refreshSprites'''] ()
+
|
:Forces the sprites to be updated.
 
 
|-
 
|-
|void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_ad968eec19f2e3663a5431b96894636df.html#ad968eec19f2e3663a5431b96894636df '''removeSprites'''] ()
+
|
:Empties the list of active sprites.
 
 
|-
 
|-
|virtual void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a5e5288dfa4b4cdcb9380711da9fa1e65.html#a5e5288dfa4b4cdcb9380711da9fa1e65 '''resumeBackgroundPrimitiveExecution'''] ()=0
+
|
:Resumes drawings after [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a5ccd64740850569f8c59d7c83c7590c4.html#a5ccd64740850569f8c59d7c83c7590c4 '''suspendBackgroundPrimitiveExecution()'''].
 
 
|-
 
|-
|void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a94fd39f8c9245ed51545f9dd6ce7f6ee.html#a94fd39f8c9245ed51545f9dd6ce7f6ee '''setMouseCursor'''] ([http://www.fabglib.org/structfabgl_1_1_cursor.html '''Cursor'''] *cursor)
+
|
:Sets mouse cursor and make it visible.
 
 
|-
 
|-
|void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a43a95ed39cce3e065407d1e7a30b2f4f.html#a43a95ed39cce3e065407d1e7a30b2f4f setMouseCursor] ([http://www.fabglib.org/group___enumerations_gab91da6221ce0fc3b24f077fb4b775b2c.html#gab91da6221ce0fc3b24f077fb4b775b2c '''CursorName'''] cursorName)
+
|
:Sets mouse cursor from a set of predefined cursors.
 
 
|-
 
|-
|void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_ae0897f2355f7462b5ab003083418e3b4.html#ae0897f2355f7462b5ab003083418e3b4 '''setMouseCursorPos'''] (int [http://www.fabglib.org/fabutils_8h_aa6aba27bc1a89db9e350b50bbf881f57.html#aa6aba27bc1a89db9e350b50bbf881f57 '''X'''], int [http://www.fabglib.org/fabutils_8h_abe4637362df8e341470401813999dd17.html#abe4637362df8e341470401813999dd17 '''Y'''])
+
|
:Sets mouse cursor position.
 
 
|-
 
|-
|<small>template<typename T ></small>
+
|
void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a75ba732cc6ae90f53757b588f6c75d7e.html#a75ba732cc6ae90f53757b588f6c75d7e '''setSprites'''] (T *sprites, int count)
 
:Sets the list of active sprites.
 
 
|-
 
|-
|virtual void [http://www.fabglib.org/classfabgl_1_1_bitmapped_display_controller_a5ccd64740850569f8c59d7c83c7590c4.html#a5ccd64740850569f8c59d7c83c7590c4 '''suspendBackgroundPrimitiveExecution'''] ()=0
+
|
:Suspends drawings.
 
 
|}
 
|}
  

2022年3月22日 (火) 22:35時点における版

class Canvas

一連の描画メソッドを持つクラス。

#include <canvas.h>

Public Member Functions

Static Public Attributes

static int queueSize = 1024
Size of display controller primitives queue.

Detailed Description

ビットマップ表示コントローラーの基本抽象クラスを表します。

Examples:
VGA/AnsiTerminal/AnsiTerminal.ino.

Definition at line 737 of file displaycontroller.h.


このクラスのドキュメントは、次のファイルから生成されました。



戻る