-
-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy pathwindow.dart
More file actions
47 lines (36 loc) · 918 Bytes
/
window.dart
File metadata and controls
47 lines (36 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import 'dart:ui';
import 'package:flutter/painting.dart';
abstract class DesktopWindow {
DesktopWindow();
int? get handle;
double get scaleFactor;
Rect get rect;
set rect(Rect newRect);
Offset get position;
set position(Offset newPosition);
Size get size;
set size(Size newSize);
set minSize(Size? newSize);
set maxSize(Size? newSize);
set topmost(bool topmost);
Alignment? get alignment;
set alignment(Alignment? newAlignment);
set title(String newTitle);
@Deprecated("use isVisible instead")
bool get visible;
bool get isVisible;
@Deprecated("use show()/hide() instead")
set visible(bool isVisible);
void show();
void hide();
void close();
void minimize();
void maximize();
void maximizeOrRestore();
void restore();
void startDragging();
Size get titleBarButtonSize;
double get titleBarHeight;
double get borderSize;
bool get isMaximized;
}