The Pedigree Project
0.1
|
#include <winman.h>
Public Types | |
enum | Layout { SideBySide, Stacked } |
Public Types inherited from WObject | |
enum | Type { Container, Window, Root } |
Public Member Functions | |
Container (WObject *pParent) | |
virtual Type | getType () const |
Layout | getLayout () const |
void | setLayout (Layout newLayout) |
::Window * | getFocusWindow () const |
void | setFocusWindow (::Window *w) |
void | addChild (WObject *pChild, bool bNoRetile=false) |
void | replaceChild (WObject *pChild, WObject *pNewChild) |
void | insertChild (WObject *pCurrent, WObject *pNewChild) |
void | removeChild (WObject *pChild) |
size_t | getChildCount () const |
WObject * | getChild (size_t n) const |
WObject * | getLeftSibling (const WObject *pChild) const |
WObject * | getRightSibling (const WObject *pChild) const |
WObject * | getLeftObject () const |
WObject * | getRightObject () const |
WObject * | getLeft (const WObject *obj) const |
WObject * | getRight (const WObject *obj) const |
WObject * | getUp (const WObject *obj) const |
WObject * | getDown (const WObject *obj) const |
void | retile () |
WObject * | getParent () const |
virtual void | resize (ssize_t horizDistance, ssize_t vertDistance, WObject *pChild=0) |
void | render (cairo_t *cr) |
virtual void | norefresh () |
Don't refresh the context on every reposition. | |
virtual void | yesrefresh () |
Refresh context on every reposition. | |
Public Member Functions inherited from WObject | |
void | reposition (size_t x=~0UL, size_t y=~0UL, size_t w=~0UL, size_t h=~0UL) |
void | bump (ssize_t bumpX=0, ssize_t bumpY=0) |
virtual void | resized () |
PedigreeGraphics::Rect | getCopyDimensions () const |
Protected Types | |
typedef std::vector< WObject * > | WObjectList_t |
Protected Attributes | |
std::vector< WObject * > | m_Children |
Private Attributes | |
WObject * | m_pParent |
Layout | m_Layout |
::Window * | m_pFocusWindow |
Additional Inherited Members | |
Protected Member Functions inherited from WObject | |
void | setDimensions (PedigreeGraphics::Rect &rt) |
PedigreeGraphics::Rect & | getDimensions () |
virtual void | refreshContext () |
Refresh our graphical context, called after reposition. | |
Container: contains windows (and other containers) and defines layout semantics, including management of the sizing of its own children.
|
inline |
|
inline |
|
inline |
Gets the object below the given child, or 0 if no object is below the given child. This is a VISUAL below.
Definition at line 730 of file objects.cc.
References getDown().
Referenced by getDown().
Gets the object to the left of the given child, or 0 if no object is to the left of the given child. This is a VISUAL left.
Definition at line 619 of file objects.cc.
References getLeft().
Referenced by getLeft().
WObject * Container::getLeftObject | ( | ) | const |
Finds any object to our left, other than the root container. This is the left of the container itself.
Definition at line 609 of file objects.cc.
Finds the left sibling of the given child. Note that in the 'Stacked' layout, this is the container above the child, not the container to its left.
Definition at line 568 of file objects.cc.
|
inline |
Gets the object to the right of the given child, or 0 if no object is to the right of the given child. This is a VISUAL right.
Definition at line 656 of file objects.cc.
References getRight().
Referenced by getRight().
WObject * Container::getRightObject | ( | ) | const |
Finds any object to our right, other than the root container. This is the right of the container itself.
Definition at line 614 of file objects.cc.
Finds the right sibling of the given child. Note that in the 'Stacked' layout, this is the container below the child, not the container to its right.
Definition at line 588 of file objects.cc.
Gets the object above the given child, or 0 if no object is above the given child. This is a VISUAL above.
Definition at line 693 of file objects.cc.
References getUp().
Referenced by getUp().
|
inline |
|
virtual |
Render children
Reimplemented from WObject.
Definition at line 550 of file objects.cc.
References render().
Referenced by render().
|
virtual |
Resize the entire container. A child might ask us to do this if it is resized horizontally and we are tiling Stacked, as it no longer fits inside our container.
Implements WObject.
Reimplemented in RootContainer.
Definition at line 466 of file objects.cc.
References resize().
Referenced by resize(), and RootContainer::resize().
void Container::retile | ( | ) |
Taking our dimensions and layout into account, retile our children. This will resize and reposition children, which may cause them to retile also.
Definition at line 414 of file objects.cc.
References retile().
Referenced by retile().