The Power in your Hands
Search Site:
About
Features
Documentation
Download
Community
Main
Class Index
Namespaces
Modules
include
Pt
Gfx
Painter.h
1
/* Copyright (C) 2006-2015 Laurentiu-Gheorghe Crisan
2
Copyright (C) 2006-2015 Marc Boris Duerner
3
Copyright (C) 2010-2017 Aloysius Indrayanto
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
As a special exception, you may use this file as part of a free
11
software library without restriction. Specifically, if other files
12
instantiate templates or use macros or inline functions from this
13
file, or you compile this file and link it with other files to
14
produce an executable, this file does not by itself cause the
15
resulting executable to be covered by the GNU General Public
16
License. This exception does not however invalidate any other
17
reasons why the executable file might be covered by the GNU Library
18
General Public License.
19
20
This library is distributed in the hope that it will be useful,
21
but WITHOUT ANY WARRANTY; without even the implied warranty of
22
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
Lesser General Public License for more details.
24
25
You should have received a copy of the GNU Lesser General Public
26
License along with this library; if not, write to the Free Software
27
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
28
MA 02110-1301 USA
29
*/
30
31
#ifndef PT_GFX_PAINTER_H
32
#define PT_GFX_PAINTER_H
33
34
#include <Pt/Gfx/PainterBase.h>
35
36
namespace
Pt
{
37
38
namespace
Gfx {
39
48
class
PT_GFX_API
Painter
:
public
PainterBase
49
{
50
public
:
53
Painter
();
54
57
explicit
Painter
(
PaintSurface
& surface);
58
61
explicit
Painter
(
PaintContext
& context);
62
65
virtual
~Painter
();
66
69
void
begin
(
PaintSurface
& surface);
70
73
void
begin
(
PaintContext
& context);
74
};
75
76
}
// namespace
77
78
}
// namespace
79
80
#endif
Pt
Core module.
Definition:
Allocator.h:33
Pt::Gfx::Painter::Painter
Painter(PaintContext &context)
Constructs and begins painting on a context.
Pt::Gfx::Painter::~Painter
virtual ~Painter()
Destructor.
Pt::Gfx::Painter::Painter
Painter(PaintSurface &surface)
Constructs and begins painting on a surface.
Pt::Gfx::Painter::Painter
Painter()
Constructs an inactive painter.
Pt::Gfx::PaintContext
Active painting session for a surface.
Definition:
PaintContext.h:52
Pt::Gfx::PainterBase
Base class for drawing commands and paint state.
Definition:
PainterBase.h:73
Pt::Gfx::Painter
Concrete painter for Pt::Gfx paint targets.
Definition:
Painter.h:49
Pt::Gfx::Painter::begin
void begin(PaintSurface &surface)
Begins painting on a surface.
Pt::Gfx::PaintSurface
Abstract target for drawing operations.
Definition:
PaintSurface.h:55
Pt::Gfx::Painter::begin
void begin(PaintContext &context)
Begins painting on a context.