Skip to content

A way to access widgets by ID / mainly canvas #90

Open
@dacap

Description

@dacap
Member

We should have a way to access widgets by ID. Mainly a canvas to paint some part of its surface. E.g.

local d = Dialog():canvas{ id=myCanvas }
local ctx = d.widgets.myCanvas.context
-- ... paint in the ctx ...

At the moment the only way to paint in the canvas is using the onpaint event and triggering that event through Dialog:paint() (but the onpaint should be a way to redraw the entire canvas in case of resize, we cached the surface on a offscreen bitmap).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dacap

        Issue actions

          A way to access widgets by ID / mainly canvas · Issue #90 · aseprite/api