B4J Programming Press on the image to return to the main documentation page.

rAdafruitGFX

List of types:

AdafruitGFX

AdafruitGFX

This is a generic graphics library. It always works together with another hardware specific library.

Events:

None

Members:


  ConfigureText (Size As Byte, Color As UInt, Wrap As Boolean) As void

  CursorX As Int [read only]

  CursorY As Int [read only]

  DrawCircle (X0 As Int, Y0 As Int, Radius As Int, Color As UInt, Filled As Boolean) As void

  DrawLine (X0 As Int, Y0 As Int, X1 As Int, Y1 As Int, Color As UInt) As void

  DrawRect (X0 As Int, Y0 As Int, Width As Int, Height As Int, Color As UInt, Filled As Boolean) As void

  DrawText (Text As Object) As AdafruitGFX

  Height As Int [read only]

  SetCursor (X As Int, Y As Int) As void

  Width As Int [read only]

Members description:

ConfigureText (Size As Byte, Color As UInt, Wrap As Boolean) As void
Configures the text drawing settings.
Size - 1 is the default size (6 * 8 pixels per character).
Color - The text color.
Wrap - Whether exceeding text will be wrapped to the next line.
CursorX As Int [read only]
Gets the cursor X position.
CursorY As Int [read only]
Gets the cursor Y position.
DrawCircle (X0 As Int, Y0 As Int, Radius As Int, Color As UInt, Filled As Boolean) As void
Draws a circle.
DrawLine (X0 As Int, Y0 As Int, X1 As Int, Y1 As Int, Color As UInt) As void
Draws a line between the two points.
DrawRect (X0 As Int, Y0 As Int, Width As Int, Height As Int, Color As UInt, Filled As Boolean) As void
Draws a rectangle.
DrawText (Text As Object) As AdafruitGFX
Draws Text. Text can be a string, array of bytes or a number.
Returns the object itself.
Height As Int [read only]
Returns the display height.
SetCursor (X As Int, Y As Int) As void
Sets the cursor position.
Width As Int [read only]
Returns the display width.
Top