32 #include "YProperty.h" 33 #include "YUISymbols.h" 34 #include "YUIException.h" 35 #include "YChildrenManager.h" 72 virtual const char *
widgetClass()
const {
return "YWidget"; }
152 virtual bool setProperty(
const std::string & propertyName,
326 virtual void setSize(
int newWidth,
int newHeight ) = 0;
394 virtual void setEnabled(
bool enabled =
true );
414 virtual bool stretchable( YUIDimension dim )
const;
438 virtual int weight( YUIDimension dim );
449 void setWeight( YUIDimension dim,
int weight );
601 void *
operator new(
size_t size );
614 virtual void doneMultipleChanges() {}
682 static bool _usedOperatorNew;
685 #include "YWidget_OptimizeChanges.h" 690 std::ostream & operator<<( std::ostream & stream,
const YWidget * widget );
Abstract base class for macro recorders.
Author: Stefan Hundhammer sh@suse.de
T * lastChild()
Returns the last child or 0 if there is none.
int count() const
Returns the number of children.
Transport class for the value of simple properties.
A set of properties to check names and types against.
ChildrenList::const_iterator end() const
Return an iterator that points after the last child.
Abstract base template class for children management, such as child widgets.
bool contains(T *child) const
Check if the children list contains the specified child.
bool hasChildren() const
Check if there are any children.
Children manager that can handle one single child (rejecting any more).
Children manager that rejects all children.
A window in the desktop environment.
T * firstChild()
Returns the first child or 0 if there is none.
ChildrenList::const_iterator begin() const
Return an iterator that points to the first child.