Window class
- Available extensions
Constructors
- Window.borrowed(int nativeHandle)
- Wraps a handle owned elsewhere; releasing it stays the owner's job.
- Window.fromHandle(int nativeHandle)
- Adopts a handle returned by the C API and releases it when this object becomes unreachable.
Properties
- aspectRatio ↔ double
-
getter/setter pair
- backgroundColor ↔ Color
-
getter/setter pair
- bounds ↔ Rectangle
-
getter/setter pair
- contentBounds ↔ Rectangle
-
getter/setter pair
- contentInset → Offset
-
Available on Window, provided by the NativeWindowGeometry extension
Offset from the window's outer frame to its content area (title bar and left border), in logical pixels.no setter - contentSize ↔ Size
-
getter/setter pair
- contentView → View?
-
no setter
- customShadow → WindowShadow?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasShadow ↔ bool
-
getter/setter pair
- id → int
-
no setter
- isAlwaysOnBottom ↔ bool
-
getter/setter pair
- isAlwaysOnTop ↔ bool
-
getter/setter pair
- isClosable ↔ bool
-
getter/setter pair
- isContentUnderTitleBar → bool
-
no setter
- isFocusable ↔ bool
-
getter/setter pair
- isFocused → bool
-
no setter
- isFullScreen ↔ bool
-
getter/setter pair
- isFullScreenable ↔ bool
-
getter/setter pair
- isIgnoreMouseEvents ↔ bool
-
getter/setter pair
- isInputShaped → bool
-
no setter
- isMaximizable ↔ bool
-
getter/setter pair
- isMaximized → bool
-
no setter
- isMinimizable ↔ bool
-
getter/setter pair
- isMinimized → bool
-
no setter
- isMovable ↔ bool
-
getter/setter pair
- isNonActivating ↔ bool
-
getter/setter pair
- isResizable ↔ bool
-
getter/setter pair
- isShaped → bool
-
no setter
- isVisible → bool
-
no setter
- isVisibleInTaskbar ↔ bool
-
getter/setter pair
- isVisibleOnAllWorkspaces ↔ bool
-
getter/setter pair
- isWindowControlButtonsVisible ↔ bool
-
getter/setter pair
- maximumSize ↔ Size
-
getter/setter pair
- minimumSize ↔ Size
-
getter/setter pair
- nativeHandle → int
-
The underlying handle-table entry.
final
-
nativeObject
→ Pointer<
Void> -
Platform-specific native object behind this handle.
no setter
- opacity ↔ double
-
getter/setter pair
- parentWindow → Window?
-
no setter
- position ↔ Point
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
no setter
- title ↔ String?
-
getter/setter pair
- titleBarStyle ↔ TitleBarStyle
-
getter/setter pair
- visualEffect → VisualEffect
-
no setter
Methods
-
blur(
) → void -
center(
) → void -
dispose(
) → void - Releases the handle now instead of at collection.
-
focus(
) → void -
hide(
) → void -
maximize(
) → void -
minimize(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetTitleBarColors(
) → bool -
restore(
) → void -
setContentUnderTitleBar(
bool isContentUnderTitleBar) → bool -
setCustomShadow(
WindowShadow? shadow) → bool -
setInputShape(
WindowShape? shape) → bool -
setParentWindow(
Window? parent) → bool -
setShape(
WindowShape? shape) → bool -
setSize(
Size size, bool animate) → void -
setTitleBarColors(
Color background, Color foreground) → bool -
setVisualEffect(
VisualEffect effect) → bool -
show(
) → void -
showInactive(
) → void -
startDragging(
) → void -
startResizing(
ResizeEdge edge) → void -
toString(
) → String -
A string representation of this object.
inherited
-
unmaximize(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
) → Window? -
Creates a new
Window; returns null if the native side failed. -
createWithNativeWindow(
Pointer< Void> nativeWindow) → Window? -
Creates a new
Window; returns null if the native side failed. -
isContentUnderTitleBarSupported(
) → bool -
isInputShapeSupported(
) → bool -
isShapeSupported(
) → bool -
isVisualEffectSupported(
VisualEffect effect) → bool