Last change
on this file since 8057 was
8035,
checked in by bensch, 18 years ago
|
gui: merged the gui back to the trunk
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2004 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: Benjamin Grauer |
---|
13 | co-programmer: ... |
---|
14 | */ |
---|
15 | |
---|
16 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI |
---|
17 | |
---|
18 | #include "glgui_textfield.h" |
---|
19 | namespace OrxGui |
---|
20 | { |
---|
21 | |
---|
22 | /** |
---|
23 | * standard constructor |
---|
24 | */ |
---|
25 | GLGuiTextfield::GLGuiTextfield () |
---|
26 | { |
---|
27 | this->init(); |
---|
28 | |
---|
29 | } |
---|
30 | |
---|
31 | |
---|
32 | /** |
---|
33 | * standard deconstructor |
---|
34 | */ |
---|
35 | GLGuiTextfield::~GLGuiTextfield() |
---|
36 | { |
---|
37 | } |
---|
38 | |
---|
39 | /** |
---|
40 | * initializes the GUI-element |
---|
41 | */ |
---|
42 | void GLGuiTextfield::init() |
---|
43 | { |
---|
44 | this->setClassID(CL_GLGUI_TEXTFIELD, "GLGuiTextfield"); |
---|
45 | } |
---|
46 | |
---|
47 | /** |
---|
48 | * @brief draws the GLGuiTextfield |
---|
49 | */ |
---|
50 | void GLGuiTextfield::draw() const |
---|
51 | { |
---|
52 | this->beginDraw(); |
---|
53 | GLGuiWidget::draw(); |
---|
54 | |
---|
55 | this->frontMaterial().select(); |
---|
56 | this->drawRect(this->frontRect()); |
---|
57 | this->endDraw(); |
---|
58 | } |
---|
59 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.