INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Visual Eiffel Library.", "Win32 API: Coordinate Space and Transformation Functions"
project: "Visual Eiffel Win32 Library"
revision: "$Revision: 1.1 $"
copyright: "Copyright (C) 1996-2005 Object Tools Group"
license: "http://visual-eiffel.com/license"
cluster: winlib
class WAPI_COORDINATE_SPACE_AND_TRANSFORMATION_FUNCTIONS
inherit

WAPI_ERROR_SERVER
end
feature -- Access

ClientToScreen (hwnd: INTEGER; lppt: POINTER)
-- The 'ClientToScreen' procedure converts the client coordinates
-- of a specified point to screen coordinates.
require
correct_hwnd: hwnd /= null_
correct_lppt: lppt /= default_pointer

DPtoLP (hdc: INTEGER; lppoints: POINTER; ncount: INTEGER)
-- The `DPtoLP' function converts device coordinates into logical
-- coordinates. The conversion depends on the mapping mode of the
-- device context, the settings of the origins and extents for the
-- window and viewport, and the world transformation.
require
correct_hdc: hdc /= null_
correct_lppoints: lppoints /= default_pointer
correct_ncount: ncount > 0

GetMapMode (hdc: INTEGER): INTEGER
-- The `GetMapMode' function retrieves the current mapping mode.
require
correct_hdc: hdc /= null_

GetViewportOrgEx (hdc: INTEGER; lppoint: WAPI_POINT)
-- The `GetViewportOrgEx' function retrieves the x-coordinates
-- and y-coordinates of the viewport origin for the specified
-- device context.
require
correct_hdc: hdc /= null_
correct_lppoint: lppoint /= void

GetWindowOrgEx (hdc: INTEGER; lppoint: WAPI_POINT)
-- The `GetWindowOrgEx' function retrieves the x-coordinates
-- and y-coordinates of the window origin for the specified
-- device context.
require
correct_hdc: hdc /= null_
correct_lppoint: lppoint /= void

GetWorldTransform (hdc: INTEGER; lpxform: POINTER)
-- The 'GetWorldTransform' procedure retrieves the current world-space
-- to page-space transformation.
require
correct_hdc: hdc /= null_
correct_lpxform: lpxform /= default_pointer

LPtoDP (hdc: INTEGER; lppoints: POINTER; ncount: INTEGER)
-- The `LPtoDP' function converts logical coordinates into device
-- coordinates. The conversion depends on the mapping mode of the
-- device context, the settings of the origins and extents for the
-- window and viewport, and the world transformation.
require
correct_hdc: hdc /= null_
correct_lppoints: lppoints /= default_pointer
correct_ncount: ncount > 0

ModifyWorldTransform (hdc: INTEGER; lpxform: POINTER; imode: INTEGER)
-- The 'ModifyWorldTransform' procedure changes the world transformation
-- for a device context using the specified mode.
require
correct_hdc: hdc /= null_
correct_lpxform: lpxform /= default_pointer

ScreenToClient (hwnd: INTEGER; lppoint: POINTER)
-- The 'ScreenToClient' procedure converts the screen coordinates
-- of a specified point on the screen to client coordinates.
require
correct_hwnd: hwnd /= null_
correct_lppoint: lppoint /= default_pointer

SetMapMode (hdc, fnmapmode: INTEGER): INTEGER
-- The 'SetMapMode' function sets the mapping mode of the specified
-- device context. The mapping mode defines the unit of measure used
-- to transform page-space units into device-space units, and also
-- defines the orientation of the device's x and y axes.
require
correct_hdc: hdc /= null_

SetViewportExtEx (hdc, nxextent, nyextent: INTEGER; lpsize: POINTER)
-- The 'SetViewportExtEx' procedure sets the horizontal and vertical
-- extents of the viewport for a device context by using the specified
-- values.
require
correct_hdc: hdc /= null_

SetViewportOrgEx (hdc, x, y: INTEGER; lppoint: POINTER)
-- The 'SetViewportOrgEx' procedure sets the viewport origin of a device
-- context by using the specified coordinates.
require
correct_hdc: hdc /= null_

SetWindowExtEx (hdc, nxextent, nyextent: INTEGER; lpsize: POINTER)
-- The 'SetWindowExtEx' procedure sets the horizontal and vertical
-- extents of the window for a device context by using the specified
-- values.
require
correct_hdc: hdc /= null_

SetWindowOrgEx (hdc, x, y: INTEGER; lppoint: POINTER)
-- The `SetWindowOrgEx' function sets the window origin of the
-- device context by using the specified coordinates.
require
correct_hdc: hdc /= null_
correct_lppoint: lppoint /= default_pointer

SetWorldTransform (hdc: INTEGER; lpxform: POINTER)
-- The 'SetWorldTransform' procedure sets a two-dimensional linear
-- transformation between world space and page space for the specified
-- device context. This transformation can be used to scale, rotate,
-- shear, or translate graphics output.
require
correct_hdc: hdc /= null_
correct_lpxform: lpxform /= default_pointer
feature -- Implementation

frozen wClientToScreen (hwnd: INTEGER; lppt: POINTER): INTEGER

frozen wDPtoLP (hdc: INTEGER; lppoints: POINTER; ncount: INTEGER): INTEGER

frozen wGetMapMode (hdc: INTEGER): INTEGER

frozen wGetViewportOrgEx (hdc: INTEGER; lppoint: POINTER): INTEGER

frozen wGetWindowOrgEx (hdc: INTEGER; lppoint: POINTER): INTEGER

frozen wGetWorldTransform (hdc: INTEGER; lpxform: POINTER): INTEGER

frozen wLPtoDP (hdc: INTEGER; lppoints: POINTER; ncount: INTEGER): INTEGER

frozen wModifyWorldTransform (hdc: INTEGER; lpxform: POINTER; imode: INTEGER): INTEGER

frozen wScreenToClient (hwnd: INTEGER; lppoint: POINTER): INTEGER

frozen wSetMapMode (hdc, fnmapmode: INTEGER): INTEGER

frozen wSetViewportExtEx (hdc, nxextent, nyextent: INTEGER; lpsize: POINTER): INTEGER

frozen wSetViewportOrgEx (hdc, x, y: INTEGER; lppoint: POINTER): INTEGER

frozen wSetWindowExtEx (hdc, nxextent, nyextent: INTEGER; lpsize: POINTER): INTEGER

frozen wSetWindowOrgEx (hdc, x, y: INTEGER; lppoint: POINTER): INTEGER

wSetWorldTransform (hdc: INTEGER; lpxform: POINTER): INTEGER
end -- class WAPI_COORDINATE_SPACE_AND_TRANSFORMATION_FUNCTIONS

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES