Logo Search packages:      
Sourcecode: libcaca version File versions  Download package

enum caca_feature caca_get_feature ( enum caca_feature  feature  ) 

Get the current value of a feature.

This function retrieves the value of an internal libcaca feature. A generic feature value is expected, such as CACA_ANTIALIASING.

Parameters:
feature The requested feature.
Returns:
The current value of the feature or CACA_FEATURE_UNKNOWN if an error occurred..

Definition at line 278 of file caca.c.

References CACA_ANTIALIASING, CACA_BACKGROUND, CACA_DITHERING, and CACA_FEATURE_UNKNOWN.

{
    switch(feature)
    {
        case CACA_BACKGROUND:
            return _caca_background;
        case CACA_ANTIALIASING:
            return _caca_antialiasing;
        case CACA_DITHERING:
            return _caca_dithering;

        default:
            return CACA_FEATURE_UNKNOWN;
    }
}


Generated by  Doxygen 1.6.0   Back to index