Dart Documentationchrome.windowsWindowsUpdateParams

WindowsUpdateParams class

class WindowsUpdateParams extends ChromeObject {
 WindowsUpdateParams({int left, int top, int width, int height, bool focused, bool drawAttention, String state}) {
   if (left != null) this.left = left;
   if (top != null) this.top = top;
   if (width != null) this.width = width;
   if (height != null) this.height = height;
   if (focused != null) this.focused = focused;
   if (drawAttention != null) this.drawAttention = drawAttention;
   if (state != null) this.state = state;
 }
 WindowsUpdateParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * The offset from the left edge of the screen to move the window to in
  * pixels. This value is ignored for panels.
  */
 int get left => jsProxy['left'];
 set left(int value) => jsProxy['left'] = value;

 /**
  * The offset from the top edge of the screen to move the window to in pixels.
  * This value is ignored for panels.
  */
 int get top => jsProxy['top'];
 set top(int value) => jsProxy['top'] = value;

 /**
  * The width to resize the window to in pixels. This value is ignored for
  * panels.
  */
 int get width => jsProxy['width'];
 set width(int value) => jsProxy['width'] = value;

 /**
  * The height to resize the window to in pixels. This value is ignored for
  * panels.
  */
 int get height => jsProxy['height'];
 set height(int value) => jsProxy['height'] = value;

 /**
  * If true, brings the window to the front. If false, brings the next window
  * in the z-order to the front.
  */
 bool get focused => jsProxy['focused'];
 set focused(bool value) => jsProxy['focused'] = value;

 /**
  * If true, causes the window to be displayed in a manner that draws the
  * user's attention to the window, without changing the focused window. The
  * effect lasts until the user changes focus to the window. This option has no
  * effect if the window already has focus. Set to false to cancel a previous
  * draw attention request.
  */
 bool get drawAttention => jsProxy['drawAttention'];
 set drawAttention(bool value) => jsProxy['drawAttention'] = value;

 /**
  * The new state of the window. The 'minimized', 'maximized' and 'fullscreen'
  * states cannot be combined with 'left', 'top', 'width' or 'height'.
  * enum of `normal`, `minimized`, `maximized`, `fullscreen`
  */
 String get state => jsProxy['state'];
 set state(String value) => jsProxy['state'] = value;
}

Extends

ChromeObject > WindowsUpdateParams

Constructors

new WindowsUpdateParams({int left, int top, int width, int height, bool focused, bool drawAttention, String state}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
WindowsUpdateParams({int left, int top, int width, int height, bool focused, bool drawAttention, String state}) {
 if (left != null) this.left = left;
 if (top != null) this.top = top;
 if (width != null) this.width = width;
 if (height != null) this.height = height;
 if (focused != null) this.focused = focused;
 if (drawAttention != null) this.drawAttention = drawAttention;
 if (state != null) this.state = state;
}

new WindowsUpdateParams.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
WindowsUpdateParams.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

bool drawAttention #

If true, causes the window to be displayed in a manner that draws the user's attention to the window, without changing the focused window. The effect lasts until the user changes focus to the window. This option has no effect if the window already has focus. Set to false to cancel a previous draw attention request.

bool get drawAttention => jsProxy['drawAttention'];
set drawAttention(bool value) => jsProxy['drawAttention'] = value;

bool focused #

If true, brings the window to the front. If false, brings the next window in the z-order to the front.

bool get focused => jsProxy['focused'];
set focused(bool value) => jsProxy['focused'] = value;

int height #

The height to resize the window to in pixels. This value is ignored for panels.

int get height => jsProxy['height'];
set height(int value) => jsProxy['height'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

int left #

The offset from the left edge of the screen to move the window to in pixels. This value is ignored for panels.

int get left => jsProxy['left'];
set left(int value) => jsProxy['left'] = value;

String state #

The new state of the window. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. enum of normal, minimized, maximized, fullscreen

String get state => jsProxy['state'];
set state(String value) => jsProxy['state'] = value;

int top #

The offset from the top edge of the screen to move the window to in pixels. This value is ignored for panels.

int get top => jsProxy['top'];
set top(int value) => jsProxy['top'] = value;

int width #

The width to resize the window to in pixels. This value is ignored for panels.

int get width => jsProxy['width'];
set width(int value) => jsProxy['width'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();