Back to index

unity  6.0.0
Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes
unity::ui::EdgeBarrierController Class Reference

#include <EdgeBarrierController.h>

Inheritance diagram for unity::ui::EdgeBarrierController:
Inheritance graph
[legend]
Collaboration diagram for unity::ui::EdgeBarrierController:
Collaboration graph
[legend]

List of all members.

Classes

struct  Impl

Public Types

typedef std::shared_ptr
< EdgeBarrierController
Ptr

Public Member Functions

 EdgeBarrierController ()
 ~EdgeBarrierController ()
void Subscribe (EdgeBarrierSubscriber *subscriber, int monitor)
void Unsubscribe (EdgeBarrierSubscriber *subscriber, int monitor)

Public Attributes

nux::Property< bool > sticky_edges
nux::Property
< launcher::Options::Ptr
options

Private Attributes

Implpimpl

Detailed Description

Definition at line 35 of file EdgeBarrierController.h.


Member Typedef Documentation

Definition at line 38 of file EdgeBarrierController.h.


Constructor & Destructor Documentation

Definition at line 158 of file EdgeBarrierController.cpp.

  : sticky_edges(false)
  , pimpl(new Impl(this))
{
}

Definition at line 164 of file EdgeBarrierController.cpp.

{

}

Member Function Documentation

void unity::ui::EdgeBarrierController::Subscribe ( EdgeBarrierSubscriber subscriber,
int  monitor 
)

Definition at line 169 of file EdgeBarrierController.cpp.

{
  if (pimpl->subscribers_.size() <= (size_t)monitor)
    pimpl->subscribers_.resize(monitor + 1);
  pimpl->subscribers_[monitor] = subscriber;

  pimpl->SetupBarriers(UScreen::GetDefault()->GetMonitors());
}

Here is the call graph for this function:

void unity::ui::EdgeBarrierController::Unsubscribe ( EdgeBarrierSubscriber subscriber,
int  monitor 
)

Definition at line 178 of file EdgeBarrierController.cpp.

{
  if (pimpl->subscribers_.size() < (size_t)monitor || pimpl->subscribers_[monitor] != subscriber)
    return;
  pimpl->subscribers_[monitor] = nullptr;

  pimpl->SetupBarriers(UScreen::GetDefault()->GetMonitors());
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 44 of file EdgeBarrierController.h.

Definition at line 50 of file EdgeBarrierController.h.

Definition at line 43 of file EdgeBarrierController.h.


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