INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Visual Eiffel Library.", "Win32 API: Device Context 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_DEVICE_CONTEXT_FUNCTIONS
inherit

WAPI_ERROR_SERVER
end
feature -- Access

CreateCompatibleDC (hdc: INTEGER): INTEGER
-- The 'CreateCompatibleDC' function creates a memory device context (DC)
-- compatible with the specified device.

DeleteDC (hdc: INTEGER): INTEGER
-- The 'DeleteDC' function deletes the specified device context (DC).

DeleteObject (hobject: INTEGER): INTEGER
-- The 'DeleteObject' function deletes a logical pen, brush, font,
-- bitmap, region, or palette, freeing all system resources associated
-- with the object. After the object is deleted, the specified handle
-- is no longer valid.
require
correct_hobject: hobject /= null_

GetDC (hwnd: INTEGER): INTEGER
-- The 'GetDC' function retrieves a handle of a display device
-- context (DC) for the client area of the specified window.
-- The display device context can be used in subsequent GDI functions
-- to draw in the client area of the window.
--
-- This function retrieves a common, class, or private device context
-- depending on the class style specified for the specified window.
-- For common device contexts, 'GetDC' assigns default attributes
-- to the device context each time it is retrieved. For class and
-- private device contexts, 'GetDC' leaves the previously assigned
-- attributes unchanged.

GetDCEx (hwnd, hrgnclip: INTEGER; flags: BIT 32): INTEGER
-- The `GetDCEx' function retrieves the handle of a display
-- device (DC) context for the specified window. The display device
-- context can be used in subsequent GDI functions to draw in the
-- client area.
-- This function is an extension to the `GetDC' function
-- that gives an application more control over how and whether
-- clipping occurs in the client area.
ensure
well_done: Result /= null_

GetDeviceCaps (hdc, nindex: INTEGER): INTEGER
-- The 'GetDeviceCaps' function retrieves device-specific information
-- about a specified device.

GetObject (hgdiobj, cbbuffer: INTEGER; lpvobject: POINTER): INTEGER
-- The 'GetObject' function obtains information about a specified
-- graphics object. Depending on the graphics object, the function places
-- a filled-in WAPI_BITMAP, DIBSECTION, EXTLOGPEN, WAPI_LOGBRUSH, WAPI_LOGFONT,
-- or WAPI_LOGPEN structure, or a count of table entries (for a logical
-- palette), into a specified buffer.
require
correct_hgdiobj: hgdiobj /= null_

GetStockObject (fnobject: INTEGER): INTEGER
-- The 'GetStockObject' function retrieves a handle to one of the
-- predefined stock pens, brushes, fonts, or palettes.

ReleaseDC (hwnd, hdc: INTEGER): INTEGER
-- The 'ReleaseDC' function releases a device context (DC), freeing it
-- for use by other applications. The effect of the 'ReleaseDC' function
-- depends on the type of device context. It frees only common and window
-- device contexts. It has no effect on class or private device contexts.
require
correct_hdc: hdc /= null_

SelectObject (hdc, hgdiobj: INTEGER): INTEGER
-- The 'SelectObject' function selects an object into the specified
-- device context. The new object replaces the previous object of the
-- same type.
require
correct_hdc: hdc /= null_
feature -- Implementation

wCreateCompatibleDC (hdc: INTEGER): INTEGER

wDeleteDC (hdc: INTEGER): INTEGER

wGetDC (hwnd: INTEGER): INTEGER

frozen wGetDCEx (hwnd, hrgnclip: INTEGER; flags: BIT 32): INTEGER

wGetStockObject (fnobject: INTEGER): INTEGER

wSelectObject (hdc, hgdiobj: INTEGER): INTEGER

frozen CreateDC (lpszdriver: POINTER; lpszdevice: POINTER; lpszoutput: POINTER; lpinitdata: POINTER): INTEGER
-- The CreateDC function creates a device context (DC) for a device by
-- using the specified name.

frozen CreateDCW (lpszdriver: POINTER; lpszdevice: POINTER; lpszoutput: POINTER; lpinitdata: POINTER): INTEGER
-- The CreateDC function creates a device context (DC) for a device by
-- using the specified name.

frozen SaveDC (hdc: INTEGER): INTEGER
-- The SaveDC function saves the current state of the specified device
-- context (DC) by copying data describing selected objects and graphic
-- modes (such as the bitmap, brush, palette, font, pen, region, drawing
-- mode, and mapping mode) to a context stack.

frozen RestoreDC (hdc: INTEGER; nsaveddc: INTEGER): INTEGER
-- BOOL
-- The RestoreDC function restores a device context (DC) to the specified
-- state. The device context is restored by popping state information off
-- a stack created by earlier calls to the SaveDC function.

frozen CreateMetaFile (lpszfile: POINTER): INTEGER
-- HDC

frozen CloseMetaFile (hdc: INTEGER): INTEGER
-- HMETAFILE

frozen DeleteMetaFile (hmf: INTEGER): INTEGER
-- BOOL
end -- class WAPI_DEVICE_CONTEXT_FUNCTIONS

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES