Skip to content

Look into simpler view for ImageView? #688

Description

@HiCamino

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions