Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_paint_selector_get_color_alpha ( SPPaintSelector psel,
SPColor color,
gfloat *  alpha 
)

Postcondition:
(alpha == NULL) || (*alpha in [0.0, 1.0]).

Definition at line 459 of file paint-selector.cpp.

References SPPaintSelector::selector.

{
    SPColorSelector *csel;

    csel = (SPColorSelector*)gtk_object_get_data(GTK_OBJECT(psel->selector), "color-selector");

    csel->base->getColorAlpha( *color, alpha );

    g_assert( !alpha
              || ( ( 0.0 <= *alpha )
                   && ( *alpha <= 1.0 ) ) );
}


Generated by  Doxygen 1.6.0   Back to index