1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

LibGUI: Add granular ColumnView helpers for column and index at events

This patch extracts logic for getting colum at an event position and for
getting an index in a column at an event position from
index_at_event_position into separate functions.
This commit is contained in:
networkException 2022-09-04 16:48:35 +02:00 committed by Linus Groh
parent 707b4f83eb
commit f0a20fc902
2 changed files with 30 additions and 9 deletions

View file

@ -48,6 +48,9 @@ private:
// TODO: per-column vertical scroll?
};
Optional<Column> column_at_event_position(Gfx::IntPoint const&) const;
ModelIndex index_at_event_position_in_column(Gfx::IntPoint const&, Column const&) const;
Vector<Column> m_columns;
int m_model_column { 0 };
};