- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

KEYObject.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libetonyek project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef KEYOBJECT_H_INCLUDED
11 #define KEYOBJECT_H_INCLUDED
12
13 #include <deque>
14
15 #include <boost/shared_ptr.hpp>
16
17 namespace libetonyek
18 {
19
20 class KEYOutput;
21
32 class KEYObject
33 {
34 public:
35 virtual ~KEYObject() = 0;
36
41 virtual void draw(const KEYOutput &output) = 0;
42 };
43
44 typedef boost::shared_ptr<KEYObject> KEYObjectPtr_t;
45
48 typedef std::deque<KEYObjectPtr_t> KEYObjectList_t;
49
55 void drawAll(const KEYObjectList_t &list, const KEYOutput &output);
56
57 }
58
59 #endif // KEYOBJECT_H_INCLUDED
60
61 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::KEYObject::draw
virtual void draw(const KEYOutput &output)=0
Draw the object using output as context.
libetonyek::drawAll
void drawAll(const KEYObjectList_t &list, const KEYOutput &output)
Draw all objects of list using output as context.
Definition: KEYObject.cpp:24
libetonyek::KEYObject
An interface for saved presentation objects.
Definition: KEYObject.h:32
libetonyek::KEYObjectPtr_t
boost::shared_ptr< KEYObject > KEYObjectPtr_t
Definition: KEYObject.h:44
libetonyek::KEYObject::~KEYObject
virtual ~KEYObject()=0
Definition: KEYObject.cpp:20
libetonyek::KEYOutput
A context for drawing instances of KEYObject.
Definition: KEYOutput.h:23
libetonyek::KEYObjectList_t
std::deque< KEYObjectPtr_t > KEYObjectList_t
A list of presentation objects.
Definition: KEYObject.h:48