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
17namespace libetonyek
18{
19
20class KEYOutput;
21
33{
34public:
35 virtual ~KEYObject() = 0;
36
41 virtual void draw(const KEYOutput &output) = 0;
42};
43
44typedef boost::shared_ptr<KEYObject> KEYObjectPtr_t;
45
48typedef std::deque<KEYObjectPtr_t> KEYObjectList_t;
49
55void 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: */
An interface for saved presentation objects.
Definition: KEYObject.h:33
virtual void draw(const KEYOutput &output)=0
Draw the object using output as context.
virtual ~KEYObject()=0
Definition: KEYObject.cpp:20
A context for drawing instances of KEYObject.
Definition: KEYOutput.h:24
Definition: EtonyekDocument.cpp:41
std::deque< KEYObjectPtr_t > KEYObjectList_t
A list of presentation objects.
Definition: KEYObject.h:48
void drawAll(const KEYObjectList_t &list, const KEYOutput &output)
Draw all objects of list @list using output as context.
Definition: KEYObject.cpp:24
boost::shared_ptr< KEYObject > KEYObjectPtr_t
Definition: KEYObject.h:44

Generated for libetonyek by doxygen 1.9.3