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 CogView::cog_view_[set|is]_visible() accessors #668

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

psaavedra
Copy link
Member

Add convenient accessors to the "visible" property the to the CogView external API:

  • CogView::cog_view_set_visible() sets the view as the one visible inside of the viewport where the view is attached.
  • CogView::cog_view_is_visible() gets if the view is visible inside of the viewport where the view is attached.

@psaavedra psaavedra force-pushed the psaavedra/cog_view_set_and_is_visible branch 2 times, most recently from cdb324d to cec52df Compare November 23, 2023 00:20
@psaavedra psaavedra self-assigned this Nov 23, 2023
Copy link
Member

@aperezdc aperezdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree on the idea for the new API, but I have a few change requests. If you look into them, I think we can merge this today. Thanks @psaavedra! 🙏🏼

core/cog-view.c Outdated Show resolved Hide resolved
core/cog-view.c Outdated Show resolved Hide resolved
core/cog-view.c Outdated Show resolved Hide resolved
core/cog-view.c Outdated Show resolved Hide resolved
core/cog-view.c Outdated Show resolved Hide resolved
Gets if the view is visible inside of the viewport where the view
is attached.

Returns: True if the view is visible in its viewport and false in any
other case.
@psaavedra psaavedra force-pushed the psaavedra/cog_view_set_and_is_visible branch from f15cf34 to deac0b9 Compare November 23, 2023 14:54
Set the view as the one visible inside of the viewport where the view is
attached.
@psaavedra psaavedra force-pushed the psaavedra/cog_view_set_and_is_visible branch from deac0b9 to 912d136 Compare November 23, 2023 14:56
@psaavedra psaavedra enabled auto-merge (rebase) November 23, 2023 15:18
@psaavedra
Copy link
Member Author

I agree on the idea for the new API, but I have a few change requests. If you look into them, I think we can merge this today. Thanks @psaavedra! 🙏🏼

Done.

@psaavedra psaavedra merged commit 4333758 into master Nov 23, 2023
5 checks passed
@psaavedra psaavedra deleted the psaavedra/cog_view_set_and_is_visible branch November 23, 2023 21:55
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.

2 participants