#author("2016-08-02T11:47:04+09:00","default:nari","nari")
[[FrontPage]]
#author("2016-08-02T16:35:46+09:00","default:nari","nari")

* Adafruit_GFXのmethod [#m61bbbda]

Adafruit_GFXクラスのメソッドを以下に示します。
これら以外に、Printクラスを継承しているので、print(), println()も使用できます。

:drawLine('''int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint16_t color''')|
:drawFastVLine('''int16_t x, int16_t y, int16_t h, uint16_t color''')|
:drawFastHLine('''int16_t x, int16_t y, int16_t w, uint16_t color''')|
:drawRect('''int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color''')|
:fillRect('''int16_t x, int16_t y, int16_t w, int16_t h, uint16_t color''')|
:fillScreen('''uint16_t color''')|
:invertDisplay('''boolean i''')|
:drawCircle('''int16_t x0, int16_t y0, int16_t r, uint16_t color''')|
:drawCircleHelper('''int16_t x0, int16_t y0, int16_t r, uint8_t cornername, uint16_t color''')|
:fillCircle('''int16_t x0, int16_t y0, int16_t r, uint16_t color''')|
:fillCircleHelper('''int16_t x0, int16_t y0, int16_t r, uint8_t cornername, int16_t delta, uint16_t color''')|
:drawTriangle('''int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color''')|
:fillTriangle('''int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, uint16_t color''')|
:drawRoundRect('''int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color''')|
:fillRoundRect('''int16_t x0, int16_t y0, int16_t w, int16_t h, int16_t radius, uint16_t color''')|
:drawBitmap('''int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color''')|
:drawBitmap('''int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg''')|
:drawBitmap('''int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color''')|
:drawBitmap('''int16_t x, int16_t y, uint8_t *bitmap, int16_t w, int16_t h, uint16_t color, uint16_t bg''')|
:drawXBitmap('''int16_t x, int16_t y, const uint8_t *bitmap, int16_t w, int16_t h, uint16_t color''')|
:drawChar('''int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size''')|
:setCursor('''int16_t x, int16_t y''')|
:setTextColor('''uint16_t c''')|
:setTextColor('''uint16_t c, uint16_t bg''')|
:setTextSize('''uint8_t s''')|
:setTextWrap('''boolean w''')|
:setRotation('''uint8_t r''')|
:cp437('''boolean x=true''')|
:setFont('''const GFXfont *f = NULL''')|
:getTextBounds('''char *string, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h''')|
:getTextBounds('''const __FlashStringHelper *s, int16_t x, int16_t y, int16_t *x1, int16_t *y1, uint16_t *w, uint16_t *h'''); size_t write(uint8_t)|
:int16_t height('''void''') const|
:int16_t width('''void''') const|
:uint8_t getRotation('''void''') const|
:int16_t getCursorX('''void''') const|
:int16_t getCursorY('''void''') const|


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS