Smooth wheel scrolling: route scroll over sliders to the list or the volume (#5)
This commit was merged in pull request #5.
This commit is contained in:
1 parent
0760d7ba6c
commit
d360b51bb2
9 files changed
+511
-15
No files matched your search
+22
-1
@@ -1,6 +1,10 @@
|
||||
// Generated using `moon info`, DON'T EDIT IT
|
||||
package "geordi/moonmix/gtk"
|
||||
|
||||
import {
|
||||
"moonbitlang/core/debug",
|
||||
}
|
||||
|
||||
// Values
|
||||
pub fn app_icon(String) -> String
|
||||
|
||||
@@ -32,7 +36,7 @@ pub fn resolve_icon(Array[String]) -> String
|
||||
|
||||
pub fn run() -> Unit
|
||||
|
||||
pub fn scale(Double, Double, (Double) -> Unit) -> (Widget, Int32)
|
||||
pub fn scale(Double, Double, (Double) -> Unit, on_scroll? : (ScrollEvent) -> Double?) -> (Widget, Int32)
|
||||
|
||||
pub fn scrolled(Widget) -> Widget
|
||||
|
||||
@@ -64,6 +68,23 @@ pub(all) struct Appearance {
|
||||
color_scheme : Int32
|
||||
}
|
||||
|
||||
pub(all) struct ScrollEvent {
|
||||
phase : ScrollPhase
|
||||
pixels : Bool
|
||||
dx : Double
|
||||
dy : Double
|
||||
since_list_us : Int64
|
||||
value : Double
|
||||
extent : Double
|
||||
}
|
||||
|
||||
#derive(Eq, @debug.Debug)
|
||||
pub(all) enum ScrollPhase {
|
||||
Begin
|
||||
Scroll
|
||||
End
|
||||
}
|
||||
|
||||
#external
|
||||
pub type Widget
|
||||
pub fn Widget::add_css_class(Self, String) -> Unit
|
||||
|
||||
Reference in new issue
Block a user