Dillo v3.1.1-111-gd4f56d0d
Loading...
Searching...
No Matches
dw_simple_container.hh
Go to the documentation of this file.
1#ifndef __DW_SIMPLE_CONTAINER_HH__
2#define __DW_SIMPLE_CONTAINER_HH__
3
4#include "dw/core.hh"
5
6namespace dw {
7
12{
13private:
15 {
16 private:
17 int index ();
18
19 public:
22 bool atEnd);
23
26
27 bool next ();
28 bool prev ();
29 void highlight (int start, int end, core::HighlightLayer layer);
30 void unhighlight (int direction, core::HighlightLayer layer);
31 void getAllocation (int start, int end, core::Allocation *allocation);
32 };
33
35
36protected:
40
41public:
42 static int CLASS_ID;
43
46
47 void draw (core::View *view, core::Rectangle *area,
48 core::DrawingContext *context);
50 void removeChild (Widget *child);
51
53};
54
55} // namespace dw
56
57#endif // __DW_SIMPLE_CONTAINER_HH__
bool prev()
Move iterator backward and store content it.
void unhighlight(int direction, core::HighlightLayer layer)
Shrink highlighted region to no longer contain the current content.
void highlight(int start, int end, core::HighlightLayer layer)
Extend highlighted region to contain part of the current content.
int compareTo(lout::object::Comparable *other)
Compare two objects, this and other.
lout::object::Object * clone()
Return an exact copy of the object.
bool next()
Move iterator forward and store content it.
Simple widget used for testing concepts.
core::Iterator * iterator(core::Content::Type mask, bool atEnd)
Return an iterator for this widget.
void sizeAllocateImpl(core::Allocation *allocation)
See Sizes of Dillo Widgets.
void removeChild(Widget *child)
void getExtremesSimpl(core::Extremes *extremes)
Simple variant, to be implemented by widgets with extremes not depending on positions.
void draw(core::View *view, core::Rectangle *area, core::DrawingContext *context)
Area is given in widget coordinates.
void setChild(core::Widget *child)
void sizeRequestSimpl(core::Requisition *requisition)
Simple variant, to be implemented by widgets with sizes not depending on positions.
Set at the top when drawing.
Definition types.hh:295
Iterators are used to iterate through the contents of a widget.
Definition iterator.hh:20
Content::Type mask
Definition iterator.hh:30
dw::core::Shape implemtation for simple rectangles.
Definition types.hh:70
An interface to encapsulate platform dependent drawing.
Definition view.hh:17
The base class of all dillo widgets.
Definition widget.hh:44
Allocation * getAllocation()
Definition widget.hh:484
Extremes extremes
Analogue to dw::core::Widget::requisition.
Definition widget.hh:166
Allocation allocation
The current allocation: size and position, always relative to the canvas.
Definition widget.hh:204
Requisition requisition
Size_request() stores the result of the last call of size_request_impl().
Definition widget.hh:160
Instances of a sub class of may be compared (less, greater).
Definition object.hh:42
This is the base class for many other classes, which defines very common virtual methods.
Definition object.hh:25
HighlightLayer
Definition types.hh:43
Dw is in this namespace, or sub namespaces of this one.
Represents the allocation, i.e.
Definition types.hh:164