This repository has been archived by the owner on Oct 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
TWRenderDCTcw.h
64 lines (57 loc) · 1.7 KB
/
TWRenderDCTcw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// TWRenderDCTcw.h
// XTBook
//
// Created by Nexhawks on 3/13/11.
// Copyright 2011 Nexhawks. All rights reserved.
//
/*
* This file is part of XTBook.
*
* XTBook is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XTBook is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XTBook. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "TWiki/TWRenderDC.h"
#include "TWiki/TWHTMLStyleProxy.h"
class twDC;
class twFont;
class TWRenderManager;
class TWRenderDCTcw: public TWRenderDC {
protected:
TWHTMLStyleProxy m_style;
twDC *m_dc;
TWRenderManager *m_fontManager;
twPoint m_selectionShift;
public:
TWRenderDCTcw(twDC *, TWRenderManager *);
virtual ~TWRenderDCTcw();
virtual void setStyle(const TWHTMLStyleProxy& style){
m_style=style;
}
virtual void fillBackground(const TWRect&);
virtual void drawBorder(const TWRect&);
virtual void drawPlaceHolder(const TWRect&);
virtual bool isRectVisible(const TWRect&);
virtual TWRenderManager *fontManager(){
return m_fontManager;
}
virtual void fillSelection(const TWRect&);
virtual void debugRenderObject(const TWRect&, TWRenderObject *);
twDC *internalDC() const{
return m_dc;
}
void setSelectionShift(const twPoint& p){
m_selectionShift=p;
}
};