Mir
Public Types | Public Member Functions | List of all members
mir::shell::CanonicalWindowManagerPolicy Class Reference

#include <canonical_window_manager.h>

Public Types

using Tools = BasicWindowManagerTools< CanonicalSessionInfo, CanonicalSurfaceInfo >
 
using CanonicalSessionInfoMap = typename SessionTo< CanonicalSessionInfo >::type
 
using CanonicalSurfaceInfoMap = typename SurfaceTo< CanonicalSurfaceInfo >::type
 

Public Member Functions

 CanonicalWindowManagerPolicy (Tools *const tools, std::shared_ptr< shell::DisplayLayout > const &display_layout)
 
void click (geometry::Point cursor)
 
void handle_session_info_updated (CanonicalSessionInfoMap &session_info, geometry::Rectangles const &displays)
 
void handle_displays_updated (CanonicalSessionInfoMap &session_info, geometry::Rectangles const &displays)
 
void resize (geometry::Point cursor)
 
auto handle_place_new_surface (std::shared_ptr< scene::Session > const &session, scene::SurfaceCreationParameters const &request_parameters) -> scene::SurfaceCreationParameters
 
void handle_new_surface (std::shared_ptr< scene::Session > const &session, std::shared_ptr< scene::Surface > const &surface)
 
void handle_modify_surface (std::shared_ptr< scene::Session > const &session, std::shared_ptr< scene::Surface > const &surface, SurfaceSpecification const &modifications)
 
void handle_delete_surface (std::shared_ptr< scene::Session > const &session, std::weak_ptr< scene::Surface > const &surface)
 
int handle_set_state (std::shared_ptr< scene::Surface > const &surface, MirSurfaceState value)
 
void drag (geometry::Point cursor)
 
bool handle_keyboard_event (MirKeyboardEvent const *event)
 
bool handle_touch_event (MirTouchEvent const *event)
 
bool handle_pointer_event (MirPointerEvent const *event)
 
std::vector< std::shared_ptr< scene::Surface > > generate_decorations_for (std::shared_ptr< scene::Session > const &session, std::shared_ptr< scene::Surface > const &surface)
 

Member Typedef Documentation

Constructor & Destructor Documentation

mir::shell::CanonicalWindowManagerPolicy::CanonicalWindowManagerPolicy ( Tools *const  tools,
std::shared_ptr< shell::DisplayLayout > const &  display_layout 
)
explicit

Member Function Documentation

void mir::shell::CanonicalWindowManagerPolicy::click ( geometry::Point  cursor)
void mir::shell::CanonicalWindowManagerPolicy::drag ( geometry::Point  cursor)
std::vector<std::shared_ptr<scene::Surface> > mir::shell::CanonicalWindowManagerPolicy::generate_decorations_for ( std::shared_ptr< scene::Session > const &  session,
std::shared_ptr< scene::Surface > const &  surface 
)
void mir::shell::CanonicalWindowManagerPolicy::handle_delete_surface ( std::shared_ptr< scene::Session > const &  session,
std::weak_ptr< scene::Surface > const &  surface 
)
void mir::shell::CanonicalWindowManagerPolicy::handle_displays_updated ( CanonicalSessionInfoMap session_info,
geometry::Rectangles const &  displays 
)
bool mir::shell::CanonicalWindowManagerPolicy::handle_keyboard_event ( MirKeyboardEvent const *  event)
void mir::shell::CanonicalWindowManagerPolicy::handle_modify_surface ( std::shared_ptr< scene::Session > const &  session,
std::shared_ptr< scene::Surface > const &  surface,
SurfaceSpecification const &  modifications 
)
void mir::shell::CanonicalWindowManagerPolicy::handle_new_surface ( std::shared_ptr< scene::Session > const &  session,
std::shared_ptr< scene::Surface > const &  surface 
)
auto mir::shell::CanonicalWindowManagerPolicy::handle_place_new_surface ( std::shared_ptr< scene::Session > const &  session,
scene::SurfaceCreationParameters const &  request_parameters 
) -> scene::SurfaceCreationParameters
bool mir::shell::CanonicalWindowManagerPolicy::handle_pointer_event ( MirPointerEvent const *  event)
void mir::shell::CanonicalWindowManagerPolicy::handle_session_info_updated ( CanonicalSessionInfoMap session_info,
geometry::Rectangles const &  displays 
)
int mir::shell::CanonicalWindowManagerPolicy::handle_set_state ( std::shared_ptr< scene::Surface > const &  surface,
MirSurfaceState  value 
)
bool mir::shell::CanonicalWindowManagerPolicy::handle_touch_event ( MirTouchEvent const *  event)
void mir::shell::CanonicalWindowManagerPolicy::resize ( geometry::Point  cursor)

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

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015