mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 01:11:07 +00:00
raw text with attributes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3860 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
db56ad4a9d
commit
cdf924b7d7
2 changed files with 8 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
Fri Mar 5 14:46:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
Fri Mar 5 16:04:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
* Headers/AppKit/NSGraphicsContext.h: Added three new methods to
|
* Headers/AppKit/NSGraphicsContext.h: Added three new methods to
|
||||||
support focusing - ([-focusView]), ([-pushFocusView:]) and
|
support focusing - ([-focusView]), ([-pushFocusView:]) and
|
||||||
|
@ -7,6 +7,7 @@ Fri Mar 5 14:46:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
a little, and made graphocs contexts thread-safe.
|
a little, and made graphocs contexts thread-safe.
|
||||||
* Source/NSView.m: Removed old code to handle per-thread stack of
|
* Source/NSView.m: Removed old code to handle per-thread stack of
|
||||||
focussed views - use new code in NSGraphicsContext instead.
|
focussed views - use new code in NSGraphicsContext instead.
|
||||||
|
* Source/NSCell.m: Draw cell text with font and colour attributes.
|
||||||
|
|
||||||
Thu Mar 4 12:46:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
Thu Mar 4 12:46:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
|
|
|
@ -552,6 +552,7 @@
|
||||||
NSFont *font;
|
NSFont *font;
|
||||||
float titleWidth;
|
float titleWidth;
|
||||||
float titleHeight;
|
float titleHeight;
|
||||||
|
NSDictionary *dict;
|
||||||
|
|
||||||
if (!title)
|
if (!title)
|
||||||
return;
|
return;
|
||||||
|
@ -594,9 +595,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[font set];
|
dict = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||||
[textColor set];
|
font, NSFontAttributeName,
|
||||||
[title drawInRect: cellFrame withAttributes: nil];
|
textColor, NSForegroundColorAttributeName,
|
||||||
|
nil];
|
||||||
|
[title drawInRect: cellFrame withAttributes: dict];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw image centered in frame.
|
// Draw image centered in frame.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue