Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayak UI 0.11
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 0.11
Commits
f656b45c
Commit
f656b45c
authored
3 years ago
by
Gino Valente
Browse files
Options
Downloads
Patches
Plain Diff
Formatting
parent
55954e41
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_cache.rs
+1
-1
1 addition, 1 deletion
kayak_core/src/layout_cache.rs
kayak_core/src/widget_manager.rs
+2
-2
2 additions, 2 deletions
kayak_core/src/widget_manager.rs
src/widgets/text.rs
+1
-2
1 addition, 2 deletions
src/widgets/text.rs
with
4 additions
and
5 deletions
kayak_core/src/layout_cache.rs
+
1
−
1
View file @
f656b45c
...
@@ -134,7 +134,7 @@ impl Cache for LayoutCache {
...
@@ -134,7 +134,7 @@ impl Cache for LayoutCache {
fn
set_geo_changed
(
&
mut
self
,
node
:
Self
::
Item
,
flag
:
GeometryChanged
,
value
:
bool
)
{
fn
set_geo_changed
(
&
mut
self
,
node
:
Self
::
Item
,
flag
:
GeometryChanged
,
value
:
bool
)
{
// This method is guaranteed to be called by morphorm every layout so we'll attempt to initialize here
// This method is guaranteed to be called by morphorm every layout so we'll attempt to initialize here
self
.try_init
(
node
);
self
.try_init
(
node
);
if
value
{
if
value
{
// Setting a flag -> Add entry if it does not already exist
// Setting a flag -> Add entry if it does not already exist
let
geometry_changed
=
self
.geometry_changed
.entry
(
node
)
.or_default
();
let
geometry_changed
=
self
.geometry_changed
.entry
(
node
)
.or_default
();
...
...
This diff is collapsed.
Click to expand it.
kayak_core/src/widget_manager.rs
+
2
−
2
View file @
f656b45c
...
@@ -517,8 +517,8 @@ impl WidgetManager {
...
@@ -517,8 +517,8 @@ impl WidgetManager {
/// * `binding`: the binding to watch
/// * `binding`: the binding to watch
///
///
pub
(
crate
)
fn
bind
<
T
>
(
&
mut
self
,
id
:
Index
,
binding
:
&
Binding
<
T
>
)
pub
(
crate
)
fn
bind
<
T
>
(
&
mut
self
,
id
:
Index
,
binding
:
&
Binding
<
T
>
)
where
where
T
:
resources
::
Resource
+
Clone
+
PartialEq
,
T
:
resources
::
Resource
+
Clone
+
PartialEq
,
{
{
let
dirty_nodes
=
self
.dirty_nodes
.clone
();
let
dirty_nodes
=
self
.dirty_nodes
.clone
();
let
lifetime
=
self
.widget_lifetimes
.entry
(
id
)
.or_default
();
let
lifetime
=
self
.widget_lifetimes
.entry
(
id
)
.or_default
();
...
...
This diff is collapsed.
Click to expand it.
src/widgets/text.rs
+
1
−
2
View file @
f656b45c
use
crate
::
core
::{
use
crate
::
core
::{
render_command
::
RenderCommand
,
render_command
::
RenderCommand
,
styles
::{
Style
,
StyleProp
},
styles
::{
Style
,
StyleProp
},
CursorIcon
,
OnLayout
,
widget
,
CursorIcon
,
OnEvent
,
OnLayout
,
WidgetProps
,
widget
,
OnEvent
,
WidgetProps
,
};
};
/// Props used by the [`Text`] widget
/// Props used by the [`Text`] 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