Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GenericLayout Class Reference

Base class for layouts. More...

#include <generic_layout.hpp>

Inheritance diagram for GenericLayout:

SkinObject Box List of all members.

Public Member Functions

virtual void setWindow (TopWindow *pWindow)
 Attach the layout to a window.
virtual TopWindowgetWindow () const
 Get the associated window, if any.
virtual void onControlCapture (const CtrlGeneric &rCtrl)
 Called by a control which wants to capture the mouse.
virtual void onControlRelease (const CtrlGeneric &rCtrl)
 Called by a control which wants to release the mouse.
virtual void refreshAll ()
 Refresh the window.
virtual void refreshRect (int x, int y, int width, int height)
 Refresh a rectangular portion of the window.
virtual OSGraphicsgetImage () const
 Get the image of the layout.
virtual int getLeft () const
 Get the position of the layout (relative to the screen).
virtual int getWidth () const
 Get the size of the layout.
virtual int getMinWidth () const
 Get the minimum and maximum size of the layout.
virtual void resize (int width, int height)
 Resize the layout.
virtual void addControl (CtrlGeneric *pControl, const Position &rPosition, int layer)
virtual const list< LayeredControl > & getControlList () const
 Get the list of the controls in this layout, by layer order.
virtual void onControlUpdate (const CtrlGeneric &rCtrl, int width, int height, int xOffSet, int yOffSet)
virtual const list< Anchor * > & getAnchorList () const
 Get the list of the anchors of this layout.
virtual void addAnchor (Anchor *pAnchor)
 Add an anchor to this layout.

Detailed Description

Base class for layouts.

Definition at line 54 of file generic_layout.hpp.


Member Function Documentation

void GenericLayout::addControl CtrlGeneric pControl,
const Position rPosition,
int  layer
[virtual]
 

Add a control in the layout at the given position, and the optional given layer

Definition at line 83 of file generic_layout.cpp.

References SkinObject::getIntf(), Position::getLeft(), and Position::getTop().

void GenericLayout::onControlUpdate const CtrlGeneric rCtrl,
int  width,
int  height,
int  xOffSet,
int  yOffSet
[virtual]
 

Called by a control when its image has changed The arguments indicate the size of the rectangle to refresh, and the offset (from the control position) of this rectangle. Use a negative width or height to refresh the layout completely

Definition at line 124 of file generic_layout.cpp.

References Position::getLeft(), CtrlGeneric::getPosition(), Position::getTop(), refreshAll(), and refreshRect().

Referenced by CtrlGeneric::notifyLayout().


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 10:15:03 2005 for vlc-0.8.4a by  doxygen 1.4.2