Back to index

texmacs  1.0.7.15
Defines | Typedefs | Functions | Variables
x_loop.cpp File Reference
#include "X11/x_gui.hpp"
#include "X11/x_window.hpp"
#include "iterator.hpp"
#include "converter.hpp"
#include "tm_link.hpp"
#include "message.hpp"
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>

Go to the source code of this file.

Defines

#define MIN_DELAY   10
#define MAX_DELAY   1000
#define SLEEP_AFTER   120000

Typedefs

typedef const char * charp

Functions

static void synchronize_time (Time t)
static time_t remote_time (Time t)
void gui_interpose (void(*r)(void))

Variables

hashmap< Window, pointerWindow_to_window
int nr_windows = 0
int alt_mask = 0
int meta_mask = 0
static int kbd_count = 0
static bool request_partial_redraw = false
static bool time_initialized = false
static time_t time_difference = 0
charp event_name []
static void(* the_interpose_handler )(void) = NULL

Define Documentation

#define MAX_DELAY   1000

Definition at line 342 of file x_loop.cpp.

#define MIN_DELAY   10

Definition at line 341 of file x_loop.cpp.

#define SLEEP_AFTER   120000

Definition at line 343 of file x_loop.cpp.


Typedef Documentation

typedef const char* charp

Definition at line 129 of file x_loop.cpp.


Function Documentation

void gui_interpose ( void(*)(void)  r)

Definition at line 339 of file x_loop.cpp.

Here is the caller graph for this function:

static time_t remote_time ( Time  t) [static]

Definition at line 65 of file x_loop.cpp.

                     {
  return ((time_t) t) + time_difference;
}

Here is the caller graph for this function:

static void synchronize_time ( Time  t) [static]

Definition at line 49 of file x_loop.cpp.

                          {
  if (time_initialized && time_difference == 0) return;
  time_t d= texmacs_time () - ((time_t) t);
  if (time_initialized) {
    if (d < time_difference)
      time_difference= d;
  }
  else {
    time_initialized= true;
    time_difference = d;
  }
  if (-1000 <= time_difference && time_difference <= 1000)
    time_difference= 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

int alt_mask = 0

Definition at line 35 of file x_loop.cpp.

Definition at line 131 of file x_loop.cpp.

int kbd_count = 0 [static]

Definition at line 38 of file x_loop.cpp.

int meta_mask = 0

Definition at line 36 of file x_loop.cpp.

int nr_windows = 0

Definition at line 34 of file x_loop.cpp.

bool request_partial_redraw = false [static]

Definition at line 39 of file x_loop.cpp.

void(* the_interpose_handler)(void) = NULL [static]

Definition at line 338 of file x_loop.cpp.

time_t time_difference = 0 [static]

Definition at line 46 of file x_loop.cpp.

bool time_initialized = false [static]

Definition at line 45 of file x_loop.cpp.