Esempio n. 1
0
		bool same_surface(const i_widget& aWidget) const
		{
			if (has_surface() && aWidget.has_surface())
				return &surface() == &aWidget.surface();
			else
				return false;
		}
Esempio n. 2
0
	graphics_context::graphics_context(const i_widget& aWidget) :
		iSurface(aWidget.surface()),
		iNativeGraphicsContext(aWidget.surface().native_surface().create_graphics_context(aWidget)),
		iUnitsContext(*this),
		iDefaultFont(aWidget.font()),
		iOrigin(aWidget.origin()),
		iExtents(aWidget.extents()),
		iDrawingGlyphs(0)
	{
	}