Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | List of all members
mir::test::doubles::MockSurface Struct Reference

#include <mock_surface.h>

Inheritance diagram for mir::test::doubles::MockSurface:
Inheritance graph
[legend]

Public Member Functions

 MockSurface (shell::Session *session, std::shared_ptr< shell::SurfaceBuilder > const &builder)
 
 ~MockSurface () noexcept
 
 MOCK_METHOD0 (hide, void())
 
 MOCK_METHOD0 (show, void())
 
 MOCK_METHOD0 (visible, bool())
 
 MOCK_METHOD1 (raise, void(std::shared_ptr< shell::SurfaceController > const &))
 
 MOCK_METHOD0 (force_requests_to_complete, void())
 
 MOCK_METHOD0 (advance_client_buffer, std::shared_ptr< graphics::Buffer >())
 
 MOCK_CONST_METHOD0 (name, std::string())
 
 MOCK_CONST_METHOD0 (size, geometry::Size())
 
 MOCK_CONST_METHOD0 (pixel_format, geometry::PixelFormat())
 
 MOCK_CONST_METHOD0 (supports_input, bool())
 
 MOCK_CONST_METHOD0 (client_input_fd, int())
 
 MOCK_METHOD2 (configure, int(MirSurfaceAttrib, int))
 
 MOCK_METHOD1 (take_input_focus, void(std::shared_ptr< shell::InputTargeter > const &))
 
- Public Member Functions inherited from mir::shell::Surface
 Surface (Session *session, std::shared_ptr< SurfaceBuilder > const &builder, std::shared_ptr< SurfaceConfigurator > const &configurator, SurfaceCreationParameters const &params, frontend::SurfaceId id, std::shared_ptr< frontend::EventSink > const &event_sink)
 
 ~Surface () noexcept
 
virtual void hide ()
 
virtual void show ()
 
virtual void force_requests_to_complete ()
 
virtual std::string name () const
 
virtual void move_to (geometry::Point const &top_left)
 
virtual geometry::Size size () const
 
virtual geometry::Point top_left () const
 
virtual geometry::PixelFormat pixel_format () const
 
virtual void with_most_recent_buffer_do (std::function< void(graphics::Buffer &)> const &exec)
 
virtual std::shared_ptr
< graphics::Buffer
advance_client_buffer ()
 
virtual bool supports_input () const
 
virtual int client_input_fd () const
 
virtual int configure (MirSurfaceAttrib attrib, int value)
 
virtual MirSurfaceType type () const
 
virtual MirSurfaceState state () const
 
virtual void take_input_focus (std::shared_ptr< InputTargeter > const &targeter)
 
virtual void set_input_region (std::vector< geometry::Rectangle > const &region)
 
virtual void allow_framedropping (bool)
 
virtual void raise (std::shared_ptr< SurfaceController > const &controller)
 
- Public Member Functions inherited from mir::frontend::ClientTrackingSurface
 ClientTrackingSurface ()
 
virtual ~ClientTrackingSurface ()=default
 
virtual std::shared_ptr
< graphics::Buffer
advance_client_buffer (bool &need_full_ipc) override
 Submit the current client buffer, return the next client buffer. More...
 
- Public Member Functions inherited from mir::shell::SurfaceBufferAccess
virtual ~SurfaceBufferAccess ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from mir::frontend::Surface
 Surface ()=default
 
 Surface (Surface const &)=delete
 
Surfaceoperator= (Surface const &)=delete
 
- Protected Member Functions inherited from mir::shell::SurfaceBufferAccess
 SurfaceBufferAccess ()=default
 
 SurfaceBufferAccess (SurfaceBufferAccess const &)=delete
 
SurfaceBufferAccessoperator= (SurfaceBufferAccess const &)=delete
 

Constructor & Destructor Documentation

mir::test::doubles::MockSurface::MockSurface ( shell::Session session,
std::shared_ptr< shell::SurfaceBuilder > const &  builder 
)
inline
mir::test::doubles::MockSurface::~MockSurface ( )
inlinenoexcept

Member Function Documentation

mir::test::doubles::MockSurface::MOCK_CONST_METHOD0 ( name  ,
std::  string() 
)
mir::test::doubles::MockSurface::MOCK_CONST_METHOD0 ( size  ,
geometry::  Size() 
)
mir::test::doubles::MockSurface::MOCK_CONST_METHOD0 ( pixel_format  ,
geometry::  PixelFormat() 
)
mir::test::doubles::MockSurface::MOCK_CONST_METHOD0 ( supports_input  ,
bool()   
)
mir::test::doubles::MockSurface::MOCK_CONST_METHOD0 ( client_input_fd  ,
int()   
)
mir::test::doubles::MockSurface::MOCK_METHOD0 ( hide  ,
void()   
)
mir::test::doubles::MockSurface::MOCK_METHOD0 ( show  ,
void()   
)
mir::test::doubles::MockSurface::MOCK_METHOD0 ( visible  ,
bool()   
)
mir::test::doubles::MockSurface::MOCK_METHOD0 ( force_requests_to_complete  ,
void()   
)
mir::test::doubles::MockSurface::MOCK_METHOD0 ( advance_client_buffer  ,
std::shared_ptr< graphics::Buffer () 
)
mir::test::doubles::MockSurface::MOCK_METHOD1 ( raise  ,
void(std::shared_ptr< shell::SurfaceController > const &)   
)
mir::test::doubles::MockSurface::MOCK_METHOD1 ( take_input_focus  ,
void(std::shared_ptr< shell::InputTargeter > const &)   
)
mir::test::doubles::MockSurface::MOCK_METHOD2 ( configure  ,
int(MirSurfaceAttrib, int)   
)

The documentation for this struct was generated from the following file:

Copyright © 2012,2013 Canonical Ltd.
Generated on Tue Oct 15 00:23:28 UTC 2013