touchgfx::SnapshotWidget is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

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

Syntax

class SnapshotWidget : public Widget { public:     SnapshotWidget();     virtual ~SnapshotWidget();     virtual void draw(const Rect& invalidatedArea) const;     virtual Rect getSolidRect() const;     virtual void makeSnapshot();     virtual void makeSnapshot(const BitmapId bmp);     void setAlpha(const uint8_t a)     {         alpha = a;     }     uint8_t getAlpha() const     {         return alpha;     }     virtual uint16_t getType() const     {         return (uint16_t)TYPE_SNAPSHOTWIDGET;     } protected:     uint16_t* fbCopy;        uint8_t   alpha;   };

Fields

fbCopy

No summary provided. Read more...

alpha

No summary provided. Read more...

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...

References

LocationReferrerScopeText
SnapshotWidget.hpp:37
class SnapshotWidget : public Widget
Transition.hpp:25
class SnapshotWidget;
SlideTransition.hpp:277touchgfx::SlideTransition::snapshottouchgfx::SlideTransition
SnapshotWidget snapshot; ///< The SnapshotWidget that is moved when transitioning.
SlideTransition.hpp:278touchgfx::SlideTransition::snapshotPtrtouchgfx::SlideTransition
SnapshotWidget* snapshotPtr; ///< Pointer pointing to the snapshot used in this transition.The snapshot pointer

Class Tree

Child classes
touchgfx::SnapshotWidget
all items filtered out
Variables of touchgfx::SnapshotWidget type
touchgfx::SnapshotWidget