egl :: EGLConfigCaveat :: defaultinit
extern class EGLConfigCaveat `{ EGLint `}
new from_i(val: Int) `{ return (EGLint)val; `}
fun to_i: Int `{ return self; `}
new none `{ return EGL_NONE; `}
fun is_none: Bool `{ return self == EGL_NONE; `}
new dont_care `{ return EGL_DONT_CARE; `}
fun is_dont_care: Bool `{ return self == EGL_DONT_CARE; `}
new slow `{ return EGL_SLOW_CONFIG; `}
fun is_slow: Bool `{ return self == EGL_SLOW_CONFIG; `}
# Obselete since EGL 1.3, use EGL_CONFORMANT instead
new non_conformant `{ return EGL_NON_CONFORMANT_CONFIG; `}
fun is_non_conformant: Bool `{ return self == EGL_NON_CONFORMANT_CONFIG; `}
redef fun to_s
do
if is_none then return "EGL_NONE"
if is_dont_care then return "EGL_DONT_CARE"
if is_slow then return "EGL_SLOW_CONFIG"
if is_non_conformant then return "EGL_NON_CONFORMANT"
return "Unknown or invalid value"
end
end
lib/egl/egl.nit:234,1--259,3