Graphics::setCursorX

Description

void Graphics::setCursorX( int16_t x )

Graphics::setCursorX will set the x-position of the text cursor.

Parameters

  • int16_t x: x-position of the cursor

Returns

none

Example

#include <Gamebuino-Meta.h>

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

void loop() {
  while(!gb.update());
  gb.display.clear();

  // set the x-cursor to something else
  gb.display.setCursorX(10);

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