CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
screen.h
1
2#ifndef _aspose_system_windows_forms_screen_h_
3#define _aspose_system_windows_forms_screen_h_
4
5#include "fwd.h"
6#include "system/object.h"
7#include "drawing/size.h"
8
9namespace System { namespace Windows { namespace Forms {
10
14class ASPOSECPP_SHARED_CLASS Screen : public Object
15{
16public:
20 class ASPOSECPP_SHARED_CLASS Rectangle_
21 {
22 public:
28 ASPOSECPP_SHARED_API Rectangle_(int x, int y, int width, int height);
31 inline int get_X() const { return m_x; }
34 inline int get_Y() const { return m_y; }
37 inline int get_Width() const { return m_width; }
40 inline int get_Height() const { return m_height; }
43 inline System::Drawing::Size get_Size() const { return System::Drawing::Size(m_width, m_height); }
44
45 private:
47 int m_x;
49 int m_y;
51 int m_width;
53 int m_height;
54 };
55
57 static ASPOSECPP_SHARED_API SharedPtr<Screen> get_PrimaryScreen();
59 inline Rectangle_ get_Bounds() const { return m_bounds; }
60
61private:
67 Screen(int x, int y, int width, int height);
68 MEMBER_FUNCTION_MAKE_OBJECT(Screen, CODEPORTING_ARGS(int x, int y, int width, int height), CODEPORTING_ARGS(x, y, width, height));
69
71 Rectangle_ m_bounds;
72};
73
74}}}
75
76
77#endif
Represents a pair of integer values that represent width and height of an image. This type should be ...
Definition: size.h:14
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Describes rectangle with position and size. This type should be allocated on stack and passed to func...
Definition: screen.h:21
int get_Height() const
Gets verticalal size.
Definition: screen.h:40
System::Drawing::Size get_Size() const
Gets rectangle size.
Definition: screen.h:43
int get_Width() const
Gets horizontal size.
Definition: screen.h:37
int get_X() const
Gets left position.
Definition: screen.h:31
int get_Y() const
Gets tops position.
Definition: screen.h:34
Rectangle_(int x, int y, int width, int height)
Constructor.
Provides information on displays. Windows only. This is a singleton type with memory management done ...
Definition: screen.h:15
static SharedPtr< Screen > get_PrimaryScreen()
Gets information on primary display.
Rectangle_ get_Bounds() const
Gets screen bounds.
Definition: screen.h:59
Definition: db_command.h:9