mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:40:47 +00:00
Add fillColor/setFillColor to NSBox
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35578 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3dc7b38bc7
commit
18e11c87ef
2 changed files with 14 additions and 0 deletions
|
@ -99,6 +99,10 @@ typedef enum _NSBoxType
|
|||
- (NSBoxType)boxType;
|
||||
- (void)setBoxType:(NSBoxType)aType;
|
||||
#endif
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
|
||||
- (NSColor*)fillColor;
|
||||
- (void)setFillColor:(NSColor*)newFillColor;
|
||||
#endif
|
||||
|
||||
//
|
||||
// Setting and Placing the Content View
|
||||
|
|
|
@ -149,6 +149,16 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (NSColor*) fillColor
|
||||
{
|
||||
return [_window backgroundColor];
|
||||
}
|
||||
|
||||
- (void) setFillColor:(NSColor*)fillColor
|
||||
{
|
||||
[_window setBackgroundColor: fillColor];
|
||||
}
|
||||
|
||||
/**<p>Sets the title cell to <var>aString</var>, resizes the content
|
||||
view frame if needed and marks self for display.</p>
|
||||
<p>Warning: This method does not implement the Cocoa behaviour</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue