~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Plugins/X11/x_drawable.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA, Kamaraju Kusumanchi, kohda
  • Date: 2009-04-26 19:35:14 UTC
  • mfrom: (1.1.10 upstream) (4.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090426193514-9yo3oggdslgdls4b
Tags: 1:1.0.7.2-1
[Kamaraju Kusumanchi <kamaraju@gmail.com>]
* New upstream release
* texmacs crashes if /usr/share/texmacs/TeXmacs/misc/pixmaps/unknown.ps
  is not present. Do not remove it. (Closes: #484073, #497021)
* update patches 03_mupad.dpatch, 04_axiom.dpatch, 11-desktop-file.dpatch
* fix the mime problem in gnome. Thanks to Andrea Gamba for the fix.
[kohda]
* Refined a fix for the mime problem in gnome a bit.
* Try to fix /bin/sh problem (debian/fixsh) but it is not complete fix yet.
* Try to fix hard coded settings for ipa fonts(patches/09_ipa.dpatch), 
  especially for Debian where no ipa fonts exist yet.
* Fixed obsolete Build-Depends: changed libltdl3-dev to 
  libltdl-dev | libltdl7-dev (the latter for Ubuntu?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
* DESCRIPTION: Drawables under X11
5
5
* COPYRIGHT  : (C) 1999  Joris van der Hoeven
6
6
*******************************************************************************
7
 
* This software falls under the GNU general public license and comes WITHOUT
8
 
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
9
 
* If you don't have this file, write to the Free Software Foundation, Inc.,
10
 
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7
* This software falls under the GNU general public license version 3 or later.
 
8
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
 
9
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
11
10
******************************************************************************/
12
11
 
13
12
#ifndef X_DRAWABLE_H
22
21
* The x_drawable class
23
22
******************************************************************************/
24
23
 
25
 
class x_drawable_rep: virtual public renderer_rep {
26
 
  x_gui     gui;
27
 
  Display*  dpy;
28
 
  Drawable  win;
29
 
  int       w, h;
30
 
  GC        gc;
31
 
  color     cur_fg, cur_bg;
 
24
class x_window_rep;
 
25
class x_drawable_rep: public renderer_rep {
 
26
  x_gui          gui;
 
27
  Display*       dpy;
 
28
  Drawable       win;
 
29
  x_window_rep*  x_win;
 
30
  int            w, h;
 
31
  GC             gc;
 
32
  color          cur_fg, cur_bg;
32
33
 
33
34
public:
34
35
 
35
 
  x_drawable_rep (x_gui gui, int w=0, int h=0);
 
36
  x_drawable_rep (x_gui gui, x_window_rep* x_win);
 
37
  x_drawable_rep (x_gui gui, int w, int h);
36
38
  ~x_drawable_rep ();
37
39
 
38
40
  bool is_x_drawable ();
39
41
  x_drawable_rep* as_x_drawable ();
40
 
  virtual void get_extents (int& w, int& h);
 
42
  void get_extents (int& w, int& h);
41
43
  bool interrupted (bool check= false);
42
44
 
43
45
  void encode (SI& x, SI& y);  // X coordinates -> mathematical coordinates
79
81
 
80
82
  friend class x_gui_rep;
81
83
  friend class x_window_rep;
82
 
  friend Bool my_predicate (Display* dpy, XEvent* ev, XPointer arg);
 
84
  friend Bool my_selnotify_predicate (Display* dpy, XEvent* ev, XPointer arg);
83
85
};
84
86
 
85
87
#endif // defined X_DRAWABLE_H