Class: XlibObj::Event::SelectionNotify
- Inherits:
-
Object
- Object
- XlibObj::Event::SelectionNotify
- Defined in:
- lib/event/selection_notify.rb
Instance Method Summary collapse
-
#initialize(type:, target:, property:) ⇒ SelectionNotify
constructor
A new instance of SelectionNotify.
- #send_to(receiver) ⇒ Object
Constructor Details
#initialize(type:, target:, property:) ⇒ SelectionNotify
Returns a new instance of SelectionNotify.
12 13 14 |
# File 'lib/event/selection_notify.rb', line 12 def initialize(type:, target:, property:) @type, @target, @property = type, target, property end |
Instance Method Details
#send_to(receiver) ⇒ Object
16 17 18 19 |
# File 'lib/event/selection_notify.rb', line 16 def send_to(receiver) Xlib.XSendEvent(receiver.display.to_native, receiver.to_native, false, 0, event(receiver)) receiver.display.flush end |