LibreOffice Module canvas (master)  1
Public Member Functions | Private Attributes | List of all members
oglcanvas::SpriteCanvas Class Reference

Product of this component's factory. More...

#include <ogl_spritecanvas.hxx>

Inheritance diagram for oglcanvas::SpriteCanvas:
[legend]
Collaboration diagram for oglcanvas::SpriteCanvas:
[legend]

Public Member Functions

 SpriteCanvas (const css::uno::Sequence< css::uno::Any > &aArguments, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
void initialize ()
 
virtual void disposeThis () override
 Dispose all internal references. More...
 
virtual sal_Bool SAL_CALL showBuffer (sal_Bool bUpdateAll) override
 
virtual sal_Bool SAL_CALL switchBuffer (sal_Bool bUpdateAll) override
 
virtual css::uno::Reference< css::rendering::XAnimatedSprite > SAL_CALL createSpriteFromAnimation (const css::uno::Reference< css::rendering::XAnimation > &animation) override
 
virtual css::uno::Reference< css::rendering::XAnimatedSprite > SAL_CALL createSpriteFromBitmaps (const css::uno::Sequence< css::uno::Reference< css::rendering::XBitmap > > &animationBitmaps,::sal_Int8 interpolationMode) override
 
virtual css::uno::Reference< css::rendering::XCustomSprite > SAL_CALL createCustomSprite (const css::geometry::RealSize2D &spriteSize) override
 
virtual css::uno::Reference< css::rendering::XSprite > SAL_CALL createClonedSprite (const css::uno::Reference< css::rendering::XSprite > &original) override
 
virtual sal_Bool SAL_CALL updateScreen (sal_Bool bUpdateAll) override
 
virtual OUString SAL_CALL getServiceName () override
 
void show (const ::rtl::Reference< CanvasCustomSprite > &)
 
void hide (const ::rtl::Reference< CanvasCustomSprite > &)
 
void renderRecordedActions () const
 Write out recorded actions. More...
 
- Public Member Functions inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
 CanvasBase ()
 Create CanvasBase. More...
 
virtual void SAL_CALL clear () override
 
virtual void SAL_CALL drawPoint (const css::geometry::RealPoint2D &aPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual void SAL_CALL drawLine (const css::geometry::RealPoint2D &aStartPoint, const css::geometry::RealPoint2D &aEndPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual void SAL_CALL drawBezier (const css::geometry::RealBezierSegment2D &aBezierSegment, const css::geometry::RealPoint2D &aEndPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL strokePolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::StrokeAttributes &strokeAttributes) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL strokeTexturedPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::rendering::StrokeAttributes &strokeAttributes) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL strokeTextureMappedPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::uno::Reference< css::geometry::XMapping2D > &xMapping, const css::rendering::StrokeAttributes &strokeAttributes) override
 
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL queryStrokeShapes (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::StrokeAttributes &strokeAttributes) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL fillPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL fillTexturedPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL fillTextureMappedPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::uno::Reference< css::geometry::XMapping2D > &xMapping) override
 
virtual css::uno::Reference< css::rendering::XCanvasFont > SAL_CALL createFont (const css::rendering::FontRequest &fontRequest, const css::uno::Sequence< css::beans::PropertyValue > &extraFontProperties, const css::geometry::Matrix2D &fontMatrix) override
 
virtual css::uno::Sequence< css::rendering::FontInfo > SAL_CALL queryAvailableFonts (const css::rendering::FontInfo &aFilter, const css::uno::Sequence< css::beans::PropertyValue > &aFontProperties) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawText (const css::rendering::StringContext &text, const css::uno::Reference< css::rendering::XCanvasFont > &xFont, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, sal_Int8 textDirection) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawTextLayout (const css::uno::Reference< css::rendering::XTextLayout > &laidOutText, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawBitmap (const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawBitmapModulated (const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XGraphicDevice > SAL_CALL getDevice () override
 
- Public Member Functions inherited from Base
 Base (uno_Environment *pEnv, cppu::Enterable *pEnterable)
 
void acquireWeak ()
 
void releaseWeak ()
 
void harden (uno_Environment **ppHardEnv)
 
void acquire ()
 
void release ()
 
void registerProxyInterface (void **ppProxy, uno_freeProxyFunc freeProxy, OUString const &oid, typelib_InterfaceTypeDescription *pTypeDescr)
 
void revokeInterface (void *pInterface)
 
void getObjectIdentifier (void *pInterface, OUString *pOid)
 
void getRegisteredInterface (void **, OUString const &oid, typelib_InterfaceTypeDescription *)
 
void getRegisteredInterfaces (void ***, sal_Int32 *pnLen, uno_memAlloc memAlloc)
 
void computeObjectIdentifier (void *pInterface, OUString *pOid)
 
void acquireInterface (void *pInterface)
 
void releaseInterface (void *pInterface)
 
virtual void v_enter () override
 
virtual void v_leave () override
 
virtual void v_callInto_v (uno_EnvCallee *pCallee, va_list *pParam) override
 
virtual void v_callOut_v (uno_EnvCallee *pCallee, va_list *pParam) override
 
virtual bool v_isValid (OUString *pReason) override
 
- Public Member Functions inherited from cppu::Enterable
virtual bool v_isValid (rtl::OUString *pReason)=0
 
virtual ~Enterable ()
 
 Enterable ()
 
void enter ()
 
void leave ()
 
void callInto_v (uno_EnvCallee *pCallee, va_list *pParam)
 
void callOut_v (uno_EnvCallee *pCallee, va_list *pParam)
 
void callInto (uno_EnvCallee *pCallee,...)
 
void callOut (uno_EnvCallee *pCallee,...)
 
int isValid (rtl::OUString *pReason)
 

Private Attributes

css::uno::Sequence< css::uno::Any > maArguments
 

Additional Inherited Members

- Public Types inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
typedef Base BaseType
 
typedef Mutex MutexType
 
typedef UnambiguousBase UnambiguousBaseType
 
- Protected Member Functions inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
 ~CanvasBase ()
 
- Protected Member Functions inherited from Base
virtual ~Base () override
 
- Protected Attributes inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
CanvasHelper maCanvasHelper
 
bool mbSurfaceDirty
 
- Protected Attributes inherited from Base
oslInterlockedCount m_nRef
 
uno_Environmentm_pEnv
 
std::unique_ptr< cppu::Enterablem_pEnterable
 
EnvFun_Pm_env_acquire
 
EnvFun_Pm_env_release
 
EnvFun_PP_Pm_env_harden
 
EnvFun_Pm_env_acquireWeak
 
EnvFun_Pm_env_releaseWeak
 
ExtEnv_registerProxyInterfacem_env_registerProxyInterface
 
ExtEnv_revokeInterfacem_env_revokeInterface
 
ExtEnv_getObjectIdentifierm_env_getObjectIdentifier
 
ExtEnv_getRegisteredInterfacem_env_getRegisteredInterface
 
ExtEnv_getRegisteredInterfacesm_env_getRegisteredInterfaces
 
ExtEnv_computeObjectIdentifierm_env_computeObjectIdentifier
 
ExtEnv_acquireInterfacem_env_acquireInterface
 
ExtEnv_releaseInterfacem_env_releaseInterface
 

Detailed Description

Product of this component's factory.

The SpriteCanvas object combines the actual Window canvas with the XGraphicDevice interface. This is because there's a one-to-one relation between them, anyway, since each window can have exactly one canvas and one associated XGraphicDevice. And to avoid messing around with circular references, this is implemented as one single object.

Definition at line 67 of file ogl_spritecanvas.hxx.

Constructor & Destructor Documentation

oglcanvas::SpriteCanvas::SpriteCanvas ( const css::uno::Sequence< css::uno::Any > &  aArguments,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext 
)

Member Function Documentation

uno::Reference< rendering::XSprite > SAL_CALL oglcanvas::SpriteCanvas::createClonedSprite ( const css::uno::Reference< css::rendering::XSprite > &  original)
overridevirtual

Definition at line 129 of file ogl_spritecanvas.cxx.

virtual css::uno::Reference< css::rendering::XCustomSprite > SAL_CALL oglcanvas::SpriteCanvas::createCustomSprite ( const css::geometry::RealSize2D &  spriteSize)
overridevirtual
uno::Reference< rendering::XAnimatedSprite > SAL_CALL oglcanvas::SpriteCanvas::createSpriteFromAnimation ( const css::uno::Reference< css::rendering::XAnimation > &  animation)
overridevirtual

Definition at line 109 of file ogl_spritecanvas.cxx.

uno::Reference< rendering::XAnimatedSprite > SAL_CALL oglcanvas::SpriteCanvas::createSpriteFromBitmaps ( const css::uno::Sequence< css::uno::Reference< css::rendering::XBitmap > > &  animationBitmaps,
::sal_Int8  interpolationMode 
)
overridevirtual

Definition at line 115 of file ogl_spritecanvas.cxx.

void oglcanvas::SpriteCanvas::disposeThis ( )
overridevirtual
OUString SAL_CALL oglcanvas::SpriteCanvas::getServiceName ( )
overridevirtual

Definition at line 141 of file ogl_spritecanvas.cxx.

References SPRITECANVAS_SERVICE_NAME.

void oglcanvas::SpriteCanvas::hide ( const ::rtl::Reference< CanvasCustomSprite > &  xSprite)

Definition at line 152 of file ogl_spritecanvas.cxx.

References m_aMutex.

void oglcanvas::SpriteCanvas::initialize ( )
void oglcanvas::SpriteCanvas::renderRecordedActions ( ) const

Write out recorded actions.

Definition at line 158 of file ogl_spritecanvas.cxx.

References canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::maCanvasHelper.

void oglcanvas::SpriteCanvas::show ( const ::rtl::Reference< CanvasCustomSprite > &  xSprite)

Definition at line 146 of file ogl_spritecanvas.cxx.

References m_aMutex.

sal_Bool SAL_CALL oglcanvas::SpriteCanvas::showBuffer ( sal_Bool  bUpdateAll)
overridevirtual

Definition at line 89 of file ogl_spritecanvas.cxx.

References m_aMutex.

sal_Bool SAL_CALL oglcanvas::SpriteCanvas::switchBuffer ( sal_Bool  bUpdateAll)
overridevirtual

Definition at line 99 of file ogl_spritecanvas.cxx.

References m_aMutex.

sal_Bool SAL_CALL oglcanvas::SpriteCanvas::updateScreen ( sal_Bool  bUpdateAll)
overridevirtual

Definition at line 135 of file ogl_spritecanvas.cxx.

References m_aMutex.

Member Data Documentation

css::uno::Sequence< css::uno::Any > oglcanvas::SpriteCanvas::maArguments
private

Definition at line 109 of file ogl_spritecanvas.hxx.

Referenced by initialize().


The documentation for this class was generated from the following files: