Public Member Functions | Public Attributes

unlock.view.view.UnlockView Class Reference

Inheritance diagram for unlock.view.view.UnlockView:
unlock.view.fastpad_view.FastPadButton unlock.view.fastpad_view.FastPadView unlock.view.grid.GridView unlock.view.grid.HierarchyGridView unlock.view.pyglet_sprite.PygletSprite unlock.view.pyglet_text.BellRingTextLabelDecorator unlock.view.pyglet_text.PygletLabel unlock.view.scope_view.FrequencyScopeView unlock.view.scope_view.TimeScopeView

List of all members.

Public Member Functions

def __init__
def drawRect
def drawGrid
def drawText
def drawLine
def drawLinePlot

Public Attributes

 vertex_list
 verticies

Member Function Documentation

def unlock.view.view.UnlockView.__init__ (   self  ) 
def unlock.view.view.UnlockView.drawGrid (   self,
  x_offset,
  y_offset,
  rows,
  columns,
  tile_width,
  tile_height,
  batch,
  color = (255, 255,
  group = None 
)
def unlock.view.view.UnlockView.drawLine (   self,
  x1,
  y1,
  x2,
  y2,
  canvas,
  color = (255,255,
  group = None 
)
Draws a line between two points on the screen

:param x1: x-coordinate of first point (Pixels from left)
:param y1: y-coordinate of first point (Pixels from bottom)
:param x2: x-coordinate of second point (Pixels from left)
:param y2: y-coordinate of second point (Pixels from bottom)
:param color: Color of line. Tuple of length three.
:param group: Batch group
def unlock.view.view.UnlockView.drawLinePlot (   self,
  vertices,
  canvas,
  color = (255,255,
  group = None 
)
Given a set of vertices, will plot lines between each vertices in the
list

:param vertices: list of vertices to be plotted.
:param color: Color of Line plot. Tuple of length three
:param group: batch group
def unlock.view.view.UnlockView.drawRect (   self,
  x_offset,
  y_offset,
  width,
  height,
  batch,
  color = (255,255,
  fill = False,
  group = None 
)
Draws a rectangle. Either just the frame, or a filled in shape.

:param x: x-ccordinate of leftmost vertice. In unit pixels from Left
:param y: y-cooridnate of bottommost vertice. In unit pixels from Bottom
:param width: width of rectangle. Unit pixels
:param height: height of rectangle. Unit pixels
:param color: color of rectangle. Tuple of length three.
:param fill: Toggle whether the rectangle should be filled or left as a frame
:param group: batch group
def unlock.view.view.UnlockView.drawText (   self,
  text,
  x,
  y,
  canvas,
  font = 'Helvetica',
  size = 48,
  color = (255,255,
  group = None 
)
Draws text at a specific point on the screen

:param text: Text to display
:param x: x-coordinate of center of text(Pixels from left)
:param y: y-coordinate of center of text(Pixels from bottom)
:param font: Font of text
:param size: Size of text
:param color: Color of text. Tuple of length four.
:param group: Batch group

Member Data Documentation


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