xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::screen Class Referencefinal
Inheritance diagram for xtd::forms::native::screen:
xtd::static_object

Definition

Contains screen native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

Protected Static Methods

static size_t count ()
 Gets number of screens.
 
static intptr create_graphics ()
 Creates a graphics for the screen.
 
static int32 bits_per_pixel (size_t index)
 Gets the number of bits of memory, associated with one pixel of data.
 
static drawing::rectangle bounds (size_t index)
 Gets the bounds of the display.
 
static std::string device_name (size_t index)
 Gets the device name associated with a display.
 
static int32 pixels_per_inch (size_t index)
 Gets the pixels per inch of the display.
 
static bool primary (size_t index)
 Gets a value indicating whether a particular display is the primary device.
 
static double scale_factor (size_t index)
 Gets the scale factor of the display.
 
static int32 standard_pixels_per_inch ()
 Gets the standard pixels per inch.
 
static drawing::rectangle working_area (size_t index)
 Gets the working area of the display. The working area is the desktop area of the display, excluding taskbars, docked windows, and docked tool bars.
 
static size_t from_handle (intptr handle)
 Retrieves a screen for the display that contains the largest portion of the object referred to by the specified handle.
 
static size_t from_point (const drawing::point &point)
 Retrieves a screen for the display that contains the specified point.
 

Member Function Documentation

◆ count()

static size_t xtd::forms::native::screen::count ( )
staticprotected

Gets number of screens.

Returns
Number of screens.
Warning
Internal use only

◆ create_graphics()

static intptr xtd::forms::native::screen::create_graphics ( )
staticprotected

Creates a graphics for the screen.

Returns
A graphics handle for the screen.
Warning
Internal use only

◆ bits_per_pixel()

static int32 xtd::forms::native::screen::bits_per_pixel ( size_t  index)
staticprotected

Gets the number of bits of memory, associated with one pixel of data.

Parameters
indexThe screen index.
Returns
The number of bits of memory, associated with one pixel of data.
Warning
Internal use only

◆ bounds()

static drawing::rectangle xtd::forms::native::screen::bounds ( size_t  index)
staticprotected

Gets the bounds of the display.

Parameters
indexThe screen index.
Returns
A xtd::drawing::rectangle, representing the bounds of the display.
Warning
Internal use only

◆ device_name()

static std::string xtd::forms::native::screen::device_name ( size_t  index)
staticprotected

Gets the device name associated with a display.

Parameters
indexThe screen index.
Returns
The device name associated with a display.
Warning
Internal use only

◆ pixels_per_inch()

static int32 xtd::forms::native::screen::pixels_per_inch ( size_t  index)
staticprotected

Gets the pixels per inch of the display.

Parameters
indexThe screen index.
Returns
The pixels per inch of the display.
Warning
Internal use only

◆ primary()

static bool xtd::forms::native::screen::primary ( size_t  index)
staticprotected

Gets a value indicating whether a particular display is the primary device.

Parameters
indexThe screen index.
Returns
true if index display is primary; otherwise, false.
Warning
Internal use only

◆ scale_factor()

static double xtd::forms::native::screen::scale_factor ( size_t  index)
staticprotected

Gets the scale factor of the display.

Parameters
indexThe screen index.
Returns
The scale factor of the display.
Warning
Internal use only

◆ standard_pixels_per_inch()

static int32 xtd::forms::native::screen::standard_pixels_per_inch ( )
staticprotected

Gets the standard pixels per inch.

Returns
The standard pixels per inch.
Remarks
The standard value is 72 for macOS; 96 for Windows and linux.
Warning
Internal use only

◆ working_area()

static drawing::rectangle xtd::forms::native::screen::working_area ( size_t  index)
staticprotected

Gets the working area of the display. The working area is the desktop area of the display, excluding taskbars, docked windows, and docked tool bars.

Parameters
indexThe screen index.
Returns
A xtd::drawing::rectangle, representing the working area of the display.
Warning
Internal use only

◆ from_handle()

static size_t xtd::forms::native::screen::from_handle ( intptr  handle)
staticprotected

Retrieves a screen for the display that contains the largest portion of the object referred to by the specified handle.

Parameters
handleThe window handle for which to retrieve the screen.
Returns
A screen index for the display that contains the largest region of the object. In multiple display environments where no display contains any portion of the specified handle, the display closest to the object is returned.
Warning
Internal use only

◆ from_point()

static size_t xtd::forms::native::screen::from_point ( const drawing::point point)
staticprotected

Retrieves a screen for the display that contains the specified point.

Parameters
pointA xtd::drawing::point that specifies the location for which to retrieve a screen.
Returns
A screen index for the display that contains the point. In multiple display environments where no display contains the point, the display closest to the specified point is returned.
Warning
Internal use only

The documentation for this class was generated from the following file: