mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 08:03:22 +00:00
* Headers/Additions/GNUstepGUI/GSDrawFunctions.h,
* Source/GSDrawFunctions.m (+[theme],+[setTheme:]): New accessor methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21937 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
593c42c5f7
commit
db9a23f78a
3 changed files with 25 additions and 0 deletions
|
@ -50,6 +50,22 @@
|
|||
*/
|
||||
@implementation GSDrawFunctions
|
||||
|
||||
static id theTheme;
|
||||
|
||||
+ (id) theme
|
||||
{
|
||||
if (theTheme == nil)
|
||||
{
|
||||
theTheme = [GSDrawFunctions new];
|
||||
}
|
||||
return theTheme;
|
||||
}
|
||||
|
||||
+ (void) setTheme: (id) aTheme
|
||||
{
|
||||
ASSIGN (theTheme, aTheme);
|
||||
}
|
||||
|
||||
/** Draw a button border */
|
||||
+ (NSRect) drawButton: (NSRect)border : (NSRect)clip
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue