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

Add API for tracking checked to the inner_size of a window #94

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

Plecra
Copy link
Contributor

@Plecra Plecra commented Dec 19, 2023

This matched the apis used for focused and occluded properties. I've added an example to demonstrate usage.

Closes #61

This matched the apis used for focused and occluded
properties. I've added an example to demonstrate usage.
@ecton
Copy link
Member

ecton commented Dec 19, 2023

We need to also let the user update the value stored in the dynamic, that way the programmer can dynamically set the window size in addition to read it. If we want a read-only interface, this should be exposed as a DynamicReader instead.

The resize logic is really tricky (see #92), however, so I'm going to volunteer to tackle that unless you're feeling ambitious!

The changes look great!

@ecton ecton merged commit f9d0203 into khonsulabs:main Dec 19, 2023
ecton added a commit that referenced this pull request Dec 19, 2023
This adds upon the work in #94 by allowing the dynamic's value to be set
and it cause the window size to change.

I've ordered the resizing operations so that changes to the property are
prioritized over automatic adjustments. This doesn't change the behavior
for automatic adjustments in any way.
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

Successfully merging this pull request may close these issues.

Expose Window::inner_size as a Dynamic
2 participants