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

Psy.GtkWindow doesn't seem to update it dimension #97

Open
maartenuni opened this issue Jan 31, 2024 · 1 comment
Open

Psy.GtkWindow doesn't seem to update it dimension #97

maartenuni opened this issue Jan 31, 2024 · 1 comment
Assignees

Comments

@maartenuni
Copy link
Contributor

When the Psy.GtkWindow resizes, is exposed, the window size should be know, hence set to the properties of the Psy.GtkWindow:width and Psy.GtkWindow:height

@maartenuni maartenuni self-assigned this Jan 31, 2024
@maartenuni
Copy link
Contributor Author

Basically the window is created in its final dimensions in pixels. So in the PsyGtkWindow->constructed method we can set the final dimensions of the Canvas in pixels, this already happened for the width and height in milimeter.

maartenuni added a commit that referenced this issue Feb 3, 2025
maartenuni added a commit that referenced this issue Feb 5, 2025
Stimuli can now be drawn again. fixes #142
Additionally implement the Psy.Canvas::draw signal on
the canvas. In order to initiate a draw one should
call [[email protected]_draw]. This will emit
the draw signal on the canvas, the default handler
will draw the canvas.

With these changes the Psy.GtkWindow will have
correct window dimensions once it is constructed and will
not depend on the resize signal to have it's correct
dimensions For psylib aims at having non resizable
windows. This fixes #97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant