11 #ifndef hifi_Overlay2D_h
12 #define hifi_Overlay2D_h
18 class Overlay2D :
public Overlay {
23 Overlay2D(
const Overlay2D* overlay2D);
25 virtual AABox getBounds()
const override;
26 virtual uint32_t fetchMetaSubItems(render::ItemIDs& subItems)
const override { subItems.push_back(getRenderItemID());
return 1; }
29 const QRect& getBoundingRect()
const {
return _bounds; }
32 void setX(
int x) { _bounds.setX(x); }
33 void setY(
int y) { _bounds.setY(y); }
34 void setWidth(
int width) { _bounds.setWidth(width); }
35 void setHeight(
int height) { _bounds.setHeight(height); }
36 void setBounds(
const QRect& bounds) { _bounds = bounds; }
38 void setProperties(
const QVariantMap& properties)
override;