mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-27 03:48:21 +01:00
25 lines
448 B
Smalltalk
25 lines
448 B
Smalltalk
Extension { #name : #'SDL_Window' }
|
|
|
|
{ #category : #'*Diya' }
|
|
SDL_Window >> destroy [
|
|
self primDestroy.
|
|
handle beNull
|
|
]
|
|
|
|
{ #category : #'*Diya' }
|
|
SDL_Window class >> finalizeResourceData: aTuple [
|
|
| handle |
|
|
|
|
handle := aTuple first.
|
|
handle isNull ifTrue: [ ^ self ].
|
|
|
|
self destroyWindow: handle.
|
|
handle beNull
|
|
]
|
|
|
|
{ #category : #'*Diya' }
|
|
SDL_Window >> warpMouseX:x Y:y [
|
|
^self ffiCall: #(void SDL_WarpMouseInWindow(self,int x, int y))
|
|
|
|
]
|