Back to index

texmacs  1.0.7.15
Functions | Variables
x_gui.cpp File Reference
#include "timer.hpp"
#include "dictionary.hpp"
#include "X11/x_gui.hpp"
#include "X11/x_drawable.hpp"
#include "X11/x_window.hpp"
#include "image_files.hpp"
#include <X11/cursorfont.h>
#include "message.hpp"

Go to the source code of this file.

Functions

bool operator== (x_character xc1, x_character xc2)
bool operator!= (x_character xc1, x_character xc2)
int hash (x_character xc)
Bool my_selnotify_predicate (Display *dpy, XEvent *ev, XPointer arg)
bool set_selection (string key, tree t, string s, string format)
bool get_selection (string key, tree &t, string &s, string format)
void clear_selection (string key)
static int fetch_X11_cursor_no (string name)
void beep ()
void show_help_balloon (widget wid, SI x, SI y)
void show_wait_indicator (widget w, string message, string arg)
void external_event (string type, time_t t)
void needs_update ()
bool check_event (int type)

Variables

hashmap< Window, pointerWindow_to_window

Function Documentation

void beep ( )

Definition at line 607 of file x_gui.cpp.

        {
#ifdef OS_WIN32
  XBeep ();
#else
  cerr << '\a';
#endif
}

Here is the caller graph for this function:

bool check_event ( int  type)

Definition at line 635 of file x_gui.cpp.

                       {
  return the_gui->check_event (type);
}

Here is the caller graph for this function:

void clear_selection ( string  key)

Definition at line 307 of file x_gui.cpp.

                             {
  the_gui->clear_selection (key);
}

Here is the caller graph for this function:

void external_event ( string  type,
time_t  t 
)

Definition at line 626 of file x_gui.cpp.

                                       {
  the_gui->external_event (type, t);
}
static int fetch_X11_cursor_no ( string  name) [static]

Definition at line 317 of file x_gui.cpp.

                                  {
  string pref= name(0,3);
  if (pref!="XC_") return -1;
  name= name (3,N(name));
  switch (name[0]) {
    case 'X':
      if (name=="X_cursor") return XC_X_cursor;
    break;
    case 'a':
      if (name=="arrow") return XC_arrow;
    break;
    case 'b':
      if (name=="based_arrow_down") return XC_based_arrow_down;
      if (name=="based_arrow_up") return XC_based_arrow_up;
      if (name=="boat") return XC_boat;
      if (name=="bogosity") return XC_bogosity;
      if (name=="bottom_left_corner") return XC_bottom_left_corner;
      if (name=="bottom_right_corner") return XC_bottom_right_corner;
      if (name=="bottom_side") return XC_bottom_side;
      if (name=="bottom_tee") return XC_bottom_tee;
      if (name=="box_spiral") return XC_box_spiral;
    break;
    case 'c':
      if (name=="center_ptr") return XC_center_ptr;
      if (name=="circle") return XC_circle;
      if (name=="clock") return XC_clock;
      if (name=="coffee_mug") return XC_coffee_mug;
      if (name=="cross") return XC_cross;
      if (name=="cross_reverse") return XC_cross_reverse;
      if (name=="crosshair") return XC_crosshair;
    break;
    case 'd':
      if (name=="diamond_cross") return XC_diamond_cross;
      if (name=="dot") return XC_dot;
      if (name=="dotbox") return XC_dotbox;
      if (name=="double_arrow") return XC_double_arrow;
      if (name=="draft_large") return XC_draft_large;
      if (name=="draft_small") return XC_draft_small;
      if (name=="draped_box") return XC_draped_box;
    break;
    case 'e':
      if (name=="exchange") return XC_exchange;
    break;
    case 'f':
      if (name=="fleur") return XC_fleur;
    break;
    case 'g':
      if (name=="gobbler") return XC_gobbler;
      if (name=="gumby") return XC_gumby;
    break;
    case 'h':
      if (name=="hand1") return XC_hand1;
      if (name=="hand2") return XC_hand2;
      if (name=="heart") return XC_heart;
    break;
    case 'i':
      if (name=="icon") return XC_icon;
      if (name=="iron_cross") return XC_iron_cross;
    break;
    case 'l':
      if (name=="left_ptr") return XC_left_ptr;
      if (name=="left_side") return XC_left_side;
      if (name=="left_tee") return XC_left_tee;
      if (name=="leftbutton") return XC_leftbutton;
      if (name=="ll_angle") return XC_ll_angle;
      if (name=="lr_angle") return XC_lr_angle;
    break;
    case 'm':
      if (name=="man") return XC_man;
      if (name=="middlebutton") return XC_middlebutton;
      if (name=="mouse") return XC_mouse;
    break;
    case 'p':
      if (name=="pencil") return XC_pencil;
      if (name=="pirate") return XC_pirate;
      if (name=="plus") return XC_plus;
    break;
    case 'q':
      if (name=="question_arrow") return XC_question_arrow;
    break;
    case 'r':
      if (name=="right_ptr") return XC_right_ptr;
      if (name=="right_side") return XC_right_side;
      if (name=="right_tee") return XC_right_tee;
      if (name=="rightbutton") return XC_rightbutton;
      if (name=="rtl_logo") return XC_rtl_logo;
    break;
    case 's':
      if (name=="sailboat") return XC_sailboat;
      if (name=="sb_down_arrow") return XC_sb_down_arrow;
      if (name=="sb_h_double_arrow") return XC_sb_h_double_arrow;
      if (name=="sb_left_arrow") return XC_sb_left_arrow;
      if (name=="sb_right_arrow") return XC_sb_right_arrow;
      if (name=="sb_up_arrow") return XC_sb_up_arrow;
      if (name=="sb_v_double_arrow") return XC_sb_v_double_arrow;
      if (name=="shuttle") return XC_shuttle;
      if (name=="sizing") return XC_sizing;
      if (name=="spider") return XC_spider;
      if (name=="spraycan") return XC_spraycan;
      if (name=="star") return XC_star;
    break;
    case 't':
      if (name=="target") return XC_target;
      if (name=="tcross") return XC_tcross;
      if (name=="top_left_arrow") return XC_top_left_arrow;
      if (name=="top_left_corner") return XC_top_left_corner;
      if (name=="top_right_corner") return XC_top_right_corner;
      if (name=="top_side") return XC_top_side;
      if (name=="top_tee") return XC_top_tee;
      if (name=="trek") return XC_trek;
    break;
    case 'u':
      if (name=="ul_angle") return XC_ul_angle;
      if (name=="umbrella") return XC_umbrella;
      if (name=="ur_angle") return XC_ur_angle;
    break;
    case 'w':
      if (name=="watch") return XC_watch;
    break;
    case 'x':
      if (name=="xterm") return XC_xterm;
    break;
  }
  return -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool get_selection ( string  key,
tree t,
string s,
string  format 
)

Definition at line 301 of file x_gui.cpp.

                                                              {
  (void) format;
  return the_gui->get_selection (key, t, s);
}

Here is the caller graph for this function:

int hash ( x_character  xc)

Definition at line 49 of file x_gui.cpp.

                          {
  return xc->c ^ ((intptr_t) xc->fng.rep) ^ xc->fg ^ xc->bg ^ xc->sf; }
Bool my_selnotify_predicate ( Display *  dpy,
XEvent *  ev,
XPointer  arg 
)

Definition at line 196 of file x_gui.cpp.

                                                                { (void) dpy;
  x_window win= (x_window) arg;
  return (win->win==ev->xany.window) && (ev->type==SelectionNotify);
}

Here is the caller graph for this function:

void needs_update ( )

Definition at line 631 of file x_gui.cpp.

                {
}

Here is the caller graph for this function:

bool operator!= ( x_character  xc1,
x_character  xc2 
)

Definition at line 44 of file x_gui.cpp.

                                                    {
  return
    (xc1->c!=xc2->c) || (xc1->fng.rep!=xc2->fng.rep) ||
    (xc1->sf!=xc2->sf) || (xc1->fg!=xc2->fg) || (xc1->bg!=xc2->bg); }
bool operator== ( x_character  xc1,
x_character  xc2 
)

Definition at line 39 of file x_gui.cpp.

                                                    {
  return
    (xc1->c==xc2->c) && (xc1->fng.rep==xc2->fng.rep) &&
    (xc1->sf==xc2->sf) && (xc1->fg==xc2->fg) && (xc1->bg==xc2->bg); }
bool set_selection ( string  key,
tree  t,
string  s,
string  format 
)

Definition at line 295 of file x_gui.cpp.

                                                            {
  (void) format;
  return the_gui->set_selection (key, t, s);
}
void show_help_balloon ( widget  wid,
SI  x,
SI  y 
)

Definition at line 616 of file x_gui.cpp.

                                           {
  the_gui->show_help_balloon (wid, x, y);
}

Here is the caller graph for this function:

void show_wait_indicator ( widget  w,
string  message,
string  arg 
)

Definition at line 621 of file x_gui.cpp.

                                                           {
  the_gui->show_wait_indicator (w, message, arg);
}

Here is the caller graph for this function:


Variable Documentation