mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Add hyphen prototypes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7208 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8298410a10
commit
34a5c0f0a9
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Aug 17 08:51:45 2000 Adam Fedor <fedor@ultra.doc.com>
|
||||
|
||||
* Headers/gnustep/gui/NSLayoutManager.h: Add hyphenation
|
||||
prototypes (patch from Jeff Teunissen <deek@dusknet.dhs.org>).
|
||||
|
||||
2000-08-07 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Merge 0.6.6 branch into main.
|
||||
|
|
|
@ -155,7 +155,7 @@ typedef enum {
|
|||
BOOL _showsControlChars;
|
||||
float _hyphenationFactor;
|
||||
BOOL _usesScreenFonts;
|
||||
BOOL finished;
|
||||
BOOL finished;
|
||||
}
|
||||
|
||||
/**************************** Initialization ****************************/
|
||||
|
@ -399,6 +399,11 @@ typedef enum {
|
|||
- (void)underlineGlyphRange:(NSRange)glyphRange underlineType:(int)underlineVal lineFragmentRect:(NSRect)lineRect lineFragmentGlyphRange:(NSRange)lineGlyphRange containerOrigin:(NSPoint)containerOrigin;
|
||||
// The first of these methods actually draws an appropriate underline for the glyph range given. The second method potentailly breaks the range it is given up into subranges and calls drawUnderline... for ranges that should actually have the underline drawn. As examples of why there are two methods, consider two situations. First, in all cases you don't want to underline the leading and trailing whitespace on a line. The -underlineGlyphRange... method is passed glyph ranges that have underlining turned on, but it will then look for this leading and trailing white space and only pass the ranges that should actually be underlined to -drawUnderline... Second, if the underlineType: indicates that only words, (ie no whitespace), should be underlined, then -underlineGlyphRange... will carve the range it is passed up into words and only pass word ranges to -drawUnderline.
|
||||
|
||||
/************************ Hyphenation support ************************/
|
||||
|
||||
- (float) hyphenationFactor;
|
||||
- (void) setHyphenationFactor: (float)factor;
|
||||
|
||||
@end
|
||||
|
||||
@interface NSObject (NSLayoutManagerDelegate)
|
||||
|
|
Loading…
Reference in a new issue