diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-08-16 13:19:26 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-10-17 20:38:16 +0200 |
commit | 49623838743ad69811dd8348c57ca0baed46934c (patch) | |
tree | 25f38db754a740e0880e6c7c1cc455e618033e03 /dw/image.hh | |
parent | b6c8599a5acdaddccca102bae4370316beaa1915 (diff) |
Allow widgets to adjust new requisition
When a widget calls the parent to correct its own requisition, let the
child widget perform adjustments on the requisition. This allows images
to control the height when the parent changes the width, so the image
can preserve its own aspect ratio.
Diffstat (limited to 'dw/image.hh')
-rw-r--r-- | dw/image.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dw/image.hh b/dw/image.hh index ae47f307..5d890c4e 100644 --- a/dw/image.hh +++ b/dw/image.hh @@ -130,6 +130,7 @@ private: bool isMap; protected: + void setReqWidth(core::Requisition *requisition, int width); void sizeRequestSimpl (core::Requisition *requisition); void getExtremesSimpl (core::Extremes *extremes); void sizeAllocateImpl (core::Allocation *allocation); |