1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-27 03:48:21 +01:00
Diya-API/Diya/SDL_DisplayMode.class.st

87 lines
2.1 KiB
Smalltalk
Raw Normal View History

2021-12-18 22:49:03 +01:00
Class {
#name : #'SDL_DisplayMode',
#superclass : #SDL2Structure,
#classVars : [
'OFFSET_DRIVERDATA',
'OFFSET_FORMAT',
'OFFSET_H',
'OFFSET_REFRESH_RATE',
'OFFSET_W'
],
#pools : [
'SDL2Types'
],
#category : #'Diya-SDL2'
}
{ #category : #'field definition' }
SDL_DisplayMode class >> fieldsDesc [
^#(
Uint32 format;
int w;
int h;
int refresh_rate;
void* driverdata;
)
]
{ #category : #'accessing structure variables' }
SDL_DisplayMode >> driverdata [
"This method was automatically generated"
^ExternalData fromHandle: (handle pointerAt: OFFSET_DRIVERDATA) type: ExternalType void asPointerType
]
{ #category : #'accessing structure variables' }
SDL_DisplayMode >> driverdata: anObject [
"This method was automatically generated"
handle pointerAt: OFFSET_DRIVERDATA put: anObject getHandle.
]
{ #category : #'accessing structure variables' }
SDL_DisplayMode >> format [
"This method was automatically generated"
^handle unsignedLongAt: OFFSET_FORMAT
]
{ #category : #'accessing structure variables' }
SDL_DisplayMode >> format: anObject [
"This method was automatically generated"
handle unsignedLongAt: OFFSET_FORMAT put: anObject
]
{ #category : #'accessing structure variables' }
SDL_DisplayMode >> h [
"This method was automatically generated"
^handle signedLongAt: OFFSET_H
]
{ #category : #'accessing structure variables' }
SDL_DisplayMode >> h: anObject [
"This method was automatically generated"
handle signedLongAt: OFFSET_H put: anObject
]
{ #category : #'accessing structure variables' }
SDL_DisplayMode >> refresh_rate [
"This method was automatically generated"
^handle signedLongAt: OFFSET_REFRESH_RATE
]
{ #category : #'accessing structure variables' }
SDL_DisplayMode >> refresh_rate: anObject [
"This method was automatically generated"
handle signedLongAt: OFFSET_REFRESH_RATE put: anObject
]
{ #category : #'accessing structure variables' }
SDL_DisplayMode >> w [
"This method was automatically generated"
^handle signedLongAt: OFFSET_W
]
{ #category : #'accessing structure variables' }
SDL_DisplayMode >> w: anObject [
"This method was automatically generated"
handle signedLongAt: OFFSET_W put: anObject
]