INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

title: "Visual Eiffel Library.", "Win32 API: Font and Text 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_FONT_AND_TEXT_FUNCTIONS
inherit

WAPI_ERROR_SERVER
end
feature -- Access

CreateFont (nheight, nwidth, nescapement, norientation, fnweight, fdwitalic, fdwunderline, fdwstrikeout, fdwcharset, fdwoutputprecision: INTEGER; fdwclipprecision: BIT 32; fdwquality: INTEGER; fdwpitchandfamily: BIT 32; lpszface: POINTER): INTEGER
-- The 'CreateFont' function creates a logical font that has specific
-- characteristics. The logical font can subsequently be selected
-- as the font for any device.
require
correct_fdwitalic: fdwitalic = 0 or fdwitalic = 1
correct_fdwunderline: fdwunderline = 0 or fdwunderline = 1
correct_fdwstrikeout: fdwstrikeout = 0 or fdwstrikeout = 1
correct_lpszface: lpszface /= default_pointer

CreateFontIndirect (lplf: POINTER): INTEGER
-- The 'CreateFontIndirect' function creates a logical font that has
-- the characteristics specified in the specified structure. The font can
-- subsequently be selected as the current font for any device context.
require
correct_lplf: lplf /= default_pointer

ExtTextOut (hdc: INTEGER; x, y: INTEGER; fuoptions: BIT 32; lprc: POINTER; lpstring: POINTER; cbcount: INTEGER; lpdx: POINTER)
-- The 'ExtTextOut' procedure draws a character string by using
-- the currently selected font. An optional rectangle may be provided,
-- to be used for clipping, opaquing, or both.
require
correct_hdc: hdc /= null_

GetTextExtentPoint32 (hdc: INTEGER; lpstring: POINTER; cbstring: INTEGER; lpsize: POINTER)
-- The `GetTextExtentPoint32' function computes the width and height
-- of the specified string of text.
require
correct_hdc: hdc /= null_
correct_lpstring: lpstring /= default_pointer
correct_cbstring: cbstring >= 0
correct_lpsize: lpsize /= default_pointer

GetTextMetrics (hdc: INTEGER; lptm: POINTER)
-- The 'GetTextMetrics' procedure fills the specified buffer with the
-- metrics for the currently selected font.
require
correct_hdc: hdc /= null_
correct_lptm: lptm /= default_pointer

SetTextAlign (hdc, fmode: INTEGER): INTEGER
-- The 'SetTextAlign' function sets the text-alignment flags for the
-- specified device context.
require
correct_hdc: hdc /= null_

SetTextColor (hdc, crcolor: INTEGER): INTEGER
-- The 'SetTextColor' function sets the text color for the specified
-- device context to the specified color.
require
correct_hdc: hdc /= null_

GetTextColor (hdc: INTEGER): INTEGER
-- The GetTextColor function retrieves the current text color
-- for the specified device context
require
correct_hdc: hdc /= null_

TextOut (hdc, nxstart, nystart: INTEGER; lpstring: POINTER; cbstring: INTEGER)
-- The 'TextOut' procedure writes a character string at the specified
-- location, using the currently selected font.
require
correct_hdc: hdc /= null_
correct_lpstring: lpstring /= default_pointer
feature -- Implementation

wCreateFontIndirect (lplf: POINTER): INTEGER

wExtTextOut (hdc: INTEGER; x, y: INTEGER; fuoptions: BIT 32; lprc: POINTER; lpstring: POINTER; cbcount: INTEGER; lpdx: POINTER): INTEGER

wGetTextExtentPoint32 (hdc: INTEGER; lpstring: POINTER; cbstring: INTEGER; lpsize: POINTER): INTEGER

wGetTextMetrics (hdc: INTEGER; lptm: POINTER): INTEGER

wSetTextAlign (hdc, fmode: INTEGER): INTEGER

wSetTextColor (hdc, crcolor: INTEGER): INTEGER

wTextOut (hdc, nxstart, nystart: INTEGER; lpstring: POINTER; cbstring: INTEGER): INTEGER
end -- class WAPI_FONT_AND_TEXT_FUNCTIONS

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES