Back to index

texmacs  1.0.7.15
Classes | Defines | Typedefs | Functions | Variables
x_gui.hpp File Reference
#include "timer.hpp"
#include "gui.hpp"
#include "widget.hpp"
#include "array.hpp"
#include "hashmap.hpp"
#include <X11/Xlib.h>
#include <X11/X.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
#include <X11/keysym.h>
#include <X11/Sunkeysym.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  x_character_rep
class  x_character
struct  message_rep
class  message
class  x_gui_rep

Defines

#define XK_CYRILLIC
#define CONVERT(c)   (true_color? (c & 0xffffff): gui->cmap [c & 0xffffff])

Typedefs

typedef x_gui_repx_gui
typedef x_window_repx_window

Functions

color blend (color fg, color bg)
 CONCRETE_CODE (x_character)
bool operator== (x_character xc1, x_character xc2)
bool operator!= (x_character xc1, x_character xc2)
int hash (x_character xc)
 CONCRETE_CODE (message)
tm_ostreamoperator<< (tm_ostream &out, message m)

Variables

x_gui the_gui
bool true_color

Define Documentation

#define CONVERT (   c)    (true_color? (c & 0xffffff): gui->cmap [c & 0xffffff])

Definition at line 38 of file x_gui.hpp.

#define XK_CYRILLIC

Definition at line 27 of file x_gui.hpp.


Typedef Documentation

typedef x_gui_rep* x_gui

Definition at line 22 of file x_gui.hpp.

Definition at line 24 of file x_gui.hpp.


Function Documentation

color blend ( color  fg,
color  bg 
)

Definition at line 229 of file x_init.cpp.

                           {
  if (((fg >> 24) & 255) == 255) return fg;
  int fR, fG, fB, fA, bR, bG, bB, bA;
  get_rgb_color (fg, fR, fG, fB, fA);
  get_rgb_color (bg, bR, bG, bB, bA);
  fR= (bR * (255 - fA) + fR * fA) / 255;
  fG= (bG * (255 - fA) + fG * fA) / 255;
  fB= (bB * (255 - fA) + fB * fA) / 255;
  return rgb_color (fR, fG, fB);
}

Here is the call graph for this function:

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 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); }
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";
}
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); }

Variable Documentation

Definition at line 25 of file aqua_gui.mm.

bool true_color

Definition at line 29 of file x_init.cpp.