PEBL
2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
validator/PlatformWindow.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/PlatformWindow.cpp
4
// Purpose: Validator Platform Window 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 "
PlatformWindow.h
"
26
#include "
PlatformEnvironment.h
"
27
28
PlatformWindow::PlatformWindow
(
PlatformEnvironment
* env)
29
:
PWindow
(env),
PlatformWidget
() {
30
// Set default window size using qualified accessors
31
PWindow::SetWidth
(800);
32
PWindow::SetHeight
(600);
33
PWindow::SetPosition
(0, 0);
34
PWindow::Show
();
35
}
36
37
PlatformWindow::~PlatformWindow
() {
38
}
39
40
bool
PlatformWindow::Draw
() {
41
// No-op: no actual window to display
42
return
true
;
43
}
44
45
std::ostream&
PlatformWindow::SendToStream
(std::ostream& out)
const
{
46
out <<
"PlatformWindow (validator)"
;
47
return
out;
48
}
PWidget::SetPosition
virtual void SetPosition(pInt x, pInt y)
This sets the widget's position on its parent widget.
Definition
PWidget.cpp:220
PWidget::Show
virtual void Show()
Definition
PWidget.cpp:396
PWidget::SetWidth
virtual void SetWidth(pInt w)
Definition
PWidget.cpp:265
PWidget::SetHeight
virtual void SetHeight(pInt h)
Definition
PWidget.cpp:258
PWindow
Definition
PWindow.h:43
PlatformEnvironment
Definition
sdl/PlatformEnvironment.h:62
PlatformWidget
Definition
sdl/PlatformWidget.h:45
PlatformWindow::SendToStream
virtual std::ostream & SendToStream(std::ostream &out) const
An inheritable printing class used by PEBLObjectBase::operator<<.
Definition
validator/PlatformWindow.cpp:45
PlatformWindow::PlatformWindow
PlatformWindow(PlatformEnvironment *penv)
Standard Constructor.
Definition
sdl/PlatformWindow.cpp:56
PlatformWindow::Draw
bool Draw()
Definition
sdl/PlatformWindow.cpp:427
PlatformWindow::~PlatformWindow
~PlatformWindow()
Standard Destructor.
Definition
sdl/PlatformWindow.cpp:75
PlatformEnvironment.h
PlatformWindow.h
src
platforms
validator
PlatformWindow.cpp
Generated by
1.9.8