Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
897b1f5c
Commit
897b1f5c
authored
Mar 11, 2019
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Mar 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add PtInRect as inline version of common RECT helpers.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c2ed63d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
winuser.h
include/winuser.h
+8
-1
No files found.
include/winuser.h
View file @
897b1f5c
...
...
@@ -4052,7 +4052,6 @@ WINUSERAPI UINT WINAPI PrivateExtractIconExA(LPCSTR,int,HICON*,HICON*,UIN
WINUSERAPI
UINT
WINAPI
PrivateExtractIconExW
(
LPCWSTR
,
int
,
HICON
*
,
HICON
*
,
UINT
);
WINUSERAPI
UINT
WINAPI
PrivateExtractIconsA
(
LPCSTR
,
int
,
int
,
int
,
HICON
*
,
UINT
*
,
UINT
,
UINT
);
WINUSERAPI
UINT
WINAPI
PrivateExtractIconsW
(
LPCWSTR
,
int
,
int
,
int
,
HICON
*
,
UINT
*
,
UINT
,
UINT
);
WINUSERAPI
BOOL
WINAPI
PtInRect
(
const
RECT
*
,
POINT
);
WINUSERAPI
HWND
WINAPI
RealChildWindowFromPoint
(
HWND
,
POINT
);
WINUSERAPI
UINT
WINAPI
RealGetWindowClassA
(
HWND
,
LPSTR
,
UINT
);
WINUSERAPI
UINT
WINAPI
RealGetWindowClassW
(
HWND
,
LPWSTR
,
UINT
);
...
...
@@ -4281,6 +4280,7 @@ WINUSERAPI BOOL WINAPI EqualRect(const RECT*,const RECT*);
WINUSERAPI
BOOL
WINAPI
InflateRect
(
LPRECT
,
INT
,
INT
);
WINUSERAPI
BOOL
WINAPI
IsRectEmpty
(
const
RECT
*
);
WINUSERAPI
BOOL
WINAPI
OffsetRect
(
LPRECT
,
INT
,
INT
);
WINUSERAPI
BOOL
WINAPI
PtInRect
(
const
RECT
*
,
POINT
);
WINUSERAPI
BOOL
WINAPI
SetRect
(
LPRECT
,
INT
,
INT
,
INT
,
INT
);
WINUSERAPI
BOOL
WINAPI
SetRectEmpty
(
LPRECT
);
...
...
@@ -4321,6 +4321,13 @@ static inline BOOL WINAPI OffsetRect(LPRECT rect, INT x, INT y)
return
TRUE
;
}
static
inline
BOOL
WINAPI
PtInRect
(
const
RECT
*
rect
,
POINT
pt
)
{
if
(
!
rect
)
return
FALSE
;
return
((
pt
.
x
>=
rect
->
left
)
&&
(
pt
.
x
<
rect
->
right
)
&&
(
pt
.
y
>=
rect
->
top
)
&&
(
pt
.
y
<
rect
->
bottom
));
}
static
inline
BOOL
WINAPI
SetRect
(
LPRECT
rect
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
)
{
if
(
!
rect
)
return
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment