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 260 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 261 of file mythburn.py.

Member Function Documentation

◆ getFont()

def mythburn.FontDef.getFont (   self)

Definition at line 271 of file mythburn.py.

◆ drawText()

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

Definition at line 277 of file mythburn.py.

Member Data Documentation

◆ name

mythburn.FontDef.name

Definition at line 262 of file mythburn.py.

◆ fontFile

mythburn.FontDef.fontFile

Definition at line 263 of file mythburn.py.

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

◆ size

mythburn.FontDef.size

Definition at line 264 of file mythburn.py.

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

◆ color

mythburn.FontDef.color

Definition at line 265 of file mythburn.py.

Referenced by mythburn.FontDef.drawText().

◆ effect

mythburn.FontDef.effect

Definition at line 266 of file mythburn.py.

Referenced by mythburn.FontDef.drawText().

◆ shadowColor

mythburn.FontDef.shadowColor

Definition at line 267 of file mythburn.py.

Referenced by mythburn.FontDef.drawText().

◆ shadowSize

mythburn.FontDef.shadowSize

Definition at line 268 of file mythburn.py.

Referenced by mythburn.FontDef.drawText().

◆ font

mythburn.FontDef.font

Definition at line 269 of file mythburn.py.

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


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