From 50ffaefd8922949c22f0a02990465bccde0a0d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 23 Mar 2005 22:35:38 +0000 Subject: [PATCH] added missing string rendering functions, for testing purposes mainly git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11966 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/servers/app/Painter.h | 34 +++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/headers/private/servers/app/Painter.h b/headers/private/servers/app/Painter.h index 7095830a52..7bd8292253 100644 --- a/headers/private/servers/app/Painter.h +++ b/headers/private/servers/app/Painter.h @@ -42,6 +42,7 @@ class Painter { alpha_function alphaFncMode); void SetPenLocation(const BPoint& location); void SetFont(const BFont& font); + void SetFont(const ServerFont& font); // BView API compatibility (for easier testing) void Sync() {} @@ -142,6 +143,20 @@ class Painter { const pattern& p = B_SOLID_HIGH) const; // strings + void DrawChar( char aChar); + + void DrawChar( char aChar, + BPoint baseLine); + + void DrawString( const char* utf8String, + uint32 length, + const escapement_delta* delta = NULL); + + void DrawString( const char* utf8String, + uint32 length, + BPoint baseLine, + const escapement_delta* delta = NULL); + void DrawString( const char* utf8String, const escapement_delta* delta = NULL); @@ -164,28 +179,13 @@ class Painter { void InvertRect( const BRect& r) const; - // MISSING: + // MISSING (?): /* // "screen blits" void CopyBits( BRect src, BRect dst); - - - // more string support - void DrawChar( char aChar); - - void DrawChar( char aChar, - BPoint location); - - void DrawString( const char* string, - int32 length, - const escapement_delta* delta = NULL); - - void DrawString( const char* string, - int32 length, - BPoint location, - const escapement_delta* delta = 0L);*/ +*/ private: