4#ifndef __INCLUDED_FROM_DW_CORE_HH__
5# error Do not include this file directly, use "core.hh" instead.
239 void (*splitHeightFun) (
int,
int*,
int*),
240 bool allowDecreaseWidth,
241 bool allowDecreaseHeight);
243 bool useAdjustmentWidth);
267 bool allowDecreaseWidth)
272 void (*splitHeightFun) (
int,
int*,
274 bool allowDecreaseHeight)
276 allowDecreaseHeight); }
279 bool useAdjustmentWidth)
370 void (*splitHeightFun) (
int,
int*,
372 bool allowDecreaseWidth,
373 bool allowDecreaseHeight);
375 bool useAdjustmentWidth);
450 void (*splitHeightFun) (
int,
int*,
int*),
451 bool allowDecreaseWidth,
452 bool allowDecreaseHeight);
454 bool useAdjustmentWidth);
469 virtual void addItem (
const char *str,
bool enabled,
bool selected) = 0;
470 virtual void setItem (
int index,
bool selected) = 0;
471 virtual void pushGroup (
const char *name,
bool enabled) = 0;
589 selectionMode,
int rows) = 0;
593 const char *placeholder) = 0;
596 const char *placeholder) = 0;
Set at the top when drawing.
Represents a enter or leave notify event.
Iterators are used to iterate through the contents of a widget.
Receiver interface different signals.
The central class for managing and drawing a widget tree.
dw::core::Shape implemtation for simple rectangles.
An interface to encapsulate platform dependent drawing.
A widget for embedding UI widgets.
void correctRequisitionOfChild(Widget *child, Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseWidth, bool allowDecreaseHeight)
void setEnabled(bool enabled)
void correctExtremesOfChild(Widget *child, Extremes *extremes, bool useAdjustmentWidth)
void leaveNotifyImpl(core::EventCrossing *event)
void enterNotifyImpl(core::EventCrossing *event)
void correctReqHeightOfChildNoRec(Widget *child, Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseHeight)
int getAvailHeightOfChild(Widget *child, bool forceValue)
void draw(View *view, Rectangle *area, DrawingContext *context)
Area is given in widget coordinates.
void setDisplayed(bool displayed)
Iterator * iterator(Content::Type mask, bool atEnd)
Return an iterator for this widget.
int getAvailWidthOfChild(Widget *child, bool forceValue)
Computes the content width available of a child widget.
void getExtremesSimpl(Extremes *extremes)
Simple variant, to be implemented by widgets with extremes not depending on positions.
void correctReqWidthOfChildNoRec(Widget *child, Requisition *requisition, bool allowDecreaseWidth)
void sizeAllocateImpl(Allocation *allocation)
See Sizes of Dillo Widgets.
void sizeRequestSimpl(Requisition *requisition)
Simple variant, to be implemented by widgets with sizes not depending on positions.
void containerSizeChangedForChildren()
bool buttonPressImpl(core::EventButton *event)
void setStyle(style::Style *style)
Change the style of a widget.
virtual void correctExtremesOfChildNoRec(Widget *child, Extremes *extremes, bool useAdjustmentWidth)
virtual void setMaxLength(int maxlen)=0
@ SELECTION_AT_MOST_ONE
At most one item is selected.
@ SELECTION_MULTIPLE
An arbitrary number of items may be selected.
@ SELECTION_EXACTLY_ONE
Exactly one item is selected.
@ SELECTION_EXACTLY_ONE_BY_USER
Exactly one item is selected, except possibly at the beginning.
A factory for the common resource.
virtual OptionMenuResource * createOptionMenuResource()=0
virtual EntryResource * createEntryResource(int size, bool password, const char *label, const char *placeholder)=0
virtual MultiLineTextResource * createMultiLineTextResource(int cols, int rows, const char *placeholder)=0
virtual RadioButtonResource * createRadioButtonResource(RadioButtonResource *groupedWith, bool activated)=0
virtual CheckButtonResource * createCheckButtonResource(bool activated)=0
virtual ListResource * createListResource(ListResource::SelectionMode selectionMode, int rows)=0
virtual ComplexButtonResource * createComplexButtonResource(Widget *widget, bool relief)=0
virtual LabelButtonResource * createLabelButtonResource(const char *label)=0
bool emitToReceiver(lout::signal::Receiver *receiver, int signalNo, int argc, Object **argv)
A sub class must implement this for a call to a single receiver.
void emitActivate(Resource *resource)
void connectActivate(ActivateReceiver *receiver)
Receiver interface for the "activate" signal.
virtual void activate(Resource *resource)=0
virtual void leave(Resource *resource)=0
virtual void enter(Resource *resource)=0
bool emitToReceiver(lout::signal::Receiver *receiver, int signalNo, int argc, Object **argv)
A sub class must implement this for a call to a single receiver.
void connectClicked(ClickedReceiver *receiver)
void emitClicked(Resource *resource, EventButton *event)
Receiver interface for the "clicked" signal.
virtual void clicked(Resource *resource, EventButton *event)=0
Basic interface for all resources.
virtual void setEnabled(bool enabled)=0
void connectClicked(ClickedReceiver *receiver)
virtual Iterator * iterator(Content::Type mask, bool atEnd)=0
virtual void containerSizeChangedForChildren()
virtual int getAvailWidthOfChild(Widget *child, bool forceValue)
virtual int getAvailHeightOfChild(Widget *child, bool forceValue)
virtual bool isEnabled()=0
virtual void sizeAllocate(Allocation *allocation)
virtual void setEmbed(Embed *embed)
void connectActivate(ActivateReceiver *receiver)
ClickedEmitter clickedEmitter
virtual void setDisplayed(bool displayed)
virtual void draw(View *view, Rectangle *area, DrawingContext *context)
virtual void correctExtremesOfChild(Widget *child, Extremes *extremes, bool useAdjustmentWidth)
void emitClicked(EventButton *event)
virtual void setStyle(style::Style *style)
virtual void correctRequisitionOfChild(Widget *child, Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseWidth, bool allowDecreaseHeight)
virtual void getExtremes(Extremes *extremes)
void queueResize(bool extremesChanged)
virtual Embed * getEmbed()
ActivateEmitter activateEmitter
virtual void sizeRequest(Requisition *requisition)=0
Base interface for dw::core::ui::ListResource and dw::core::ui::OptionMenuResource.
virtual int getNumberOfItems()=0
virtual void pushGroup(const char *name, bool enabled)=0
virtual bool isSelected(int index)=0
virtual void setItem(int index, bool selected)=0
virtual void addItem(const char *str, bool enabled, bool selected)=0
virtual void popGroup()=0
Iterator * iterator(Content::Type mask, bool atEnd)
virtual void setText(const char *text)=0
virtual const char * getText()=0
virtual bool isEditable()=0
virtual void setEditable(bool editable)=0
This is the base class for many other classes, which defines very common virtual methods.
The base class for signal emitters.
void connect(Receiver *receiver)
Connect a receiver to the emitter.
The base class for signal receiver base classes.
#define DBG_OBJ_CREATE(klass)
Dw is in this namespace, or sub namespaces of this one.
Represents the allocation, i.e.