Class: Plushie::Event::Ime
- Inherits:
-
Data
- Object
- Data
- Plushie::Event::Ime
- Defined in:
- lib/plushie/event.rb
Overview
IME (Input Method Editor) events for international text input. Triggered by IME composition sessions (CJK input, accent composition, etc.). Subscribe via Subscription.on_ime.
Instance Attribute Summary collapse
-
#captured ⇒ Object
readonly
Returns the value of attribute captured.
-
#captured [Boolean] true if a widget consumed this event([Boolean]) ⇒ Object
readonly
IME (Input Method Editor) events for international text input.
-
#cursor ⇒ Object
readonly
Returns the value of attribute cursor.
-
#cursor [Array<Integer>, nil] cursor position within preedit([Array<Integer>, nil]) ⇒ Object
readonly
IME (Input Method Editor) events for international text input.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#id [String, nil] widget ID that has IME focus([String, nil]) ⇒ Object
readonly
IME (Input Method Editor) events for international text input.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#scope [Array<String>] reversed ancestor scope chain([Array<String>]) ⇒ Object
readonly
IME (Input Method Editor) events for international text input.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#text [String, nil] composed or committed text([String, nil]) ⇒ Object
readonly
IME (Input Method Editor) events for international text input.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#type [Symbol] :opened, :preedit, :commit, :closed([Symbol], : preedit, : commit, : closed) ⇒ Object
readonly
IME (Input Method Editor) events for international text input.
-
#window_id ⇒ Object
readonly
Returns the value of attribute window_id.
-
#window_id [String, nil] window that was focused when the event fired([String, nil]) ⇒ Object
readonly
IME (Input Method Editor) events for international text input.
Instance Method Summary collapse
-
#initialize(type:, id: nil, scope: [], text: nil, cursor: nil, captured: false, window_id: nil) ⇒ Ime
constructor
A new instance of Ime.
Constructor Details
#initialize(type:, id: nil, scope: [], text: nil, cursor: nil, captured: false, window_id: nil) ⇒ Ime
Returns a new instance of Ime.
134 135 136 137 |
# File 'lib/plushie/event.rb', line 134 def initialize(type:, id: nil, scope: [], text: nil, cursor: nil, captured: false, window_id: nil) super end |
Instance Attribute Details
#captured ⇒ Object (readonly)
Returns the value of attribute captured
133 134 135 |
# File 'lib/plushie/event.rb', line 133 def captured @captured end |
#captured [Boolean] true if a widget consumed this event([Boolean]) ⇒ Object (readonly)
IME (Input Method Editor) events for international text input. Triggered by IME composition sessions (CJK input, accent composition, etc.). Subscribe via Subscription.on_ime.
133 134 135 136 137 138 |
# File 'lib/plushie/event.rb', line 133 Ime = Data.define(:type, :id, :scope, :text, :cursor, :captured, :window_id) do def initialize(type:, id: nil, scope: [], text: nil, cursor: nil, captured: false, window_id: nil) super end end |
#cursor ⇒ Object (readonly)
Returns the value of attribute cursor
133 134 135 |
# File 'lib/plushie/event.rb', line 133 def cursor @cursor end |
#cursor [Array<Integer>, nil] cursor position within preedit([Array<Integer>, nil]) ⇒ Object (readonly)
IME (Input Method Editor) events for international text input. Triggered by IME composition sessions (CJK input, accent composition, etc.). Subscribe via Subscription.on_ime.
133 134 135 136 137 138 |
# File 'lib/plushie/event.rb', line 133 Ime = Data.define(:type, :id, :scope, :text, :cursor, :captured, :window_id) do def initialize(type:, id: nil, scope: [], text: nil, cursor: nil, captured: false, window_id: nil) super end end |
#id ⇒ Object (readonly)
Returns the value of attribute id
133 134 135 |
# File 'lib/plushie/event.rb', line 133 def id @id end |
#id [String, nil] widget ID that has IME focus([String, nil]) ⇒ Object (readonly)
IME (Input Method Editor) events for international text input. Triggered by IME composition sessions (CJK input, accent composition, etc.). Subscribe via Subscription.on_ime.
133 134 135 136 137 138 |
# File 'lib/plushie/event.rb', line 133 Ime = Data.define(:type, :id, :scope, :text, :cursor, :captured, :window_id) do def initialize(type:, id: nil, scope: [], text: nil, cursor: nil, captured: false, window_id: nil) super end end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope
133 134 135 |
# File 'lib/plushie/event.rb', line 133 def scope @scope end |
#scope [Array<String>] reversed ancestor scope chain([Array<String>]) ⇒ Object (readonly)
IME (Input Method Editor) events for international text input. Triggered by IME composition sessions (CJK input, accent composition, etc.). Subscribe via Subscription.on_ime.
133 134 135 136 137 138 |
# File 'lib/plushie/event.rb', line 133 Ime = Data.define(:type, :id, :scope, :text, :cursor, :captured, :window_id) do def initialize(type:, id: nil, scope: [], text: nil, cursor: nil, captured: false, window_id: nil) super end end |
#text ⇒ Object (readonly)
Returns the value of attribute text
133 134 135 |
# File 'lib/plushie/event.rb', line 133 def text @text end |
#text [String, nil] composed or committed text([String, nil]) ⇒ Object (readonly)
IME (Input Method Editor) events for international text input. Triggered by IME composition sessions (CJK input, accent composition, etc.). Subscribe via Subscription.on_ime.
133 134 135 136 137 138 |
# File 'lib/plushie/event.rb', line 133 Ime = Data.define(:type, :id, :scope, :text, :cursor, :captured, :window_id) do def initialize(type:, id: nil, scope: [], text: nil, cursor: nil, captured: false, window_id: nil) super end end |
#type ⇒ Object (readonly)
Returns the value of attribute type
133 134 135 |
# File 'lib/plushie/event.rb', line 133 def type @type end |
#type [Symbol] :opened, :preedit, :commit, :closed([Symbol], : preedit, : commit, : closed) ⇒ Object (readonly)
IME (Input Method Editor) events for international text input. Triggered by IME composition sessions (CJK input, accent composition, etc.). Subscribe via Subscription.on_ime.
133 134 135 136 137 138 |
# File 'lib/plushie/event.rb', line 133 Ime = Data.define(:type, :id, :scope, :text, :cursor, :captured, :window_id) do def initialize(type:, id: nil, scope: [], text: nil, cursor: nil, captured: false, window_id: nil) super end end |
#window_id ⇒ Object (readonly)
Returns the value of attribute window_id
133 134 135 |
# File 'lib/plushie/event.rb', line 133 def window_id @window_id end |
#window_id [String, nil] window that was focused when the event fired([String, nil]) ⇒ Object (readonly)
IME (Input Method Editor) events for international text input. Triggered by IME composition sessions (CJK input, accent composition, etc.). Subscribe via Subscription.on_ime.
133 134 135 136 137 138 |
# File 'lib/plushie/event.rb', line 133 Ime = Data.define(:type, :id, :scope, :text, :cursor, :captured, :window_id) do def initialize(type:, id: nil, scope: [], text: nil, cursor: nil, captured: false, window_id: nil) super end end |