This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Button, VerticalBox } from "std-widgets.slint"; | |
export component AppWindow inherits Window { | |
in-out property<int> counter: 42; | |
callback request-increase-value(); | |
VerticalBox { | |
Text { | |
text: "Counter: \{root.counter}"; | |
} | |
Button { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import slint | |
# slint.loader will look in `sys.path` for `appwindow.slint`. | |
class App(slint.loader.appwindow.AppWindow): | |
@slint.callback | |
def request_increase_value(self): | |
self.counter = self.counter + 1 | |
app = App() | |
app.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling gettext-sys v0.21.3 | |
error: failed to run custom build command for `gettext-sys v0.21.3` | |
Caused by: | |
process didn't exit successfully: `/Users/simon/src/slint/target/debug/build/gettext-sys-b3a03596f2f2a4cb/build-script-build` (exit status: 101) | |
--- stdout | |
cargo:rustc-link-lib=framework=CoreFoundation | |
cargo:rustc-link-lib=dylib=iconv | |
cargo:rerun-if-env-changed=X86_64_APPLE_DARWIN_GETTEXT_DIR | |
cargo:rerun-if-env-changed=GETTEXT_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# autopep8: off | |
from datetime import timedelta, datetime | |
import os | |
import sys | |
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "ui")) | |
import slint | |
from slint import Color, ListModel, Timer, TimerMode | |
from printerdemo_slint import MainWindow | |
# autopep8: on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/examples/window.rs b/examples/window.rs | |
index 488aa38a..f628e53d 100644 | |
--- a/examples/window.rs | |
+++ b/examples/window.rs | |
@@ -21,8 +21,6 @@ fn main() -> Result<(), impl std::error::Error> { | |
.unwrap(); | |
event_loop.run(move |event, elwt| { | |
- println!("{event:?}"); | |
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export component Demo inherits Window { | |
in-out property<string> fax-number <=> text.text; | |
width: 300px; | |
height: 300px; | |
layout := VerticalLayout { | |
text := Text { | |
//colspan: 2; | |
horizontal-alignment: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/internal/renderers/skia/opengl_surface.rs b/internal/renderers/skia/opengl_surface.rs | |
index 9f861b171..3b2d2c08b 100644 | |
--- a/internal/renderers/skia/opengl_surface.rs | |
+++ b/internal/renderers/skia/opengl_surface.rs | |
@@ -58,10 +58,32 @@ fn new( | |
} | |
}; | |
+ let mut missing_functions: Vec<String> = Vec::new(); | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/internal/backends/linuxkms/display/egldisplay.rs b/internal/backends/linuxkms/display/egldisplay.rs | |
index 2dd96746f..0f66aa499 100644 | |
--- a/internal/backends/linuxkms/display/egldisplay.rs | |
+++ b/internal/backends/linuxkms/display/egldisplay.rs | |
@@ -204,19 +204,32 @@ pub fn try_create_egl_display( | |
}) | |
.ok_or_else(|| format!("No preferred or non-zero size display mode found"))?; | |
- let encoder = connector | |
- .encoders() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Button, VerticalBox , Switch, TabWidget, HorizontalBox, Slider, ComboBox, GroupBox} from "std-widgets.slint"; | |
export struct NetworkDetails { | |
ssid: string, | |
connected: bool, | |
strength: int | |
} | |
component WifiNetworkList inherits VerticalLayout { | |
in property <bool> enabled; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/internal/renderers/skia/opengl_surface.rs b/internal/renderers/skia/opengl_surface.rs | |
index 7844e6f7c..6a708f6e8 100644 | |
--- a/internal/renderers/skia/opengl_surface.rs | |
+++ b/internal/renderers/skia/opengl_surface.rs | |
@@ -256,6 +256,8 @@ fn init_glutin( | |
.ok_or("Unable to find suitable GL config")? | |
}; | |
+ eprintln!("GL config samples: {}", config.num_samples()); | |
+ |
NewerOlder