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

#include <server_example_window_management_info.h>

Public Member Functions

 SurfaceInfo (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 (MirWindowType 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::Session > const &session, std::shared_ptr< scene::Surface > const &surface)
 
void paint_titlebar (int intensity)
 

Static Public Member Functions

static bool needs_titlebar (MirWindowType type)
 

Public Attributes

MirWindowType type
 
MirWindowState 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
 
frontend::BufferStreamId titlebar_stream_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
 
mir::optional_value< graphics::DisplayConfigurationOutputIdoutput_id
 

Constructor & Destructor Documentation

◆ SurfaceInfo()

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

Member Function Documentation

◆ can_be_active()

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

< AKA "regular"

< AKA "floating"

< AKA "toolbox"/"toolbar"

< AKA "OSK" or handwriting etc.

< AKA "tooltip"

◆ can_morph_to()

bool mir::examples::SurfaceInfo::can_morph_to ( MirWindowType  new_type) const

◆ constrain_resize()

void mir::examples::SurfaceInfo::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

◆ init_titlebar()

void mir::examples::SurfaceInfo::init_titlebar ( std::shared_ptr< scene::Session > const &  session,
std::shared_ptr< scene::Surface > const &  surface 
)

◆ is_visible()

bool mir::examples::SurfaceInfo::is_visible ( ) const

◆ must_have_parent()

bool mir::examples::SurfaceInfo::must_have_parent ( ) const

◆ must_not_have_parent()

bool mir::examples::SurfaceInfo::must_not_have_parent ( ) const

◆ needs_titlebar()

bool mir::examples::SurfaceInfo::needs_titlebar ( MirWindowType  type)
static

◆ paint_titlebar()

void mir::examples::SurfaceInfo::paint_titlebar ( int  intensity)

Member Data Documentation

◆ children

std::vector<std::weak_ptr<scene::Surface> > mir::examples::SurfaceInfo::children

◆ height_inc

mir::optional_value<geometry::DeltaY> mir::examples::SurfaceInfo::height_inc

◆ is_titlebar

bool mir::examples::SurfaceInfo::is_titlebar = false

◆ max_aspect

mir::optional_value<shell::SurfaceAspectRatio> mir::examples::SurfaceInfo::max_aspect

◆ max_height

geometry::Height mir::examples::SurfaceInfo::max_height

◆ max_width

geometry::Width mir::examples::SurfaceInfo::max_width

◆ min_aspect

mir::optional_value<shell::SurfaceAspectRatio> mir::examples::SurfaceInfo::min_aspect

◆ min_height

geometry::Height mir::examples::SurfaceInfo::min_height

◆ min_width

geometry::Width mir::examples::SurfaceInfo::min_width

◆ output_id

mir::optional_value<graphics::DisplayConfigurationOutputId> mir::examples::SurfaceInfo::output_id

◆ parent

std::weak_ptr<scene::Surface> mir::examples::SurfaceInfo::parent

◆ restore_rect

geometry::Rectangle mir::examples::SurfaceInfo::restore_rect

◆ session

std::weak_ptr<scene::Session> mir::examples::SurfaceInfo::session

◆ state

MirWindowState mir::examples::SurfaceInfo::state

◆ titlebar

std::shared_ptr<scene::Surface> mir::examples::SurfaceInfo::titlebar

◆ titlebar_id

frontend::SurfaceId mir::examples::SurfaceInfo::titlebar_id

◆ titlebar_stream_id

frontend::BufferStreamId mir::examples::SurfaceInfo::titlebar_stream_id

◆ type

MirWindowType mir::examples::SurfaceInfo::type

◆ width_inc

mir::optional_value<geometry::DeltaX> mir::examples::SurfaceInfo::width_inc

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

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:07:25 UTC 2017