78 std::vector<screen> screens = all_screens();
79 for (
auto&
screen : screens)
168 screen(int32_t bits_per_pixel,
const drawing::rectangle& bounds,
const xtd::ustring& device_name, int32_t pixels_per_inch,
bool primary,
double scale_factor,
const drawing::rectangle& working_area) : bits_per_pixel_(bits_per_pixel), bounds_(bounds), device_name_(device_name), pixels_per_inch_(pixels_per_inch), primary_(primary), scale_factor_(scale_factor), working_area_(working_area) {}
170 int32_t bits_per_pixel_ = 0;
173 int32_t pixels_per_inch_ = 96;
174 bool primary_ =
false;
175 double scale_factor_ = 1.;
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:48
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.h:48
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.h:25
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:26
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:48
Contains xtd::forms::control control.
static drawing::graphics create_graphics()
Creates the xtd::drawing::graphics for the screen.
#define forms_export_
Define shared library export.
Definition forms_export.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::object class.
Contains xtd::drawing::rectangle class.