gwenhywfar
4.3.3
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
gui
fox16
fox16_htmltext.hpp
Go to the documentation of this file.
1
/***************************************************************************
2
begin : Sat Jun 19 2010
3
copyright : (C) 2010 by Martin Preuss
4
email : martin@libchipcard.de
5
6
***************************************************************************
7
* Please see toplevel file COPYING for license details *
8
***************************************************************************/
9
10
11
#ifndef FOX16_HTMLTEXT_HPP
12
#define FOX16_HTMLTEXT_HPP
13
14
#include <gwen-gui-fox16/cppgui.hpp>
15
16
#include <fx.h>
17
18
19
class
FOX16_HtmlCtx
;
20
21
22
class
FOX16GUI_API
FOX16_HtmlText
:
public
FXScrollArea {
23
FXDECLARE(
FOX16_HtmlText
)
24
25
public
:
26
27
enum
{
31
FLAGS_NO_WORDWRAP = 0x00080000
32
};
33
34
FOX16_HtmlText
(FXComposite* p,
const
FXString& text,
35
FXuint opts=0,
36
FXint x=0, FXint y=0, FXint w=0, FXint h=0);
37
~
FOX16_HtmlText
();
38
40
void
setText(
const
FXString& text);
41
43
FXString
getText
()
const
{
return
m_text; }
44
45
virtual
FXint getContentWidth();
46
47
virtual
FXint getContentHeight();
48
49
void
setMinimumWidth
(
int
i) { m_minWidth=i;};
50
51
void
makePositionVisible(FXint pos);
52
53
long
onPaint(FXObject*, FXSelector,
void
*);
54
55
void
layout();
56
57
protected
:
58
FOX16_HtmlCtx
*
m_htmlCtx
;
59
FXString
m_text
;
60
int
m_minWidth
;
61
int
m_maxDefaultWidth
;
62
63
bool
m_haveDefaultDims
;
64
FXint
m_defaultWidth
;
65
FXint
m_defaultHeight
;
66
67
FXint
margintop
;
// Margins top
68
FXint
marginbottom
;
// Margin bottom
69
FXint
marginleft
;
// Margin left
70
FXint
marginright
;
// Margin right
71
FXint
barwidth
;
72
73
FOX16_HtmlText
();
74
void
updateHtml();
75
void
calcDefaultDims();
76
77
78
};
79
80
81
82
#endif
83
Generated on Thu Mar 20 2014 17:05:59 for gwenhywfar by
1.8.1.2