Skip to content

How do I create cairo context from pointer? #40

@bigos

Description

@bigos

I am experimenting with Gtk4.

https://docs.gtk.org/gtk4/callback.DrawingAreaDrawFunc.html

and try to write a callback.

Can you provide example how to use the cr in Gtk4 and get to using it as the cr in the examples.

My doubtful understanding is that I need to create context from the pointer.

I am a noob and trying various gives me errors that I do not understand.

https://github.com/bigos/gtk_minimal/blob/main/bin/main.ml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions