From 790e9979144e159e201dfbb413c70133d57d88a0 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Fri, 19 Jan 2001 23:22:16 +0000 Subject: [PATCH] More glyph attribute stuff git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8705 72102866-910b-0410-8b05-ffd578937521 --- Source/NSLayoutManager.m | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/Source/NSLayoutManager.m b/Source/NSLayoutManager.m index a08ea1bbf..980e81a8d 100644 --- a/Source/NSLayoutManager.m +++ b/Source/NSLayoutManager.m @@ -42,7 +42,9 @@ */ typedef enum { GSGlyphDrawsOutsideLineFragment, - GSGlyphIsNotShown + GSGlyphIsNotShown, + GSGlyphGeneration, + GSGlyphInscription, } GSGlyphAttributes; /* @@ -54,6 +56,8 @@ typedef struct { unsigned offset:24; // characters in from start of chunk unsigned drawsOutsideLineFragment:1; // glyph bigger than fragment? unsigned isNotShown:1; // glyph invisible (space, tab etc) + unsigned inscription:3; // NSGlyphInscription info + unsigned generation:3; // Other attributes } GSGlyphAttrs; @@ -1864,6 +1868,14 @@ invalidatedRange.length); attrs.isNotShown = 1; } } + else if (attribute == GSGlyphGeneration) + { + attrs.generation = anInt; + } + else if (attribute == GSGlyphInscription) + { + attrs.inscription = anInt; + } _SetAttrs(&s, attrs); } @@ -1904,9 +1916,17 @@ invalidatedRange.length); } else { - return 0; + return 1; } } + else if (attribute == GSGlyphGeneration) + { + return attrs.generation; + } + else if (attribute == GSGlyphInscription) + { + return attrs.inscription; + } return 0; }