[Wgui-cvs] wgui/docs Coordinates.html,1.1,1.2
Status: Beta
Brought to you by:
greenwire
|
From: Rob W. <gre...@us...> - 2004-07-09 19:46:57
|
Update of /cvsroot/wgui/wgui/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29195/docs Modified Files: Coordinates.html Log Message: Changed the FreeType library to version 2.1.9 Index: Coordinates.html =================================================================== RCS file: /cvsroot/wgui/wgui/docs/Coordinates.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Coordinates.html 9 Jul 2004 16:46:40 -0000 1.1 --- Coordinates.html 9 Jul 2004 19:46:48 -0000 1.2 *************** *** 14,22 **** <p>The other major coordinate system is "Client Coordinates". These are relative to the top left corner of the window's client rect. The client rect itself is always in window coordinates. "Client Coordinates" are used when defining the position of any child windows of the ! window. The purpose of this is most easily seen when considering a CView window. Since all child windows (which is what any controls in the view are), are defined in terms of the view's client coordinate system, we can move them all just by redefining the CView's client rect. This is done when a menu is attached to the view to make room for it.</p> ! <p>wGui also defines a special "View Coordinates" system. This is simply the "Window Coordinates" for the view, but it also represents the ! coordinate system that directly relates to the pixels you see on the screen. In the end, everything is essentially translated to "View Coordinates".</p> <p>The CWindow class defines several methods to help translating between View and Client Coordinates, or View and Window Coordinates. A method for translating directly between Window and Client coordinates was not added, as it only requires the addition or subtraction of --- 14,25 ---- <p>The other major coordinate system is "Client Coordinates". These are relative to the top left corner of the window's client rect. The client rect itself is always in window coordinates. "Client Coordinates" are used when defining the position of any child windows of the ! window. All child window's Window Rects are defined using these coordinates. ! The purpose of this is most easily seen when considering a CView window. Since all child windows (which is what any controls in the view are), are defined in terms of the view's client coordinate system, we can move them all just by redefining the CView's client rect. This is done when a menu is attached to the view to make room for it.</p> ! <p>wGui also defines a special "View Coordinates" system. Because of the limitations of SDL, wGui cannot draw outside of it's view, ! so there isn't anything in screen coordinates. "View Coordinates" is as close as we can get. This is simply the "Window Coordinates" for the view, ! but it also represents the coordinate system that directly relates to the pixels you see on the screen. In the end, everything is essentially ! translated to "View Coordinates".</p> <p>The CWindow class defines several methods to help translating between View and Client Coordinates, or View and Window Coordinates. A method for translating directly between Window and Client coordinates was not added, as it only requires the addition or subtraction of |