PEBL
2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
validator/PlatformLabel.cpp
Go to the documentation of this file.
1
//* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
3
// Name: platforms/validator/PlatformLabel.cpp
4
// Purpose: Validator Platform Label Implementation
5
// Author: Shane T. Mueller, Ph.D.
6
// Copyright: (c) 2025 Shane T. Mueller <smueller@obereed.net>
7
// License: GPL 2
8
//
9
// This file is part of the PEBL project.
10
//
11
// PEBL is free software; you can redistribute it and/or modify
12
// it under the terms of the GNU General Public License as published by
13
// the Free Software Foundation; either version 2 of the License, or
14
// (at your option) any later version.
15
//
16
// PEBL is distributed in the hope that it will be useful,
17
// but WITHOUT ANY WARRANTY; without even the implied warranty of
18
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
// GNU General Public License for more details.
20
//
21
// You should have received a copy of the GNU General Public License
22
// along with PEBL; if not, write to the Free Software
23
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
#include "
PlatformLabel.h
"
26
27
PlatformLabel::PlatformLabel
(
const
std::string& text,
counted_ptr<PEBLObjectBase>
font)
28
:
PLabel
(text), mFontObject(font) {
29
}
30
31
PlatformLabel::PlatformLabel
(
PlatformLabel
& label)
32
:
PLabel
(label), mFontObject(label.mFontObject) {
33
}
34
35
PlatformLabel::~PlatformLabel
() {
36
}
37
38
bool
PlatformLabel::Draw
() {
39
// No-op: no rendering in validator mode
40
return
true
;
41
}
42
43
std::ostream&
PlatformLabel::SendToStream
(std::ostream& out)
const
{
44
out <<
"PlatformLabel (validator)"
;
45
return
out;
46
}
PLabel
Definition
PLabel.h:45
PlatformLabel
Validator platform label - no rendering, used only for compilation.
Definition
sdl/PlatformLabel.h:50
PlatformLabel::Draw
virtual bool Draw()
This method initiates everything needed to display the main window
Definition
sdl/PlatformLabel.cpp:377
PlatformLabel::PlatformLabel
PlatformLabel(const std::string &text, counted_ptr< PEBLObjectBase > font)
Definition
sdl/PlatformLabel.cpp:56
PlatformLabel::SendToStream
virtual std::ostream & SendToStream(std::ostream &out) const
An inheritable printing class used by PEBLObjectBase::operator<<.
Definition
validator/PlatformLabel.cpp:43
PlatformLabel::~PlatformLabel
virtual ~PlatformLabel()
Standard Destructor.
Definition
sdl/PlatformLabel.cpp:118
counted_ptr
Definition
rc_ptrs.h:66
PlatformLabel.h
src
platforms
validator
PlatformLabel.cpp
Generated by
1.9.8