Home » Community » U++ community news and announcements » TURTLE alpha status
Re: TURTLE alpha status [message #41895 is a reply to message #41894] |
Tue, 04 February 2014 11:33 |
Tom1
Messages: 1217 Registered: March 2007
|
Senior Contributor |
|
|
Hi,
Yes, it seems we need:
#if defined(PLATFORM_WIN32)
#ifndef flagTURTLE
operator const RECT*() const { ASSERT(sizeof(*this) == sizeof(RECT)); return (RECT*)this; }
operator RECT*() { ASSERT(sizeof(*this) == sizeof(RECT)); return (RECT*)this; }
operator RECT&() { ASSERT(sizeof(*this) == sizeof(RECT)); return *(RECT*)this; }
operator RECT() const { RECT r; r.top = top; r.bottom = bottom;
r.left = left; r.right = right; return r; }
Rect_(const RECT& rc) { Set((T)rc.left, (T)rc.top, (T)rc.right, (T)rc.bottom); }
#endif
#endif
or something similar in Core/Gtypes.h.
Best regards,
Tom
|
|
|
|
|
TURTLE alpha status
By: mirek on Mon, 03 February 2014 20:25
|
|
|
Re: TURTLE alpha status
By: Didier on Mon, 03 February 2014 23:10
|
|
|
Re: TURTLE alpha status
By: mirek on Tue, 04 February 2014 07:48
|
|
|
Re: TURTLE alpha status
By: Tom1 on Tue, 04 February 2014 09:47
|
|
|
Re: TURTLE alpha status
By: Tom1 on Tue, 04 February 2014 11:33
|
|
|
Re: TURTLE alpha status
By: Didier on Fri, 07 February 2014 16:12
|
|
|
Re: TURTLE alpha status
By: mirek on Mon, 10 February 2014 09:25
|
|
|
Re: TURTLE alpha status
By: Tom1 on Mon, 10 February 2014 14:28
|
|
|
Re: TURTLE alpha status
By: mirek on Tue, 11 February 2014 08:07
|
|
|
Re: TURTLE alpha status
By: Tom1 on Tue, 11 February 2014 10:11
|
|
|
Re: TURTLE alpha status
By: mirek on Tue, 11 February 2014 11:02
|
|
|
Re: TURTLE alpha status
By: Tom1 on Tue, 11 February 2014 11:51
|
Goto Forum:
Current Time: Mon Jun 10 13:39:05 CEST 2024
Total time taken to generate the page: 0.03502 seconds
|