Skip to content

Use egui_extras to draw the main table - #7

Merged
FrancescoCoding merged 2 commits into
FrancescoCoding:mainfrom
MCOfficer:egui-extras-table
Sep 18, 2026
Merged

FrancescoCoding merged 2 commits into
FrancescoCoding:mainfrom
MCOfficer:egui-extras-table

Conversation

@MCOfficer

Copy link
Copy Markdown
Contributor

Depends on #6

  • Unchanged:
    • what you see in the images
    • select row with M1, context menu with M2
    • Text in rows can not be selected
  • Right-click now also selects the row in question
  • Only renders the columns on screen, so it should technically be more performant
  • Row height is now fixed at 20px , not sure if this is a concern
  • Columns can be resized
  • "Name" column is at least 200px to accommodate long executable names

Before
image

After
image

Comment thread src/gui.rs
Comment thread src/gui.rs
Comment thread src/gui.rs
@FrancescoCoding

Copy link
Copy Markdown
Owner

Thanks for this. The virtualised rows and resizable columns are a real improvement, and draw_table_row reads much better than the manual grid and reserved shape slot it replaces. Right-click selecting the row is a nice fix too.

I ran into one thing while testing locally, plus a few small replies below.

Comment thread src/gui.rs Outdated
@FrancescoCoding

Copy link
Copy Markdown
Owner

Re-reviewed. show_tooltip_when_elided defaulting to true is good to know, and the chained call is fine by me. Thanks for tracking down the flag. LGTM.

@FrancescoCoding
FrancescoCoding merged commit f0f081e into FrancescoCoding:main Sep 18, 2026
4 checks passed
@MCOfficer
MCOfficer deleted the egui-extras-table branch September 18, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants