Class: Fzeet::ListViewMethods::ExStyle
- Inherits:
-
Object
- Object
- Fzeet::ListViewMethods::ExStyle
- Defined in:
- lib/fzeet/windows/comctl/ListView.rb
Instance Method Summary collapse
- #<<(xstyle) ⇒ Object
- #>>(xstyle) ⇒ Object
-
#initialize(listview) ⇒ ExStyle
constructor
A new instance of ExStyle.
- #toggle(what) ⇒ Object
Constructor Details
#initialize(listview) ⇒ ExStyle
Returns a new instance of ExStyle.
339 |
# File 'lib/fzeet/windows/comctl/ListView.rb', line 339 def initialize(listview) @listview = listview end |
Instance Method Details
#<<(xstyle) ⇒ Object
341 342 343 344 345 346 347 |
# File 'lib/fzeet/windows/comctl/ListView.rb', line 341 def <<(xstyle) @listview.sendmsg(:setextendedlistviewstyle, 0, @listview.sendmsg(:getextendedlistviewstyle) | Fzeet.constant(xstyle, *@listview.class::Prefix[:xstyle]) ) self end |
#>>(xstyle) ⇒ Object
349 350 351 352 353 354 355 |
# File 'lib/fzeet/windows/comctl/ListView.rb', line 349 def >>(xstyle) @listview.sendmsg(:setextendedlistviewstyle, 0, @listview.sendmsg(:getextendedlistviewstyle) & ~Fzeet.constant(xstyle, *@listview.class::Prefix[:xstyle]) ) self end |
#toggle(what) ⇒ Object
357 |
# File 'lib/fzeet/windows/comctl/ListView.rb', line 357 def toggle(what) send((@listview.xstyle?(what)) ? :>> : :<<, what); self end |