diff options
Diffstat (limited to 'dw/image.hh')
-rw-r--r-- | dw/image.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dw/image.hh b/dw/image.hh index a712936e..b94f647d 100644 --- a/dw/image.hh +++ b/dw/image.hh @@ -121,6 +121,7 @@ class Image: public core::Widget, public core::ImgRenderer private: char *altText; core::Imgbuf *buffer; + int bufWidth, bufHeight; int altTextWidth; bool clicking; int currLink; @@ -130,7 +131,9 @@ private: protected: void sizeRequestImpl (core::Requisition *requisition); + void getExtremesImpl (core::Extremes *extremes); void sizeAllocateImpl (core::Allocation *allocation); + void containerSizeChangedForChildren (); void draw (core::View *view, core::Rectangle *area); @@ -150,6 +153,10 @@ public: Image(const char *altText); ~Image(); + // For images, the minimal width is not well defined, and + // correction of the size makes not much sense. + virtual bool getAdjustMinWidth () { return false; } + core::Iterator *iterator (core::Content::Type mask, bool atEnd); inline core::Imgbuf *getBuffer () { return buffer; } |