Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
dw::core::Layout::LinkEmitter Class Reference

#include <layout.hh>

Public Member Functions

void connectLink (LinkReceiver *receiver)
 
bool emitEnter (Widget *widget, int link, int img, int x, int y)
 
bool emitPress (Widget *widget, int link, int img, int x, int y, EventButton *event)
 
bool emitRelease (Widget *widget, int link, int img, int x, int y, EventButton *event)
 
bool emitClick (Widget *widget, int link, int img, int x, int y, EventButton *event)
 
- Public Member Functions inherited from lout::signal::Emitter
 Emitter ()
 
 ~Emitter ()
 
void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer.
 
- Public Member Functions inherited from lout::object::Object
virtual ~Object ()
 The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly.
 
virtual bool equals (Object *other)
 Returns, whether two objects are equal.
 
virtual int hashValue ()
 Return a hash value for the object.
 
virtual Objectclone ()
 Return an exact copy of the object.
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object.
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses.
 

Protected Member Functions

bool emitToReceiver (lout::signal::Receiver *receiver, int signalNo, int argc, lout::object::Object **argv)
 A sub class must implement this for a call to a single receiver.
 
- Protected Member Functions inherited from lout::signal::Emitter
void emitVoid (int signalNo, int argc, Object **argv)
 Emit a void signal.
 
bool emitBool (int signalNo, int argc, Object **argv)
 Emit a boolean signal.
 
void connect (Receiver *receiver)
 Connect a receiver to the emitter.
 

Private Types

enum  { ENTER , PRESS , RELEASE , CLICK }
 

Detailed Description

Definition at line 103 of file layout.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
ENTER 
PRESS 
RELEASE 
CLICK 

Definition at line 106 of file layout.hh.

Member Function Documentation

◆ connectLink()

void dw::core::Layout::LinkEmitter::connectLink ( LinkReceiver receiver)
inline

Definition at line 113 of file layout.hh.

References lout::signal::Emitter::connect().

Referenced by dw::core::Layout::connectLink().

◆ emitClick()

bool dw::core::Layout::LinkEmitter::emitClick ( Widget widget,
int  link,
int  img,
int  x,
int  y,
EventButton event 
)

Definition at line 241 of file layout.cc.

Referenced by dw::core::Layout::emitLinkClick().

◆ emitEnter()

bool dw::core::Layout::LinkEmitter::emitEnter ( Widget widget,
int  link,
int  img,
int  x,
int  y 
)

Definition at line 217 of file layout.cc.

Referenced by dw::core::Layout::emitLinkEnter().

◆ emitPress()

bool dw::core::Layout::LinkEmitter::emitPress ( Widget widget,
int  link,
int  img,
int  x,
int  y,
EventButton event 
)

Definition at line 225 of file layout.cc.

Referenced by dw::core::Layout::emitLinkPress().

◆ emitRelease()

bool dw::core::Layout::LinkEmitter::emitRelease ( Widget widget,
int  link,
int  img,
int  x,
int  y,
EventButton event 
)

Definition at line 233 of file layout.cc.

Referenced by dw::core::Layout::emitLinkRelease().

◆ emitToReceiver()

bool dw::core::Layout::LinkEmitter::emitToReceiver ( lout::signal::Receiver receiver,
int  signalNo,
int  argc,
lout::object::Object **  argv 
)
protectedvirtual

A sub class must implement this for a call to a single receiver.

This methods gets the signal in a folded representation, it has to unfold it, and pass it to a single receiver. For boolean signals, the return value of the receiver must be returned, for void signals, the return value is discarded.

Implements lout::signal::Emitter.

Definition at line 173 of file layout.cc.

References lout::misc::assertNotReached(), dw::core::Layout::LinkReceiver::click(), dw::core::Layout::LinkReceiver::enter(), dw::core::Layout::LinkReceiver::press(), and dw::core::Layout::LinkReceiver::release().


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