Class: Fzeet::WindowMethods::ExStyle
- Inherits:
-
Object
- Object
- Fzeet::WindowMethods::ExStyle
- Defined in:
- lib/fzeet/windows/user/Window/WindowMethods.rb
Instance Method Summary collapse
- #<<(xstyle) ⇒ Object
- #>>(xstyle) ⇒ Object
-
#initialize(window) ⇒ ExStyle
constructor
A new instance of ExStyle.
- #toggle(what) ⇒ Object
Constructor Details
#initialize(window) ⇒ ExStyle
Returns a new instance of ExStyle.
85 |
# File 'lib/fzeet/windows/user/Window/WindowMethods.rb', line 85 def initialize(window) @window = window end |
Instance Method Details
#<<(xstyle) ⇒ Object
87 |
# File 'lib/fzeet/windows/user/Window/WindowMethods.rb', line 87 def <<(xstyle) @window.long[:exstyle] = @window.long[:exstyle] | Fzeet.constant(xstyle, *@window.class::Prefix[:xstyle]); self end |
#>>(xstyle) ⇒ Object
88 |
# File 'lib/fzeet/windows/user/Window/WindowMethods.rb', line 88 def >>(xstyle) @window.long[:exstyle] = @window.long[:exstyle] & ~Fzeet.constant(xstyle, *@window.class::Prefix[:xstyle]); self end |
#toggle(what) ⇒ Object
90 |
# File 'lib/fzeet/windows/user/Window/WindowMethods.rb', line 90 def toggle(what) send((@window.xstyle?(what)) ? :>> : :<<, what); self end |