MCPcopy Index your code
hub / github.com/lxn/walk / indexInListView

Method indexInListView

tableviewcolumn.go:356–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354}
355
356func (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
380func (tvc *TableViewColumn) create() error {
381 var lvc win.LVCOLUMN

Callers 6

WidthMethod · 0.95
createMethod · 0.95
destroyMethod · 0.95
updateMethod · 0.95
getLVCOLUMNMethod · 0.95
StretchLastColumnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected