29#include <sptk5/sptk.h>
31#include <FL/Fl_Group.H>
33#include <FL/Fl_Input_.H>
34#include <sptk5/gui/CInput.h>
35#include <sptk5/gui/CControl.h>
57 void ctor_init(
const char* label);
67 explicit CHtmlBox(
const char* label =
nullptr,
int layoutSize = 10,
70#ifdef __COMPATIBILITY_MODE__
79 CHtmlBox(
int,
int,
int,
int,
const char * = 0);
Simple HTML viewer.
Definition: CHtmlBox.h:51
static CLayoutClient * creator(const xdoc::SNode &node)
Creates a widget based on the XML node information.
String className() const override
Returns the control class name, SPTK-style RTTI.
Definition: CHtmlBox.h:104
void textFont(Fl_Font f) override
Sets the input text font type.
Fl_Font textFont() const override
Returns the input text font type.
void data(const Variant &v) override
Universal data connection, sets data from control.
void textSize(uchar s) override
Sets the input text font size.
bool preferredSize(int &w, int &h) override
Computes the optimal widget size.
int totalHeight() const
Computes the total height of HTML text inside if the widgets height isn't limited.
uchar textSize() const override
Returns the input text font size.
CControlKind kind() const override
Returns the control kind, SPTK-style RTTI.
Definition: CHtmlBox.h:96
CHtmlBox(const char *label=nullptr, int layoutSize=10, CLayoutAlign layoutAlign=CLayoutAlign::TOP)
Constructor in SPTK style.
Variant data() const override
Universal data connection, returns data from control.
Definition: CLayoutClient.h:82
Definition: Variant.h:372
CControlKind
Control kind is the constant to report the internal SPTK RTTI.
Definition: CControl.h:50
CLayoutAlign
Definition: CLayoutClient.h:44