touchgfx::SnapshotWidget class
@class SnapshotWidget SnapshotWidget.hpp touchgfx/widgets/SnapshotWidget.hpp A widget that is able to make a snapshot of the area the SnapshotWidget covers. A widget that is able to make a snapshot of the area the SnapshotWidget covers. The SnapshotWidget will show the snapshot captured when it is drawn. Note: The snapshot must be taken from a byte aligned position. On BPP=4, this means on even positions, x=0, 2, 4, 8,... On BPP=2, this means on positions, x= 0, 4, 8, 12,... On BPP=1, this means on positions, x= 0, 8, 16,... @see Widget
Methods
draw() const
@fn virtual void SnapshotWidget::draw(const Rect& invalidatedArea) const; Draws the SnapshotWidget. Draws the SnapshotWidget. It supports partial drawing, so it only redraws the area described by invalidatedArea.
Read more...
getSolidRect() const
@fn virtual Rect SnapshotWidget::getSolidRect() const; Gets solid rectangle. Gets solid rectangle.
Read more...
makeSnapshot()
@fn virtual void SnapshotWidget::makeSnapshot(); Makes a snapshot of the area the SnapshotWidget currently covers. Makes a snapshot of the area the SnapshotWidget currently covers. This area is defined by setting the dimensions and the position of the SnapshotWidget. The snapshot is stored in Animation Storage.
Read more...
makeSnapshot()
@fn virtual void SnapshotWidget::makeSnapshot(); Makes a snapshot of the area the SnapshotWidget currently covers. Makes a snapshot of the area the SnapshotWidget currently covers. This area is defined by setting the dimensions and the position of the SnapshotWidget. The snapshot is stored in Animation Storage.
Read more...
setAlpha()
@fn void SnapshotWidget::setAlpha(const uint8_t a) Sets the alpha value. Sets the alpha value.
Read more...
getAlpha() const
@fn uint8_t SnapshotWidget::getAlpha() const Gets the current alpha value. Gets the current alpha value.
Read more...
getType() const
@fn virtual uint16_t SnapshotWidget::getType() const For GUI testing only. For GUI testing only. Returns type of this drawable.
Read more...
Child classes
touchgfx::SnapshotWidget
Variables of touchgfx::SnapshotWidget type
touchgfx::SnapshotWidget