404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.145.34.107: ~ $
/*
 * Canvas-based rendering of views
 *
 * Author:
 *    Miguel de Icaza (miguel@kernel.org)
 *
 * Copyright (C) 1999, 2001 Ximian, Inc.
 */

#ifndef BONOBO_GDK_IDL
#define BONOBO_GDK_IDL

module Bonobo {

module Gdk {
	/*
	 * Idea: would it make more sense to 
	 * not provide our own types and just copy
	 * the Gdk values instead of converting back and forth?
	 */
	enum EventType {
		FOCUS,
		KEY,
		MOTION,
		BUTTON,
		CROSSING
	};

	enum ButtonType {
		BUTTON_PRESS,
		BUTTON_2_PRESS,
		BUTTON_3_PRESS,
		BUTTON_RELEASE
	};

	enum KeyType {
		KEY_PRESS,
		KEY_RELEASE
	};

	enum CrossType {
		ENTER, LEAVE
	};

	enum CrossMode {
		NORMAL,
		GRAB,
		UNGRAB
	};

	typedef long Time;

	struct MotionEvent {
		Gdk::Time time;
		double x, y, x_root, y_root;
		double pressure;
		double xtilt, ytilt;
		long   state;
		boolean is_hint;
	};

	struct ButtonEvent {
		ButtonType type;
		Gdk::Time time;
		
		double x, y, x_root, y_root;

		short  button;
	};

	struct KeyEvent {
		KeyType   type;
		Gdk::Time time;
		short	  state;
		short	  keyval;
		short	  length;
		string    str;
	};

	struct CrossingEvent {
		CrossType    type;
		Gdk::Time    time;
		double	     x, y, x_root, y_root;
		CrossMode    mode;
		boolean      focus;
		short        state;
	};

	struct FocusEvent {
		boolean      inside;
	};

	/*
	 * Only the lists of events supported by the Canvas
	 */
	union Event switch (EventType) {
		case Gdk::FOCUS:    FocusEvent focus;
		case Gdk::KEY:      KeyEvent key;
		case Gdk::MOTION:   MotionEvent motion;
		case Gdk::BUTTON:   ButtonEvent button;
		case Gdk::CROSSING: CrossingEvent crossing;
	};

	/*
	 * This is a ':' delimited string
	 *   under X11 the first entry ( before a ':' ) contains
	 *  window ID as an integer. Other fields are reserved for
	 *  future use.
	 * See also bonobo-control.c (window_id_demangle)
	 */
	typedef string WindowId;
};

module Gtk {
	struct Requisition {
		long width;
		long height;
	};
	enum State {
		StateNormal,
		StateActive,
		StatePrelight,
		StateSelected,
		StateInsensitive
	};
	enum Direction {
		DirectionTabForward,
		DirectionTabBackward,
		DirectionUp,
		DirectionDown,
		DirectionLeft,
		DirectionRight
	};
};

};

#endif

Filemanager

Name Type Size Permission Actions
Bonobo.idl File 1.12 KB 0644
Bonobo_Application.idl File 1.38 KB 0644
Bonobo_Canvas.idl File 3.95 KB 0644
Bonobo_Clipboard.idl File 2.02 KB 0644
Bonobo_Context.idl File 2.86 KB 0644
Bonobo_Control.idl File 4.97 KB 0644
Bonobo_Embeddable.idl File 1.82 KB 0644
Bonobo_Exception.idl File 369 B 0644
Bonobo_Gdk.idl File 2.14 KB 0644
Bonobo_ItemContainer.idl File 1.22 KB 0644
Bonobo_Listener.idl File 1.91 KB 0644
Bonobo_Moniker.idl File 2.87 KB 0644
Bonobo_Persist.idl File 4.12 KB 0644
Bonobo_Print.idl File 1013 B 0644
Bonobo_Property.idl File 4.57 KB 0644
Bonobo_Sample_Echo.idl File 219 B 0644
Bonobo_Storage.idl File 5.65 KB 0644
Bonobo_UI.idl File 3.09 KB 0644
Bonobo_Zoomable.idl File 3.67 KB 0644