Main Page | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

GNOME_Magnifier.idl

Go to the documentation of this file.
00001 /* 
00002  * AT-SPI - Assistive Technology Service Provider Interface 
00003  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
00004  *
00005  * Copyright 2001 Sun Microsystems Inc.
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Library General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Library General Public
00018  * License along with this library; if not, write to the
00019  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA 02111-1307, USA.
00021  */
00022 
00023 #ifndef _GNOME_MAGNIFIER_IDL
00024 #define _GNOME_MAGNIFIER_IDL
00025 
00026 #include <Bonobo_Unknown.idl>
00027 #include <Bonobo_Property.idl>
00028 
00029 module GNOME {
00030   module Magnifier {
00031 
00032     struct Point {
00033             long x, y;
00034     };
00035 
00036     struct RectBounds {
00037             long x1, y1, x2, y2;
00038     };
00039 
00040     interface ZoomRegion : Bonobo::Unknown {
00041 
00051     enum AlignPolicy {
00052             ALIGN_CENTER,
00053             ALIGN_MIN,
00054             ALIGN_MAX
00055     };
00056 
00057     enum ScrollingPolicy {
00058             SCROLL_FASTEST,
00059             SCROLL_FAST,
00060             SCROLL_NORMAL,
00061             SCROLL_SMOOTH,
00062             SCROLL_SMOOTHEST
00063     };
00064 
00076     boolean setMagFactor (in float magX, in float magY);
00077 
00084     void getMagFactor (out float magX, out float magY);
00085 
00093     Bonobo::PropertyBag getProperties ();
00094 
00099     oneway void setROI (in RectBounds bounds);
00100 
00107     void markDirty (in RectBounds dirtyRegion);
00108 
00113     RectBounds getROI ();
00114 
00121     void moveResize (in RectBounds bounds);
00122 
00129     void setContrast (in float R, in float G, in float B);
00130 
00137     void getContrast (out float R, out float G, out float B);
00138 
00142     void dispose ();
00143 
00144     };
00145 
00146     typedef sequence<ZoomRegion> ZoomRegionList;
00147   
00148     interface Magnifier : Bonobo::Unknown {
00149 
00155     attribute string SourceDisplay;
00156 
00161     attribute string TargetDisplay;
00162 
00169     Bonobo::PropertyBag getProperties ();
00170 
00183     ZoomRegion createZoomRegion (in float zx, in float zy,
00184                                  in RectBounds ROI,
00185                                  in RectBounds viewport);
00186 
00191     ZoomRegionList getZoomRegions ();
00192 
00198     boolean addZoomRegion (in ZoomRegion region);
00199 
00203     void clearAllZoomRegions ();
00204 
00208     void dispose ();
00209 
00210     };
00211   };
00212 };
00213 
00214 #endif
00215 

Generated on Mon Jul 10 19:11:40 2006 for gnome-mag by  doxygen 1.4.4