Skip to content

Commit

Permalink
add internal property
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Feb 11, 2019
1 parent d6ca398 commit 032d5b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions atom/common/native_mate_converters/gfx_converter.cc
Expand Up @@ -151,6 +151,7 @@ v8::Local<v8::Value> Converter<display::Display>::ToV8(
dict.Set("workAreaSize", val.work_area_size());
dict.Set("scaleFactor", val.device_scale_factor());
dict.Set("rotation", val.RotationAsDegree());
dict.Set("internal", val.IsInternal());
dict.Set("touchSupport", val.touch_support());
return dict.GetHandle();
}
Expand Down
1 change: 1 addition & 0 deletions docs/api/structures/display.md
Expand Up @@ -12,6 +12,7 @@
* `size` [Size](size.md)
* `workArea` [Rectangle](rectangle.md)
* `workAreaSize` [Size](size.md)
* `internal` Boolean - `true` for an internal display and `false` for an external display

The `Display` object represents a physical display connected to the system. A
fake `Display` may exist on a headless system, or a `Display` may correspond to
Expand Down

0 comments on commit 032d5b7

Please sign in to comment.