Mercurial > dwindows
comparison mac/dw.m @ 951:7193401d139a
Added support for dw_window_get_pos_size() to work on individual controls on Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 01 May 2011 04:40:24 +0000 |
parents | 73ff2daed8ca |
children | abb9203adc05 |
comparison
equal
deleted
inserted
replaced
950:73ff2daed8ca | 951:7193401d139a |
---|---|
7584 *width = rect.size.width; | 7584 *width = rect.size.width; |
7585 if(height) | 7585 if(height) |
7586 *height = rect.size.height; | 7586 *height = rect.size.height; |
7587 return; | 7587 return; |
7588 } | 7588 } |
7589 else if([ object isKindOfClass:[ NSControl class ] ]) | |
7590 { | |
7591 NSControl *control = handle; | |
7592 NSRect rect = [control frame]; | |
7593 if(x) | |
7594 *x = rect.origin.x; | |
7595 if(y) | |
7596 *y = rect.origin.y; | |
7597 if(width) | |
7598 *width = rect.size.width; | |
7599 if(height) | |
7600 *height = rect.size.height; | |
7601 return; | |
7602 } | |
7589 } | 7603 } |
7590 | 7604 |
7591 /* | 7605 /* |
7592 * Returns the width of the screen. | 7606 * Returns the width of the screen. |
7593 */ | 7607 */ |