Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Rustとgtk-rsで自分用GUIツールを作ろう
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
sunnyone
June 20, 2026
130
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Rustとgtk-rsで自分用GUIツールを作ろう
sunnyone
June 20, 2026
Transcript
11 slides
Rust とgtk-rs で自分用GUI ツールを作ろう sunnyone / 2026-06-20
自己紹介 sunnyone アプリケーション開発者 Loqui を知ってる人いるかも? 2
今日の話 自分用のツールにGUI つけたくなることありませんか? GNOME で使われているgtk をRust から使おう 3
Linux desktop GUI ツールの選択肢 Web 系 Web Electron: node とChromium
をがっちゃんこ Tauri: ネイティブWebView を使う ネイティブ系 Qt (from KDE) gtk (from GNOME) ← 今日はこれ 4
Web / ネイティブツールキットのメリデメ Web のメリット・デメリット Web のノリで作れる・アセットが豊富 プラットフォーム側動作との接続がだるい ガワの更新がだるい ネイティブのメリット・デメリット
ネイティブの知識が必要 プラットフォーム側に触りやすい ネイティブなUI が使える 5
gtk アプリを何で書く? C が第一選択肢 Gob / Vala みたいなそれ用の言語もある LL 系
(Python, Ruby, etc) もある C++ や C# もある Rust ← 今日はこれ 6
Rust (gtk-rs) のよいところ C / GLib のわずらわしい記述が不要 x = g_nanchara_new();
g_object_unref(x); ← めんどくさい Rust のライフサイクル(RAII )にGObject のライフサイクルに乗せ てくれてる Drop trait でg_object_unref してくれる的な ほぼC 相当なのでLL より重くない 7
実際のコード例 pub fn build_window(app: >k4::Application) { let window = gtk4::ApplicationWindow::builder()
.application(app) .title("Command Drop") .default_width(DEFAULT_WINDOW_WIDTH) .default_height(720) .build(); let root = gtk4::Box::new(gtk4::Orientation::Vertical, 8); root.set_hexpand(true); root.set_vexpand(true); window.set_child(Some(&root)); window.present(); } 8
今ならAI コーディングも使える Rust も意外と生成してくれた Codex / GPT-5.5 + TAKT OpenCode
あたりでもできるかも? 9
Demo 10
Enjoy! 11
More Decks by sunnyone
See All by sunnyone
AI時代のDependency Injection
sunnyone
0
49
AIコーディング時代に意識したい縦と横
sunnyone
0
150
multirange 型(多重範囲型)の活用
sunnyone
0
160
開発者とのコミュニケーションのはじめかた
sunnyone
0
74
概念モデル→論理モデルで気をつけていること
sunnyone
3
590
印象に残ったLLMの使い方5選
sunnyone
0
54
シンプルじゃないテーブルの見つけ方
sunnyone
1
410
Next.js App Router登場後の話
sunnyone
0
92
はやい開発のためのJSONデータ型の活用
sunnyone
0
210
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
850
Music & Morning Musume
bryan
48
7.5k
Thoughts on Productivity
jonyablonski
76
5.5k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
43k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
670
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
830
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
Exploring anti-patterns in Rails
aemeredith
4
570