Skip to content

Commit fdb0b36

Browse files
authored
Merge pull request #9 from ZibanPirate/6-get-screen-id-as-part-of-screeninfo
get screen id as part of `screeninfo`
2 parents c9b645d + 1775d3b commit fdb0b36

File tree

7 files changed

+209
-166
lines changed

7 files changed

+209
-166
lines changed

Cargo.lock

Lines changed: 57 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common-types/src/screen.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ use tauri::Position;
33

44
#[derive(Debug)]
55
pub struct ScreenInfo {
6+
pub id: String,
67
// todo-zm: remove is_main
78
pub is_main: bool,
89
pub full: Rect,
910
pub safe: Rect,
1011
}
1112

1213
impl ScreenInfo {
13-
pub fn new(is_main: bool, full: Rect, safe: Rect) -> Self {
14+
pub fn new(id: String, is_main: bool, full: Rect, safe: Rect) -> Self {
1415
ScreenInfo {
16+
id,
1517
is_main,
1618
full,
1719
safe,

0 commit comments

Comments
 (0)