gnome-mag
GNOME_Magnifier.idl
Go to the documentation of this file.
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2001 Sun Microsystems Inc.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22 
23 #ifndef _GNOME_MAGNIFIER_IDL
24 #define _GNOME_MAGNIFIER_IDL
25 
26 #include <Bonobo_Unknown.idl>
27 #include <Bonobo_Property.idl>
28 
29 module GNOME {
30  module Magnifier {
31 
32  struct Point {
33  long x, y;
34  };
35 
36  struct RectBounds {
37  long x1, y1, x2, y2;
38  };
39 
40  interface ZoomRegion : Bonobo::Unknown {
41 
42  enum AlignPolicy {
45  ALIGN_MAX
46  };
47 
53  SCROLL_SMOOTHEST
54  };
55 
68  COLORBLIND_FILTER_T_MONOCHRONE_OTHERS
69  };
70 
82  boolean setMagFactor (in float magX, in float magY);
83 
90  void getMagFactor (out float magX, out float magY);
91 
99  Bonobo::PropertyBag getProperties ();
100 
105  oneway void setROI (in RectBounds bounds);
106 
112  void updatePointer ();
113 
120  void markDirty (in RectBounds dirtyRegion);
121 
126  RectBounds getROI ();
127 
134  void moveResize (in RectBounds bounds);
135 
139  void dispose ();
140 
147  oneway void setPointerPos (in long mouse_x, in long mouse_y);
148 
161  void setContrast (in float R, in float G, in float B);
162 
170  void getContrast (out float R, out float G, out float B);
171 
184  void setBrightness (in float R, in float G, in float B);
185 
194  void getBrightness (out float R, out float G, out float B);
195 
196  };
197 
198  typedef sequence<ZoomRegion> ZoomRegionList;
199 
200  interface Magnifier : Bonobo::Unknown {
201 
207  attribute string SourceDisplay;
208 
213  attribute string TargetDisplay;
214 
221  Bonobo::PropertyBag getProperties ();
222 
227  boolean fullScreenCapable ();
228 
233  void hideCursor ();
234 
239  void showCursor ();
240 
245  boolean supportColorblindFilters ();
246 
259  ZoomRegion createZoomRegion (in float zx, in float zy,
260  in RectBounds ROI,
261  in RectBounds viewport);
262 
267  ZoomRegionList getZoomRegions ();
268 
274  boolean addZoomRegion (in ZoomRegion region);
275 
279  void clearAllZoomRegions ();
280 
284  void dispose ();
285 
286  };
287  };
288 };
289 
290 #endif
291