Mir
Public Member Functions | Public Attributes | List of all members
mir::examples::CanonicalSurfaceInfoCopy Struct Reference

#include <server_example_canonical_window_manager.h>

Public Member Functions

 CanonicalSurfaceInfoCopy (std::shared_ptr< scene::Session > const &session, std::shared_ptr< scene::Surface > const &surface, scene::SurfaceCreationParameters const &params)
 
bool can_be_active () const
 
bool can_morph_to (MirSurfaceType new_type) const
 
bool must_have_parent () const
 
bool must_not_have_parent () const
 
bool is_visible () const
 
void constrain_resize (std::shared_ptr< scene::Surface > const &surface, geometry::Point &requested_pos, geometry::Size &requested_size, const bool left_resize, const bool top_resize, geometry::Rectangle const &bounds) const
 
void init_titlebar (std::shared_ptr< scene::Surface > const &surface)
 
void paint_titlebar (int intensity)
 

Public Attributes

MirSurfaceType type
 
MirSurfaceState state
 
geometry::Rectangle restore_rect
 
std::weak_ptr< scene::Sessionsession
 
std::weak_ptr< scene::Surfaceparent
 
std::vector< std::weak_ptr< scene::Surface > > children
 
std::shared_ptr< scene::Surfacetitlebar
 
frontend::SurfaceId titlebar_id
 
bool is_titlebar = false
 
geometry::Width min_width
 
geometry::Height min_height
 
geometry::Width max_width
 
geometry::Height max_height
 
mir::optional_value< geometry::DeltaXwidth_inc
 
mir::optional_value< geometry::DeltaYheight_inc
 
mir::optional_value< shell::SurfaceAspectRatiomin_aspect
 
mir::optional_value< shell::SurfaceAspectRatiomax_aspect
 

Constructor & Destructor Documentation

mir::examples::CanonicalSurfaceInfoCopy::CanonicalSurfaceInfoCopy ( std::shared_ptr< scene::Session > const &  session,
std::shared_ptr< scene::Surface > const &  surface,
scene::SurfaceCreationParameters const &  params 
)

Member Function Documentation

bool mir::examples::CanonicalSurfaceInfoCopy::can_be_active ( ) const

< AKA "regular"

< AKA "floating"

< AKA "toolbox"/"toolbar"

< AKA "OSK" or handwriting etc.

< AKA "tooltip"

Examples:
server_example_canonical_window_manager.cpp, and server_example_canonical_window_manager.h.
bool mir::examples::CanonicalSurfaceInfoCopy::can_morph_to ( MirSurfaceType  new_type) const
void mir::examples::CanonicalSurfaceInfoCopy::constrain_resize ( std::shared_ptr< scene::Surface > const &  surface,
geometry::Point requested_pos,
geometry::Size requested_size,
const bool  left_resize,
const bool  top_resize,
geometry::Rectangle const &  bounds 
) const
void mir::examples::CanonicalSurfaceInfoCopy::init_titlebar ( std::shared_ptr< scene::Surface > const &  surface)
bool mir::examples::CanonicalSurfaceInfoCopy::is_visible ( ) const
bool mir::examples::CanonicalSurfaceInfoCopy::must_have_parent ( ) const
bool mir::examples::CanonicalSurfaceInfoCopy::must_not_have_parent ( ) const
void mir::examples::CanonicalSurfaceInfoCopy::paint_titlebar ( int  intensity)

Member Data Documentation

std::vector<std::weak_ptr<scene::Surface> > mir::examples::CanonicalSurfaceInfoCopy::children
mir::optional_value<geometry::DeltaY> mir::examples::CanonicalSurfaceInfoCopy::height_inc
bool mir::examples::CanonicalSurfaceInfoCopy::is_titlebar = false
mir::optional_value<shell::SurfaceAspectRatio> mir::examples::CanonicalSurfaceInfoCopy::max_aspect
geometry::Height mir::examples::CanonicalSurfaceInfoCopy::max_height
geometry::Width mir::examples::CanonicalSurfaceInfoCopy::max_width
mir::optional_value<shell::SurfaceAspectRatio> mir::examples::CanonicalSurfaceInfoCopy::min_aspect
geometry::Height mir::examples::CanonicalSurfaceInfoCopy::min_height
geometry::Width mir::examples::CanonicalSurfaceInfoCopy::min_width
std::weak_ptr<scene::Surface> mir::examples::CanonicalSurfaceInfoCopy::parent
geometry::Rectangle mir::examples::CanonicalSurfaceInfoCopy::restore_rect
std::weak_ptr<scene::Session> mir::examples::CanonicalSurfaceInfoCopy::session
MirSurfaceState mir::examples::CanonicalSurfaceInfoCopy::state
std::shared_ptr<scene::Surface> mir::examples::CanonicalSurfaceInfoCopy::titlebar
frontend::SurfaceId mir::examples::CanonicalSurfaceInfoCopy::titlebar_id
MirSurfaceType mir::examples::CanonicalSurfaceInfoCopy::type
mir::optional_value<geometry::DeltaX> mir::examples::CanonicalSurfaceInfoCopy::width_inc

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

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