Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Public Member Functions | Public Attributes | List of all members
Evolife.Graphics.Screen.Screen_ Class Reference

Stores characteristics of physical display. More...

Public Member Functions

def __init__ (self, MainApp)
 Stores available physical screens. More...
 
def resize (self, *Coord)
 applies screen's display ratio to coordinates More...
 
def locate (self, *Coord)
 calls 'resize' (for high definition screen and optional screen change) More...
 
def switchScreen (self)
 Chave the value of 'currentScreen'. More...
 
def changeScreen (self, Coord)
 translates coordinates to display on current screen More...
 

Public Attributes

 width
 
 height
 
 ratio
 
 displays
 
 currentScreen
 

Detailed Description

Stores characteristics of physical display.

Definition at line 20 of file Screen.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Graphics.Screen.Screen_.__init__ (   self,
  MainApp 
)

Stores available physical screens.

Definition at line 24 of file Screen.py.

Member Function Documentation

◆ changeScreen()

def Evolife.Graphics.Screen.Screen_.changeScreen (   self,
  Coord 
)

translates coordinates to display on current screen

Definition at line 56 of file Screen.py.

◆ locate()

def Evolife.Graphics.Screen.Screen_.locate (   self,
Coord 
)

calls 'resize' (for high definition screen and optional screen change)

Definition at line 46 of file Screen.py.

◆ resize()

def Evolife.Graphics.Screen.Screen_.resize (   self,
Coord 
)

applies screen's display ratio to coordinates

Definition at line 41 of file Screen.py.

◆ switchScreen()

def Evolife.Graphics.Screen.Screen_.switchScreen (   self)

Chave the value of 'currentScreen'.

Definition at line 51 of file Screen.py.

Member Data Documentation

◆ currentScreen

Evolife.Graphics.Screen.Screen_.currentScreen

Definition at line 38 of file Screen.py.

◆ displays

Evolife.Graphics.Screen.Screen_.displays

Definition at line 33 of file Screen.py.

◆ height

Evolife.Graphics.Screen.Screen_.height

Definition at line 28 of file Screen.py.

◆ ratio

Evolife.Graphics.Screen.Screen_.ratio

Definition at line 29 of file Screen.py.

◆ width

Evolife.Graphics.Screen.Screen_.width

Definition at line 27 of file Screen.py.


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