()
| 354 | } |
| 355 | |
| 356 | func (tvc *TableViewColumn) indexInListView() int32 { |
| 357 | if tvc.tv == nil { |
| 358 | return -1 |
| 359 | } |
| 360 | |
| 361 | var idx int32 |
| 362 | |
| 363 | for _, c := range tvc.tv.columns.items { |
| 364 | if c.frozen != tvc.frozen { |
| 365 | continue |
| 366 | } |
| 367 | |
| 368 | if c == tvc { |
| 369 | break |
| 370 | } |
| 371 | |
| 372 | if c.visible { |
| 373 | idx++ |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | return idx |
| 378 | } |
| 379 | |
| 380 | func (tvc *TableViewColumn) create() error { |
| 381 | var lvc win.LVCOLUMN |
no outgoing calls
no test coverage detected