Back to index

texmacs  1.0.7.15
Functions | Variables
x_window.cpp File Reference
#include "X11/x_window.hpp"
#include "message.hpp"

Go to the source code of this file.

Functions

Window get_Window (widget w)
x_window get_x_window (widget w)
int get_identifier (window w)
window get_window (int id)
tm_ostreamoperator<< (tm_ostream &out, message m)
static list< messageinsert_message (list< message > l, widget wid, string s, time_t cur, time_t t)
window popup_window (widget w, string name, SI min_w, SI min_h, SI def_w, SI def_h, SI max_w, SI max_h)
window plain_window (widget w, string name, SI min_w, SI min_h, SI def_w, SI def_h, SI max_w, SI max_h)

Variables

int nr_windows
hashmap< Window, pointerWindow_to_window (NULL)

Function Documentation

int get_identifier ( window  w)

Definition at line 222 of file x_window.cpp.

                          {
  if (w == NULL) return 0;
  else return (int) (((x_window) w) -> win);
}
Window get_Window ( widget  w)

Definition at line 205 of file x_window.cpp.

                      {
  int id= get_identifier (w);
  if (id == 0) {
    cerr << "\nwidget = " << w << "\n";
    FAILED ("widget is not attached to a window");
  }
  return (Window) id;
}

Here is the call graph for this function:

Here is the caller graph for this function:

window get_window ( int  id)

Definition at line 228 of file x_window.cpp.

                    {
  if (id == 0) return NULL;
  else return (window) ((x_window) Window_to_window[(Window) id]);
}

Definition at line 215 of file x_window.cpp.

                        {
  int id= get_identifier (w);
  if (id == 0) return NULL;
  else return (x_window) Window_to_window[(Window) id];
}

Here is the call graph for this function:

Here is the caller graph for this function:

static list<message> insert_message ( list< message l,
widget  wid,
string  s,
time_t  cur,
time_t  t 
) [static]

Definition at line 503 of file x_window.cpp.

                                                                             {
  if (is_nil (l)) return list<message> (message (wid, s, t));
  time_t ref= l->item->t;
  if ((t-cur) <= (ref-cur)) return list<message> (message (wid, s, t), l);
  return list<message> (l->item, insert_message (l->next, wid, s, cur, t));
}

Here is the call graph for this function:

Here is the caller graph for this function:

tm_ostream& operator<< ( tm_ostream out,
message  m 
)

Definition at line 497 of file x_window.cpp.

                                         {
  return out << "message " << m->s << " to " << m->wid
            << "at time " << m->t << "\n";
}
window plain_window ( widget  w,
string  name,
SI  min_w,
SI  min_h,
SI  def_w,
SI  def_h,
SI  max_w,
SI  max_h 
)

Definition at line 573 of file x_window.cpp.

{
  char* _name= as_charp (name);
  window win= tm_new<x_window_rep> (w, the_gui, _name,
                                min_w, min_h, def_w, def_h, max_w, max_h);
  tm_delete_array (_name);
  return win;
}

Here is the call graph for this function:

Here is the caller graph for this function:

window popup_window ( widget  w,
string  name,
SI  min_w,
SI  min_h,
SI  def_w,
SI  def_h,
SI  max_w,
SI  max_h 
)

Definition at line 562 of file x_window.cpp.

{
  char* _name= as_charp (name);
  window win= tm_new<x_window_rep> (w, the_gui, (char*) NULL,
                                min_w, min_h, def_w, def_h, max_w, max_h);
  tm_delete_array (_name);
  return win;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 27 of file aqua_gui.mm.