Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

TextTexture Class Reference

Propriete d'un control a avoir une face avec du text. More...

#include <TextTexture.h>

List of all members.

Public Member Functions

 TextTexture ()
void operator= (char *newText)
void SetText (char *newText)
void SetXYFormat (int x, int y)
void RefreshText ()
void BindTexture (Face *face)
BOOL MajTexture ()

Public Attributes

MyString text
Texturetexture
COLORREF background
COLORREF color
int xFormat
int yFormat
FacefaceText


Detailed Description

Propriete d'un control a avoir une face avec du text.

Example:

#include "TextTexture.h" class TheControl: public Control , public TextTexture { Create() { //... init graphique Bind(faceNode->Elems(FACE_FRONT)); MajTexture(); } } void TextIt() { TheControl theControl; theControl="The text"; // change la texture }

Definition at line 49 of file TextTexture.h.


Constructor & Destructor Documentation

TextTexture::TextTexture  ) 
 

Definition at line 26 of file TextTexture.cpp.

References faceText, xFormat, and yFormat.


Member Function Documentation

void TextTexture::BindTexture Face face  ) 
 

Definition at line 36 of file TextTexture.cpp.

References faceText.

BOOL TextTexture::MajTexture  ) 
 

Definition at line 65 of file TextTexture.cpp.

References BOOL(), faceText, and Face::texture.

Referenced by RefreshText().

void TextTexture::operator= char *  newText  ) 
 

Definition at line 41 of file TextTexture.cpp.

References SetText().

void TextTexture::RefreshText  ) 
 

Definition at line 52 of file TextTexture.cpp.

References Texture::Delete(), Texture::FromText(), MajTexture(), xFormat, and yFormat.

Referenced by SetText().

void TextTexture::SetText char *  newText  ) 
 

Definition at line 46 of file TextTexture.cpp.

References RefreshText().

Referenced by operator=().

void TextTexture::SetXYFormat int  x,
int  y
[inline]
 

Definition at line 64 of file TextTexture.h.

References xFormat, and yFormat.


Member Data Documentation

COLORREF TextTexture::background
 

Definition at line 54 of file TextTexture.h.

COLORREF TextTexture::color
 

Definition at line 55 of file TextTexture.h.

Face* TextTexture::faceText
 

Definition at line 58 of file TextTexture.h.

Referenced by BindTexture(), MajTexture(), and TextTexture().

MyString TextTexture::text
 

Definition at line 52 of file TextTexture.h.

Texture* TextTexture::texture
 

Definition at line 53 of file TextTexture.h.

int TextTexture::xFormat
 

Definition at line 56 of file TextTexture.h.

Referenced by RefreshText(), SetXYFormat(), and TextTexture().

int TextTexture::yFormat
 

Definition at line 57 of file TextTexture.h.

Referenced by RefreshText(), SetXYFormat(), and TextTexture().


The documentation for this class was generated from the following files:
Generated on Fri Aug 20 19:21:44 2004 for 3d Controls by doxygen 1.3.6