BC_Clipboard Class Reference

#include <bcclipboard.h>

Inherits Thread.

Collaboration diagram for BC_Clipboard:

Collaboration graph
[legend]

Public Member Functions

 BC_Clipboard (char *display_name)
 ~BC_Clipboard ()
int start_clipboard ()
void run ()
int stop_clipboard ()
long clipboard_len (int clipboard_num)
int to_clipboard (char *data, long len, int clipboard_num)
int from_clipboard (char *data, long maxlen, int clipboard_num)

Private Member Functions

void handle_selectionrequest (XSelectionRequestEvent *request)
int handle_request_string (XSelectionRequestEvent *request)
int handle_request_targets (XSelectionRequestEvent *request)

Private Attributes

Display * in_display
Display * out_display
Atom completion_atom
Atom primary
Atom secondary
Atom targets_atom
Window in_win
Window out_win
char * data [2]
long length [2]

Detailed Description

Definition at line 16 of file bcclipboard.h.


Constructor & Destructor Documentation

BC_Clipboard::BC_Clipboard ( char *  display_name  ) 

Definition at line 5 of file bcclipboard.C.

References completion_atom, data, in_display, in_win, BC_WindowBase::init_display(), out_display, out_win, primary, secondary, Thread::set_synchronous(), and targets_atom.

Here is the call graph for this function:

BC_Clipboard::~BC_Clipboard (  ) 

Definition at line 37 of file bcclipboard.C.

References data, in_display, in_win, out_display, and out_win.


Member Function Documentation

int BC_Clipboard::start_clipboard (  ) 

Definition at line 48 of file bcclipboard.C.

References Thread::start().

Referenced by BC_WindowBase::create_window().

Here is the call graph for this function:

void BC_Clipboard::run (  )  [virtual]

Implements Thread.

Definition at line 68 of file bcclipboard.C.

References completion_atom, data, handle_selectionrequest(), and out_display.

Here is the call graph for this function:

int BC_Clipboard::stop_clipboard (  ) 

Definition at line 54 of file bcclipboard.C.

References completion_atom, Thread::join(), out_display, and out_win.

Referenced by BC_WindowBase::~BC_WindowBase().

Here is the call graph for this function:

long BC_Clipboard::clipboard_len ( int  clipboard_num  ) 

int BC_Clipboard::to_clipboard ( char *  data,
long  len,
int  clipboard_num 
)

int BC_Clipboard::from_clipboard ( char *  data,
long  maxlen,
int  clipboard_num 
)

void BC_Clipboard::handle_selectionrequest ( XSelectionRequestEvent *  request  )  [private]

Definition at line 109 of file bcclipboard.C.

References handle_request_string(), handle_request_targets(), out_display, and targets_atom.

Referenced by run().

Here is the call graph for this function:

int BC_Clipboard::handle_request_string ( XSelectionRequestEvent *  request  )  [private]

Definition at line 133 of file bcclipboard.C.

References data, out_display, and primary.

Referenced by handle_selectionrequest().

int BC_Clipboard::handle_request_targets ( XSelectionRequestEvent *  request  )  [private]

Definition at line 148 of file bcclipboard.C.

References out_display, and targets_atom.

Referenced by handle_selectionrequest().


Field Documentation

Display* BC_Clipboard::in_display [private]

Definition at line 34 of file bcclipboard.h.

Referenced by BC_Clipboard(), clipboard_len(), from_clipboard(), and ~BC_Clipboard().

Display * BC_Clipboard::out_display [private]

Definition at line 35 of file bcclipboard.h.

Referenced by BC_Clipboard(), run(), and stop_clipboard().

Atom BC_Clipboard::primary [private]

Atom BC_Clipboard::secondary [private]

Definition at line 35 of file bcclipboard.h.

Referenced by BC_Clipboard(), clipboard_len(), from_clipboard(), and to_clipboard().

Definition at line 36 of file bcclipboard.h.

Referenced by BC_Clipboard(), handle_request_targets(), and handle_selectionrequest().

Window BC_Clipboard::in_win [private]

Definition at line 37 of file bcclipboard.h.

Referenced by BC_Clipboard(), clipboard_len(), from_clipboard(), and ~BC_Clipboard().

Window BC_Clipboard::out_win [private]

Definition at line 37 of file bcclipboard.h.

Referenced by BC_Clipboard(), stop_clipboard(), to_clipboard(), and ~BC_Clipboard().

char* BC_Clipboard::data[2] [private]

Definition at line 38 of file bcclipboard.h.

Referenced by BC_Clipboard(), handle_request_string(), run(), and ~BC_Clipboard().

long BC_Clipboard::length[2] [private]

Definition at line 39 of file bcclipboard.h.

Referenced by to_clipboard().


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

Generated on Mon Apr 28 14:13:04 2008 for Cinelerra by  doxygen 1.5.5