20 #ifndef IMAGEPOSITION_H
21 #define IMAGEPOSITION_H
27 class ImagePosition :
public TQWidget
30 enum PositionType {TopLeft,
40 ImagePosition(TQWidget *parent = 0,
const char *name = 0);
43 void setPosition(
const char *type =
"center");
44 void setPosition(PositionType type = Center);
45 void setPosition(
int horiz = 1,
int vert = 1);
46 PositionType position()
const {
return (PositionType)position_; }
47 TQString positionString()
const;
48 TQSize sizeHint()
const;
51 void paintEvent(TQPaintEvent *);