inline bool visible() const { return _visible; }
virtual void update();
- virtual void refresh() { _dirty = true; render(); }
+ virtual void refresh() { if (_visible) { _dirty = true; render(); } }
virtual void setBevel(int b);
inline int bevel() const { return _bevel; }
virtual void exposeHandler(const XExposeEvent &e);
virtual void configureHandler(const XConfigureEvent &e);
- virtual void styleChanged(const RenderStyle &) {}
+ virtual void styleChanged(const RenderStyle &style);
protected:
virtual void addChild(Widget *w) { assert(w); _children.push_back(w); }
//! Find the default min/max sizes for the widget. Useful after the in-use
//! style has changed.
- virtual void calcDefaultSizes() {};
+ virtual void calcDefaultSizes();
virtual void setMinSize(const Size &s);
void createWindow(bool overrideredir);
RenderTexture *_texture;
+
+ EventDispatcher *dispatcher() const { return _dispatcher; }
private:
void internal_moveresize(int x, int y, int w, int h);