2 #include "ContainerWidget.h"
6 using namespace awful::gui
;
8 Widget::Widget( Pointer
< Theme
> pTheme_
)
17 Widget::Widget( ContainerWidget
* pParent_
) :
18 Widget( pParent_
->getTheme() )
21 pParent_
->addChild( this );
24 void Widget::setRect( const math::Rectf
& r
)
27 m_AbsPos
= m_Rect
.position();
30 m_AbsPos
+= m_pParent
->getAbsPos();
33 void Widget::setAbsPos( const math::Vector2f
& p
)
35 m_Rect
.position() = p
;
39 m_Rect
.position() -= m_pParent
->getAbsPos();