mkRPG
 All Classes Namespaces Functions
Public Member Functions | Public Attributes
interface.gui.gui_elements.TextField Class Reference
Inheritance diagram for interface.gui.gui_elements.TextField:
interface.gui.gui_elements.GUIElement interface.gui.gui_elements.Button

List of all members.

Public Member Functions

def __init__
def build_text
def build

Public Attributes

 text
 font
 textRender
 image
 rect

Detailed Description

Simple text field 

Constructor & Destructor Documentation

def interface.gui.gui_elements.TextField.__init__ (   self,
  text,
  style 
)
Style should have the following attributes:
size : int * int (if 0,0 the area will fit the text)
text_size : int
text_color : int * int * int * int (R,G,B and alpha values)
text_font : string (name of the font file or None)
text_align : string (should be "centered", "right" or "left")

    Note : Rendered text won't fit automatically on the given size if
    it's too big, one should put endlines where needed and a correct
    size

Member Function Documentation

build the text field and cache it 

Reimplemented from interface.gui.gui_elements.GUIElement.

Reimplemented in interface.gui.gui_elements.Button.

build a new button with the new text and the new size if specified

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions