Public Member Functions | Public Attributes | Static Public Attributes

unlock.view.fastpad_view.FastPadView Class Reference

Inheritance diagram for unlock.view.fastpad_view.FastPadView:
unlock.view.view.UnlockView

List of all members.

Public Member Functions

def __init__
def addText
def removeText
def speakText
def render

Public Attributes

 model
 canvas
 batch
 textRect
 text
 buttonB
 button0
 buttonE
 button7
 button8
 button9
 button4
 button5
 button6
 button1
 button2
 button3
 currButton
 currIndex

Static Public Attributes

tuple BG_COLOR = (0, 0, 0)
tuple CURSOR_COLOR = (0, 0, 255)
int CURSOR_MARGIN = 2

Member Function Documentation

def unlock.view.fastpad_view.FastPadView.__init__ (   self,
  model,
  canvas 
)
Initialize internal data structures.

Input:
    screen -- (Unlock Screen) Drawing area

Raises an Exception if anything goes wrong.
def unlock.view.fastpad_view.FastPadView.addText (   self,
  label 
)
Add the given label to the current text if
there is enough space.

Input:
    label -- (str) The text to add

Raises an Exception if anything goes wrong.
def unlock.view.fastpad_view.FastPadView.removeText (   self,
  label 
)
Removes 1 character from the end of the current
text, if available.

Input:
    label -- (str) Unused

Raises an Exception if anything goes wrong.
def unlock.view.fastpad_view.FastPadView.render (   self  ) 
Set the FastPad into the given state/mode.

Input:
    mode -- (str) One of "CURSOR" or "SELECT"
    button -- (FastPadButton) Where is the cursor
or selection marker?

Raises an Exception if anything goes wrong.
def unlock.view.fastpad_view.FastPadView.speakText (   self,
  label 
)
Speaks the current text out via a TTS if we're
on a supported platform.
    
Input:
    label -- (str) Unused
    
Raises an Exception if anything goes wrong.

Member Data Documentation


The documentation for this class was generated from the following file: