Commit Graph

207 Commits

Author SHA1 Message Date
miguel
11d8fab4e8 0.14 2018-06-18 22:08:08 -04:00
miguel
aa2ffb06ef [WindowsDriver] Fix the EventType type 2018-06-18 22:05:41 -04:00
Miguel de Icaza
6946e8b679 Merge pull request #104 from MihaMarkic/fix_view_enumerator
Fixes cases where subviews can be null
2018-06-13 08:49:55 -07:00
Miguel de Icaza
b2975dec44 Merge pull request #100 from pmsanford/master
Quick one: Ensure SelectionChanged is called on mouse click too
2018-06-13 08:48:59 -07:00
Miha Markič
06bfd0da9d Fixes cases where subviews can be null 2018-06-11 09:22:53 +02:00
Paul Sanford
73f10ef1e0 Ensure SelectionChanged is called on mouse click too 2018-06-06 23:05:15 -07:00
Miguel de Icaza
829aae09c8 File Dialog: hook up cancel button 2018-06-04 20:30:11 -04:00
Miguel de Icaza
948ca7994f Rebuild docs 2018-06-01 16:17:08 -04:00
Miguel de Icaza
0a654c1643 More docs 2018-06-01 16:14:07 -04:00
Miguel de Icaza
77f554ef04 Doc updates 2018-06-01 16:10:02 -04:00
Miguel de Icaza
cc462f8715 0.13 2018-06-01 10:25:37 -04:00
Miguel de Icaza
b1662455b1 Do not try to map the number keys manually, should fix github.com issue 81. 2018-06-01 09:50:46 -04:00
miguel
4d6efcb52e Clarified when to use ESC 9 2018-05-25 19:07:37 -04:00
miguel
b759fa9a62 Remove some debug messages 2018-05-25 19:07:37 -04:00
Miguel de Icaza
8dd6ef8e9c Merge pull request #97 from pmsanford/master
Handle case where there's no previous focus
2018-05-25 16:05:32 -07:00
Paul Sanford
7254bbe7ce Set the parent and driver on SetSource 2018-05-21 20:41:52 -07:00
Paul Sanford
80a888735f SuperView could be null too in the case of for ex dialog 2018-05-21 11:14:35 -07:00
Paul Sanford
167e12759f Handle case where there's no previous focus 2018-05-21 10:54:38 -07:00
Miguel de Icaza
dbd1ae0562 Improve sample 2018-05-21 12:56:22 -04:00
miguel
c405f45763 Rewrite Textfield to use List<Rune> like the other editor, makes it easier to reason about the strings 2018-05-19 23:39:49 -04:00
miguel
e8c3a8575c Release notes 2018-05-19 22:43:05 -04:00
Miguel de Icaza
8b884efca0 Merge pull request #94 from nickvdyck/last-rune-index
Get byte index of last rune in textfield
2018-05-18 12:18:15 -04:00
Nick Van Dyck
83f152c406 Get byte index of last rune in textfield 2018-05-18 12:34:14 +02:00
miguel
2af83a14cc Coordinates in the TextField are now Rune indexes, not byte indexes into the ustring.
The ustring stores strings in Utf8 format which is variable encoding,
and I was mixing code that assumed that indexes into Utf8 were valid
rune indexes.

This normalizes point to be based on the rune index, not the offset
into the storage, so we need to do some processing to get this
information right.  It might make sense perhaps to "Explode" the string
into a List<Rune> rather than try to manipualte the ustring, but this
should work for now.

Also, fixed the positioning code, and the drawing code for this, should
fix the reported issue that came up in a pull request:

https://github.com/migueldeicaza/gui.cs/pull/90
2018-05-17 23:15:21 -04:00
miguel
073308bd88 Sample using F# 2018-05-17 23:15:15 -04:00
Miguel de Icaza
be046ec037 Merge pull request #91 from nickvdyck/restore-consolemode
Windows: restore console mode on exit
2018-05-17 22:13:28 -04:00
Nick Van Dyck
e654c3f196 Windows: restore console mode on exit 2018-05-17 23:12:25 +02:00
miguel
b8fe231d19 0.9 2018-05-16 23:01:56 -04:00
miguel
2b05d82039 Remove stash file 2018-05-15 23:14:51 -04:00
Miguel De Icaza
d40c92538c Pass the coodinates to the damage region to fix the damage code 2018-05-15 23:13:40 -04:00
miguel
9ef3ee46ae Use damage regions to speed up the console 2018-05-15 23:02:29 -04:00
miguel
2ec4e4a1da Fix 2018-05-15 22:54:47 -04:00
Miguel de Icaza
6bd6e4dc4d Merge pull request #87 from pmsanford/master
Fix bug in ListView that caused it to render spaces off the window
2018-05-15 22:48:50 -04:00
miguel
d0e187585e Refactor the windows driver to avoid the races 2018-05-15 22:48:05 -04:00
Paul Sanford
2f1336a2bf Fix bug in ListView that caused it to render spaces off the window 2018-05-15 14:36:03 -07:00
Miguel de Icaza
3f028f9781 Update .editorconfig 2018-05-15 17:22:31 -04:00
miguel
c5a3b7b01e Split Mainloop into Unix, Net and Windows drivers so we can properly implement Windows input 2018-05-14 23:13:08 -04:00
miguel
92d35cde97 Disable WindowsDriver until I have a chance to fix it 2018-05-14 22:42:00 -04:00
Miguel De Icaza
303508b4f3 Fix demo 2018-05-13 22:30:43 -04:00
miguel
67732818a3 Make the demo work better on WIndows 2018-05-13 22:25:16 -04:00
miguel
370c9080c3 Fix error checking on startup 2018-05-13 22:16:57 -04:00
miguel
c6a1b92b5a Handle End key on Windows 2018-05-13 22:02:41 -04:00
Miguel de Icaza
47dbb47c58 Merge pull request #82 from nickvdyck/windows-mouseevent
Windows: Implementing mouse events and writing to console buffers
2018-05-13 21:52:28 -04:00
Nick Van Dyck
121e9071ab Windows: fix mapping of mouse button events 2018-05-13 21:36:08 +01:00
Nick Van Dyck
b3167faae8 Add mit licensing to windowsdriver 2018-05-13 17:08:49 +01:00
Nick Van Dyck
ead3ddaaac Windows: fix cursor position movement 2018-05-13 16:57:10 +01:00
Nick Van Dyck
e576379786 Windows: write to console screen buffers 2018-05-12 15:02:05 +01:00
Nick Van Dyck
8eea18b8e8 First implementation of mouse events on windows 2018-05-12 12:46:40 +01:00
miguel
db04a5bbde REmove 2018-05-11 23:15:54 -04:00
miguel
59a546f462 Add 2018-05-11 23:15:39 -04:00