Back to index

texmacs  1.0.7.15
Classes | Enumerations | Functions
message.hpp File Reference
#include "renderer.hpp"
#include "widget.hpp"
#include "ntuple.hpp"
#include "rectangles.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  slot

Enumerations

enum  slot_id {
  SLOT_IDENTIFIER, SLOT_WINDOW, SLOT_RENDERER, SLOT_VISIBILITY,
  SLOT_FULL_SCREEN, SLOT_NAME, SLOT_SIZE, SLOT_POSITION,
  SLOT_UPDATE, SLOT_REFRESH, SLOT_KEYBOARD, SLOT_KEYBOARD_FOCUS,
  SLOT_MOUSE, SLOT_MOUSE_GRAB, SLOT_MOUSE_POINTER, SLOT_INVALIDATE,
  SLOT_INVALIDATE_ALL, SLOT_REPAINT, SLOT_DELAYED_MESSAGE, SLOT_DESTROY,
  SLOT_SHRINKING_FACTOR, SLOT_EXTENTS, SLOT_VISIBLE_PART, SLOT_SCROLLBARS_VISIBILITY,
  SLOT_SCROLL_POSITION, SLOT_CANVAS, SLOT_SCROLLABLE, SLOT_CURSOR,
  SLOT_HEADER_VISIBILITY, SLOT_MAIN_MENU, SLOT_MAIN_ICONS_VISIBILITY, SLOT_MAIN_ICONS,
  SLOT_MODE_ICONS_VISIBILITY, SLOT_MODE_ICONS, SLOT_FOCUS_ICONS_VISIBILITY, SLOT_FOCUS_ICONS,
  SLOT_USER_ICONS_VISIBILITY, SLOT_USER_ICONS, SLOT_SIDE_TOOLS_VISIBILITY, SLOT_SIDE_TOOLS,
  SLOT_FOOTER_VISIBILITY, SLOT_LEFT_FOOTER, SLOT_RIGHT_FOOTER, SLOT_INTERACTIVE_MODE,
  SLOT_INTERACTIVE_PROMPT, SLOT_INTERACTIVE_INPUT, SLOT_FORM_FIELD, SLOT_STRING_INPUT,
  SLOT_INPUT_TYPE, SLOT_INPUT_PROPOSAL, SLOT_FILE, SLOT_DIRECTORY
}

Functions

const char * slot_name (const slot s)
void send (widget w, slot s)
template<class T1 >
void send (widget w, slot s, T1 val)
template<class T1 , class T2 >
void send (widget w, slot s, T1 val1, T2 val2)
template<class T1 , class T2 , class T3 >
void send (widget w, slot s, T1 val1, T2 val2, T3 val3)
template<class T1 , class T2 , class T3 , class T4 >
void send (widget w, slot s, T1 val1, T2 val2, T3 val3, T4 val4)
template<class T1 , class T2 , class T3 , class T4 , class T5 >
void send (widget w, slot s, T1 val1, T2 val2, T3 val3, T4 val4, T5 val5)
template<class T1 >
T1 query (widget w, slot s)
template<class T1 , class T2 >
void query (widget w, slot s, T1 &val1, T2 &val2)
template<class T1 , class T2 , class T3 >
void query (widget w, slot s, T1 &val1, T2 &val2, T3 &val3)
template<class T1 , class T2 , class T3 , class T4 >
void query (widget w, slot s, T1 &val1, T2 &val2, T3 &val3, T4 &val4)
template<class T1 , class T2 , class T3 , class T4 , class T5 >
void query (widget w, slot s, T1 &val1, T2 &val2, T3 &val3, T4 &val4, T5 &val5)
void notify (widget w, slot s)
template<class T1 >
void notify (widget w, slot s, T1 val)
template<class T1 , class T2 >
void notify (widget w, slot s, T1 val1, T2 val2)
widget read (widget w, slot s)
template<class T1 >
widget read (widget w, slot s, T1 i1)
void write (widget w, slot s, widget val)
template<class T1 >
void write (widget w, slot s, T1 i1, widget val)
void connect (widget w1, slot s1, widget w2, slot s2)
void deconnect (widget w1, slot s1, widget w2, slot s2)
int get_identifier (widget w)
bool is_attached (widget w)
void set_identifier (widget w, int id)
widget get_window (widget w)
renderer get_renderer (widget w)
void set_visibility (widget w, bool flag)
void set_full_screen (widget w, bool flag)
void set_name (widget w, string s)
void set_size (widget w, SI width, SI height)
void get_size (widget w, SI &width, SI &height)
void notify_size (widget w, SI new_width, SI new_height)
void set_position (widget w, SI x, SI y)
void get_position (widget w, SI &x, SI &y)
void notify_position (widget w, SI new_x, SI new_y)
void send_update (widget w)
void send_refresh (widget w)
void send_keyboard (widget w, string key, time_t t=0)
void send_keyboard_focus (widget w, bool get_focus=true)
void notify_keyboard_focus (widget w, bool has_focus)
bool query_keyboard_focus (widget w)
void send_mouse (widget w, string kind, SI x, SI y, int mods, time_t t)
void send_mouse_grab (widget w, bool get_grab)
void notify_mouse_grab (widget w, bool has_grab)
bool query_mouse_grab (widget w)
void send_mouse_pointer (widget w, string name, string mask_name="")
void send_invalidate_all (widget w)
void send_invalidate (widget w, SI x1, SI y1, SI x2, SI y2)
void send_repaint (widget w, SI x1, SI y1, SI x2, SI y2)
void send_delayed_message (widget w, string message, time_t delay)
void send_destroy (widget w)
void set_shrinking_factor (widget w, int sf)
void set_extents (widget w, SI x1, SI y1, SI x2, SI y2)
void get_extents (widget w, SI &x1, SI &y1, SI &x2, SI &y2)
void get_visible_part (widget w, SI &x1, SI &y1, SI &x2, SI &y2)
void set_scrollbars_visibility (widget w, int sb)
void set_scroll_position (widget w, SI x, SI y)
void get_scroll_position (widget w, SI &x, SI &y)
void set_scrollable (widget w, widget cv)
widget get_canvas (widget w)
void send_cursor (widget w, SI x1, SI y1)
void set_header_visibility (widget w, bool visible)
bool get_header_visibility (widget w)
void set_main_menu (widget w, widget bar)
void set_main_icons_visibility (widget w, bool visible)
bool get_main_icons_visibility (widget w)
void set_main_icons (widget w, widget bar)
void set_mode_icons_visibility (widget w, bool visible)
bool get_mode_icons_visibility (widget w)
void set_mode_icons (widget w, widget bar)
void set_focus_icons_visibility (widget w, bool visible)
bool get_focus_icons_visibility (widget w)
void set_focus_icons (widget w, widget bar)
void set_user_icons_visibility (widget w, bool visible)
bool get_user_icons_visibility (widget w)
void set_user_icons (widget w, widget bar)
void set_side_tools_visibility (widget w, bool visible)
bool get_side_tools_visibility (widget w)
void set_side_tools (widget w, widget bar)
void set_footer_visibility (widget w, bool visible)
bool get_footer_visibility (widget w)
void set_left_footer (widget w, string s)
void set_right_footer (widget w, string s)
void set_interactive_mode (widget w, bool on)
bool get_interactive_mode (widget w)
void set_interactive_prompt (widget w, widget prompt)
void set_interactive_input (widget w, widget input)
string get_interactive_input (widget w)
widget get_form_field (widget w, int i)
string get_string_input (widget w)
void set_string_input (widget w, string s)
void set_input_type (widget w, string s)
void add_input_proposal (widget w, string s)
void set_file (widget w, string s)
widget get_file (widget w)
void set_directory (widget w, string s)
widget get_directory (widget w)

Enumeration Type Documentation

enum slot_id
Enumerator:
SLOT_IDENTIFIER 
SLOT_WINDOW 
SLOT_RENDERER 
SLOT_VISIBILITY 
SLOT_FULL_SCREEN 
SLOT_NAME 
SLOT_SIZE 
SLOT_POSITION 
SLOT_UPDATE 
SLOT_REFRESH 
SLOT_KEYBOARD 
SLOT_KEYBOARD_FOCUS 
SLOT_MOUSE 
SLOT_MOUSE_GRAB 
SLOT_MOUSE_POINTER 
SLOT_INVALIDATE 
SLOT_INVALIDATE_ALL 
SLOT_REPAINT 
SLOT_DELAYED_MESSAGE 
SLOT_DESTROY 
SLOT_SHRINKING_FACTOR 
SLOT_EXTENTS 
SLOT_VISIBLE_PART 
SLOT_SCROLLBARS_VISIBILITY 
SLOT_SCROLL_POSITION 
SLOT_CANVAS 
SLOT_SCROLLABLE 
SLOT_CURSOR 
SLOT_HEADER_VISIBILITY 
SLOT_MAIN_MENU 
SLOT_MAIN_ICONS_VISIBILITY 
SLOT_MAIN_ICONS 
SLOT_MODE_ICONS_VISIBILITY 
SLOT_MODE_ICONS 
SLOT_FOCUS_ICONS_VISIBILITY 
SLOT_FOCUS_ICONS 
SLOT_USER_ICONS_VISIBILITY 
SLOT_USER_ICONS 
SLOT_SIDE_TOOLS_VISIBILITY 
SLOT_SIDE_TOOLS 
SLOT_FOOTER_VISIBILITY 
SLOT_LEFT_FOOTER 
SLOT_RIGHT_FOOTER 
SLOT_INTERACTIVE_MODE 
SLOT_INTERACTIVE_PROMPT 
SLOT_INTERACTIVE_INPUT 
SLOT_FORM_FIELD 
SLOT_STRING_INPUT 
SLOT_INPUT_TYPE 
SLOT_INPUT_PROPOSAL 
SLOT_FILE 
SLOT_DIRECTORY 

Definition at line 24 of file message.hpp.


Function Documentation

void add_input_proposal ( widget  w,
string  s 
) [inline]

Definition at line 674 of file message.hpp.

                                        {
  // add an extra proposal for input widget (e.g. from history)
  send<string> (w, SLOT_INPUT_PROPOSAL, s);
}

Here is the caller graph for this function:

void connect ( widget  w1,
slot  s1,
widget  w2,
slot  s2 
) [inline]

Definition at line 210 of file message.hpp.

                                                 {
  w1->connect (s1, w2, s2);
}

Here is the caller graph for this function:

void deconnect ( widget  w1,
slot  s1,
widget  w2,
slot  s2 
) [inline]

Definition at line 215 of file message.hpp.

                                                   {
  w1->deconnect (s1, w2, s2);
}
widget get_canvas ( widget  w) [inline]

Definition at line 468 of file message.hpp.

                      {
  // get the scrollable canvas itself
  return read (w, SLOT_CANVAS);
}

Here is the call graph for this function:

widget get_directory ( widget  w) [inline]

Definition at line 698 of file message.hpp.

                         {
  // get directory input widget
  return read (w, SLOT_DIRECTORY);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void get_extents ( widget  w,
SI x1,
SI y1,
SI x2,
SI y2 
) [inline]

Definition at line 432 of file message.hpp.

                                                       {
  // get extents of a canvas
  query<SI,SI,SI,SI> (w, SLOT_EXTENTS, x1, y1, x2, y2);
}

Here is the caller graph for this function:

widget get_file ( widget  w) [inline]

Definition at line 686 of file message.hpp.

                    {
  // get file input widget
  return read (w, SLOT_FILE);
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool get_focus_icons_visibility ( widget  w) [inline]

Definition at line 544 of file message.hpp.

                                      {
  // get visibility of focus dependent icons bar
  return query<bool> (w, SLOT_FOCUS_ICONS_VISIBILITY);
}

Here is the caller graph for this function:

bool get_footer_visibility ( widget  w) [inline]

Definition at line 598 of file message.hpp.

                                 {
  // get visibility of footer
  return query<bool> (w, SLOT_FOOTER_VISIBILITY);
}

Here is the caller graph for this function:

widget get_form_field ( widget  w,
int  i 
) [inline]

Definition at line 650 of file message.hpp.

                                 {
  // get the i-th input widget from a dialogue widget
  return read<int> (w, SLOT_FORM_FIELD, i);
}

Here is the caller graph for this function:

bool get_header_visibility ( widget  w) [inline]

Definition at line 490 of file message.hpp.

                                 {
  // get visibility of header (menu and icon bars)
  return query<bool> (w, SLOT_HEADER_VISIBILITY);
}

Here is the caller graph for this function:

int get_identifier ( widget  w) [inline]

Definition at line 224 of file message.hpp.

                          {
  // get low-level handle for the widget's window, as used by the OS
  // widgets which have not been attached to a window have a zero identifier
  return query<int> (w, SLOT_IDENTIFIER);
}

Here is the caller graph for this function:

Definition at line 640 of file message.hpp.

                                 {
  // set interactive input widget
  return query<string> (w, SLOT_INTERACTIVE_INPUT);
}

Here is the caller graph for this function:

bool get_interactive_mode ( widget  w) [inline]

Definition at line 622 of file message.hpp.

                                {
  // check whether footer is in interactive mode
  return query<bool> (w, SLOT_INTERACTIVE_MODE);
}

Here is the caller graph for this function:

bool get_main_icons_visibility ( widget  w) [inline]

Definition at line 508 of file message.hpp.

                                     {
  // get visibility of main icons bar
  return query<bool> (w, SLOT_MAIN_ICONS_VISIBILITY);
}

Here is the caller graph for this function:

bool get_mode_icons_visibility ( widget  w) [inline]

Definition at line 526 of file message.hpp.

                                     {
  // get visibility of mode dependent icons bar
  return query<bool> (w, SLOT_MODE_ICONS_VISIBILITY);
}

Here is the caller graph for this function:

void get_position ( widget  w,
SI x,
SI y 
) [inline]

Definition at line 299 of file message.hpp.

                                      {
  // get the position of the top left corner of the widget w
  // w.r.t. the top left of its parent widget
  query<SI,SI> (w, SLOT_POSITION, x, y);
}

Here is the caller graph for this function:

renderer get_renderer ( widget  w) [inline]

Definition at line 250 of file message.hpp.

                        {
  // get renderer associated to widget (or NULL if the widget is not attached)
  return query<renderer> (w, SLOT_RENDERER);
}

Here is the caller graph for this function:

void get_scroll_position ( widget  w,
SI x,
SI y 
) [inline]

Definition at line 456 of file message.hpp.

                                             {
  // get scroll position in a canvas
  query<SI,SI> (w, SLOT_SCROLL_POSITION, x, y);
}

Here is the caller graph for this function:

bool get_side_tools_visibility ( widget  w) [inline]

Definition at line 580 of file message.hpp.

                                     {
  // get visibility of user icons bar
  return query<bool> (w, SLOT_SIDE_TOOLS_VISIBILITY);
}

Here is the caller graph for this function:

void get_size ( widget  w,
SI width,
SI height 
) [inline]

Definition at line 280 of file message.hpp.

                                           {
  // get the current size of the widget
  query<SI,SI> (w, SLOT_SIZE, width, height);
}

Here is the caller graph for this function:

string get_string_input ( widget  w) [inline]

Definition at line 656 of file message.hpp.

                            {
  // get input string from input widget
  return query<string> (w, SLOT_STRING_INPUT);
}

Here is the caller graph for this function:

bool get_user_icons_visibility ( widget  w) [inline]

Definition at line 562 of file message.hpp.

                                     {
  // get visibility of user icons bar
  return query<bool> (w, SLOT_USER_ICONS_VISIBILITY);
}

Here is the caller graph for this function:

void get_visible_part ( widget  w,
SI x1,
SI y1,
SI x2,
SI y2 
) [inline]

Definition at line 438 of file message.hpp.

                                                            {
  // get visible part of a canvas
  query<SI,SI,SI,SI> (w, SLOT_VISIBLE_PART, x1, y1, x2, y2);
}

Here is the caller graph for this function:

widget get_window ( widget  w) [inline]

Definition at line 244 of file message.hpp.

                      {
  // get the top-level window widget in which the widget is embedded
  return read (w, SLOT_WINDOW);
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool is_attached ( widget  w) [inline]

Definition at line 231 of file message.hpp.

                       {
  // is the widget attached to some window?
  return get_identifier (w) != 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void notify ( widget  w,
slot  s 
) [inline]

Definition at line 174 of file message.hpp.

                          {
  w->notify (s, blackbox ());
}

Here is the caller graph for this function:

template<class T1 >
void notify ( widget  w,
slot  s,
T1  val 
) [inline]

Definition at line 179 of file message.hpp.

                                  {
  w->notify (s, close_box (val));
}

Here is the call graph for this function:

template<class T1 , class T2 >
void notify ( widget  w,
slot  s,
T1  val1,
T2  val2 
)

Definition at line 184 of file message.hpp.

                                            {
  typedef pair<T1,T2> T;
  w->notify (s, close_box<T> (T (val1, val2)));
}
void notify_keyboard_focus ( widget  w,
bool  has_focus 
) [inline]

Definition at line 340 of file message.hpp.

                                                 {
  // notify that the widget got or lost keyboard focus
  notify<bool> (w, SLOT_KEYBOARD_FOCUS, has_focus);
}

Here is the caller graph for this function:

void notify_mouse_grab ( widget  w,
bool  has_grab 
) [inline]

Definition at line 366 of file message.hpp.

                                            {
  // notify that the widget got or lost the mouse grab
  notify<bool> (w, SLOT_MOUSE_GRAB, has_grab);
}

Here is the caller graph for this function:

void notify_position ( widget  w,
SI  new_x,
SI  new_y 
) [inline]

Definition at line 306 of file message.hpp.

                                               {
  // notify a change in the position of the widget
  notify<SI,SI> (w, SLOT_POSITION, new_x, new_y);
}

Here is the caller graph for this function:

void notify_size ( widget  w,
SI  new_width,
SI  new_height 
) [inline]

Definition at line 286 of file message.hpp.

                                                    {
  // notify a size change for the widget
  notify<SI,SI> (w, SLOT_SIZE, new_width, new_height);
}

Here is the caller graph for this function:

template<class T1 >
T1 query ( widget  w,
slot  s 
) [inline]

Definition at line 141 of file message.hpp.

                         {
  return open_box<T1> (w->query (s, type_helper<T1>::id));
}

Here is the caller graph for this function:

template<class T1 , class T2 >
void query ( widget  w,
slot  s,
T1 &  val1,
T2 &  val2 
)

Definition at line 146 of file message.hpp.

                                             {
  typedef pair<T1,T2> T;
  T p= open_box<T> (w->query (s, type_helper<T>::id));
  val1= p.x1; val2= p.x2;
}
template<class T1 , class T2 , class T3 >
void query ( widget  w,
slot  s,
T1 &  val1,
T2 &  val2,
T3 &  val3 
)

Definition at line 153 of file message.hpp.

                                                       {
  typedef triple<T1,T2,T3> T;
  T t= open_box<T> (w->query (s, type_helper<T>::id));
  val1= t.x1; val2= t.x2; val3= t.x3;
}
template<class T1 , class T2 , class T3 , class T4 >
void query ( widget  w,
slot  s,
T1 &  val1,
T2 &  val2,
T3 &  val3,
T4 &  val4 
)

Definition at line 160 of file message.hpp.

                                                                 {
  typedef quartet<T1,T2,T3,T4> T;
  T q= open_box<T> (w->query (s, type_helper<T>::id));
  val1= q.x1; val2= q.x2; val3= q.x3; val4= q.x4;
}
template<class T1 , class T2 , class T3 , class T4 , class T5 >
void query ( widget  w,
slot  s,
T1 &  val1,
T2 &  val2,
T3 &  val3,
T4 &  val4,
T5 &  val5 
)

Definition at line 167 of file message.hpp.

                                                                           {
  typedef quintuple<T1,T2,T3,T4,T5> T;
  T q= open_box<T> (w->query (s, type_helper<T>::id));
  val1= q.x1; val2= q.x2; val3= q.x3; val4= q.x4; val5= q.x5;
}
bool query_keyboard_focus ( widget  w) [inline]

Definition at line 346 of file message.hpp.

                                {
  // does this widget have the keyboard focus?
  return query<bool> (w, SLOT_KEYBOARD_FOCUS);
}

Here is the caller graph for this function:

bool query_mouse_grab ( widget  w) [inline]

Definition at line 372 of file message.hpp.

                            {
  // does this widget have the mouse grab?
  return query<bool> (w, SLOT_MOUSE_GRAB);
}

Here is the caller graph for this function:

widget read ( widget  w,
slot  s 
) [inline]

Definition at line 190 of file message.hpp.

                        {
  return w->read (s, blackbox ());
}
template<class T1 >
widget read ( widget  w,
slot  s,
T1  i1 
) [inline]

Definition at line 195 of file message.hpp.

                               {
  return w->read (s, close_box (i1));
}

Here is the call graph for this function:

void send ( widget  w,
slot  s 
) [inline]

Definition at line 107 of file message.hpp.

                        {
  w->send (s, blackbox ());
}
template<class T1 >
void send ( widget  w,
slot  s,
T1  val 
) [inline]

Definition at line 112 of file message.hpp.

                                {
  w->send (s, close_box (val));
}

Here is the call graph for this function:

template<class T1 , class T2 >
void send ( widget  w,
slot  s,
T1  val1,
T2  val2 
)

Definition at line 117 of file message.hpp.

                                          {
  typedef pair<T1,T2> T;
  w->send (s, close_box<T> (T (val1, val2)));
}
template<class T1 , class T2 , class T3 >
void send ( widget  w,
slot  s,
T1  val1,
T2  val2,
T3  val3 
)

Definition at line 123 of file message.hpp.

                                                   {
  typedef triple<T1,T2,T3> T;
  w->send (s, close_box<T> (T (val1, val2, val3)));
}
template<class T1 , class T2 , class T3 , class T4 >
void send ( widget  w,
slot  s,
T1  val1,
T2  val2,
T3  val3,
T4  val4 
)

Definition at line 129 of file message.hpp.

                                                            {
  typedef quartet<T1,T2,T3,T4> T;
  w->send (s, close_box<T> (T (val1, val2, val3, val4)));
}
template<class T1 , class T2 , class T3 , class T4 , class T5 >
void send ( widget  w,
slot  s,
T1  val1,
T2  val2,
T3  val3,
T4  val4,
T5  val5 
)

Definition at line 135 of file message.hpp.

                                                                     {
  typedef quintuple<T1,T2,T3,T4,T5> T;
  w->send (s, close_box<T> (T (val1, val2, val3, val4, val5)));
}
void send_cursor ( widget  w,
SI  x1,
SI  y1 
) [inline]

Definition at line 474 of file message.hpp.

                                     {
  // send current cursor coordinates
  send<SI,SI> (w, SLOT_CURSOR, x1, y1);
}

Here is the caller graph for this function:

void send_delayed_message ( widget  w,
string  message,
time_t  delay 
) [inline]

Definition at line 404 of file message.hpp.

                                                              {
  // send a message to w which will only be received after a given delay
  send<string,time_t> (w, SLOT_DELAYED_MESSAGE, message, delay);
}

Here is the caller graph for this function:

void send_destroy ( widget  w) [inline]

Definition at line 410 of file message.hpp.

                        {
  // request a widget to be destroyed
  send (w, SLOT_DESTROY);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void send_invalidate ( widget  w,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [inline]

Definition at line 390 of file message.hpp.

                                                       {
  // invalidate a region so that it will be repaint at a next iteration;
  // the region is specified w.r.t. the top left corner of w
  send<SI,SI,SI,SI> (w, SLOT_INVALIDATE, x1, y1, x2, y2);
}

Here is the caller graph for this function:

void send_invalidate_all ( widget  w) [inline]

Definition at line 384 of file message.hpp.

                               {
  // invalidate the widget so that it will be repaint at a next iteration
  send (w, SLOT_INVALIDATE_ALL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void send_keyboard ( widget  w,
string  key,
time_t  t = 0 
) [inline]

Definition at line 328 of file message.hpp.

                                                  {
  // send a key press event
  send<string,time_t> (w, SLOT_KEYBOARD, key, t);
}

Here is the caller graph for this function:

void send_keyboard_focus ( widget  w,
bool  get_focus = true 
) [inline]

Definition at line 334 of file message.hpp.

                                                     {
  // request the keyboard focus for a widget
  send<bool> (w, SLOT_KEYBOARD_FOCUS, get_focus);
}

Here is the caller graph for this function:

void send_mouse ( widget  w,
string  kind,
SI  x,
SI  y,
int  mods,
time_t  t 
) [inline]

Definition at line 352 of file message.hpp.

                                                                   {
  // send a mouse event of a given kind at position (x, y) and time t
  // mods corresponds to active buttons and keyboard modifiers at time t
  // the position is specified w.r.t. the top left corner of w
  send<string,SI,SI,int,time_t> (w, SLOT_MOUSE, kind, x, y, mods, t);
}

Here is the caller graph for this function:

void send_mouse_grab ( widget  w,
bool  get_grab 
) [inline]

Definition at line 360 of file message.hpp.

                                          {
  // request a mouse grab for the widget
  send<bool> (w, SLOT_MOUSE_GRAB, get_grab);
}

Here is the caller graph for this function:

void send_mouse_pointer ( widget  w,
string  name,
string  mask_name = "" 
) [inline]

Definition at line 378 of file message.hpp.

                                                                 {
  // request a permanent change for the mouse pointer
  send<string,string> (w, SLOT_MOUSE_POINTER, name, mask_name);
}

Here is the caller graph for this function:

void send_refresh ( widget  w) [inline]

Definition at line 320 of file message.hpp.

                        {
  // this message is issued if the contents of one of the dynamic
  // subwidgets (as constructed using refresh_widget) of w
  // may have changed and needs to be recomputed
  send (w, SLOT_REFRESH);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void send_repaint ( widget  w,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [inline]

Definition at line 397 of file message.hpp.

                                                    {
  // request widget to repaint a region;
  // the region is specified w.r.t. the top left corner of w
  send<SI,SI,SI,SI> (w, SLOT_REPAINT, x1, y1, x2, y2);
}

Here is the caller graph for this function:

void send_update ( widget  w) [inline]

Definition at line 312 of file message.hpp.

                       {
  // this message is issued if the contents of w or a subwidget of w
  // has changed in such a way that the geometries of w and its subwidgets
  // may need to be adjusted. Example: a change of the current output language
  send (w, SLOT_UPDATE);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_directory ( widget  w,
string  s 
) [inline]

Definition at line 692 of file message.hpp.

                                   {
  // set current directory of directory chooser widget
  send<string> (w, SLOT_DIRECTORY, s);
}

Here is the caller graph for this function:

void set_extents ( widget  w,
SI  x1,
SI  y1,
SI  x2,
SI  y2 
) [inline]

Definition at line 426 of file message.hpp.

                                                   {
  // set extents of a canvas
  send<SI,SI,SI,SI> (w, SLOT_EXTENTS, x1, y1, x2, y2);
}

Here is the caller graph for this function:

void set_file ( widget  w,
string  s 
) [inline]

Definition at line 680 of file message.hpp.

                              {
  // set current file of file chooser widget
  send<string> (w, SLOT_FILE, s);
}

Here is the caller graph for this function:

void set_focus_icons ( widget  w,
widget  bar 
) [inline]

Definition at line 550 of file message.hpp.

                                       {
  // set focus dependent icons bar
  write (w, SLOT_FOCUS_ICONS, bar);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_focus_icons_visibility ( widget  w,
bool  visible 
) [inline]

Definition at line 538 of file message.hpp.

                                                    {
  // set visibility of focus dependent icons bar
  send<bool> (w, SLOT_FOCUS_ICONS_VISIBILITY, visible);
}

Here is the caller graph for this function:

void set_footer_visibility ( widget  w,
bool  visible 
) [inline]

Definition at line 592 of file message.hpp.

                                               {
  // set visibility of footer
  send<bool> (w, SLOT_FOOTER_VISIBILITY, visible);
}

Here is the caller graph for this function:

void set_full_screen ( widget  w,
bool  flag 
) [inline]

Definition at line 262 of file message.hpp.

                                      {
  // set or reset full screen mode for a window widget
  send<bool> (w, SLOT_FULL_SCREEN, flag);
}

Here is the caller graph for this function:

void set_header_visibility ( widget  w,
bool  visible 
) [inline]

Definition at line 484 of file message.hpp.

                                               {
  // set visibility of header (menu and icon bars)
  send<bool> (w, SLOT_HEADER_VISIBILITY, visible);
}

Here is the caller graph for this function:

void set_identifier ( widget  w,
int  id 
) [inline]

Definition at line 237 of file message.hpp.

                                  {
  // attach a widget w to the window given by its low-level identifier id
  // if id=0, then the widget is detached from its underlying window
  return send<int> (w, SLOT_IDENTIFIER, id);
}

Here is the caller graph for this function:

void set_input_type ( widget  w,
string  s 
) [inline]

Definition at line 668 of file message.hpp.

                                    {
  // set the type of an input field
  send<string> (w, SLOT_INPUT_TYPE, s);
}

Here is the caller graph for this function:

void set_interactive_input ( widget  w,
widget  input 
) [inline]

Definition at line 634 of file message.hpp.

                                               {
  // set interactive input widget
  write (w, SLOT_INTERACTIVE_INPUT, input);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_interactive_mode ( widget  w,
bool  on 
) [inline]

Definition at line 616 of file message.hpp.

                                         {
  // set interactive mode, allowing users to input text on footer
  send<bool> (w, SLOT_INTERACTIVE_MODE, on);
}
void set_interactive_prompt ( widget  w,
widget  prompt 
) [inline]

Definition at line 628 of file message.hpp.

                                                 {
  // set prompt for interactive input
  write (w, SLOT_INTERACTIVE_PROMPT, prompt);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_left_footer ( widget  w,
string  s 
) [inline]

Definition at line 604 of file message.hpp.

                                     {
  // set left footer
  send<string> (w, SLOT_LEFT_FOOTER, s);
}

Here is the caller graph for this function:

void set_main_icons ( widget  w,
widget  bar 
) [inline]

Definition at line 514 of file message.hpp.

                                      {
  // set main icons bar
  write (w, SLOT_MAIN_ICONS, bar);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_main_icons_visibility ( widget  w,
bool  visible 
) [inline]

Definition at line 502 of file message.hpp.

                                                   {
  // set visibility of main icons bar
  send<bool> (w, SLOT_MAIN_ICONS_VISIBILITY, visible);
}

Here is the caller graph for this function:

void set_main_menu ( widget  w,
widget  bar 
) [inline]

Definition at line 496 of file message.hpp.

                                     {
  // set main menu bar
  write (w, SLOT_MAIN_MENU, bar);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_mode_icons ( widget  w,
widget  bar 
) [inline]

Definition at line 532 of file message.hpp.

                                      {
  // set mode dependent icons bar
  write (w, SLOT_MODE_ICONS, bar);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_mode_icons_visibility ( widget  w,
bool  visible 
) [inline]

Definition at line 520 of file message.hpp.

                                                   {
  // set visibility of mode dependent icons bar
  send<bool> (w, SLOT_MODE_ICONS_VISIBILITY, visible);
}

Here is the caller graph for this function:

void set_name ( widget  w,
string  s 
) [inline]

Definition at line 268 of file message.hpp.

                              {
  // set the name of a widget (usually a window)
  send<string> (w, SLOT_NAME, s);
}

Here is the caller graph for this function:

void set_position ( widget  w,
SI  x,
SI  y 
) [inline]

Definition at line 292 of file message.hpp.

                                    {
  // set the position of the top left corner of the widget w
  // w.r.t. the top left of its parent widget
  send<SI,SI> (w, SLOT_POSITION, x, y);
}

Here is the caller graph for this function:

void set_right_footer ( widget  w,
string  s 
) [inline]

Definition at line 610 of file message.hpp.

                                      {
  // set right footer
  send<string> (w, SLOT_RIGHT_FOOTER, s);
}

Here is the caller graph for this function:

void set_scroll_position ( widget  w,
SI  x,
SI  y 
) [inline]

Definition at line 450 of file message.hpp.

                                           {
  // set scroll position in a canvas
  send<SI,SI> (w, SLOT_SCROLL_POSITION, x, y);
}

Here is the caller graph for this function:

void set_scrollable ( widget  w,
widget  cv 
) [inline]

Definition at line 462 of file message.hpp.

                                     {
  // set the scrollable canvas itself
  write (w, SLOT_SCROLLABLE, cv);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_scrollbars_visibility ( widget  w,
int  sb 
) [inline]

Definition at line 444 of file message.hpp.

                                             {
  // set visibility of scrollbars
  send<int> (w, SLOT_SCROLLBARS_VISIBILITY, sb);
}

Here is the caller graph for this function:

void set_shrinking_factor ( widget  w,
int  sf 
) [inline]

Definition at line 420 of file message.hpp.

                                        {
  // set shrinking factor for canvas
  send<int> (w, SLOT_SHRINKING_FACTOR, sf);
}
void set_side_tools ( widget  w,
widget  bar 
) [inline]

Definition at line 586 of file message.hpp.

                                      {
  // set user icons bar
  write (w, SLOT_SIDE_TOOLS, bar);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_side_tools_visibility ( widget  w,
bool  visible 
) [inline]

Definition at line 574 of file message.hpp.

                                                   {
  // set visibility of user icons bar
  send<bool> (w, SLOT_SIDE_TOOLS_VISIBILITY, visible);
}

Here is the caller graph for this function:

void set_size ( widget  w,
SI  width,
SI  height 
) [inline]

Definition at line 274 of file message.hpp.

                                         {
  // set the current size of the widget
  send<SI,SI> (w, SLOT_SIZE, width, height);
}

Here is the caller graph for this function:

void set_string_input ( widget  w,
string  s 
) [inline]

Definition at line 662 of file message.hpp.

                                      {
  // set default input string of input widget
  send<string> (w, SLOT_STRING_INPUT, s);
}

Here is the caller graph for this function:

void set_user_icons ( widget  w,
widget  bar 
) [inline]

Definition at line 568 of file message.hpp.

                                      {
  // set user icons bar
  write (w, SLOT_USER_ICONS, bar);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_user_icons_visibility ( widget  w,
bool  visible 
) [inline]

Definition at line 556 of file message.hpp.

                                                   {
  // set visibility of user icons bar
  send<bool> (w, SLOT_USER_ICONS_VISIBILITY, visible);
}

Here is the caller graph for this function:

void set_visibility ( widget  w,
bool  flag 
) [inline]

Definition at line 256 of file message.hpp.

                                     {
  // map or unmap a window widget
  send<bool> (w, SLOT_VISIBILITY, flag);
}

Here is the caller graph for this function:

const char* slot_name ( const slot  s)

Definition at line 22 of file widget.cpp.

                         { 
  const char * slot_names[]= {
    "SLOT_IDENTIFIER",
    "SLOT_WINDOW",
    "SLOT_RENDERER",
    "SLOT_VISIBILITY",
    "SLOT_FULL_SCREEN",
    "SLOT_NAME",
    "SLOT_SIZE",
    "SLOT_POSITION",
    "SLOT_UPDATE",
    "SLOT_REFRESH",
    "SLOT_KEYBOARD",
    "SLOT_KEYBOARD_FOCUS",
    "SLOT_MOUSE",
    "SLOT_MOUSE_GRAB",
    "SLOT_MOUSE_POINTER",
    "SLOT_INVALIDATE",
    "SLOT_INVALIDATE_ALL",
    "SLOT_REPAINT",
    "SLOT_DELAYED_MESSAGE",
    "SLOT_DESTROY",
    
    "SLOT_SHRINKING_FACTOR",
    "SLOT_EXTENTS",
    "SLOT_VISIBLE_PART",
    "SLOT_SCROLLBARS_VISIBILITY",
    "SLOT_SCROLL_POSITION",
    "SLOT_CANVAS",
    "SLOT_SCROLLABLE",
    "SLOT_CURSOR",
    
    "SLOT_HEADER_VISIBILITY",
    "SLOT_MAIN_MENU",
    "SLOT_MAIN_ICONS_VISIBILITY",
    "SLOT_MAIN_ICONS",
    "SLOT_MODE_ICONS_VISIBILITY",
    "SLOT_MODE_ICONS",
    "SLOT_FOCUS_ICONS_VISIBILITY",
    "SLOT_FOCUS_ICONS",
    "SLOT_USER_ICONS_VISIBILITY",
    "SLOT_USER_ICONS",
    "SLOT_FOOTER_VISIBILITY",
    "SLOT_LEFT_FOOTER",
    "SLOT_RIGHT_FOOTER",
    "SLOT_INTERACTIVE_MODE",
    "SLOT_INTERACTIVE_PROMPT",
    "SLOT_INTERACTIVE_INPUT",
    
    "SLOT_FORM_FIELD",
    "SLOT_STRING_INPUT",
    "SLOT_INPUT_TYPE",
    "SLOT_INPUT_PROPOSAL",
    "SLOT_FILE",
    "SLOT_DIRECTORY"
  };
  
  return slot_names[s.sid]; 
}

Here is the caller graph for this function:

void write ( widget  w,
slot  s,
widget  val 
) [inline]

Definition at line 200 of file message.hpp.

                                     {
  w->write (s, blackbox (), val);
}
template<class T1 >
void write ( widget  w,
slot  s,
T1  i1,
widget  val 
) [inline]

Definition at line 205 of file message.hpp.

                                            {
  w->write (s, close_box (i1), val);
}

Here is the call graph for this function: