enigma2  2.6
Classes | Functions | Variables
skin Namespace Reference

Classes

class  additionalWidget
 
class  ComponentSizes
 
class  Layouts
 
class  SkinError
 
class  TemplatedColors
 
class  TemplatedListFonts
 
class  WidgetGroup
 

Functions

def dump (x, i=0)
 
def getSkinYRes (dom)
 
def loadSkin (name, scope=SCOPE_SKIN)
 
def parsePercent (val, base)
 
def evalPos (pos, wsize, ssize, scale)
 
def getParentSize (desktop, guiObject)
 
def translateVariable (value)
 
def parsePosition (value, scale, desktop=None, guiObject=None)
 
def parseSize (value, scale, desktop=None, guiObject=None)
 
def parseFont (str, scale)
 
def parseColor (str)
 
def parseValue (str)
 
def collectAttributes (skinAttributes, node, skin_path_prefix=None, ignore=[])
 
def loadPixmap (path, desktop, size=eSize())
 
def applySingleAttribute (guiObject, desktop, attrib, value, scale=((1, 1),(1, 1)))
 
def applyAllAttributes (guiObject, desktop, attributes, scale, skipZPosition=False)
 
def loadSingleSkinData (desktop, skin, path_prefix)
 
def loadSkinData (desktop)
 
def lookupScreen (name, style_id)
 
def readSkin (screen, skin, names, desktop)
 
def parseWidgets (name, node, screen, skin_path_prefix, visited_components, group=None)
 
def parseWidget (name, widget, screen, skin_path_prefix, visited_components, group)
 

Variables

bool HAS_SKIN_USER_DISPLAY = True
 
 colorNames = dict()
 
 skinGlobals = dict()
 
list dom_skins = [ ]
 
 value
 
def yres = getSkinYRes(dom_skins[-1][1])
 
string skin_default_specific = 'skin_default_%s.xml' %yres
 
 layouts = Layouts()
 
 componentSizes = ComponentSizes()
 

Function Documentation

◆ applyAllAttributes()

def skin.applyAllAttributes (   guiObject,
  desktop,
  attributes,
  scale,
  skipZPosition = False 
)

◆ applySingleAttribute()

def skin.applySingleAttribute (   guiObject,
  desktop,
  attrib,
  value,
  scale = ((1,1),(1,1)) 
)

◆ collectAttributes()

def skin.collectAttributes (   skinAttributes,
  node,
  skin_path_prefix = None,
  ignore = [] 
)

◆ dump()

def skin.dump (   x,
  i = 0 
)

◆ evalPos()

def skin.evalPos (   pos,
  wsize,
  ssize,
  scale 
)

◆ getParentSize()

def skin.getParentSize (   desktop,
  guiObject 
)

◆ getSkinYRes()

def skin.getSkinYRes (   dom)

◆ loadPixmap()

def skin.loadPixmap (   path,
  desktop,
  size = eSize() 
)

◆ loadSingleSkinData()

def skin.loadSingleSkinData (   desktop,
  skin,
  path_prefix 
)
loads skin data like colors, windowstyle etc.

◆ loadSkin()

def skin.loadSkin (   name,
  scope = SCOPE_SKIN 
)

◆ loadSkinData()

def skin.loadSkinData (   desktop)

◆ lookupScreen()

def skin.lookupScreen (   name,
  style_id 
)

◆ parseColor()

def skin.parseColor (   str)

◆ parseFont()

def skin.parseFont (   str,
  scale 
)

◆ parsePercent()

def skin.parsePercent (   val,
  base 
)

◆ parsePosition()

def skin.parsePosition (   value,
  scale,
  desktop = None,
  guiObject = None 
)

◆ parseSize()

def skin.parseSize (   value,
  scale,
  desktop = None,
  guiObject = None 
)

◆ parseValue()

def skin.parseValue (   str)

◆ parseWidget()

def skin.parseWidget (   name,
  widget,
  screen,
  skin_path_prefix,
  visited_components,
  group 
)

◆ parseWidgets()

def skin.parseWidgets (   name,
  node,
  screen,
  skin_path_prefix,
  visited_components,
  group = None 
)

◆ readSkin()

def skin.readSkin (   screen,
  skin,
  names,
  desktop 
)

◆ translateVariable()

def skin.translateVariable (   value)

Variable Documentation

◆ colorNames

skin.colorNames = dict()

◆ componentSizes

skin.componentSizes = ComponentSizes()

◆ dom_skins

list skin.dom_skins = [ ]

◆ HAS_SKIN_USER_DISPLAY

bool skin.HAS_SKIN_USER_DISPLAY = True

◆ layouts

skin.layouts = Layouts()

◆ skin_default_specific

string skin.skin_default_specific = 'skin_default_%s.xml' %yres

◆ skinGlobals

skin.skinGlobals = dict()

◆ value

skin.value

◆ yres

def skin.yres = getSkinYRes(dom_skins[-1][1])