working on #685 i had to learn alot about BView and so i wonder if Artpaint can be simpler. when changes are made ImageView has three functions:
- adjustSize: resize view based on zoom
- adjustPosition: re center the view after resize
- adjustScrollBars: adjust the scrollbars after resize and center
so i wonder if the center could be auto handled by a BLayout
and BView::Zoom maybe can do the resize
and maybe the BLayout also makes the parent scrollbars work automaticaly?
i tried this a little and couldnt get it to work but maybe worth another try at some point. but this would make the code more 'normal' for Haiku and easier to understand
working on #685 i had to learn alot about BView and so i wonder if Artpaint can be simpler. when changes are made ImageView has three functions:
so i wonder if the center could be auto handled by a BLayout
and BView::Zoom maybe can do the resize
and maybe the BLayout also makes the parent scrollbars work automaticaly?
i tried this a little and couldnt get it to work but maybe worth another try at some point. but this would make the code more 'normal' for Haiku and easier to understand