Dillo v3.1.1-99-gf3103cc4
|
... More...
#include <fltkui.hh>
Public Member Functions | |
~FltkResource () | |
virtual void | attachView (FltkView *view) |
virtual void | detachView (FltkView *view) |
void | sizeAllocate (core::Allocation *allocation) |
void | draw (core::View *view, core::Rectangle *area, core::DrawingContext *context) |
void | setStyle (core::style::Style *style) |
bool | isEnabled () |
void | setEnabled (bool enabled) |
Public Member Functions inherited from lout::object::Object | |
virtual | ~Object () |
The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly. | |
virtual bool | equals (Object *other) |
Returns, whether two objects are equal. | |
virtual int | hashValue () |
Return a hash value for the object. | |
virtual Object * | clone () |
Return an exact copy of the object. | |
virtual void | intoStringBuffer (misc::StringBuffer *sb) |
Store a textual representation of the object in a misc::StringBuffer. | |
const char * | toString () |
Use object::Object::intoStringBuffer to return a textual representation of the object. | |
virtual size_t | sizeOf () |
Return the number of bytes, this object totally uses. | |
Protected Member Functions | |
FltkResource (FltkPlatform *platform) | |
void | init (FltkPlatform *platform) |
This is not a constructor, since it calls some virtual methods, which should not be done in a C++ base constructor. | |
virtual Fl_Widget * | createNewWidget (core::Allocation *allocation)=0 |
virtual void | setWidgetStyle (Fl_Widget *widget, core::style::Style *style) |
void | setDisplayed (bool displayed) |
bool | displayed () |
Protected Attributes | |
FltkView * | view |
Fl_Widget * | widget |
core::Allocation | allocation |
FltkPlatform * | platform |
core::style::Style * | style |
Private Attributes | |
bool | enabled |
|
protected |
Definition at line 400 of file fltkui.cc.
References allocation, dw::core::Allocation::ascent, DBG_OBJ_CREATE, dw::core::Allocation::descent, enabled, platform, style, dw::core::Allocation::width, dw::core::Allocation::x, and dw::core::Allocation::y.
dw::fltk::ui::FltkResource::~FltkResource | ( | ) |
Definition at line 428 of file fltkui.cc.
References DBG_OBJ_DELETE, dw::fltk::FltkPlatform::detachResource(), platform, dw::fltk::FltkView::removeFltkWidget(), style, dw::core::style::Style::unref(), view, and widget.
|
virtual |
Reimplemented in dw::fltk::ui::FltkComplexButtonResource.
Definition at line 443 of file fltkui.cc.
References dw::fltk::FltkView::addFltkWidget(), allocation, createNewWidget(), enabled, MSG_ERR, setWidgetStyle(), style, dw::fltk::FltkView::usesFltkWidgets(), view, and widget.
Referenced by dw::fltk::FltkPlatform::attachResource(), dw::fltk::FltkPlatform::attachView(), and dw::fltk::ui::FltkComplexButtonResource::attachView().
|
protectedpure virtual |
Implemented in dw::fltk::ui::FltkLabelButtonResource, dw::fltk::ui::FltkComplexButtonResource, dw::fltk::ui::FltkEntryResource, dw::fltk::ui::FltkMultiLineTextResource, dw::fltk::ui::FltkToggleButtonResource< I >, dw::fltk::ui::FltkToggleButtonResource< dw::core::ui::CheckButtonResource >, dw::fltk::ui::FltkToggleButtonResource< dw::core::ui::RadioButtonResource >, dw::fltk::ui::FltkOptionMenuResource, and dw::fltk::ui::FltkListResource.
Referenced by attachView().
|
virtual |
Reimplemented in dw::fltk::ui::FltkComplexButtonResource.
Definition at line 460 of file fltkui.cc.
Referenced by dw::fltk::FltkPlatform::detachView(), and dw::fltk::ui::FltkComplexButtonResource::detachView().
|
protected |
Definition at line 532 of file fltkui.cc.
References widget.
Referenced by setDisplayed(), dw::fltk::ui::FltkEntryResource::setDisplayed(), and dw::fltk::ui::FltkEntryResource::sizeRequest().
void dw::fltk::ui::FltkResource::draw | ( | core::View * | view, |
core::Rectangle * | area, | ||
core::DrawingContext * | context | ||
) |
Definition at line 480 of file fltkui.cc.
References dw::fltk::FltkView::drawFltkWidget(), dw::fltk::FltkView::usesFltkWidgets(), view, and widget.
Referenced by dw::fltk::ui::FltkSpecificResource< I >::draw().
|
protected |
This is not a constructor, since it calls some virtual methods, which should not be done in a C++ base constructor.
Definition at line 421 of file fltkui.cc.
References dw::fltk::FltkPlatform::attachResource(), platform, view, and widget.
Referenced by dw::fltk::ui::FltkCheckButtonResource::FltkCheckButtonResource(), dw::fltk::ui::FltkComplexButtonResource::FltkComplexButtonResource(), dw::fltk::ui::FltkEntryResource::FltkEntryResource(), dw::fltk::ui::FltkLabelButtonResource::FltkLabelButtonResource(), dw::fltk::ui::FltkListResource::FltkListResource(), dw::fltk::ui::FltkMultiLineTextResource::FltkMultiLineTextResource(), dw::fltk::ui::FltkOptionMenuResource::FltkOptionMenuResource(), and dw::fltk::ui::FltkRadioButtonResource::FltkRadioButtonResource().
bool dw::fltk::ui::FltkResource::isEnabled | ( | ) |
Definition at line 544 of file fltkui.cc.
References enabled.
Referenced by dw::fltk::ui::FltkSpecificResource< I >::isEnabled().
|
protected |
Definition at line 524 of file fltkui.cc.
References displayed(), and widget.
Referenced by dw::fltk::ui::FltkEntryResource::setDisplayed().
void dw::fltk::ui::FltkResource::setEnabled | ( | bool | enabled | ) |
Definition at line 549 of file fltkui.cc.
References enabled, and widget.
Referenced by dw::fltk::ui::FltkSpecificResource< I >::setEnabled().
void dw::fltk::ui::FltkResource::setStyle | ( | core::style::Style * | style | ) |
Definition at line 489 of file fltkui.cc.
References dw::core::style::Style::ref(), setWidgetStyle(), style, dw::core::style::Style::unref(), and widget.
Referenced by dw::fltk::ui::FltkSpecificResource< I >::setStyle().
|
protectedvirtual |
Reimplemented in dw::fltk::ui::FltkEntryResource, dw::fltk::ui::FltkMultiLineTextResource, dw::fltk::ui::FltkToggleButtonResource< I >, dw::fltk::ui::FltkToggleButtonResource< dw::core::ui::CheckButtonResource >, dw::fltk::ui::FltkToggleButtonResource< dw::core::ui::RadioButtonResource >, dw::fltk::ui::FltkOptionMenuResource, and dw::fltk::ui::FltkListResource.
Definition at line 500 of file fltkui.cc.
References dw::core::style::StyleAttrs::backgroundColor, dw::core::style::StyleAttrs::color, dw::fltk::FltkColor::colors, dw::fltk::FltkFont::font, dw::core::style::StyleAttrs::font, dw::core::style::Color::SHADING_NORMAL, dw::core::style::FontAttrs::size, style, and widget.
Referenced by attachView(), setStyle(), dw::fltk::ui::FltkEntryResource::setWidgetStyle(), dw::fltk::ui::FltkMultiLineTextResource::setWidgetStyle(), dw::fltk::ui::FltkToggleButtonResource< I >::setWidgetStyle(), dw::fltk::ui::FltkOptionMenuResource::setWidgetStyle(), and dw::fltk::ui::FltkListResource::setWidgetStyle().
void dw::fltk::ui::FltkResource::sizeAllocate | ( | core::Allocation * | allocation | ) |
Definition at line 468 of file fltkui.cc.
References DBG_OBJ_ENTER.
Referenced by dw::fltk::ui::FltkSpecificResource< I >::sizeAllocate(), dw::fltk::ui::FltkComplexButtonResource::sizeAllocate(), and dw::fltk::ui::FltkEntryResource::sizeAllocate().
|
protected |
Definition at line 195 of file fltkui.hh.
Referenced by attachView(), dw::fltk::ui::FltkCheckButtonResource::createNewButton(), dw::fltk::ui::FltkRadioButtonResource::createNewButton(), dw::fltk::ui::FltkLabelButtonResource::createNewWidget(), dw::fltk::ui::FltkComplexButtonResource::createNewWidget(), dw::fltk::ui::FltkEntryResource::createNewWidget(), dw::fltk::ui::FltkMultiLineTextResource::createNewWidget(), dw::fltk::ui::FltkOptionMenuResource::createNewWidget(), dw::fltk::ui::FltkListResource::createNewWidget(), FltkResource(), dw::fltk::ui::FltkComplexButtonResource::sizeAllocate(), and dw::fltk::ui::FltkEntryResource::sizeAllocate().
|
private |
Definition at line 190 of file fltkui.hh.
Referenced by dw::fltk::ui::FltkOptionMenuResource::addItem(), dw::fltk::ui::FltkListResource::addItem(), attachView(), FltkResource(), isEnabled(), dw::fltk::ui::FltkListResource::newItem(), dw::fltk::ui::FltkOptionMenuResource::pushGroup(), and setEnabled().
|
protected |
Definition at line 196 of file fltkui.hh.
Referenced by dw::fltk::ui::FltkCheckButtonResource::FltkCheckButtonResource(), dw::fltk::ui::FltkComplexButtonResource::FltkComplexButtonResource(), dw::fltk::ui::FltkEntryResource::FltkEntryResource(), dw::fltk::ui::FltkLabelButtonResource::FltkLabelButtonResource(), dw::fltk::ui::FltkListResource::FltkListResource(), dw::fltk::ui::FltkMultiLineTextResource::FltkMultiLineTextResource(), dw::fltk::ui::FltkOptionMenuResource::FltkOptionMenuResource(), dw::fltk::ui::FltkRadioButtonResource::FltkRadioButtonResource(), FltkResource(), init(), and ~FltkResource().
|
protected |
Definition at line 198 of file fltkui.hh.
Referenced by attachView(), FltkResource(), setStyle(), setWidgetStyle(), dw::fltk::ui::FltkEntryResource::setWidgetStyle(), dw::fltk::ui::FltkMultiLineTextResource::setWidgetStyle(), dw::fltk::ui::FltkOptionMenuResource::setWidgetStyle(), dw::fltk::ui::FltkListResource::setWidgetStyle(), dw::fltk::ui::FltkLabelButtonResource::sizeRequest(), dw::fltk::ui::FltkEntryResource::sizeRequest(), dw::fltk::ui::FltkMultiLineTextResource::sizeRequest(), dw::fltk::ui::FltkToggleButtonResource< I >::sizeRequest(), dw::fltk::ui::FltkOptionMenuResource::sizeRequest(), dw::fltk::ui::FltkListResource::sizeRequest(), dw::fltk::ui::FltkComplexButtonResource::widgetCallback(), and ~FltkResource().
|
protected |
Definition at line 193 of file fltkui.hh.
Referenced by attachView(), dw::fltk::ui::FltkComplexButtonResource::attachView(), detachView(), dw::fltk::ui::FltkComplexButtonResource::detachView(), draw(), init(), dw::fltk::ui::FltkEntryResource::sizeAllocate(), and ~FltkResource().
|
protected |
Definition at line 194 of file fltkui.hh.
Referenced by dw::fltk::ui::FltkOptionMenuResource::addItem(), attachView(), displayed(), draw(), dw::fltk::ui::FltkOptionMenuResource::enlargeMenu(), dw::fltk::ui::FltkComplexButtonResource::FltkComplexButtonResource(), dw::fltk::ui::FltkListResource::getMaxItemWidth(), dw::fltk::ui::FltkOptionMenuResource::getNumberOfItems(), dw::fltk::ui::FltkListResource::getNumberOfItems(), dw::fltk::ui::FltkEntryResource::getText(), dw::fltk::ui::FltkMultiLineTextResource::getText(), init(), dw::fltk::ui::FltkOptionMenuResource::isSelected(), dw::fltk::ui::FltkListResource::isSelected(), dw::fltk::ui::FltkListResource::newItem(), dw::fltk::ui::FltkListResource::popGroup(), setDisplayed(), setEnabled(), dw::fltk::ui::FltkOptionMenuResource::setItem(), dw::fltk::ui::FltkListResource::setItem(), dw::fltk::ui::FltkLabelButtonResource::setLabel(), dw::fltk::ui::FltkEntryResource::setMaxLength(), setStyle(), dw::fltk::ui::FltkEntryResource::setText(), dw::fltk::ui::FltkMultiLineTextResource::setText(), setWidgetStyle(), dw::fltk::ui::FltkEntryResource::setWidgetStyle(), dw::fltk::ui::FltkMultiLineTextResource::setWidgetStyle(), dw::fltk::ui::FltkOptionMenuResource::setWidgetStyle(), dw::fltk::ui::FltkListResource::setWidgetStyle(), dw::fltk::ui::FltkEntryResource::sizeAllocate(), dw::fltk::ui::FltkListResource::sizeRequest(), dw::fltk::ui::FltkComplexButtonResource::widgetCallback(), dw::fltk::ui::FltkRadioButtonResource::widgetCallback(), dw::fltk::ui::FltkListResource::widgetCallback(), and ~FltkResource().