From 96b6c523d711c63d71b59d584afe4ef8fea6716d Mon Sep 17 00:00:00 2001 From: Artus Date: Fri, 7 Jun 2019 15:36:11 +0200 Subject: [PATCH] adds comment on pawn placement --- src/grid.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/grid.rs b/src/grid.rs index 46752c8..6c21f50 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -46,6 +46,13 @@ impl AsRef for Cell { } } + +/// The cell widget is either empty or has a pawn +/// Pawn can be moved around cells using drag-n-drop. However, due to my inability +/// to dynamically change the behavior with set/unset methods, all cells are always +/// drag and drop at once. +/// It is usable though, just weird. When you grab an empty cell you'll make a button appear. +/// Know that if you drop a cell on itself, it will empty itself ! #[derive(Debug, Clone)] struct CellWidget { eventbox: gtk::EventBox,