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)
345 if (embed) embed->
queueResize (0, extremesChanged);
370 void (*splitHeightFun) (
int,
int*,
372 bool allowDecreaseWidth,
373 bool allowDecreaseHeight);
375 bool useAdjustmentWidth);
404 virtual const char *
getLabel () = 0;
405 virtual void setLabel (
const char *label) = 0;
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;
521 virtual const char *
getText () = 0;
522 virtual void setText (
const char *text) = 0;
564 virtual void unref () = 0;
589 selectionMode,
int rows) = 0;
593 const char *placeholder) = 0;
596 const char *placeholder) = 0;
607 #endif // __DW_UI_HH__
void sizeAllocateImpl(Allocation *allocation)
See Sizes of Dillo Widgets.
Definition: ui.cc:66
void connectClicked(ClickedReceiver *receiver)
Definition: ui.hh:332
Iterator * iterator(Content::Type mask, bool atEnd)
Return an iterator for this widget.
Definition: ui.cc:146
At most one item is selected.
Definition: ui.hh:503
virtual ListResource * createListResource(ListResource::SelectionMode selectionMode, int rows)=0
void enterNotifyImpl(core::EventCrossing *event)
Definition: ui.cc:105
int getAvailHeightOfChild(Widget *child, bool forceValue)
Definition: ui.cc:76
virtual void setEmbed(Embed *embed)
Definition: ui.cc:211
virtual void containerSizeChangedForChildren()
Definition: ui.cc:268
virtual void setStyle(style::Style *style)
Definition: ui.cc:281
virtual void correctExtremesOfChild(Widget *child, Extremes *extremes, bool useAdjustmentWidth)
Definition: ui.cc:261
void connect(Receiver *receiver)
Connect a receiver to the emitter.
Definition: signal.cc:65
void draw(View *view, Rectangle *area, DrawingContext *context)
Definition: ui.cc:140
A factory for the common resource.
Definition: ui.hh:580
dw::core::Shape implemtation for simple rectangles.
Definition: types.hh:69
Embed(Resource *resource)
Definition: ui.cc:36
void emitClicked(EventButton *event)
Definition: ui.hh:353
Receiver interface for the "activate" signal.
Definition: ui.hh:296
Type
Definition: types.hh:199
~Embed()
Definition: ui.cc:45
void setStyle(style::Style *style)
Change the style of a widget.
Definition: ui.cc:151
SelectionMode
Definition: ui.hh:481
Exactly one item is selected, except possibly at the beginning.
Definition: ui.hh:495
void correctRequisitionOfChild(Widget *child, Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseWidth, bool allowDecreaseHeight)
Definition: ui.cc:81
The central class for managing and drawing a widget tree.
Definition: layout.hh:16
void containerSizeChangedForChildren()
Definition: ui.cc:98
An arbitrary number of items may be selected.
Definition: ui.hh:508
This is the base class for many other classes, which defines very common virtual methods.
Definition: object.hh:24
Receiver interface for the "clicked" signal.
Definition: ui.hh:306
virtual OptionMenuResource * createOptionMenuResource()=0
Represents a enter or leave notify event.
Definition: events.hh:74
virtual void leave(Resource *resource)=0
Iterator * iterator(Content::Type mask, bool atEnd)
Definition: ui.cc:494
Receiver interface different signals.
Definition: layout.hh:47
Resource * resource
Definition: ui.hh:228
Resource * getResource()
Definition: ui.hh:263
The base class for signal emitters.
Definition: signal.hh:212
virtual LabelButtonResource * createLabelButtonResource(const char *label)=0
Iterators are used to iterate through the contents of a widget.
Definition: iterator.hh:19
void correctExtremesOfChild(Widget *child, Extremes *extremes, bool useAdjustmentWidth)
Definition: ui.cc:92
ClickedEmitter clickedEmitter
Definition: ui.hh:339
virtual RadioButtonResource * createRadioButtonResource(RadioButtonResource *groupedWith, bool activated)=0
virtual void sizeRequest(Requisition *requisition)=0
bool buttonPressImpl(core::EventButton *event)
Definition: ui.cc:117
virtual Iterator * iterator(Content::Type mask, bool atEnd)=0
void connectActivate(ActivateReceiver *receiver)
Definition: ui.hh:319
void emitLeave()
Definition: ui.cc:290
Represents the allocation, i.e. actual position and size of a dw::core::Widget.
Definition: types.hh:163
virtual ComplexButtonResource * createComplexButtonResource(Widget *widget, bool relief)=0
virtual void setMaxLength(int maxlen)=0
virtual bool isEditable()=0
virtual ~Resource()
Definition: ui.cc:206
#define DBG_OBJ_CREATE(klass)
Definition: debug_rtfl.hh:412
virtual void setText(const char *text)=0
virtual void correctRequisitionOfChild(Widget *child, Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseWidth, bool allowDecreaseHeight)
Definition: ui.cc:250
virtual int getAvailWidthOfChild(Widget *child, bool forceValue)
Definition: ui.cc:236
Set at the top when drawing.
Definition: types.hh:294
void connectClicked(ClickedReceiver *receiver)
Definition: ui.hh:388
The base class for signal receiver base classes.
Definition: signal.hh:253
void emitActivate()
Definition: ui.hh:351
static int CLASS_ID
Definition: ui.hh:252
virtual Embed * getEmbed()
Definition: ui.hh:348
virtual CheckButtonResource * createCheckButtonResource(bool activated)=0
virtual bool isSelected(int index)=0
Basic interface for all resources.
Definition: ui.hh:288
virtual void setEditable(bool editable)=0
virtual void sizeAllocate(Allocation *allocation)
Definition: ui.cc:232
A widget for embedding UI widgets.
Definition: ui.hh:223
void emitActivate(Resource *resource)
Definition: ui.cc:183
void setEnabled(bool enabled)
Definition: ui.cc:135
virtual void enter(Resource *resource)=0
virtual MultiLineTextResource * createMultiLineTextResource(int cols, int rows, const char *placeholder)=0
virtual void correctExtremesOfChildNoRec(Widget *child, Extremes *extremes, bool useAdjustmentWidth)
Definition: ui.hh:278
virtual void setDisplayed(bool displayed)
Definition: ui.cc:273
void emitEnter(Resource *resource)
Definition: ui.cc:190
ActivateEmitter activateEmitter
Definition: ui.hh:338
virtual void activate(Resource *resource)=0
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
An interface to encapsulate platform dependent drawing.
Definition: view.hh:16
void sizeRequestSimpl(Requisition *requisition)
Simple variant, to be implemented by widgets with sizes not depending on positions.
Definition: ui.cc:51
void setDisplayed(bool displayed)
Definition: ui.cc:130
void correctReqWidthOfChildNoRec(Widget *child, Requisition *requisition, bool allowDecreaseWidth)
Definition: ui.hh:265
virtual bool isEnabled()=0
void emitEnter()
Definition: ui.cc:285
virtual void clicked(Resource *resource, EventButton *event)=0
virtual void popGroup()=0
virtual void draw(View *view, Rectangle *area, DrawingContext *context)
Definition: ui.cc:277
void emitClicked(Resource *resource, EventButton *event)
Definition: ui.cc:305
virtual void setItem(int index, bool selected)=0
virtual void setEnabled(bool enabled)=0
void emitLeave(Resource *resource)
Definition: ui.cc:197
void getExtremesSimpl(Extremes *extremes)
Simple variant, to be implemented by widgets with extremes not depending on positions.
Definition: ui.cc:58
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.
Definition: ui.cc:159
Resource()
Definition: ui.hh:357
virtual int getAvailHeightOfChild(Widget *child, bool forceValue)
Definition: ui.cc:243
virtual int getNumberOfItems()=0
Base interface for dw::core::ui::ListResource and dw::core::ui::OptionMenuResource.
Definition: ui.hh:466
Exactly one item is selected.
Definition: ui.hh:487
void queueResize(bool extremesChanged)
Definition: ui.hh:344
void correctReqHeightOfChildNoRec(Widget *child, Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseHeight)
Definition: ui.hh:270
virtual void addItem(const char *str, bool enabled, bool selected)=0
Embed * embed
Definition: ui.hh:337
virtual void getExtremes(Extremes *extremes)
Definition: ui.cc:216
virtual EntryResource * createEntryResource(int size, bool password, const char *label, const char *placeholder)=0
virtual void pushGroup(const char *name, bool enabled)=0
virtual const char * getText()=0
int getAvailWidthOfChild(Widget *child, bool forceValue)
Definition: ui.cc:71
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.
Definition: ui.cc:295
void connectActivate(ActivateReceiver *receiver)
Definition: ui.hh:386
void leaveNotifyImpl(core::EventCrossing *event)
Definition: ui.cc:111