toInt method
Return an integer.
Implementation
int toInt() {
switch (this) {
case MessageBoxFlags.error:
return SDL_MessageBoxFlags.SDL_MESSAGEBOX_ERROR;
case MessageBoxFlags.warning:
return SDL_MessageBoxFlags.SDL_MESSAGEBOX_WARNING;
case MessageBoxFlags.information:
return SDL_MessageBoxFlags.SDL_MESSAGEBOX_INFORMATION;
case MessageBoxFlags.buttonsLeftToRight:
return SDL_MessageBoxFlags.SDL_MESSAGEBOX_BUTTONS_LEFT_TO_RIGHT;
case MessageBoxFlags.buttonsRightToLeft:
return SDL_MessageBoxFlags.SDL_MESSAGEBOX_BUTTONS_RIGHT_TO_LEFT;
}
}