dillo  3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java).
  Fossies Dox: dillo-3.0.5.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

ruler.cc
Go to the documentation of this file.
1 /*
2  * Dillo Widget
3  *
4  * Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 
21 
22 #include "ruler.hh"
23 #include "../lout/misc.hh"
24 
25 #include <stdio.h>
26 
27 namespace dw {
28 
30 {
33 }
34 
36 {
40 }
41 
43 {
44  drawWidgetBox (view, area, false);
45 }
46 
48 {
50  return new core::EmptyIterator (this, mask, atEnd);
51 }
52 
53 } // namespace dw
dw::Ruler::iterator
core::Iterator * iterator(core::Content::Type mask, bool atEnd)
Return an iterator for this widget.
Definition: ruler.cc:47
dw::core::Requisition
Definition: types.hh:172
dw::core::style::StyleAttrs::boxOffsetY
int boxOffsetY()
Definition: style.hh:550
dw::core::Requisition::descent
int descent
Definition: types.hh:176
dw::core::style::StyleAttrs::boxRestHeight
int boxRestHeight()
Definition: style.hh:554
dw::Ruler::Ruler
Ruler()
Definition: ruler.cc:29
dw::core::Content::Type
Type
Definition: types.hh:187
dw::Ruler::draw
void draw(core::View *view, core::Rectangle *area)
Definition: ruler.cc:42
dw::core::Iterator
Iterators are used to iterate through the contents of a widget.
Definition: iterator.hh:19
dw::core::EmptyIterator
This implementation of dw::core::Iterator can be used by widgets with no contents.
Definition: iterator.hh:95
dw::core::Widget::setFlags
void setFlags(Flags f)
Definition: widget.hh:161
dw::core::Widget::getStyle
style::Style * getStyle()
Definition: widget.hh:268
dw::core::Widget::drawWidgetBox
void drawWidgetBox(View *view, Rectangle *area, bool inverse)
Draw borders and background of a widget.
Definition: widget.cc:436
dw::core::Widget::HAS_CONTENTS
Set by the widget itself (in the constructor), when it contains some contents, e.g....
Definition: widget.hh:62
dw::core::Widget::requisition
Requisition requisition
Size_request() stores the result of the last call of size_request_impl().
Definition: widget.hh:114
dw::core::Widget::BLOCK_LEVEL
Set for block-level widgets (as opposed to inline widgets)
Definition: widget.hh:74
dw::core::Requisition::ascent
int ascent
Definition: types.hh:175
dw::core::Requisition::width
int width
Definition: types.hh:174
dw::Ruler::sizeRequestImpl
void sizeRequestImpl(core::Requisition *requisition)
See Sizes of Dillo Widgets.
Definition: ruler.cc:35
dw::core::Rectangle
dw::core::Shape implemtation for simple rectangles.
Definition: types.hh:69
dw::core::View
An interface to encapsulate platform dependent drawing.
Definition: view.hh:16
dw::core::Widget::unsetFlags
void unsetFlags(Flags f)
Definition: widget.hh:162
dw::core::style::StyleAttrs::boxDiffWidth
int boxDiffWidth()
Definition: style.hh:549
dw
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtextblock.cc:26
ruler.hh