The Pedigree Project  0.1
Public Member Functions | List of all members
RootContainer Class Reference

#include <winman.h>

+ Inheritance diagram for RootContainer:
+ Collaboration diagram for RootContainer:

Public Member Functions

 RootContainer (size_t w, size_t h)
 
virtual Type getType () const
 
virtual void resize (ssize_t horizDistance, ssize_t vertDistance, WObject *pChild=0)
 
- Public Member Functions inherited from Container
 Container (WObject *pParent)
 
Layout getLayout () const
 
void setLayout (Layout newLayout)
 
::WindowgetFocusWindow () 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
 
WObjectgetChild (size_t n) const
 
WObjectgetLeftSibling (const WObject *pChild) const
 
WObjectgetRightSibling (const WObject *pChild) const
 
WObjectgetLeftObject () const
 
WObjectgetRightObject () const
 
WObjectgetLeft (const WObject *obj) const
 
WObjectgetRight (const WObject *obj) const
 
WObjectgetUp (const WObject *obj) const
 
WObjectgetDown (const WObject *obj) const
 
void retile ()
 
WObjectgetParent () const
 
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
 

Additional Inherited Members

- Public Types inherited from Container
enum  Layout { SideBySide, Stacked }
 
- Public Types inherited from WObject
enum  Type { Container, Window, Root }
 
- Protected Types inherited from Container
typedef std::vector< WObject * > WObjectList_t
 
- Protected Member Functions inherited from WObject
void setDimensions (PedigreeGraphics::Rect &rt)
 
PedigreeGraphics::RectgetDimensions ()
 
virtual void refreshContext ()
 Refresh our graphical context, called after reposition.
 
- Protected Attributes inherited from Container
std::vector< WObject * > m_Children
 

Detailed Description

Root container. Can't be resized, holds the first level of children.

Definition at line 572 of file winman.h.

Member Function Documentation

void RootContainer::resize ( ssize_t  horizDistance,
ssize_t  vertDistance,
WObject pChild = 0 
)
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.

Reimplemented from Container.

Definition at line 767 of file objects.cc.

References Container::resize().


The documentation for this class was generated from the following files: