mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 20:49:13 +00:00
More glyph attribute stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8705 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bf5727c6e8
commit
790e997914
1 changed files with 22 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue