Fix widget resizing handles, edge anchoring, scroll sync, and axis limits
This commit is contained in:
1 parent
216c80252d
commit
bb978fd6de
13 files changed
+538
-76
No files matched your search
+13
-2
@@ -66,19 +66,29 @@ pub(all) enum Sheet {
|
||||
///|
|
||||
#derive(Eq, Debug)
|
||||
pub(all) enum Edge {
|
||||
Left
|
||||
Right
|
||||
Top
|
||||
Bottom
|
||||
Corner
|
||||
}
|
||||
|
||||
///|
|
||||
/// A resize in progress: a handle was pressed on the widget whose box (px, viewport) was
|
||||
/// at `left`, `top`.
|
||||
/// A resize in progress: a handle was pressed on the widget whose viewport box and
|
||||
/// grid edges were captured on down.
|
||||
pub(all) struct ResizeDrag {
|
||||
edge : Edge
|
||||
slot : Int32
|
||||
left : Double
|
||||
top : Double
|
||||
right : Double
|
||||
bottom : Double
|
||||
anchor_col : Int32
|
||||
anchor_row : Int32
|
||||
right_col : Int32
|
||||
bottom_row : Int32
|
||||
mut col : Int32
|
||||
mut row : Int32
|
||||
mut cols : Int32
|
||||
mut rows : Int32
|
||||
}
|
||||
@@ -227,6 +237,7 @@ pub(all) enum Msg {
|
||||
grid_top~ : Double,
|
||||
grid_w~ : Double,
|
||||
bottom_pad~ : Double,
|
||||
scroll_y~ : Double,
|
||||
)
|
||||
AppsLoaded(String?)
|
||||
WidgetsLoaded(String?)
|
||||
|
||||
Reference in new issue
Block a user