GraphicsDevice.st
branchjv
changeset 7365 05f5fe42c919
parent 7166 1f7489fd814e
parent 7357 bfc2b9583931
child 7366 18c5cd709f5c
--- a/GraphicsDevice.st	Mon May 09 21:41:22 2016 +0200
+++ b/GraphicsDevice.st	Wed May 11 09:38:32 2016 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
 	      All Rights Reserved
@@ -25,6 +27,13 @@
 "
  No other class instance variables are inherited by this class.
 "
+
+!
+AllocationFailure subclass:#GraphicResourceAllocationFailure
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	privateIn:GraphicsDevice
 !
 
 !GraphicsDevice class methodsFor:'documentation'!
@@ -212,13 +221,52 @@
     "
 ! !
 
+!GraphicsDevice::GraphicResourceAllocationFailure class methodsFor:'documentation'!
+
+copyright
+"
+ COPYRIGHT (c) 2016 by eXept Software AG
+              All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice.   This software may not
+ be provided or otherwise made available to, or used by, any
+ other person.  No title to or ownership of the software is
+ hereby transferred.
+"
+!
+
+documentation
+"
+    raised when allocation of a graphics resource (pixmap, bitmap, cursor, font, etc.)
+    fails.
+"
+! !
+
+!GraphicsDevice::GraphicResourceAllocationFailure class methodsFor:'queries'!
+
+defaultAnswer
+    ^ nil
+!
+
+isQuerySignal
+    ^ true
+! !
+
+!GraphicsDevice::GraphicResourceAllocationFailure class methodsFor:'raising'!
+
+query
+    ^ self raiseAsQuery
+! !
+
 !GraphicsDevice class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/GraphicsDevice.st,v 1.14 2014-03-25 09:01:41 stefan Exp $'
+    ^ '$Header$'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview/GraphicsDevice.st,v 1.14 2014-03-25 09:01:41 stefan Exp $'
+    ^ '$Header$'
 ! !