typedef KGLinearGradientDirection enum to avoid multiple definition