#include <faith/layout.h>
Inheritance diagram for Faith::Layout:

Public Member Functions | |
| Layout (Faith::Widget *widget, int margin=0, int spacing=-1) | |
| virtual | ~Layout () |
| Faith::Widget * | widget () |
| const Faith::Widget * | widget () const |
| int | spacing () const |
| int | margin () const |
| Faith::Rect | geometry () const |
| Faith::Size | size () const |
Protected Member Functions | |
| virtual void | layout ()=0 |
| void | invalidate () |
| virtual void | childAdded (Faith::Widget *w)=0 |
| virtual void | childRemoved (Faith::Widget *w)=0 |
| virtual Faith::Size | minimumSize () const =0 |
| virtual Faith::Size | maximumSize () const =0 |
| Faith::Size | sizeHint () const |
| void | resizeChild (LayoutItem *child, const Faith::Rect &rect) |
Classes | |
| class | LayoutItem |
| class | LayoutLayoutItem |
| class | LayoutWidgetItem |
| Faith::Layout::Layout | ( | Faith::Widget * | widget, | |
| int | margin = 0, |
|||
| int | spacing = -1 | |||
| ) |
| virtual Faith::Layout::~Layout | ( | ) | [virtual] |
| virtual void Faith::Layout::childAdded | ( | Faith::Widget * | w | ) | [protected, pure virtual] |
every time a child widget is added to the widget, this is called
If you inherit from Layout, you must call this implementation if the child was indeed added
Implemented in Faith::BoxLayout, and Faith::GridLayout.
| virtual void Faith::Layout::childRemoved | ( | Faith::Widget * | w | ) | [protected, pure virtual] |
every time a child widget is added to the widget, this is called
If you inherit from Layout, you must call this implementation if the child was indeed added
Implemented in Faith::BoxLayout, and Faith::GridLayout.
| Faith::Rect Faith::Layout::geometry | ( | ) | const [inline] |
| void Faith::Layout::invalidate | ( | ) | [protected] |
| virtual void Faith::Layout::layout | ( | ) | [protected, pure virtual] |
this function is called when the child widgets need to be layed out again
Implemented in Faith::BoxLayout, and Faith::GridLayout.
| int Faith::Layout::margin | ( | ) | const |
| virtual Faith::Size Faith::Layout::maximumSize | ( | ) | const [protected, pure virtual] |
Implemented in Faith::BoxLayout, and Faith::GridLayout.
| virtual Faith::Size Faith::Layout::minimumSize | ( | ) | const [protected, pure virtual] |
Implemented in Faith::BoxLayout, and Faith::GridLayout.
| void Faith::Layout::resizeChild | ( | LayoutItem * | child, | |
| const Faith::Rect & | rect | |||
| ) | [protected] |
implementations of this class should use this function to lay out children
this takes into account the geometry() of this layout
| Faith::Size Faith::Layout::size | ( | ) | const [inline] |
| Faith::Size Faith::Layout::sizeHint | ( | ) | const [protected] |
| int Faith::Layout::spacing | ( | ) | const |
| const Faith::Widget* Faith::Layout::widget | ( | ) | const [inline] |
| Faith::Widget* Faith::Layout::widget | ( | ) | [inline] |
1.4.7