X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7205570233ce8420b71fa5df368054c8953ff0e4..4660d7e5d656bd63c6ba410e6bf36486e7a77d4e:/include/wx/mac/uma.h diff --git a/include/wx/mac/uma.h b/include/wx/mac/uma.h index faf1206158..c0260916c9 100644 --- a/include/wx/mac/uma.h +++ b/include/wx/mac/uma.h @@ -228,12 +228,23 @@ void UMAHighlightAndActivateWindow( WindowRef inWindowRef , bool inActivate ) ; #define GetPortVisibleRegion( p, r ) CopyRgn( p->visRgn , r ) #define GetQDGlobalsWhite( a ) (&((*a) = qd.white)) #define GetQDGlobalsBlack( a ) (&((*a) = qd.black)) -#define GetQDGlobalsScreenBits( a ) (*a) = qd.screenBits +#define GetQDGlobalsScreenBits( a ) ((*a) = qd.screenBits) #define GetQDGlobalsArrow( a ) (&((*a) = qd.arrow)) #define GetControlBounds( c , b ) &((*b) = (**c).contrlRect ) #define GetPortBitMapForCopyBits( p ) ((BitMap*) &(((CGrafPtr)p)->portPixMap )) -#define GetControlOwner( control ) (**control).contrlOwner +#define GetControlOwner( control ) ((**control).contrlOwner) #define InvalWindowRgn( window , rgn ) InvalRgn( rgn ) +#define GetPortPenMode( p ) (p->pnMode) +#define SetPortPenMode( p , mode ) (p->pnMode = mode ) +// control manager + +#define GetControlReference( control ) ((**control).contrlRfCon) + +// list manager + +#define SetListSelectionFlags( list , options ) (**list).selFlags = options +#define GetListRefCon( list ) (**list).refCon + #endif #if TARGET_CARBON #define GetWindowUpdateRgn( inWindow , updateRgn ) GetWindowRegion( inWindow , kWindowUpdateRgn, updateRgn )