MythTV  master
Public Member Functions | Public Attributes | List of all members
mythburn.FontDef Class Reference

class to hold a font definition More...

Inheritance diagram for mythburn.FontDef:
Inheritance graph
[legend]
Collaboration diagram for mythburn.FontDef:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, name=None, fontFile=None, size=19, color="white", effect="normal", shadowColor="black", shadowSize=1)
 
def getFont (self)
 
def drawText (self, text, color=None)
 

Public Attributes

 name
 
 fontFile
 
 size
 
 color
 
 effect
 
 shadowColor
 
 shadowSize
 
 font
 

Detailed Description

class to hold a font definition

Definition at line 231 of file mythburn.py.

Constructor & Destructor Documentation

◆ __init__()

def mythburn.FontDef.__init__ (   self,
  name = None,
  fontFile = None,
  size = 19,
  color = "white",
  effect = "normal",
  shadowColor = "black",
  shadowSize = 1 
)

Definition at line 232 of file mythburn.py.

Member Function Documentation

◆ getFont()

def mythburn.FontDef.getFont (   self)

Definition at line 242 of file mythburn.py.

◆ drawText()

def mythburn.FontDef.drawText (   self,
  text,
  color = None 
)

Definition at line 248 of file mythburn.py.

Member Data Documentation

◆ name

mythburn.FontDef.name

Definition at line 233 of file mythburn.py.

◆ fontFile

mythburn.FontDef.fontFile

Definition at line 234 of file mythburn.py.

Referenced by mythburn.FontDef.drawText(), and mythburn.FontDef.getFont().

◆ size

mythburn.FontDef.size

Definition at line 235 of file mythburn.py.

Referenced by mythburn.FontDef.drawText(), and mythburn.FontDef.getFont().

◆ color

mythburn.FontDef.color

Definition at line 236 of file mythburn.py.

Referenced by mythburn.FontDef.drawText().

◆ effect

mythburn.FontDef.effect

Definition at line 237 of file mythburn.py.

Referenced by mythburn.FontDef.drawText().

◆ shadowColor

mythburn.FontDef.shadowColor

Definition at line 238 of file mythburn.py.

Referenced by mythburn.FontDef.drawText().

◆ shadowSize

mythburn.FontDef.shadowSize

Definition at line 239 of file mythburn.py.

Referenced by mythburn.FontDef.drawText().

◆ font

mythburn.FontDef.font

Definition at line 240 of file mythburn.py.

Referenced by mythburn.FontDef.drawText(), and mythburn.FontDef.getFont().


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