xtd 1.0.0
Loading...
Searching...
No Matches
system_information.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.hpp"
8#include "boot_mode.hpp"
10#include "power_status.hpp"
12#include <xtd/drawing/font>
13#include <xtd/drawing/rectangle>
14#include <xtd/drawing/size>
15#include <xtd/static>
16
18namespace xtd {
20 namespace forms {
34 public:
36
40 [[nodiscard]] static auto active_window_tracking_delay() -> xtd::int32;
41
45 [[nodiscard]] static auto arrange_direction() -> xtd::forms::arrange_direction;
46
51
55 [[nodiscard]] static auto boot_mode() -> xtd::forms::boot_mode;
56
62 [[nodiscard]] static auto border_3d_size() -> xtd::drawing::size;
63
66 [[nodiscard]] static auto border_multiplier_factor() -> xtd::int32;
67
73 [[nodiscard]] static auto border_size() -> xtd::drawing::size;
74
79 [[nodiscard]] static auto caption_button_size() -> xtd::drawing::size;
80
84 [[nodiscard]] static auto caption_height() -> xtd::int32;
85
88 [[nodiscard]] static auto caret_blink_time() -> xtd::int32;
89
92 [[nodiscard]] static auto caret_width() -> xtd::int32;
93
98 [[nodiscard]] static auto computer_name() -> xtd::string;
99
103 [[nodiscard]] static auto cursor_size() -> xtd::drawing::size;
104
108 [[nodiscard]] static auto dbcs_enabled() -> bool;
109
112 [[nodiscard]] static auto debug_os() -> bool;
113
117 [[nodiscard]] static auto double_click_size() -> xtd::drawing::size;
118
123 [[nodiscard]] static auto double_click_time() -> xtd::int32;
124
128 [[nodiscard]] static auto drag_full_windows() -> bool;
129
134 [[nodiscard]] static auto drag_size() -> xtd::drawing::size;
135
140 [[nodiscard]] static auto fixed_frame_border_size() -> xtd::drawing::size;
141
144 [[nodiscard]] static auto font_smoothing_contrast() -> xtd::int32;
145
148 [[nodiscard]] static auto font_smoothing_type() -> xtd::int32;
149
154 [[nodiscard]] static auto frame_border_size() -> xtd::drawing::size;
155
160 [[nodiscard]] static auto high_contrast() -> bool;
161
165 [[nodiscard]] static auto horizontal_focus_thickness() -> xtd::int32;
166
170 [[nodiscard]] static auto horizontal_resize_border_thickness() -> xtd::int32;
171
174 [[nodiscard]] static auto horizontal_scroll_bar_arrow_width() -> xtd::int32;
175
178 [[nodiscard]] static auto horizontal_scroll_bar_height() -> xtd::int32;
179
182 [[nodiscard]] static auto horizontal_scroll_bar_thumb_width() -> xtd::int32;
183
187 [[nodiscard]] static auto icon_horizontal_spacing() -> xtd::int32;
188
191 [[nodiscard]] static auto icon_size() -> xtd::drawing::size;
192
196 [[nodiscard]] static auto icon_spacing_size() -> xtd::drawing::size;
197
201 [[nodiscard]] static auto icon_vertical_spacing() -> xtd::int32;
202
206 [[nodiscard]] static auto is_active_window_tracking_enabled() -> bool;
207
212 [[nodiscard]] static auto is_combo_box_animation_enabled() -> bool;
213
216 [[nodiscard]] static auto is_drop_shadow_enabled() -> bool;
217
220 [[nodiscard]] static auto is_flat_menu_enabled() -> bool;
221
225 [[nodiscard]] static auto is_font_smoothing_enabled() -> bool;
226
230 [[nodiscard]] static auto is_hot_tracking_enabled() -> bool;
231
234 [[nodiscard]] static auto is_icon_title_wrapping_enabled() -> bool;
235
239 [[nodiscard]] static auto is_keyboard_preferred() -> bool;
240
244 [[nodiscard]] static auto is_list_box_smooth_scrolling_enabled() -> bool;
245
250 [[nodiscard]] static auto is_menu_animation_enabled() -> bool;
251
256 [[nodiscard]] static auto is_menu_fade_enabled() -> bool;
257
261 [[nodiscard]] static auto is_minimize_restore_animation_enabled() -> bool;
262
266 [[nodiscard]] static auto is_operating_system_double_buffered() -> bool;
267
271 [[nodiscard]] static auto is_selection_fade_enabled() -> bool;
272
276 [[nodiscard]] static auto is_snap_to_default_enabled() -> bool;
277
282 [[nodiscard]] static auto is_title_bar_gradient_enabled() -> bool;
283
288 [[nodiscard]] static auto is_tool_tip_animation_enabled() -> bool;
289
293 [[nodiscard]] static auto kanji_window_height() -> xtd::int32;
294
299 [[nodiscard]] static auto keyboard_delay() -> xtd::int32;
300
305 [[nodiscard]] static auto keyboard_speed() -> xtd::int32;
306
310 [[nodiscard]] static auto max_window_track_size() -> xtd::drawing::size;
311
315 [[nodiscard]] static auto menu_access_keys_underlined() -> bool;
316
320 [[nodiscard]] static auto menu_bar_button_size() -> xtd::drawing::size;
321
325 [[nodiscard]] static auto menu_button_size() -> xtd::drawing::size;
326
330 [[nodiscard]] static auto menu_check_size() -> xtd::drawing::size;
331
335 [[nodiscard]] static auto menu_font() -> xtd::drawing::font;
336
340 [[nodiscard]] static auto menu_height() -> xtd::int32;
341
345 [[nodiscard]] static auto menu_show_delay() -> xtd::int32;
346
350 [[nodiscard]] static auto mid_east_enabled() -> bool;
351
355 [[nodiscard]] static auto minimized_window_size() -> xtd::drawing::size;
356
361 [[nodiscard]] static auto minimized_window_spacing_size() -> xtd::drawing::size;
362
367 [[nodiscard]] static auto minimum_window_size() -> xtd::drawing::size;
368
373 [[nodiscard]] static auto min_window_track_size() -> xtd::drawing::size;
374
379 [[nodiscard]] static auto monitor_count() -> xtd::int32;
380
387 [[nodiscard]] static auto monitors_same_display_format() -> bool;
388
393 [[nodiscard]] static auto mouse_buttons() -> xtd::int32;
394
397 [[nodiscard]] static auto mouse_buttons_swapped() -> bool;
398
403 [[nodiscard]] static auto mouse_hover_size() -> xtd::drawing::size;
404
409 [[nodiscard]] static auto mouse_hover_time() -> xtd::int32;
410
414 [[nodiscard]] static auto mouse_present() -> bool;
415
419 [[nodiscard]] static auto mouse_speed() -> xtd::int32;
420
425 [[nodiscard]] static auto Mouse_wheel_present() -> bool;
426
430 [[nodiscard]] static auto mouse_wheel_scroll_delta() -> xtd::int32;
431
436 [[nodiscard]] static auto mouse_wheel_scroll_lines() -> xtd::int32;
437
442 [[nodiscard]] static auto native_mouse_wheel_support() -> bool;
443
448 [[nodiscard]] static auto network() -> bool;
449
453 [[nodiscard]] static auto pen_windows() -> bool;
454
458
461 [[nodiscard]] static auto power_status() -> xtd::forms::power_status;
462
466
470 [[nodiscard]] static auto primary_monitor_size() -> xtd::drawing::size;
471
474 [[nodiscard]] static auto right_aligned_menus() -> bool;
475
479
483 [[nodiscard]] static auto secure() -> bool;
484
489 [[nodiscard]] static auto show_sounds() -> bool;
490
493 [[nodiscard]] static auto sizing_border_width() -> xtd::int32;
494
498 [[nodiscard]] static auto small_caption_button_size() -> xtd::drawing::size;
499
503 [[nodiscard]] static auto small_icon_size() -> xtd::drawing::size;
504
508 [[nodiscard]] static auto terminal_server_session() -> bool;
509
514
517 [[nodiscard]] static auto tool_window_caption_height() -> xtd::int32;
518
533 [[nodiscard]] static auto ui_effect_enabled() -> bool;
534
538 [[nodiscard]] static auto user_domain_name() -> xtd::string;
539
544 [[nodiscard]] static auto user_interactive() -> bool;
545
548 [[nodiscard]] static auto user_name() -> xtd::string;
549
553 [[nodiscard]] static auto vertical_focus_thickness() -> xtd::int32;
554
558 [[nodiscard]] static auto vertical_scroll_bar_arrow_height() -> xtd::int32;
559
563 [[nodiscard]] static auto vertical_scroll_bar_thumb_height() -> xtd::int32;
564
567 [[nodiscard]] static auto vertical_scroll_bar_width() -> xtd::int32;
568
574 [[nodiscard]] static auto virtual_screen() -> xtd::drawing::rectangle;
575
580 [[nodiscard]] static auto working_area() -> xtd::drawing::rectangle;
582 };
583 }
584}
Contains xtd::forms::arrange_direction enum class.
Contains xtd::forms::arrange_starting_position enum class.
Contains xtd::forms::boot_mode enum class.
Defines a particular format for text, including font face, size, and style attributes....
Definition font.hpp:45
Indicates current system power status information.
Definition power_status.hpp:31
Provides information about the current system environment.
Definition system_information.hpp:33
static auto is_operating_system_double_buffered() -> bool
Gets the operating system is natively double buffered.
static auto small_icon_size() -> xtd::drawing::size
Gets the dimensions, in pixels, of a small icon.
static auto sizing_border_width() -> xtd::int32
Gets the width, in pixels, of the sizing border drawn around the perimeter of a window being resized.
static auto small_caption_button_size() -> xtd::drawing::size
Gets the width, in pixels, of small caption buttons, and the height, in pixels, of small captions.
static auto is_minimize_restore_animation_enabled() -> bool
Gets a value indicating whether window minimize and restore animation is enabled.
static auto font_smoothing_contrast() -> xtd::int32
Gets the font smoothing contrast value used in ClearType smoothing.
static auto mouse_speed() -> xtd::int32
Gets the current mouse speed.
static auto user_domain_name() -> xtd::string
Gets the name of the domain the user belongs to.
static auto minimized_window_spacing_size() -> xtd::drawing::size
Gets the dimensions, in pixels, of the area each minimized window is allocated when arranged.
static auto horizontal_resize_border_thickness() -> xtd::int32
Gets the thickness of the left and right edges of the sizing border around the perimeter of a window ...
static auto menu_height() -> xtd::int32
Gets the height, in pixels, of one line of a menu.
static auto is_hot_tracking_enabled() -> bool
Gets a value indicating whether hot tracking of user-interface elements, such as menu names on menu b...
static auto arrange_direction() -> xtd::forms::arrange_direction
Gets a value that indicates the direction in which the operating system arranges minimized windows.
static auto is_active_window_tracking_enabled() -> bool
Gets a value indicating whether active window tracking is enabled.
static auto vertical_scroll_bar_width() -> xtd::int32
Gets the default width, in pixels, of the vertical scroll bar.
static auto mouse_hover_time() -> xtd::int32
Gets the time, in milliseconds, that the mouse pointer has to stay in the hover rectangle before a mo...
static auto is_drop_shadow_enabled() -> bool
Gets a value indicating whether the drop shadow effect is enabled.
static auto boot_mode() -> xtd::forms::boot_mode
Gets a BootMode value that indicates the boot mode the system was started in.
static auto font_smoothing_type() -> xtd::int32
Gets the current type of font smoothing.
static auto native_mouse_wheel_support() -> bool
Gets a value indicating whether a mouse with a mouse wheel is installed.
static auto double_click_time() -> xtd::int32
Gets the maximum number of milliseconds that can elapse between a first click and a second click for ...
static auto high_contrast() -> bool
Gets a value indicating whether the user has enabled the high-contrast mode accessibility feature.
static auto virtual_screen() -> xtd::drawing::rectangle
Gets the bounds of the virtual screen.
static auto terminal_server_session() -> bool
Gets a value indicating whether the calling process is associated with a Terminal Services client ses...
static auto is_snap_to_default_enabled() -> bool
Gets a value indicating whether the snap-to-default-button feature is enabled.
static auto right_aligned_menus() -> bool
Gets a value indicating whether drop-down menus are right-aligned with the corresponding menu-bar ite...
static auto is_icon_title_wrapping_enabled() -> bool
Gets a value indicating whether icon-title wrapping is enabled.
static auto mouse_wheel_scroll_delta() -> xtd::int32
Gets the amount of the delta value of a single mouse wheel rotation increment.
static auto power_status() -> xtd::forms::power_status
Gets the current system power status.
static auto primary_monitor_size() -> xtd::drawing::size
Gets the dimensions, in pixels, of the current video mode of the primary display.
static auto horizontal_scroll_bar_height() -> xtd::int32
Gets the default height, in pixels, of the horizontal scroll bar.
static auto fixed_frame_border_size() -> xtd::drawing::size
Gets the thickness, in pixels, of the frame border of a window that has a caption and is not resizabl...
static auto horizontal_scroll_bar_arrow_width() -> xtd::int32
Gets the width, in pixels, of the arrow bitmap on the horizontal scroll bar.
static auto icon_vertical_spacing() -> xtd::int32
Gets the height, in pixels, of an icon arrangement cell in large icon view.
static auto popup_menu_alignment() -> xtd::forms::left_right_alignment
Gets the side of pop-up menus that are aligned to the corresponding menu-bar item.
static auto cursor_size() -> xtd::drawing::size
Gets the maximum size, in pixels, that a cursor can occupy.
static auto menu_show_delay() -> xtd::int32
Gets the time, in milliseconds, that the system waits before displaying a cascaded shortcut menu when...
static auto menu_button_size() -> xtd::drawing::size
Gets the default dimensions, in pixels, of menu-bar buttons.
static auto ui_effect_enabled() -> bool
Gets a value indicating whether user interface (UI) effects are enabled or disabled.
static auto is_menu_fade_enabled() -> bool
Gets a value indicating whether menu fade animation is enabled.
static auto border_size() -> xtd::drawing::size
Gets the thickness, in pixels, of a flat-style window or system control border.
static auto primary_monitor_maximized_window_size() -> xtd::drawing::size
Gets the default dimensions, in pixels, of a maximized window on the primary display.
static auto minimum_window_size() -> xtd::drawing::size
Gets the minimum width and height for a window, in pixels.
static auto is_title_bar_gradient_enabled() -> bool
Gets a value indicating whether the gradient effect for window title bars is enabled.
static auto user_interactive() -> bool
Gets a value indicating whether the current process is running in user-interactive mode.
static auto user_name() -> xtd::string
Gets the user name associated with the current thread.
static auto caret_width() -> xtd::int32
Gets the width, in pixels, of the caret in edit controls.
static auto icon_horizontal_spacing() -> xtd::int32
Gets the width, in pixels, of an icon arrangement cell in large icon view.
static auto mouse_buttons_swapped() -> bool
Gets a value indicating whether the functions of the left and right mouse buttons have been swapped.
static auto is_keyboard_preferred() -> bool
Gets a value indicating whether the user relies on the keyboard instead of the mouse,...
static auto icon_spacing_size() -> xtd::drawing::size
Gets the size, in pixels, of the grid square used to arrange icons in a large-icon view.
static auto mouse_buttons() -> xtd::int32
Gets the number of buttons on the mouse.
static auto is_list_box_smooth_scrolling_enabled() -> bool
Gets a value indicating whether the smooth-scrolling effect for list boxes is enabled.
static auto double_click_size() -> xtd::drawing::size
Gets the dimensions, in pixels, of the area within which the user must click twice for the operating ...
static auto dbcs_enabled() -> bool
Gets a value indicating whether the operating system is capable of handling double-byte character set...
static auto is_combo_box_animation_enabled() -> bool
Gets a value indicating whether the slide-open effect for combo boxes is enabled.
static auto caret_blink_time() -> xtd::int32
Gets the caret blink time.
static auto arrange_starting_position() -> xtd::forms::arrange_starting_position
Gets an ArrangeStartingPosition value that indicates the starting position from which the operating s...
static auto secure() -> bool
Gets a value indicating whether a Security Manager is present on this operating system.
static auto caption_button_size() -> xtd::drawing::size
Gets the standard size, in pixels, of a button in a window's title bar.
static auto mouse_hover_size() -> xtd::drawing::size
Gets the dimensions, in pixels, of the rectangle within which the mouse pointer has to stay for the m...
static auto max_window_track_size() -> xtd::drawing::size
Gets the default maximum dimensions, in pixels, of a window that has a caption and sizing borders.
static auto frame_border_size() -> xtd::drawing::size
Gets the thickness, in pixels, of the resizing border that is drawn around the perimeter of a window ...
static auto active_window_tracking_delay() -> xtd::int32
Gets the active window tracking delay.
static auto network() -> bool
Gets a value indicating whether a network connection is present.
static auto show_sounds() -> bool
Gets a value indicating whether the user prefers that an application present information in visual fo...
static auto monitors_same_display_format() -> bool
Gets a value indicating whether all the display monitors are using the same pixel color format.
static auto debug_os() -> bool
Gets a value indicating whether the debug version of USER.EXE is installed.
static auto min_window_track_size() -> xtd::drawing::size
Gets the default minimum dimensions, in pixels, that a window may occupy during a drag resize.
static auto screen_orientation() -> xtd::forms::screen_orientation
Gets the orientation of the screen.
static auto mid_east_enabled() -> bool
Gets a value indicating whether the operating system is enabled for the Hebrew and Arabic languages.
static auto drag_size() -> xtd::drawing::size
Gets the width and height of a rectangle centered on the point the mouse button was pressed,...
static auto menu_font() -> xtd::drawing::font
Gets the font used to display text on menus.
static auto icon_size() -> xtd::drawing::size
Gets the dimensions, in pixels, of the Windows default program icon size.
static auto drag_full_windows() -> bool
Gets a value indicating whether the user has enabled full window drag.
static auto computer_name() -> xtd::string
Gets the NetBIOS computer name of the local computer.
static auto menu_access_keys_underlined() -> bool
Gets a value indicating whether menu access keys are always underlined.
static auto tool_window_caption_button_size() -> xtd::drawing::size
Gets the dimensions, in pixels, of small caption buttons.
static auto pen_windows() -> bool
Gets a value indicating whether the Microsoft Windows for Pen Computing extensions are installed.
static auto Mouse_wheel_present() -> bool
Gets a value indicating whether a mouse with a mouse wheel is installed.
static auto monitor_count() -> xtd::int32
Gets the number of display monitors on the desktop.
static auto horizontal_focus_thickness() -> xtd::int32
Gets the thickness of the left and right edges of the system focus rectangle, in pixels.
static auto is_selection_fade_enabled() -> bool
Gets a value indicating whether the selection fade effect is enabled.
static auto kanji_window_height() -> xtd::int32
Gets the height, in pixels, of the Kanji window at the bottom of the screen for double-byte character...
static auto menu_bar_button_size() -> xtd::drawing::size
Gets the default width, in pixels, for menu-bar buttons and the height, in pixels,...
static auto minimized_window_size() -> xtd::drawing::size
Gets the dimensions, in pixels, of a normal minimized window.
static auto keyboard_speed() -> xtd::int32
Gets the keyboard repeat-speed setting.
static auto border_3d_size() -> xtd::drawing::size
Gets the thickness, in pixels, of a three-dimensional (3-D) style window or system control border.
static auto caption_height() -> xtd::int32
Gets the height, in pixels, of the standard title bar area of a window.
static auto is_menu_animation_enabled() -> bool
Gets a value indicating whether menu fade or slide animation features are enabled.
static auto working_area() -> xtd::drawing::rectangle
Gets the size, in pixels, of the working area of the screen.
static auto is_font_smoothing_enabled() -> bool
Gets a value indicating whether font smoothing is enabled.
static auto keyboard_delay() -> xtd::int32
Gets the keyboard repeat-delay setting.
static auto is_flat_menu_enabled() -> bool
Gets a value indicating whether native user menus have a flat menu appearance.
static auto vertical_scroll_bar_thumb_height() -> xtd::int32
Gets the height, in pixels, of the scroll box in a vertical scroll bar.
static auto menu_check_size() -> xtd::drawing::size
Gets the dimensions, in pixels, of the default size of a menu check mark area.
static auto mouse_wheel_scroll_lines() -> xtd::int32
Gets the number of lines to scroll when the mouse wheel is rotated.
static auto horizontal_scroll_bar_thumb_width() -> xtd::int32
Gets the width, in pixels, of the scroll box in a horizontal scroll bar.
static auto border_multiplier_factor() -> xtd::int32
Gets the border multiplier factor that is used when determining the thickness of a window's sizing bo...
static auto vertical_scroll_bar_arrow_height() -> xtd::int32
Gets the height, in pixels, of the arrow bitmap on the vertical scroll bar.
static auto vertical_focus_thickness() -> xtd::int32
Gets the thickness, in pixels, of the top and bottom edges of the system focus rectangle.
static auto tool_window_caption_height() -> xtd::int32
Gets the height, in pixels, of a tool window caption.
static auto is_tool_tip_animation_enabled() -> bool
Gets a value indicating whether tool_tip animation is enabled.
static auto mouse_present() -> bool
Gets a value indicating whether the functions of the left and right mouse buttons have been swapped.
Contains forms_export_ keyword.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
screen_orientation
Specifies the angle of the screen.
Definition screen_orientation.hpp:22
arrange_direction
Specifies the direction the system uses to arrange minimized windows.
Definition arrange_direction.hpp:23
boot_mode
Specifies the mode to start the computer in.
Definition boot_mode.hpp:24
left_right_alignment
Specifies whether an object or text is aligned to the left or right of a reference point.
Definition left_right_alignment.hpp:21
arrange_starting_position
Specifies the starting position that the system uses to arrange minimized windows.
Definition arrange_starting_position.hpp:23
Contains xtd::forms::left_right_alignment enum class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::forms::power_status class.
Contains xtd::forms::screen_orientation enum class.
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:32