TftButtonE()

Library Description ›› Shapes ›› Shapes ››
Parent Previous Next

Syntax

TftButtonE(wX_1 As Word, wY_1 As Word, wX_3 As Word, wY_3 As Word, wColor As Word)

Parameters

wX_1 — X-coordinate of Corner 1

wY_1 — Y-coordinate of Corner 1

wX_3 — X-coordinate of Corner 3

wY_3 — Y-coordinate of Corner 3

wColor — Fill color in 16-bit RGB565 format


Draws an empty stadium (pill/capsule) shape outline, given two opposite bounding-box corners. 


Orientation and cap radius are derived automatically from the bounding box's shorter dimension.

Example

TftSetUp(0, 0)

TftResetScreen(BLACK)

TftButtonE(20,30,70,50,RED)

TftButtonS(120,30,170,50,GREEN)

TftButtonE(20,70,50,130,RED)

TftButtonS(120,70,150,130,GREEN)

Created with the Personal Edition of HelpNDoc: Easy Qt Help documentation editor