Beispiel #1
0
// --------------------------------------------------------------
// Save the current brush, select the new one
void
GDeviceWin32::PushFillColor( const VGColor & inColor )
{
	mBrushStack.push( mFillColor );
	if( inColor != mFillColor )
		SelectFillColor( inColor );
}
Beispiel #2
0
// --------------------------------------------------------------
// Restore the previous brush from the stack
void
GDeviceWin32::PopFillColor()
{
	VGColor & brush = mBrushStack.top();
	SelectFillColor( brush );
	mBrushStack.pop();
}
Beispiel #3
0
void CairoDevice::PushFillColor( const VGColor & color )
{
	double r, g, b, a;
	cairo_pattern_get_rgba (cairo_get_source(fNativeDevice), &r, &g, &b, &a);	
	fFillColorStack.push (VGColor(cc2c(r), cc2c(g), cc2c(b), cc2c(a))); 
	SelectFillColor (color);
}
Beispiel #4
0
// --------------------------------------------------------------
void GDeviceWin32::initialize(VGSystem* sys)
{
	SelectPen( VGColor(0,0,0,ALPHA_OPAQUE), 1);		//opaque black
	SelectFillColor( VGColor(0,0,0,ALPHA_OPAQUE) );	//opaque black
	SetFontColor( VGColor(0,0,0) );					//opaque black
	SetFontBackgroundColor( VGColor(255,255,255,ALPHA_TRANSPARENT) );	//transp. white
	SetFontAlign( kAlignLeft | kAlignBase );

	// guido hack - must be removed asap
	mSys = sys;
}
void openFrameworksDevice::PopFillColor()
{
    fFillColorStack.pop();
    SelectFillColor( fFillColorStack.top() );
}
void openFrameworksDevice::PushFillColor( const VGColor & color )
{
    fFillColorStack.push( color );
    SelectFillColor( color );
}
Beispiel #7
0
void CairoDevice::PopFillColor()
{
	SelectFillColor (fFillColorStack.top());
	fFillColorStack.pop();
}