Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
mir_test_framework::DeclarativePlacementStrategy Class Reference

DeclarativePlacementStrategy is a test utility server component for specifying a static list of surface geometries and relative depths. Used, for example, in input tests where it is necessary to set up scenarios depending on multiple surfaces geometry and stacking. More...

#include <declarative_placement_strategy.h>

Inheritance diagram for mir_test_framework::DeclarativePlacementStrategy:
Inheritance graph
[legend]

Public Member Functions

 DeclarativePlacementStrategy (std::shared_ptr< mir::shell::PlacementStrategy > const &default_strategy, SurfaceGeometries const &positions_by_name, SurfaceDepths const &depths_by_name)
 
virtual ~DeclarativePlacementStrategy ()=default
 
mir::shell::SurfaceCreationParameters place (mir::shell::Session const &session, mir::shell::SurfaceCreationParameters const &request_parameters) override
 
- Public Member Functions inherited from mir::shell::PlacementStrategy
virtual ~PlacementStrategy ()
 

Protected Member Functions

 DeclarativePlacementStrategy (const DeclarativePlacementStrategy &)=delete
 
DeclarativePlacementStrategyoperator= (const DeclarativePlacementStrategy &)=delete
 
- Protected Member Functions inherited from mir::shell::PlacementStrategy
 PlacementStrategy ()=default
 
 PlacementStrategy (PlacementStrategy const &)=delete
 
PlacementStrategyoperator= (PlacementStrategy const &)=delete
 

Detailed Description

DeclarativePlacementStrategy is a test utility server component for specifying a static list of surface geometries and relative depths. Used, for example, in input tests where it is necessary to set up scenarios depending on multiple surfaces geometry and stacking.

Constructor & Destructor Documentation

mir_test_framework::DeclarativePlacementStrategy::DeclarativePlacementStrategy ( std::shared_ptr< mir::shell::PlacementStrategy > const &  default_strategy,
SurfaceGeometries const &  positions_by_name,
SurfaceDepths const &  depths_by_name 
)
virtual mir_test_framework::DeclarativePlacementStrategy::~DeclarativePlacementStrategy ( )
virtualdefault
mir_test_framework::DeclarativePlacementStrategy::DeclarativePlacementStrategy ( const DeclarativePlacementStrategy )
protecteddelete

Member Function Documentation

DeclarativePlacementStrategy& mir_test_framework::DeclarativePlacementStrategy::operator= ( const DeclarativePlacementStrategy )
protecteddelete
mir::shell::SurfaceCreationParameters mir_test_framework::DeclarativePlacementStrategy::place ( mir::shell::Session const &  session,
mir::shell::SurfaceCreationParameters const &  request_parameters 
)
overridevirtual

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

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014