Design Patterns
Main Page
Namespaces
Classes
Files
File List
glyph_interface.h
Go to the documentation of this file.
1
// Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2
// book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3
//
4
// Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5
6
#ifndef STRUCTURAL_FLYWEIGHT_GLYPH_INTERFACE_H_
7
#define STRUCTURAL_FLYWEIGHT_GLYPH_INTERFACE_H_
8
9
#include "
window.h
"
10
#include "
glyph_context.h
"
11
#include "
font.h
"
12
13
namespace
structural
14
{
15
namespace
flyweight
16
{
17
class
GlyphInterface
18
{
19
public
:
20
virtual
~GlyphInterface
() { };
21
22
virtual
void
Draw
(
Window
*,
GlyphContext
&) = 0;
23
24
virtual
void
First
(
GlyphContext
&) = 0;
25
virtual
void
Next
(
GlyphContext
&) = 0;
26
virtual
bool
IsDone
(
GlyphContext
&) = 0;
27
28
virtual
void
SetFont
(
Font
*,
GlyphContext
&) = 0;
29
virtual
Font
*
GetFont
(
GlyphContext
&) = 0;
30
31
virtual
GlyphInterface
*
Current
(
GlyphContext
&) = 0;
32
33
virtual
void
Insert
(
GlyphInterface
*,
GlyphContext
&) = 0;
34
virtual
void
Remove
(
GlyphContext
&) = 0;
35
};
36
}
37
}
38
39
#endif
40
glyph_context.h
structural::flyweight::GlyphInterface::SetFont
virtual void SetFont(Font *, GlyphContext &)=0
structural
Definition:
shape_interface.h:11
structural::flyweight::GlyphInterface::Insert
virtual void Insert(GlyphInterface *, GlyphContext &)=0
structural::flyweight::GlyphInterface::Current
virtual GlyphInterface * Current(GlyphContext &)=0
structural::flyweight::GlyphInterface::Draw
virtual void Draw(Window *, GlyphContext &)=0
structural::flyweight::GlyphInterface::GetFont
virtual Font * GetFont(GlyphContext &)=0
structural::flyweight::GlyphInterface::Next
virtual void Next(GlyphContext &)=0
structural::flyweight::GlyphInterface::First
virtual void First(GlyphContext &)=0
structural::flyweight::Font
Definition:
font.h:15
structural::flyweight::GlyphInterface::Remove
virtual void Remove(GlyphContext &)=0
structural::flyweight::GlyphInterface::IsDone
virtual bool IsDone(GlyphContext &)=0
structural::flyweight::GlyphContext
Definition:
glyph_context.h:15
structural::flyweight::GlyphInterface
Definition:
glyph_interface.h:17
structural::flyweight::GlyphInterface::~GlyphInterface
virtual ~GlyphInterface()
Definition:
glyph_interface.h:20
window.h
font.h
structural::flyweight::Window
Definition:
window.h:13
src
structural
src
flyweight
glyph_interface.h
Generated by
1.8.10