Crea  Modifica  FrontPage  Indici  Cerca  Ultime modifiche  History  RSS  Login

Gdk::EventCrossing

class Gdk::EventCrossing

Generated when the pointer enters or leaves a window.

Class Methods

Gdk::EventCrossing.new(type)
Creates a new event of the given type. All fields are set to 0. Since 2.2

Instance Methods

subwindow
Gets the window that was entered or left.
subwindow=(window)
Sets the window that was entered or left.
set_subwindow(window)
Same as Gdk::EventCrossing#subwindow=.
time
Gets the time of the event in milliseconds.
  • Returns: the time of the event in milliseconds
time=(time)
Sets the time of the event in milliseconds.
  • time: the time of the event in milliseconds.
  • Returns: time
set_time(time)
Same as Gdk::EventCrossing#time=.
  • time: the time of the event in milliseconds.
  • Returns: self
x
Gets the x coordinate of the pointer relative to the window.
  • Returns: the x coordinate of the pointer relative to the window.
x=(val)
Sets the x coordinate of the pointer relative to the window.
  • val: the x coordinate of the pointer relative to the window.
  • Returns: val
set_x(val)
Same as Gdk::EventCrossing#x=.
  • val: the x coordinate of the pointer relative to the window.
  • Returns: self
y
Gets the y coordinate of the pointer relative to the window.
  • Returns: the y coordinate of the pointer relative to the window.
y=(val)
Sets the y coordinate of the pointer relative to the window.
  • val: the y coordinate of the pointer relative to the window.
  • Returns: val
set_y(val)
Same as Gdk::EventCrossing#y=.
  • val: the y coordinate of the pointer relative to the window.
  • Returns: self
x_root
Gets the x coordinate of the pointer relative to the root of the screen.
  • Returns: the x coordinate of the pointer relative to the root of the screen.
x_root=(val)
Sets the x coordinate of the pointer relative to the root of the screen.
  • val: the x coordinate of the pointer relative to the root of the screen.
  • Returns: val
set_x_root(val)
Sets the x coordinate of the pointer relative to the root of the screen.
  • val: the x coordinate of the pointer relative to the root of the screen.
  • Returns: self
y_root
Gets the y coordinate of the pointer relative to the root of the screen.
  • Returns: the y coordinate of the pointer relative to the root of the screen.
y_root=(val)
Sets the y coordinate of the pointer relative to the root of the screen.
  • val: the y coordinate of the pointer relative to the root of the screen.
  • Returns: val
set_y_root(val)
Sets the y coordinate of the pointer relative to the root of the screen.
  • val: the y coordinate of the pointer relative to the root of the screen.
  • Returns: self
mode
Gets the crossing mode. See GdkEventCrossingMode.
  • Returns: the crossing mode.
mode=(mode)
Sets the crossing mode. See GdkEventCrossingMode.
set_mode(mode)
Same as Gdk::EventCrossing#mode=.
detail
Gets the kind of crossing that happened. See ((<GdkNotifyType.
  • Returns: the kind of crossing that happened.
detail=(type)
Sets the kind of crossing that happened. See ((<GdkNotifyType.
set_detail(type)
Same as Gdk::EventCrossing#detail=.
focus?
Retrieves the value whether window is the focus window or an inferior, or not.
  • Returns: true or false
focus=(focus)
Sets the value whether window is the focus window or an inferior.
  • focus: true if window is the focus window or an inferior. Otherwise false.
  • Returns: focus
set_focus(focus)
Same as Gdk::EventCrossing#focus=.
  • focus: true if window is the focus window or an inferior. Otherwise false.
  • Returns: self
state
Gets a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType.
state=(state)
Sets a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType.
set_state(state)
Same as Gdk::EventCrossing#state=.

Constants

GdkEventCrossingMode

Specifies the crossing mode.

NORMAL
crossing because of pointer motion.
GRAB
crossing because a grab is activated.
UNGRAB
crossing because a grab is deactivated.

GdkNotifyType

Specifies the kind of crossing. See the X11 protocol specification of LeaveNotify for full details of crossing event generation.

NOTIFY_ANCESTOR
the window is entered from an ancestor or left towards an ancestor.
NOTIFY_VIRTUAL
the pointer moves between an ancestor and an inferior of the window.
NOTIFY_INFERIOR
the window is entered from an inferior or left towards an inferior.
NOTIFY_NONLINEAR
the window is entered from or left towards a window which is neither an ancestor nor an inferior.
NOTIFY_NONLINEAR_VIRTUAL
the pointer moves between two windows which are not ancestors of each other and the window is part of the ancestor chain between one of these windows and their least common ancestor.
NOTIFY_UNKNOWN
Unknown type.

- Masao

Ultima modifica:2005/11/17 02:43:41
Parola chiave:
Referenze:[Gdk::EventCrossing] [Gtk::Widget]