25 #define YUILogComponent "ncurses" 26 #include <yui/YUILog.h> 28 #include "NCAlignment.h" 31 NCAlignment::NCAlignment( YWidget * parent,
32 YAlignmentType halign,
33 YAlignmentType valign )
34 : YAlignment( parent, halign, valign )
37 yuiDebug() << std::endl;
42 NCAlignment::~NCAlignment()
44 yuiDebug() << std::endl;
48 void NCAlignment::setSize(
int newwidth,
int newheight )
50 wRelocate(
wpos( 0 ),
wsze( newheight, newwidth ) );
51 YAlignment::setSize( newwidth, newheight );
58 YAlignment::setEnabled( do_bv );
62 void NCAlignment::moveChild( YWidget * child,
int newx,
int newy )
64 NCWidget * cw = dynamic_cast<NCWidget*>( child );
66 if ( !( cw && IsParentOf( *cw ) ) )
68 yuiError() << DLOC << cw <<
" is not my child" << std::endl;
72 wMoveChildTo( *cw,
wpos( newy, newx ) );
virtual void setEnabled(bool do_bv)
Pure virtual to make sure every widget implements it.