VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
DtWindowText.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/vrvCore.h
>
13
#include <
vrvCore/DtUniqueID.h
>
14
#include <
vrvCore/DtWindowObject.h
>
15
16
#include <vector>
17
#include <string>
18
19
namespace
makVrv
20
{
21
class
DtDe;
22
class
DtWindowTextInstance;
23
27
class
DT_DLL_VRVCORE
DtWindowText
:
public
DtWindowObject
28
{
29
public
:
30
31
enum
TextAlignment
32
{
33
Left = 0,
34
Center = 1,
35
Right = 2,
36
Justify = 3,
37
};
38
40
DtWindowText
(
DtDe
& de,
DtUniqueID
id
);
41
43
virtual
~
DtWindowText
();
44
46
virtual
void
setTopLeftCorner(
float
x,
float
y);
47
49
virtual
void
setVisible(
bool
isVisible);
50
52
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
53
55
virtual
void
setText(
const
std::string& textString);
56
58
virtual
void
setFont(
const
std::string& fontFile,
float
sizeInPoints);
59
61
virtual
void
setTextBoxWidth(
unsigned
int
widthInPixels);
62
64
virtual
void
setAlignment(
unsigned
int
alignment);
65
68
virtual
void
setInstance(
DtWindowTextInstance
* instance);
69
71
virtual
DtWindowTextInstance
* instance();
72
73
protected
:
74
DtWindowTextInstance
*
myInstance
;
75
};
76
}
77
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)