mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:17:38 +00:00
Reorganize location of theme proxy code. Add some more comments too.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27831 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9ef46af7f5
commit
570b8a4963
4 changed files with 103 additions and 84 deletions
|
@ -25,7 +25,10 @@
|
|||
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
#ifndef _INCLUDED_GSTHEMEPRIVATE_H
|
||||
#define _INCLUDED_GSTHEMEPRIVATE_H
|
||||
|
||||
#import <Foundation/NSProxy.h>
|
||||
#import "AppKit/NSPanel.h"
|
||||
#import "GNUstepGUI/GSTheme.h"
|
||||
|
||||
|
@ -149,3 +152,21 @@ typedef enum {
|
|||
withColor: (NSColor*)backgroundColor;
|
||||
@end
|
||||
|
||||
/* The GSThemeProxy class provides a simple proxy object for intermal use
|
||||
* by the GUI library when dealing with references to resources which may
|
||||
* be changed by activating a new theme, but which will be set in other
|
||||
* GUI objects. Having objects store a proxy to the orignal resource
|
||||
* rather than storing the original resource itsself means that, when the
|
||||
* new theme is activated the new resource can be used for drawing rather
|
||||
* than the old version.
|
||||
*/
|
||||
@interface GSThemeProxy : NSProxy
|
||||
{
|
||||
id _resource;
|
||||
}
|
||||
- (id) _resource;
|
||||
- (void) _setResource: (id)resource;
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue