ruby-****@sourc*****
ruby-****@sourc*****
2004年 2月 26日 (木) 21:44:26 JST
------------------------- REMOTE_ADDR = 161.114.202.20 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/?Gdk%3A%3AEvent ------------------------- = class Gdk::Event Handling events from the window system == Object Hierarchy * Object * GLib::Boxed * Gdk::Event == Class Methods --- Gdk::Event.events_pending? Checks if any events are ready to be processed for any display. * Returns: true if any events are pending. --- Gdk::Event.peek If there is an event waiting in the event queue of some open display, returns a copy of it. * Returns: a copy of the first Gdk::Event on some event queue, or nil if no events are in any queues. --- Gdk::Event.get Checks all open displays for a Gdk::Event to process,to be processed on, fetching events from the windowing system if necessary. * Returns: the next Gdk::Event to be processed, or nil if no events are pending. --- Gdk::Event.handler_set{|event| ... } Sets the block to call to handle all events from GDK. Note that GTK+ uses this to install its own event handler, so it is usually not useful for GTK+ applications. (Although an application can call this method then call Gtk.main_do_event to pass events to GTK+.) * {|event| ... }: the block to call to handle events from GDK * event: the event * Returns: self --- Gdk::Event.set_show_events * Returns: self --- Gdk::Event.setting_get * Returns: self --- Gdk::Event.show_events? * Returns: self == Instance Methods --- put Appends a copy of the self onto the front of the event queue for Gdk::EventAny#window 's display, or the default event queue if Gdk::Event#window is nil. See Gdk::Display#put_event. * Returns: self --- get_axis(axis_use) Extract the axis value for a particular axis use from an event structure. * axis_use : the axis use to look for (((GdkAxisUse|Gdk::Device#GdkAxisUse>))) * Returns: the value if the specified axis was found, otherwise nil --- coords Extract the event window relative x/y coordinates from an event. * Returns: [x_win, y_win] if the event delivered event window coordinates, otherwise nil * x_win: event window x coordinate * y_win: event window y coordinate --- root_coords Extract the root window relative x/y coordinates from an event. * Returns: [x_root, y_root] if the event delivered root window coordinates, otherwise nil * x_root: root window x coordinate * y_root: root window y coordinate --- event_type * Returns: self --- screen * Returns: self --- set_screen * Returns: self --- set_window * Returns: self --- window * Returns: self == Constants --- ALL_EVENTS_MASK --- BUTTON1_MOTION_MASK --- BUTTON2_MOTION_MASK --- BUTTON2_PRESS --- BUTTON3_MOTION_MASK --- BUTTON3_PRESS --- BUTTON_MOTION_MASK --- BUTTON_PRESS --- BUTTON_PRESS_MASK --- BUTTON_RELEASE --- BUTTON_RELEASE_MASK --- CLIENT_EVENT --- CONFIGURE --- CURRENT_TIME --- DELETE --- DESTROY --- DRAG_ENTER --- DRAG_LEAVE --- DRAG_MOTION --- DRAG_STATUS --- DROP_FINISHED --- DROP_START --- ENTER_NOTIFY --- ENTER_NOTIFY_MASK --- EXPOSE --- EXPOSURE_MASK --- FOCUS_CHANGE --- FOCUS_CHANGE_MASK --- KEY_PRESS --- KEY_PRESS_MASK --- KEY_RELEASE --- KEY_RELEASE_MASK --- LEAVE_NOTIFY --- LEAVE_NOTIFY_MASK --- MAP --- MOTION_NOTIFY --- Mask --- NOTHING --- NO_EXPOSE --- POINTER_MOTION_HINT_MASK --- POINTER_MOTION_MASK --- PRIORITY_EVENTS --- PROPERTY_CHANGE_MASK --- PROPERTY_NOTIFY --- PROXIMITY_IN --- PROXIMITY_IN_MASK --- PROXIMITY_OUT --- PROXIMITY_OUT_MASK --- SCROLL --- SCROLL_MASK --- SELECTION_CLEAR --- SELECTION_NOTIFY --- SELECTION_REQUEST --- SETTING --- STRUCTURE_MASK --- SUBSTRUCTURE_MASK --- Type --- UNMAP --- VISIBILITY_NOTIFY --- VISIBILITY_NOTIFY_MASK --- WINDOW_STATE == See Also ((<Masao>))