Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

text.c File Reference

#include <string.h>
#include "windef.h"
#include "wingdi.h"
#include "wine/winuser16.h"
#include "wine/unicode.h"
#include "winbase.h"
#include "winerror.h"
#include "winnls.h"
#include "user.h"
#include "debugtools.h"

Include dependency graph for text.c:

Include dependency graph

Go to the source code of this file.

Defines

#define TAB   9
#define LF   10
#define CR   13
#define SPACE   32
#define PREFIX   38
#define ELLIPSIS   "..."
#define FORWARD_SLASH   '/'
#define BACK_SLASH   '\\'
#define SWAP_INT(a, b)   { int t = a; a = b; b = t; }
#define MAX_STATIC_BUFFER   1024

Functions

 DEFAULT_DEBUG_CHANNEL (text)
const WCHAR * TEXT_NextLineW (HDC hdc, const WCHAR *str, int *count, WCHAR *dest, int *len, int width, WORD format)
INT16 WINAPI DrawText16 (HDC16 hdc, LPCSTR str, INT16 count, LPRECT16 rect, UINT16 flags)
INT WINAPI DrawTextExW (HDC hdc, LPWSTR str, INT i_count, LPRECT rect, UINT flags, LPDRAWTEXTPARAMS dtp)
INT WINAPI DrawTextExA (HDC hdc, LPCSTR str, INT count, LPRECT rect, UINT flags, LPDRAWTEXTPARAMS dtp)
INT WINAPI DrawTextW (HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
INT WINAPI DrawTextA (HDC hdc, LPCSTR str, INT count, LPRECT rect, UINT flags)
BOOL TEXT_GrayString (HDC hdc, HBRUSH hb, GRAYSTRINGPROC fn, LPARAM lp, INT len, INT x, INT y, INT cx, INT cy, BOOL unicode, BOOL _32bit)
BOOL16 WINAPI GrayString16 (HDC16 hdc, HBRUSH16 hbr, GRAYSTRINGPROC16 gsprc, LPARAM lParam, INT16 cch, INT16 x, INT16 y, INT16 cx, INT16 cy)
BOOL WINAPI GrayStringA (HDC hdc, HBRUSH hbr, GRAYSTRINGPROC gsprc, LPARAM lParam, INT cch, INT x, INT y, INT cx, INT cy)
BOOL WINAPI GrayStringW (HDC hdc, HBRUSH hbr, GRAYSTRINGPROC gsprc, LPARAM lParam, INT cch, INT x, INT y, INT cx, INT cy)
LONG TEXT_TabbedTextOut (HDC hdc, INT x, INT y, LPCSTR lpstr, INT count, INT cTabStops, const INT16 *lpTabPos16, const INT *lpTabPos32, INT nTabOrg, BOOL fDisplayText)
LONG WINAPI TabbedTextOut16 (HDC16 hdc, INT16 x, INT16 y, LPCSTR lpstr, INT16 count, INT16 cTabStops, const INT16 *lpTabPos, INT16 nTabOrg)
LONG WINAPI TabbedTextOutA (HDC hdc, INT x, INT y, LPCSTR lpstr, INT count, INT cTabStops, const INT *lpTabPos, INT nTabOrg)
LONG WINAPI TabbedTextOutW (HDC hdc, INT x, INT y, LPCWSTR str, INT count, INT cTabStops, const INT *lpTabPos, INT nTabOrg)
DWORD WINAPI GetTabbedTextExtent16 (HDC16 hdc, LPCSTR lpstr, INT16 count, INT16 cTabStops, const INT16 *lpTabPos)
DWORD WINAPI GetTabbedTextExtentA (HDC hdc, LPCSTR lpstr, INT count, INT cTabStops, const INT *lpTabPos)
DWORD WINAPI GetTabbedTextExtentW (HDC hdc, LPCWSTR lpstr, INT count, INT cTabStops, const INT *lpTabPos)

Variables

const WCHAR SPACEW [] = {' ', 0}
const WCHAR oW [] = {'o', 0}
const WCHAR ELLIPSISW [] = {'.','.','.', 0}
const WCHAR FORWARD_SLASHW [] = {'/', 0}
const WCHAR BACK_SLASHW [] = {'\\', 0}
int tabstop = 8
int tabwidth
int spacewidth
int prefix_offset


Define Documentation

#define TAB   9
 

Definition at line 32 of file text.c.

#define LF   10
 

Definition at line 33 of file text.c.

#define CR   13
 

Definition at line 34 of file text.c.

#define SPACE   32
 

Definition at line 35 of file text.c.

#define PREFIX   38
 

Definition at line 36 of file text.c.

#define ELLIPSIS   "..."
 

Definition at line 38 of file text.c.

#define FORWARD_SLASH   '/'
 

Definition at line 39 of file text.c.

#define BACK_SLASH   '\\'
 

Definition at line 40 of file text.c.

#define SWAP_INT a,
     { int t = a; a = b; b = t; }
 

Definition at line 48 of file text.c.

#define MAX_STATIC_BUFFER   1024
 

Definition at line 238 of file text.c.


Function Documentation

DEFAULT_DEBUG_CHANNEL text   
 

const WCHAR* TEXT_NextLineW HDC    hdc,
const WCHAR *    str,
int *    count,
WCHAR *    dest,
int *    len,
int    width,
WORD    format
[static]
 

Definition at line 74 of file text.c.

Referenced by DrawTextExW().

INT16 WINAPI DrawText16 HDC16    hdc,
LPCSTR    str,
INT16    count,
LPRECT16    rect,
UINT16    flags
 

Definition at line 219 of file text.c.

INT WINAPI DrawTextExW HDC    hdc,
LPWSTR    str,
INT    i_count,
LPRECT    rect,
UINT    flags,
LPDRAWTEXTPARAMS    dtp
 

Definition at line 239 of file text.c.

Referenced by DrawTextExA(), and DrawTextW().

INT WINAPI DrawTextExA HDC    hdc,
LPCSTR    str,
INT    count,
LPRECT    rect,
UINT    flags,
LPDRAWTEXTPARAMS    dtp
 

Definition at line 456 of file text.c.

Referenced by DrawTextA(), and STATIC_PaintTextfn().

INT WINAPI DrawTextW HDC    hdc,
LPCWSTR    str,
INT    count,
LPRECT    rect,
UINT    flags
 

Definition at line 481 of file text.c.

Referenced by DrawCaptionTemp(), and Paint_DrawStateJam().

INT WINAPI DrawTextA HDC    hdc,
LPCSTR    str,
INT    count,
LPRECT    rect,
UINT    flags
 

Definition at line 489 of file text.c.

Referenced by BUTTON_DrawPushButton(), CB_Paint(), DrawCaptionTemp(), DrawDisabledText(), DrawText16(), GB_Paint(), ICONTITLE_GetTitlePos(), ICONTITLE_Paint(), MENU_DrawMenuItem(), MSGBOX_OnInit(), and Paint_DrawStateJam().

BOOL TEXT_GrayString HDC    hdc,
HBRUSH    hb,
GRAYSTRINGPROC    fn,
LPARAM    lp,
INT    len,
INT    x,
INT    y,
INT    cx,
INT    cy,
BOOL    unicode,
BOOL    _32bit
[static]
 

Definition at line 504 of file text.c.

Referenced by GrayString16(), GrayStringA(), and GrayStringW().

BOOL16 WINAPI GrayString16 HDC16    hdc,
HBRUSH16    hbr,
GRAYSTRINGPROC16    gsprc,
LPARAM    lParam,
INT16    cch,
INT16    x,
INT16    y,
INT16    cx,
INT16    cy
 

Definition at line 609 of file text.c.

BOOL WINAPI GrayStringA HDC    hdc,
HBRUSH    hbr,
GRAYSTRINGPROC    gsprc,
LPARAM    lParam,
INT    cch,
INT    x,
INT    y,
INT    cx,
INT    cy
 

Definition at line 621 of file text.c.

BOOL WINAPI GrayStringW HDC    hdc,
HBRUSH    hbr,
GRAYSTRINGPROC    gsprc,
LPARAM    lParam,
INT    cch,
INT    x,
INT    y,
INT    cx,
INT    cy
 

Definition at line 633 of file text.c.

LONG TEXT_TabbedTextOut HDC    hdc,
INT    x,
INT    y,
LPCSTR    lpstr,
INT    count,
INT    cTabStops,
const INT16 *    lpTabPos16,
const INT *    lpTabPos32,
INT    nTabOrg,
BOOL    fDisplayText
[static]
 

Definition at line 648 of file text.c.

Referenced by GetTabbedTextExtent16(), GetTabbedTextExtentA(), TabbedTextOut16(), and TabbedTextOutA().

LONG WINAPI TabbedTextOut16 HDC16    hdc,
INT16    x,
INT16    y,
LPCSTR    lpstr,
INT16    count,
INT16    cTabStops,
const INT16 *    lpTabPos,
INT16    nTabOrg
 

Definition at line 725 of file text.c.

LONG WINAPI TabbedTextOutA HDC    hdc,
INT    x,
INT    y,
LPCSTR    lpstr,
INT    count,
INT    cTabStops,
const INT *    lpTabPos,
INT    nTabOrg
 

Definition at line 738 of file text.c.

Referenced by EDIT_PaintLine(), EDIT_PaintText(), LISTBOX_DrawItem(), and TabbedTextOutW().

LONG WINAPI TabbedTextOutW HDC    hdc,
INT    x,
INT    y,
LPCWSTR    str,
INT    count,
INT    cTabStops,
const INT *    lpTabPos,
INT    nTabOrg
 

Definition at line 754 of file text.c.

DWORD WINAPI GetTabbedTextExtent16 HDC16    hdc,
LPCSTR    lpstr,
INT16    count,
INT16    cTabStops,
const INT16 *    lpTabPos
 

Definition at line 776 of file text.c.

DWORD WINAPI GetTabbedTextExtentA HDC    hdc,
LPCSTR    lpstr,
INT    count,
INT    cTabStops,
const INT *    lpTabPos
 

Definition at line 788 of file text.c.

Referenced by EDIT_BuildLineDefs_ML(), EDIT_CharFromPos(), EDIT_EM_PosFromChar(), and GetTabbedTextExtentW().

DWORD WINAPI GetTabbedTextExtentW HDC    hdc,
LPCWSTR    lpstr,
INT    count,
INT    cTabStops,
const INT *    lpTabPos
 

Definition at line 804 of file text.c.


Variable Documentation

const WCHAR SPACEW[] = {' ', 0} [static]
 

Definition at line 42 of file text.c.

const WCHAR oW[] = {'o', 0} [static]
 

Definition at line 43 of file text.c.

const WCHAR ELLIPSISW[] = {'.','.','.', 0} [static]
 

Definition at line 44 of file text.c.

const WCHAR FORWARD_SLASHW[] = {'/', 0} [static]
 

Definition at line 45 of file text.c.

const WCHAR BACK_SLASHW[] = {'\\', 0} [static]
 

Definition at line 46 of file text.c.

int tabstop = 8 [static]
 

Definition at line 50 of file text.c.

int tabwidth [static]
 

Definition at line 51 of file text.c.

int spacewidth [static]
 

Definition at line 52 of file text.c.

int prefix_offset [static]
 

Definition at line 53 of file text.c.


Generated on Wed Jan 23 23:20:13 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001