Dart Documentationchrome.appCreateWindowOptions

CreateWindowOptions class

class CreateWindowOptions extends ChromeObject {
 CreateWindowOptions({String id, int defaultWidth, int defaultHeight, int defaultLeft, int defaultTop, int width, int height, int left, int top, int minWidth, int minHeight, int maxWidth, int maxHeight, WindowType type, String frame, Bounds bounds, bool transparentBackground, State state, bool hidden, bool resizable, bool singleton, bool alwaysOnTop}) {
   if (id != null) this.id = id;
   if (defaultWidth != null) this.defaultWidth = defaultWidth;
   if (defaultHeight != null) this.defaultHeight = defaultHeight;
   if (defaultLeft != null) this.defaultLeft = defaultLeft;
   if (defaultTop != null) this.defaultTop = defaultTop;
   if (width != null) this.width = width;
   if (height != null) this.height = height;
   if (left != null) this.left = left;
   if (top != null) this.top = top;
   if (minWidth != null) this.minWidth = minWidth;
   if (minHeight != null) this.minHeight = minHeight;
   if (maxWidth != null) this.maxWidth = maxWidth;
   if (maxHeight != null) this.maxHeight = maxHeight;
   if (type != null) this.type = type;
   if (frame != null) this.frame = frame;
   if (bounds != null) this.bounds = bounds;
   if (transparentBackground != null) this.transparentBackground = transparentBackground;
   if (state != null) this.state = state;
   if (hidden != null) this.hidden = hidden;
   if (resizable != null) this.resizable = resizable;
   if (singleton != null) this.singleton = singleton;
   if (alwaysOnTop != null) this.alwaysOnTop = alwaysOnTop;
 }
 CreateWindowOptions.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

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

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

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

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

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

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

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

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

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

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

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

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

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

 WindowType get type => _createWindowType(jsProxy['type']);
 set type(WindowType value) => jsProxy['type'] = jsify(value);

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

 Bounds get bounds => _createBounds(jsProxy['bounds']);
 set bounds(Bounds value) => jsProxy['bounds'] = jsify(value);

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

 State get state => _createState(jsProxy['state']);
 set state(State value) => jsProxy['state'] = jsify(value);

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

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

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

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

Extends

ChromeObject > CreateWindowOptions

Constructors

new CreateWindowOptions({String id, int defaultWidth, int defaultHeight, int defaultLeft, int defaultTop, int width, int height, int left, int top, int minWidth, int minHeight, int maxWidth, int maxHeight, WindowType type, String frame, Bounds bounds, bool transparentBackground, State state, bool hidden, bool resizable, bool singleton, bool alwaysOnTop}) #

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

docs inherited from ChromeObject
CreateWindowOptions({String id, int defaultWidth, int defaultHeight, int defaultLeft, int defaultTop, int width, int height, int left, int top, int minWidth, int minHeight, int maxWidth, int maxHeight, WindowType type, String frame, Bounds bounds, bool transparentBackground, State state, bool hidden, bool resizable, bool singleton, bool alwaysOnTop}) {
 if (id != null) this.id = id;
 if (defaultWidth != null) this.defaultWidth = defaultWidth;
 if (defaultHeight != null) this.defaultHeight = defaultHeight;
 if (defaultLeft != null) this.defaultLeft = defaultLeft;
 if (defaultTop != null) this.defaultTop = defaultTop;
 if (width != null) this.width = width;
 if (height != null) this.height = height;
 if (left != null) this.left = left;
 if (top != null) this.top = top;
 if (minWidth != null) this.minWidth = minWidth;
 if (minHeight != null) this.minHeight = minHeight;
 if (maxWidth != null) this.maxWidth = maxWidth;
 if (maxHeight != null) this.maxHeight = maxHeight;
 if (type != null) this.type = type;
 if (frame != null) this.frame = frame;
 if (bounds != null) this.bounds = bounds;
 if (transparentBackground != null) this.transparentBackground = transparentBackground;
 if (state != null) this.state = state;
 if (hidden != null) this.hidden = hidden;
 if (resizable != null) this.resizable = resizable;
 if (singleton != null) this.singleton = singleton;
 if (alwaysOnTop != null) this.alwaysOnTop = alwaysOnTop;
}

new CreateWindowOptions.fromProxy(JsObject jsProxy) #

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

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

Properties

bool alwaysOnTop #

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

Bounds bounds #

Bounds get bounds => _createBounds(jsProxy['bounds']);
set bounds(Bounds value) => jsProxy['bounds'] = jsify(value);

int defaultHeight #

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

int defaultLeft #

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

int defaultTop #

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

int defaultWidth #

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

String frame #

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

int height #

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

bool hidden #

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

String id #

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

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

int left #

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

int maxHeight #

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

int maxWidth #

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

int minHeight #

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

int minWidth #

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

bool resizable #

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

bool singleton #

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

State state #

State get state => _createState(jsProxy['state']);
set state(State value) => jsProxy['state'] = jsify(value);

int top #

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

bool transparentBackground #

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

WindowType type #

WindowType get type => _createWindowType(jsProxy['type']);
set type(WindowType value) => jsProxy['type'] = jsify(value);

int width #

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();