/usr/share/idl/bonobo-2.0/Bonobo_Zoomable.idl is in libbonobo2-common 2.24.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | /*
* bonobo-zoomable.idl: Bonobo::Zoomable - a zoomable interface for Controls.
*
* Copyright (C) 2000 Eazel, Inc.
* 2000 SuSE GmbH.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Authors: Maciej Stachowiak <mjs@eazel.com>
* Martin Baulig <baulig@suse.de>
*/
#ifndef BONOBO_ZOOMABLE_IDL
#define BONOBO_ZOOMABLE_IDL
#include "Bonobo_Unknown.idl"
module Bonobo {
typedef float ZoomLevel;
typedef string ZoomLevelName;
typedef sequence<ZoomLevel> ZoomLevelList;
typedef sequence<ZoomLevelName> ZoomLevelNameList;
/* A zoomable has the responsibility to look for this
* interface on its Bonobo control frame and call
* onLevelChanged whenever it changes the zoom level (on
* its own or due to calls from the zoomable interface).
*/
interface ZoomableFrame : ::Bonobo::Unknown {
/**
* onLevelChanged:
* @zoom_level: The new zoom level.
*
* Informs the ZoomableFrame that the zoom level has changed.
* The Zoomable should call this each time it successfully
* completed a zooming operation.
*/
oneway void onLevelChanged (in float zoom_level);
/**
* onParametersChanged:
*
* Informs the ZoomableFrame that some of the zoom parameters
* such as min/max zoom level has changed, for instance after
* loading a new file into the component.
*/
oneway void onParametersChanged ();
void unImplemented1 ();
void unImplemented2 ();
void unImplemented3 ();
void unImplemented4 ();
};
interface Zoomable : Bonobo::Unknown {
/*
* This is a read-only value and indicates the actual current
* zoom level of the component. It is changed by the component
* after successfully completing a zooming operation before
* calling the `onLevelChanged' method on its ZoomableFrame.
*/
readonly attribute float level;
/* Information about the type of zooming that's supported. */
readonly attribute float minLevel;
readonly attribute float maxLevel;
readonly attribute boolean hasMinLevel;
readonly attribute boolean hasMaxLevel;
readonly attribute boolean isContinuous;
readonly attribute ZoomLevelList preferredLevels;
readonly attribute ZoomLevelNameList preferredLevelNames;
/*
* High level operations.
* These can cause a change in the zoom level.
* The zoomable itself must decide what the concepts
* "one level in", "one level out", and "to fit" mean.
*/
oneway void zoomIn ();
oneway void zoomOut ();
oneway void zoomFit ();
oneway void zoomDefault ();
/**
* setLevel:
* @zoom_level: The new zoom level.
*
* Tells the component to zoom to @zoom_level.
*
* If the component only supports fixed zoom levels,
* then the actual zoom level will be set to the
* closest possible value of @zoom_level.
*/
void setLevel (in float zoom_level);
/**
* setFrame:
* @zoomable_frame: A Bonobo_ZoomableFrame.
*
* Gives the Zoomable a handle to its ZoomableFrame.
*/
void setFrame (in ZoomableFrame zoomable_frame);
void unImplemented1 ();
void unImplemented2 ();
void unImplemented3 ();
void unImplemented4 ();
};
};
#endif /* BONOBO_ZOOMABLE_IDL */
|