Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
anonymous_namespace{view.cc} Namespace Reference

Helpers. More...

Functions

Scroom::Utils::Point< double > eventToPoint (GdkEventButton *event)
 
Scroom::Utils::Point< double > eventToPoint (GdkEventMotion *event)
 
void on_newWindow_activate (GtkMenuItem *, gpointer user_data)
 

Detailed Description

Helpers.

Function Documentation

◆ eventToPoint() [1/2]

Scroom::Utils::Point< double > anonymous_namespace{view.cc}::eventToPoint ( GdkEventButton *  event)
54{ return {event->x, event->y}; }

◆ eventToPoint() [2/2]

Scroom::Utils::Point< double > anonymous_namespace{view.cc}::eventToPoint ( GdkEventMotion *  event)
56{ return {event->x, event->y}; }

◆ on_newWindow_activate()

void anonymous_namespace{view.cc}::on_newWindow_activate ( GtkMenuItem *  ,
gpointer  user_data 
)
60 {
61 PresentationInterface::WeakPtr const& wp = *static_cast<PresentationInterface::WeakPtr*>(user_data); // Yuk!
62 PresentationInterface::Ptr const p = wp.lock();
63 if(p)
64 {
66 }
67 }
void find_or_create_scroom(const PresentationInterface::Ptr &presentation)
Definition callbacks.cc:487
std::shared_ptr< PresentationInterface > Ptr
Definition presentationinterface.hh:73
std::weak_ptr< PresentationInterface > WeakPtr
Definition presentationinterface.hh:74
PresentationInterfaceStub::Ptr const p
Definition determine-size-test.cc:172
Here is the call graph for this function: