DeepCover Embedded Security in IoT: Public-key Secured Data Paths

Dependencies:   MaximInterface

Embed: (wiki syntax)

« Back to documentation index

HardwareTestWindow Class Reference

HardwareTestWindow Class Reference

Assembly hardware test procedure. More...

#include <HardwareTestWindow.hpp>

Inherits Window.

Public Member Functions

const ChildContainer & children () const
 List of child graphics for this parent.
bool focused () const
 Check if this graphic is focused.
void setFocused ()
 Set this graphic as the focused graphic.
void move (int x, int y)
 Move graphic to a new location measured in pixels.
void resize (int width, int height)
 Resize graphic to a new size measure in pixels.
bool update (Bitmap *canvas)
 Update this graphic and all child graphics.
bool processKey (Key key)
 Process a key-press input event.
Window manager

Current window manager or NULL if no window manager has been set.

const WindowManagerwindowManager () const
WindowManagerwindowManager ()
void setWindowManager (WindowManager *windowManager)
Parent

Get or set the parent graphic of this graphic.

Set to NULL if this graphic has no parent.

Graphicparent ()
const Graphicparent () const
void setParent (Graphic *parent)
int x () const
 Coordinates of this graphic in pixels.
int width () const
 Displayed dimensions of this graphic in pixels.
void render (Bitmap &bitmap, int xOffset, int yOffset) const
 Render this graphic onto a bitmap.

Protected Member Functions

virtual void resized ()
 Event handler for when this graphic has been resized.
virtual void updated ()
 Event handler for when this graphic has been updated.
virtual bool doProcessKey (Key key)
 Process a key-press input event.
void invalidate ()
 Mark the visual region as invalid.
virtual void childrenChanged ()
 Event handler for when a child is added or removed.
virtual void focusChanged (bool focused)
 Event handler for when this graphic has been focused or unfocused.
virtual void moved ()
 Event handler for when this graphic has been moved.
virtual void doRender (Bitmap &bitmap, int xOffset, int yOffset) const
 Render this graphic onto a bitmap.

Detailed Description

Assembly hardware test procedure.

Definition at line 40 of file HardwareTestWindow.hpp.


Member Function Documentation

const ChildContainer& children (  ) const [inherited]

List of child graphics for this parent.

Note:
Children should be added and removed by calling setParent. Children will be removed automatically when they are destroyed.

Definition at line 73 of file Graphic.hpp.

void childrenChanged (  ) [protected, virtual, inherited]

Event handler for when a child is added or removed.

Definition at line 231 of file Graphic.cpp.

bool doProcessKey ( Key   ) [protected, virtual]

Process a key-press input event.

Returns:
True if the key event was handled. False if the key event should be propagated.

Reimplemented from Graphic.

Definition at line 121 of file HardwareTestWindow.cpp.

void doRender ( Bitmap bitmap,
int  xOffset,
int  yOffset 
) const [protected, virtual, inherited]

Render this graphic onto a bitmap.

The default implementation renders each child in order.

Reimplemented in DisplayGraphicWindow, DisplayIdWindow, ErrorWindow, Image, InitWindow, NormalOperationWindow, Rectangle, and Text.

Definition at line 150 of file Graphic.cpp.

void focusChanged ( bool  focused ) [protected, virtual, inherited]

Event handler for when this graphic has been focused or unfocused.

Parameters:
focusedTrue if focused or false if unfocused.

Reimplemented in Button.

Definition at line 233 of file Graphic.cpp.

bool focused (  ) const [inherited]

Check if this graphic is focused.

Returns:
True if focused.

Definition at line 78 of file Graphic.cpp.

void invalidate (  ) [protected, inherited]

Mark the visual region as invalid.

Note:
Indicates a redraw is necessary during next update.

Definition at line 143 of file Graphic.hpp.

void move ( int  x,
int  y 
) [inherited]

Move graphic to a new location measured in pixels.

Coordinates are relative to the top-left corner of the parent graphic.

See also:
moved

Definition at line 114 of file Graphic.cpp.

void moved (  ) [protected, virtual, inherited]

Event handler for when this graphic has been moved.

Definition at line 235 of file Graphic.cpp.

bool processKey ( Key  key ) [inherited]

Process a key-press input event.

The event will first be directed to the focused graphic. Processing will proceed to each parent graphic until it has been handled.

See also:
doProcessKey
Returns:
True if the key event was handled.

Definition at line 216 of file Graphic.cpp.

void render ( Bitmap bitmap,
int  xOffset,
int  yOffset 
) const [inherited]

Render this graphic onto a bitmap.

Definition at line 155 of file Graphic.cpp.

void resize ( int  width,
int  height 
) [inherited]

Resize graphic to a new size measure in pixels.

Minimum width and height is 1.

See also:
resized

Definition at line 123 of file Graphic.cpp.

void resized (  ) [protected, virtual]

Event handler for when this graphic has been resized.

Reimplemented from Graphic.

Definition at line 49 of file HardwareTestWindow.cpp.

void setFocused (  ) [inherited]

Set this graphic as the focused graphic.

The focused graphic is the first to receive input events such as key presses.

See also:
focusChanged

Definition at line 89 of file Graphic.cpp.

void setParent ( Graphic parent ) [inherited]
Note:
Adds this graphic to the parent's list of children.
See also:
childrenChanged

Definition at line 53 of file Graphic.cpp.

bool update ( Bitmap canvas ) [inherited]

Update this graphic and all child graphics.

Checks if graphic has been invalidated and should be redrawn.

Parameters:
canvasCanvas used for rendering. May be set to NULL to defer redraw.
Returns:
True if the canvas has been updated.
See also:
updated

Definition at line 207 of file Graphic.cpp.

void updated (  ) [protected, virtual]

Event handler for when this graphic has been updated.

Reimplemented from Graphic.

Definition at line 51 of file HardwareTestWindow.cpp.

int width (  ) const [inherited]

Displayed dimensions of this graphic in pixels.

Definition at line 99 of file Graphic.hpp.

int x (  ) const [inherited]

Coordinates of this graphic in pixels.

Coordinates are relative to the top-left corner of the parent graphic.

Definition at line 91 of file Graphic.hpp.