toInt method
Return an integer.
Implementation
int toInt() {
switch (this) {
case ThreadPriority.threadPriorityLow:
return SDL_ThreadPriority.SDL_THREAD_PRIORITY_LOW;
case ThreadPriority.threadPriorityNormal:
return SDL_ThreadPriority.SDL_THREAD_PRIORITY_NORMAL;
case ThreadPriority.threadPriorityHigh:
return SDL_ThreadPriority.SDL_THREAD_PRIORITY_HIGH;
case ThreadPriority.threadPriorityTimeCritical:
return SDL_ThreadPriority.SDL_THREAD_PRIORITY_TIME_CRITICAL;
}
}