55 ARGB argb, String tag = (
const char*) 0);
58 int input(
UINT x,
UINT y,
bool multiline =
false, String text = (
const char*) 0,
UINT width = 0,
UINT height = 0);
const PROGMEM char Foreground[]
Definition: Graphics.h:32
void onJsonReceived(JsonObject &root, ShieldEvent *shieldEvent) override
Event called when a valid json message was received. Consumes the proper values for this sensor...
Definition: Graphics.cpp:287
bool isReleased(int id, ShieldEvent *shieldEvent=0)
Determines whether the specified identifier is released.
Definition: Graphics.cpp:208
Definition: VirtualShield.h:50
Definition: Graphics.h:37
VirtualShield & shield
Definition: Sensor.h:55
int fillRectangle(UINT x, UINT y, UINT width, UINT height, ARGB argb, String tag=(const char *) 0)
Fills a rectangle.
Definition: Graphics.cpp:129
int addButton(UINT x, UINT y, String text, String tag=(const char *) 0)
Adds a button.
Definition: Graphics.cpp:153
const PROGMEM char HorizontalAlignment[]
Definition: Graphics.h:31
unsigned int UINT
Definition: SensorModels.h:28
Definition: Graphics.h:38
Graphics(const VirtualShield &shield)
Initializes a new instance of the Screen class.
Definition: Graphics.cpp:54
int drawAt(UINT x, UINT y, String text, ARGB argb=0)
Draws graphical text at a location.
Definition: Graphics.cpp:74
Definition: Graphics.h:43
int line(UINT x1, UINT y1, UINT x2, UINT y2, ARGB color, UINT weight=1)
Definition: Graphics.cpp:57
bool isPressed(int id, ShieldEvent *shieldEvent=0)
Determines whether the specified identifier is pressed.
Definition: Graphics.cpp:176
int orientation(int autoRotationPreferences=-1)
Definition: Graphics.cpp:139
bool isButtonClicked(String tag, ShieldEvent *shieldEvent=0)
Determines whether a tag was clicked or tapped.
Definition: Graphics.cpp:240
Definition: SensorModels.h:56
int input(UINT x, UINT y, bool multiline=false, String text=(const char *) 0, UINT width=0, UINT height=0)
Draws the image at a location.
Definition: Graphics.cpp:109
Definition: Graphics.h:39
int enableTouch(bool enable)
Enables the touch input on the screen.
Definition: Graphics.cpp:164
int drawImage(UINT x, UINT y, String url, String tag=(const char *) 0, UINT width=0, UINT height=0)
Draws the image at a location.
Definition: Graphics.cpp:90
Definition: ShieldEvent.h:35
Definition: Orientation.h:34
bool isTouchEvent(ShieldEvent *shieldEvent=0)
Determines whether the specified shield event is a touch input event.
Definition: Graphics.cpp:271
Definition: Graphics.h:40
Definition: Graphics.h:36