Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayak UI
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Bevy Forks
Kayak UI
Commits
3a27a603
Unverified
Commit
3a27a603
authored
3 years ago
by
Ygg01
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Apply suggestions from code review
Co-authored-by:
MrGVSV
<
49806985+MrGVSV@users.noreply.github.com
>
parent
4a11f7b9
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
kayak_core/src/layout_dispatcher.rs
+1
-1
1 addition, 1 deletion
kayak_core/src/layout_dispatcher.rs
kayak_core/src/on_layout.rs
+1
-1
1 addition, 1 deletion
kayak_core/src/on_layout.rs
kayak_core/src/widget.rs
+2
-2
2 additions, 2 deletions
kayak_core/src/widget.rs
with
4 additions
and
4 deletions
kayak_core/src/layout_dispatcher.rs
+
1
−
1
View file @
3a27a603
...
...
@@ -22,7 +22,7 @@ impl LayoutEventDispatcher {
.widget_manager
.layout_cache
.geometry_changed
(
node_index
)
==
GeometryChanged
::
default
()
.is_empty
()
{
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
kayak_core/src/on_layout.rs
+
1
−
1
View file @
3a27a603
...
...
@@ -46,7 +46,7 @@ impl Debug for OnLayout {
impl
PartialEq
for
OnLayout
{
fn
eq
(
&
self
,
_
:
&
Self
)
->
bool
{
//
TODO what goes here
//
Never prevent "==" from being true because of this struct
true
}
}
This diff is collapsed.
Click to expand it.
kayak_core/src/widget.rs
+
2
−
2
View file @
3a27a603
...
...
@@ -87,9 +87,9 @@ pub trait WidgetProps: std::fmt::Debug + AsAny + Send + Sync {
///
/// Returns `None` if this widget doesn't contain a custom event handler
fn
get_on_event
(
&
self
)
->
Option
<
OnEvent
>
;
/// Gets the custom layout handler of this widget
/// Gets the custom layout
event
handler of this widget
///
/// Returns `None` if this widget doesn't contain a custom event handler
/// Returns `None` if this widget doesn't contain a custom
layout
event handler
fn
get_on_layout
(
&
self
)
->
Option
<
OnLayout
>
;
/// Gets the focusability of this widget
///
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment