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
4efba09b
Unverified
Commit
4efba09b
authored
3 years ago
by
Ygg01
Browse files
Options
Downloads
Patches
Plain Diff
Rename the `spinbox` -> `spin_box` and minor refactors
parent
ffcf3313
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
examples/text_box.rs
+2
-2
2 additions, 2 deletions
examples/text_box.rs
src/widgets/mod.rs
+2
-2
2 additions, 2 deletions
src/widgets/mod.rs
src/widgets/spin_box.rs
+1
-1
1 addition, 1 deletion
src/widgets/spin_box.rs
with
5 additions
and
5 deletions
examples/text_box.rs
+
2
−
2
View file @
4efba09b
...
@@ -5,13 +5,13 @@ use bevy::{
...
@@ -5,13 +5,13 @@ use bevy::{
};
};
use
kayak_core
::
Color
;
use
kayak_core
::
Color
;
use
kayak_render_macros
::
use_state
;
use
kayak_render_macros
::
use_state
;
use
kayak_ui
::
bevy
::{
BevyContext
,
BevyKayakUIPlugin
,
FontMapping
,
UICameraBundle
};
use
kayak_ui
::
{
bevy
::{
BevyContext
,
BevyKayakUIPlugin
,
FontMapping
,
UICameraBundle
}
}
;
use
kayak_ui
::
core
::{
use
kayak_ui
::
core
::{
render
,
rsx
,
render
,
rsx
,
styles
::{
Style
,
StyleProp
,
Units
},
styles
::{
Style
,
StyleProp
,
Units
},
widget
,
Index
,
widget
,
Index
,
};
};
use
kayak_ui
::
widgets
::{
App
,
OnChange
,
TextBox
,
Window
};
use
kayak_ui
::
widgets
::{
App
,
OnChange
,
Window
,
TextBox
};
#[widget]
#[widget]
fn
TextBoxExample
()
{
fn
TextBoxExample
()
{
...
...
This diff is collapsed.
Click to expand it.
src/widgets/mod.rs
+
2
−
2
View file @
4efba09b
...
@@ -10,7 +10,7 @@ mod inspector;
...
@@ -10,7 +10,7 @@ mod inspector;
mod
nine_patch
;
mod
nine_patch
;
mod
on_change
;
mod
on_change
;
mod
scroll
;
mod
scroll
;
mod
spinbox
;
mod
spin
_
box
;
mod
text
;
mod
text
;
mod
text_box
;
mod
text_box
;
mod
tooltip
;
mod
tooltip
;
...
@@ -28,7 +28,7 @@ pub use inspector::*;
...
@@ -28,7 +28,7 @@ pub use inspector::*;
pub
use
nine_patch
::
*
;
pub
use
nine_patch
::
*
;
pub
use
on_change
::
*
;
pub
use
on_change
::
*
;
pub
use
scroll
::
*
;
pub
use
scroll
::
*
;
pub
use
spinbox
::
*
;
pub
use
spin
_
box
::
*
;
pub
use
text
::
*
;
pub
use
text
::
*
;
pub
use
text_box
::
*
;
pub
use
text_box
::
*
;
pub
use
tooltip
::
*
;
pub
use
tooltip
::
*
;
...
...
This diff is collapsed.
Click to expand it.
src/widgets/spinbox.rs
→
src/widgets/spin
_
box.rs
+
1
−
1
View file @
4efba09b
...
@@ -72,7 +72,7 @@ pub struct FocusSpinbox(pub bool);
...
@@ -72,7 +72,7 @@ pub struct FocusSpinbox(pub bool);
/// | `on_layout` | ✅ |
/// | `on_layout` | ✅ |
/// | `focusable` | ✅ |
/// | `focusable` | ✅ |
///
///
pub
fn
Text
Box
(
props
:
SpinBoxProps
)
{
pub
fn
Spin
Box
(
props
:
SpinBoxProps
)
{
let
SpinBoxProps
{
let
SpinBoxProps
{
on_change
,
on_change
,
placeholder
,
placeholder
,
...
...
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