Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New canvas widget (initial version) #87

Closed
5 tasks done
dacap opened this issue Dec 14, 2022 · 1 comment
Closed
5 tasks done

New canvas widget (initial version) #87

dacap opened this issue Dec 14, 2022 · 1 comment
Assignees
Labels

Comments

@dacap
Copy link
Member

dacap commented Dec 14, 2022

New canvas widget.

  • paint filled rectangles

  • paint images (Tiles) on canvas

  • more mouse events, probably like HTML events:

    The order of events related to the onmouseup event (for the left/middle mouse button):

    1. onmousedown
    2. onmouseup
    3. onclick

    The order of events related to the onmouseup event (for the right mouse button):

    1. onmousedown
    2. onmouseup
    3. oncontextmenu
  • paint theme elements on canvas

  • access active theme colors

@dacap dacap self-assigned this Dec 14, 2022
@dacap dacap converted this from a draft issue Dec 14, 2022
@dacap dacap added the wip Work in progress label Dec 14, 2022
dacap added a commit to dacap/aseprite that referenced this issue Dec 14, 2022
Right now it just creates a plain widget, but now we can specify
hexpand/vexpand arguments too so we can create a canvas with a fixed
size or with dynamic size (e.g. to use the whole dialog client area).

The onpaint event is not functional yet.
@dacap dacap added the feature label Dec 14, 2022
@dacap dacap moved this from In Progress to Done in Attachment System Dec 16, 2022
@dacap
Copy link
Member Author

dacap commented Dec 19, 2022

@dacap dacap removed the wip Work in progress label Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

1 participant