[PR #149] [MERGED] Implementing the Button widget. #220

Closed
opened 2026-03-03 16:23:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mum4k/termdash/pull/149
Author: @mum4k
Created: 2/24/2019
Status: Merged
Merged: 2/24/2019
Merged by: @mum4k

Base: develHead: button


📝 Commits (10+)

  • 4caa570 Skeleton of the button widget.
  • 8b3f1a1 Merge branch 'devel' into button
  • a16d908 Adding options for global keyboard.
  • dd2d740 Defining API for canvas methods that set cell options.
  • 952242f Fixing two typos in test descriptions.
  • 2a817f9 Adding canvas methods that can set cell options.
  • 07d22cc The mouse FSM now allows callers to specify an updated area size.
  • 4b4e245 The button in an intermediate dev state.
  • 22946f2 Allowing widgets to select the scope for mouse events too.
  • 0490734 Running gofmt.

📊 Changes

36 files changed (+2414 additions, -111 deletions)

View changed files

📝 CHANGELOG.md (+5 -6)
📝 README.md (+13 -1)
📝 canvas/braille/braille_test.go (+2 -2)
📝 canvas/canvas.go (+67 -0)
📝 canvas/canvas_test.go (+439 -0)
📝 canvas/testcanvas/testcanvas.go (+7 -0)
📝 container/container.go (+25 -28)
📝 container/container_test.go (+262 -17)
images/buttondemo.gif (+0 -0)
images/termdashdemo_0_6_0.gif (+0 -0)
images/termdashdemo_0_7_0.gif (+0 -0)
📝 mouse/button/button.go (+6 -0)
📝 mouse/button/button_test.go (+70 -0)
📝 termdash_test.go (+8 -8)
📝 termdashdemo/termdashdemo.go (+79 -13)
📝 widgetapi/widgetapi.go (+55 -5)
📝 widgets/barchart/barchart.go (+1 -1)
📝 widgets/barchart/barchart_test.go (+6 -6)
widgets/button/button.go (+209 -0)
widgets/button/button_test.go (+846 -0)

...and 16 more files

📄 Description

And adding it to the front page and demo.

Fixes #103


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mum4k/termdash/pull/149 **Author:** [@mum4k](https://github.com/mum4k) **Created:** 2/24/2019 **Status:** ✅ Merged **Merged:** 2/24/2019 **Merged by:** [@mum4k](https://github.com/mum4k) **Base:** `devel` ← **Head:** `button` --- ### 📝 Commits (10+) - [`4caa570`](https://github.com/mum4k/termdash/commit/4caa570644a267cf3b4645853cdca6ba5b03f328) Skeleton of the button widget. - [`8b3f1a1`](https://github.com/mum4k/termdash/commit/8b3f1a146f05ece8271a6f782ab6dc9a884375f4) Merge branch 'devel' into button - [`a16d908`](https://github.com/mum4k/termdash/commit/a16d908b5e63cccb5ab5fa91be57af98ea63759b) Adding options for global keyboard. - [`dd2d740`](https://github.com/mum4k/termdash/commit/dd2d740abb9b70e7b4cf518b5511a483510f61b7) Defining API for canvas methods that set cell options. - [`952242f`](https://github.com/mum4k/termdash/commit/952242fb5135043015666e2f1fe168e02ce411c4) Fixing two typos in test descriptions. - [`2a817f9`](https://github.com/mum4k/termdash/commit/2a817f9dbe02ef27cf0a09709e172daac29b8b56) Adding canvas methods that can set cell options. - [`07d22cc`](https://github.com/mum4k/termdash/commit/07d22cc28c43a1748aba7d809c611084db3f4b54) The mouse FSM now allows callers to specify an updated area size. - [`4b4e245`](https://github.com/mum4k/termdash/commit/4b4e245d6091ed284c284f1461fb40f7ab750d99) The button in an intermediate dev state. - [`22946f2`](https://github.com/mum4k/termdash/commit/22946f2f65eb1773bf89cc1adc8a02d2939f205f) Allowing widgets to select the scope for mouse events too. - [`0490734`](https://github.com/mum4k/termdash/commit/0490734d1e531ad0a742fa91a0350b4f18303971) Running gofmt. ### 📊 Changes **36 files changed** (+2414 additions, -111 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -6) 📝 `README.md` (+13 -1) 📝 `canvas/braille/braille_test.go` (+2 -2) 📝 `canvas/canvas.go` (+67 -0) 📝 `canvas/canvas_test.go` (+439 -0) 📝 `canvas/testcanvas/testcanvas.go` (+7 -0) 📝 `container/container.go` (+25 -28) 📝 `container/container_test.go` (+262 -17) ➕ `images/buttondemo.gif` (+0 -0) ➖ `images/termdashdemo_0_6_0.gif` (+0 -0) ➕ `images/termdashdemo_0_7_0.gif` (+0 -0) 📝 `mouse/button/button.go` (+6 -0) 📝 `mouse/button/button_test.go` (+70 -0) 📝 `termdash_test.go` (+8 -8) 📝 `termdashdemo/termdashdemo.go` (+79 -13) 📝 `widgetapi/widgetapi.go` (+55 -5) 📝 `widgets/barchart/barchart.go` (+1 -1) 📝 `widgets/barchart/barchart_test.go` (+6 -6) ➕ `widgets/button/button.go` (+209 -0) ➕ `widgets/button/button_test.go` (+846 -0) _...and 16 more files_ </details> ### 📄 Description And adding it to the front page and demo. Fixes #103 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:23:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termdash#220
No description provided.