mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 17:20:38 +00:00
Lock and unlock focus
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3957 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c0f076af8e
commit
ad764f5da2
2 changed files with 6 additions and 2 deletions
|
@ -1032,12 +1032,12 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
|
|||
|
||||
- (void) lockFocus
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
[[NSGraphicsContext currentContext] lockFocusView: self];
|
||||
}
|
||||
|
||||
- (void) unlockFocus
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
[[NSGraphicsContext currentContext] unlockFocusView: self];
|
||||
}
|
||||
|
||||
- (BOOL) canDraw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue