mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +00:00
NSGraphicsContext
: Add methods
method (#179)
gnustep-back uses the `NSGraphicsContext->methods` _variable_, but using an instance variable across module boundaries is not supported when building with Visual Studio. This commits adds a `[NSGraphicsContext methods]` _method_, which can be accessed across module boundaries (and hence when building with Visual Studio).
This commit is contained in:
parent
0b9924e094
commit
eb480b7748
2 changed files with 6 additions and 0 deletions
|
@ -211,6 +211,7 @@ APPKIT_EXPORT_CLASS
|
|||
flipped: (BOOL)flipped;
|
||||
#endif
|
||||
|
||||
- (const gsMethodTable *) methods;
|
||||
- (NSDictionary *) attributes;
|
||||
- (void *) graphicsPort;
|
||||
|
||||
|
|
|
@ -375,6 +375,11 @@ NSGraphicsContext *GSCurrentContext(void)
|
|||
return context_info;
|
||||
}
|
||||
|
||||
- (const gsMethodTable *) methods
|
||||
{
|
||||
return methods;
|
||||
}
|
||||
|
||||
- (void) flushGraphics
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
|
|
Loading…
Reference in a new issue