Graphics::setCursor

Description

void Graphics::setCursor( int16_t x , int16_t y )

Graphics::setCursor sets both the x-position and the y-position of the text cursors at the same time.

Parameters

  • int16_t x: x-position of the text cursors
  • int16_t y: y-position of the text cursors

Returns

none

Example

#include <Gamebuino-Meta.h>

void setup() {
  gb.begin();
}

void loop() {
  if (gb.update()) {
    gb.display.clear();

    // set the text cursors
    gb.display.setCursor(10, 10);

    gb.display.println("Hello World");
  }
}