Skip to content

Recycler view - #153

Open
XITRIX wants to merge 78 commits into
natinusala:mainfrom
XITRIX:Recycler-view
Open

Recycler view#153
XITRIX wants to merge 78 commits into
natinusala:mainfrom
XITRIX:Recycler-view

Conversation

@XITRIX

@XITRIX XITRIX commented Mar 20, 2021

Copy link
Copy Markdown

I'm in progress of creating recycler view.

I've changed the behaviour of detached views a bit. If previously they were fully detached from parent's coordinate system, now they still attached to parent's origin, but free from Yoga's layout calculations, so detached origin can be used to modify view's local position inside it's parent. I changed it cause I need cells to be attached to scroll's contentBox, so it's scrolling position will reflect to cell's absolute position, but still need to have an ability to place cells manually. Also I can't think of why we could need to absolutely detach view from it's parent, I think the behaviour I've made could be much more useful than previous one. If you have any idea about that, I'll be glad to hear them.

That PR is still in progress, but I'd like you to know about it.

XITRIX added 30 commits February 1, 2021 01:09
# Conflicts:
#	library/borealis.mk
#	library/include/borealis/platforms/switch/switch_platform.hpp
# Conflicts:
#	library/include/borealis/core/platform.hpp
#	library/include/borealis/platforms/glfw/glfw_platform.hpp
#	library/include/borealis/platforms/switch/switch_platform.hpp
#	library/include/borealis/views/view.hpp
#	library/lib/platforms/glfw/glfw_platform.cpp
#	library/lib/platforms/switch/switch_platform.cpp
#	library/lib/views/scrolling_frame.cpp
#	library/meson.build
# Conflicts:
#	library/include/borealis/core/application.hpp
#	library/include/borealis/platforms/switch/switch_input.hpp
#	library/lib/core/application.cpp
#	library/lib/platforms/glfw/glfw_input.cpp
#	library/lib/views/scrolling_frame.cpp
#	library/lib/views/view.cpp
# Conflicts:
#	library/include/borealis.hpp
@natinusala

natinusala commented Mar 22, 2021

Copy link
Copy Markdown
Owner

Hey thanks a lot for that draft!

You are right about the detached views changes, I should have done it like that since the beginning.

Since this starts from your work on touch, I would prefer to finish reviewing and merging that first, then I'll come to this PR, does that sound good to you?

@XITRIX

XITRIX commented Mar 22, 2021

Copy link
Copy Markdown
Author

Yes, I'm also thought about that, there is no need in reviewing same changes twice. Let's finish with touch, then come back here.

@EmmmaTech

Copy link
Copy Markdown
Contributor

I was honestly thinking about that. It doesn't make sense to have a PR that uses code from another PR that hasn't been merged yet.

@XITRIX

XITRIX commented Mar 23, 2021

Copy link
Copy Markdown
Author

True, but it uses a lot of Point and Rect structs, which I added in Touch PR so I decided to do it like that.

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.

3 participants