Mir
|
#include <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 ¶ms) | |
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) |
Static Public Member Functions | |
static bool | needs_titlebar (MirSurfaceType type) |
Public Attributes | |
MirSurfaceType | type |
MirSurfaceState | state |
geometry::Rectangle | restore_rect |
std::weak_ptr< scene::Session > | session |
std::weak_ptr< scene::Surface > | parent |
std::vector< std::weak_ptr< scene::Surface > > | children |
std::shared_ptr< scene::Surface > | titlebar |
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::DeltaX > | width_inc |
mir::optional_value< geometry::DeltaY > | height_inc |
mir::optional_value< shell::SurfaceAspectRatio > | min_aspect |
mir::optional_value< shell::SurfaceAspectRatio > | max_aspect |
mir::optional_value< graphics::DisplayConfigurationOutputId > | output_id |
mir::optional_value< MirPointerConfinementState > | confine_pointer |
mir::shell::SurfaceInfo::SurfaceInfo | ( | std::shared_ptr< scene::Session > const & | session, |
std::shared_ptr< scene::Surface > const & | surface, | ||
scene::SurfaceCreationParameters const & | params | ||
) |
bool mir::shell::SurfaceInfo::can_be_active | ( | ) | const |
< AKA "regular"
< AKA "floating"
< AKA "toolbox"/"toolbar"
< AKA "OSK" or handwriting etc.
< AKA "tooltip"
bool mir::shell::SurfaceInfo::can_morph_to | ( | MirSurfaceType | new_type | ) | const |
void mir::shell::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 |
void mir::shell::SurfaceInfo::init_titlebar | ( | std::shared_ptr< scene::Surface > const & | surface | ) |
bool mir::shell::SurfaceInfo::is_visible | ( | ) | const |
bool mir::shell::SurfaceInfo::must_have_parent | ( | ) | const |
bool mir::shell::SurfaceInfo::must_not_have_parent | ( | ) | const |
|
static |
void mir::shell::SurfaceInfo::paint_titlebar | ( | int | intensity | ) |
std::vector<std::weak_ptr<scene::Surface> > mir::shell::SurfaceInfo::children |
mir::optional_value<MirPointerConfinementState> mir::shell::SurfaceInfo::confine_pointer |
mir::optional_value<geometry::DeltaY> mir::shell::SurfaceInfo::height_inc |
bool mir::shell::SurfaceInfo::is_titlebar = false |
mir::optional_value<shell::SurfaceAspectRatio> mir::shell::SurfaceInfo::max_aspect |
geometry::Height mir::shell::SurfaceInfo::max_height |
geometry::Width mir::shell::SurfaceInfo::max_width |
mir::optional_value<shell::SurfaceAspectRatio> mir::shell::SurfaceInfo::min_aspect |
geometry::Height mir::shell::SurfaceInfo::min_height |
geometry::Width mir::shell::SurfaceInfo::min_width |
mir::optional_value<graphics::DisplayConfigurationOutputId> mir::shell::SurfaceInfo::output_id |
std::weak_ptr<scene::Surface> mir::shell::SurfaceInfo::parent |
geometry::Rectangle mir::shell::SurfaceInfo::restore_rect |
std::weak_ptr<scene::Session> mir::shell::SurfaceInfo::session |
MirSurfaceState mir::shell::SurfaceInfo::state |
std::shared_ptr<scene::Surface> mir::shell::SurfaceInfo::titlebar |
frontend::SurfaceId mir::shell::SurfaceInfo::titlebar_id |
MirSurfaceType mir::shell::SurfaceInfo::type |
mir::optional_value<geometry::DeltaX> mir::shell::SurfaceInfo::width_inc |
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016