CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
FxUIPoint.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2025 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
20
21#if defined( XENON )
22namespace Wt
23{
24 class WPoint;
25}
26using FxNativePoint = Wt::WPoint;
27#else
28class QPoint;
29using FxNativePoint = QPoint;
30#endif
31
32class CFxUIPointImpl;
34{
35public:
36
39
41 CFxUIPoint( int xPos, int yPos );
42
44 CFxUIPoint( const CFxUIPoint& point );
45 CFxUIPoint( const FxNativePoint& point );
46
49
51 CFxUIPoint& operator=( const CFxUIPoint& point );
52
54
55 bool operator==( const CFxUIPoint& other ) const;
56 bool operator!=( const CFxUIPoint& other ) const;
57
63 void setX( int x );
64
70 void setY( int y );
71
77 int x() const;
78
84 int y() const;
85
86protected:
87 CFxUIPointImpl* m_pImpl{ nullptr };
88};
#define COMMONUI_API
QPoint FxNativePoint
Definition FxUIPoint.h:29
int y() const
void setY(int y)
CFxUIPoint(int xPos, int yPos)
CFxUIPoint(const FxNativePoint &point)
void setX(int x)
int x() const
CFxUIPoint & operator=(const CFxUIPoint &point)
CFxUIPoint(const CFxUIPoint &point)
bool operator!=(const CFxUIPoint &other) const
bool operator==(const CFxUIPoint &other) const
CFxUIPointImpl * m_pImpl
Definition FxUIPoint.h:87
FxNativePoint & operator()() const
Definition FxString.h:30