lytico
3ce4643025
added Context.Scale
2012-03-22 19:43:31 +01:00
Lluis Sanchez
f22f26fd6a
Rename gradient backend to CairoGradientBackendHandler
2012-03-22 17:55:41 +01:00
Lluis Sanchez
52a98b2289
[Gtk] Fix incorrect base class in default context backend
2012-03-22 16:50:50 +01:00
Lluis Sanchez
e09986f4cd
Fix build?
2012-03-22 16:32:52 +01:00
Lluis Sanchez
abf663112c
[Gtk] Make the cairo backend code more reusable
2012-03-22 14:44:25 +01:00
Lluis Sanchez
f3bf93e29c
Allow creating a TextLayout for a canvas
...
Removed the default constructor of TextLayout.
A TextLayout can now be created either for a
Canvas or for a drawing context.
2012-03-22 03:04:19 +01:00
Lluis Sanchez
99ae2de6e2
[Gtk] Abstracted cairo context a bit
2012-03-22 02:51:23 +01:00
Lluis Sanchez
d751c98e18
Allow setting the background of a text entry
2012-03-21 21:16:49 +01:00
Lluis Sanchez
c7ecdb7d9f
[Gtk] Fix issue when setting the child of a scroll view
...
Before setting the child of a scroll view, remove the
old child and viewport if necessary.
2012-03-21 21:16:49 +01:00
Lluis Sanchez
99e266d044
[Gtk] Fix calculation of screen coordinates
2012-03-21 20:29:13 +01:00
Lluis Sanchez
49919f38fa
Fix cursor handling regression
2012-03-21 15:49:19 +01:00
Lluis Sanchez
6528dcb552
Avoid crash if cursor is set when the widget is not yet realized
2012-03-21 13:16:14 +01:00
Lluis Sanchez
d9806f2fee
Allow selecting an alpha value in the SelectColorDialog
2012-03-21 13:15:29 +01:00
Lluis Sanchez
33a360bb7d
Implement color selector dialog
2012-03-21 10:18:25 +01:00
Lluis Sanchez
009b72c637
Make sure the button press event is always handled
2012-03-20 18:40:39 +01:00
Lluis Sanchez
571e0c1176
Add GlobalAlpha property to Context
2012-03-20 18:38:33 +01:00
Lluis Sanchez
1ede54ed87
Show the menu of a drop down button on mouse down, not mouse click
2012-03-16 17:52:39 +01:00
Lluis Sanchez
308862d9c3
Fix issue with the Dispose method
...
Depending on backends to implement IDisposable is problematic, since
a backend may be a native widget class implementing IDisposable on its
own, so calling Dispose in this case would actually dispose the widget,
not the backend. IWidgetBackend now has a Dispose method but it
doesn't inherit from IDisposable anymore, so a backend can have
a Dispose implementation for the backend, independent from the
one from the widget.
2012-03-16 17:52:38 +01:00
Lluis Sanchez
51ab8aa2c2
Fix backend disposing issues
...
The backend only has to be explicitly disposed when
the frontend is explicitly disposed. The backend
has to handle finalization on its own.
2012-03-12 16:39:33 +01:00
Lluis Sanchez
35f99edb76
Add support for changing the mouse cursor
2012-03-12 16:23:09 +01:00
Lluis Sanchez
693daa5d08
Reorganized a bit the drag&drop classes
...
Moved classes to their own files.
Added some documentation.
2012-03-09 13:48:48 +01:00
Lluis Sanchez
f3f07de726
Simplified drawing context creation
...
There isn't anymore a method for creating canvas context.
The context is created by the canvas backend and
provided as a parameter in the OnDraw method.
The CreateContext in Widget has been removed.
Also, TextLayout doesn't need a context anymore.
2012-03-09 09:52:24 +01:00
Lluis Sanchez
78102224d8
Cleaned up the Canvas api
...
The MinSize and NaturalSize properties are now implemented
in Widget, so they are not needed anymore in Canvas.
Removed the OnPreferredSizeChanged, which is not really
required.
2012-03-08 01:00:42 +01:00
Lluis Sanchez
ae3c591746
Added some docs to Canvas and simplified a bit the api
2012-03-08 00:43:42 +01:00
Lluis Sanchez
fe850c1dfe
Fix drag&drop support for gtk widgets which don't have a gdkwindow
2012-03-08 00:43:42 +01:00
Lluis Sanchez
8c4f81020a
Make the file dialog contract less confusing wrt closing and cleanup
2012-03-07 17:41:40 +01:00
Lluis Sanchez
28ba0dd7bb
[ComboBoxEntry] Allow setting the column to be used for getting the entry text
2012-03-07 16:47:36 +01:00
Lluis Sanchez
97e1778acc
Implemented Paned for Gtk
2012-03-07 14:19:25 +01:00
Lluis Sanchez
cf69c8574d
Added common file dialogs
2012-03-07 11:39:30 +01:00
Lluis Sanchez
d77f0ef549
Promoted BoundsChanged event from Canvas to Widget
2012-03-06 13:57:00 +01:00
Lluis Sanchez
66467739f6
Fix some drawing issues in gtk. Added some more sample code.
2012-03-02 13:51:47 +01:00
Lluis Sanchez
8638d94505
Add support for custom scrolling
...
Widgets can now override the SupportsCustomScrolling property
and SetScrollAdjustments to handle scrolling in a custom way.
2012-02-29 13:25:11 +01:00
ermau
1587e57e7e
Improve IImageViewBackend.SetImage API
...
- Added docs
- Added argument exceptions
- Renamed 'imageBackend' to 'nativeImage' to better reflect the actual
object being passed in.
2012-02-28 13:22:48 -05:00
Taco Ditiecher
d0abccee43
Implenent Application.Exit
2012-02-28 09:40:03 +01:00
ermau
59abc002fa
Fix ArgumentException in Gtk TimerInvoke
2012-02-27 14:58:10 -05:00
ermau
f8bff8d973
Start to add some ANEs
2012-02-27 14:34:24 -05:00
ermau
d3f3a87d98
TimeoutInvoke -> TimerInvoke
2012-02-27 14:32:30 -05:00
ermau
ddc6078ad5
EngineBackend.Invoke -> InvokeAsync
2012-02-27 14:31:17 -05:00
Hywel Thomas
a9e14ddb51
Added ResetTransform method to Context
2012-02-23 12:16:21 +01:00
Lluis Sanchez
4539755b5b
Include timestamp in mouse move events
2012-02-23 12:14:53 +01:00
Lluis Sanchez
364ba5876c
Add support for drag&drop in TreeView
2012-02-15 20:55:29 +01:00
Lluis Sanchez
82a463610e
Use strong typing for clipboard and drag&drop types
2012-02-15 11:20:28 +01:00
Lluis Sanchez
326d89fb04
Improved drag&drop support for tree views
2012-02-15 10:46:40 +01:00
Lluis Sanchez
bee2691cfc
Added Ellipsize property to Label
2012-02-14 11:36:01 +01:00
Lluis Sanchez
e75ee58f5d
Added BorderVisible property to ScrollView
2012-02-09 18:15:11 +01:00
Lluis Sanchez
dfd0ce5137
Don't report leave events to inferiors
2012-02-09 18:14:34 +01:00
Lluis Sanchez
16323e309c
Ongoing work in the mac backend
2012-02-02 09:32:16 +01:00
Lluis Sanchez
38d3ad497b
Created subclasses for checkbox, radio and separator menu items
2012-01-31 19:21:15 +01:00
Lluis Sanchez
99cb151a4e
Fix windows build
2012-01-30 16:51:35 +01:00
Lluis Sanchez
abcaefed1f
Added ImagePattern
2012-01-27 17:01:16 +01:00
Lluis Sanchez
93de52ea50
Added method for drawing scaled images
2012-01-27 17:00:59 +01:00
Lluis Sanchez
48451ad44c
Implemented ImageBuilder.
2012-01-27 01:56:45 +01:00
Lluis Sanchez
83342473ff
Implemented ScrollToRow and ExpandToRow in TreeView
2012-01-26 14:15:16 +01:00
Lluis Sanchez
c00f17b699
Add support for line dashes
2012-01-26 12:14:56 +01:00
Lluis Sanchez
c87b697204
Provide the correct window location for Window's Bounds property
2012-01-25 11:15:08 +01:00
Lluis Sanchez
3766d61b1b
Add support for tooltips
2012-01-25 11:14:23 +01:00
Lluis Sanchez
937d065703
Added support for context menus. Added some samples.
2012-01-19 16:38:32 +01:00
Lluis Sanchez
76963c94b4
Implemented Clipboard
2012-01-19 16:38:01 +01:00
Lluis Sanchez
93ff1c9cb0
Moved some mouse events from Canvas to Widget.
2012-01-19 16:36:31 +01:00
Lluis Sanchez
2d486680e7
In TableStoreBacked wrap values for columns of type object
...
Gtk# expects a GtkValue when a column is declared as 'object'.
To avoid conversion errors, we instead declare columns
of type object as ObjectWrapper, and values are stored
using that wrapper.
2012-01-18 11:04:46 +01:00
Lluis Sanchez
77d72f3839
Remove some debug CWLs
2012-01-18 11:02:49 +01:00
Lluis Sanchez
bb310a7193
Fix invalid cast.
2012-01-16 16:10:23 +01:00
Lluis Sanchez
accba3c026
Fix Mixed mode support.
2012-01-13 21:37:10 +01:00
Lluis Sanchez
bb5d5fedb2
Fix NRE
2012-01-13 21:36:24 +01:00
Lluis Sanchez
da542f30b3
Implemented the menu button using events instead of using a custom subclass
2012-01-13 21:36:11 +01:00
Lluis Sanchez
9cfbd8420a
Fix crash
2012-01-13 21:35:45 +01:00
Lluis Sanchez
3197a8a67c
Added new borderless button style
2012-01-13 21:35:31 +01:00
Lluis Sanchez
038c658eca
Added MouseEntered/Exited events
2012-01-13 21:34:33 +01:00
Lluis Sanchez
6f51fcf01f
Add support for checkboxes with mixed state
2012-01-12 19:01:14 +01:00
Lluis Sanchez
18c32f9b8d
Fix size calculation issue.
2012-01-11 20:06:32 +01:00
Lluis Sanchez
ad949742bb
Register the custom widget backend.
2012-01-11 20:06:32 +01:00
Lluis Sanchez
b521d65957
Don't fire the click event when changing the Active property.
2012-01-11 20:06:32 +01:00
Lluis Sanchez
abe1e66af5
Fix bug in box resizing
...
Don't check the provided request size, just set it to the
value returned by GetPreferredX.
2012-01-03 20:15:51 +01:00
Lluis Sanchez
1243421309
Fix bug in ConvertToScreenCoordinates.
2012-01-03 20:14:43 +01:00
Lluis Sanchez
310f2feb73
More sizing fixes. Allow setting a custom natural size.
2011-12-30 18:31:21 +01:00
Lluis Sanchez
4c995b1ad3
Fix layout size calculation issue
2011-12-30 13:39:00 +01:00
Lluis Sanchez
70081a2303
Improved TreeView and ListView
...
Added methods for checking and setting if a row is expanded
or selected. Added method for saving and restoring the status
of a tree.
2011-12-29 20:35:13 +01:00
Lluis Sanchez
63e3507abc
Added methods for removing nodes in TreeView.
...
In ScrollView renamed Child property to Content, for consistency.
2011-12-29 18:41:46 +01:00
Lluis Sanchez
8a61e71232
Fixed several size handling issues
2011-12-29 16:32:21 +01:00
Lluis Sanchez
fa6d8cc672
Fix cast exception
2011-12-28 11:26:27 +01:00
Lluis Sanchez
8bcbc9b011
Add some stock icons
2011-12-28 11:26:11 +01:00
Lluis Sanchez
5f4ad75cc4
Add some properties and events to Notebook
2011-12-28 11:25:57 +01:00
Lluis Sanchez
7503b85c84
Fix issue when getting parent window of embedded wiget
2011-12-23 18:24:26 +01:00
Lluis Sanchez
9a6602223a
Several fixes in Dialog
2011-12-23 14:20:10 +01:00
Lluis Sanchez
d391d3a4da
Implemented ComboBoxEntry for GTK
2011-12-23 12:37:43 +01:00
Lluis Sanchez
4fea97a671
Add support for dialogs
2011-12-23 11:34:19 +01:00
Lluis Sanchez
fdbd5daac9
Add support for separators in ComboBox
2011-12-22 12:24:30 +01:00
Lluis Sanchez
5e067acb98
Set a drag status even if drop is not allowed.
...
If the handler of DragMotion returns false, GTK handles it as if the
mouse left the widget, and fires the Leave event if we previously
returned true. To avoid this behavior we now always return true,
setting a 0 drag action when no drop operation is allowed.
2011-12-22 11:18:23 +01:00
Lluis Sanchez
a673bc20ee
Removed QueueResize call which is not required.
2011-12-21 19:16:24 +01:00
Lluis Sanchez
7e0fb17779
Properly dispose backends when disposing a widget.
2011-12-21 19:16:07 +01:00
Lluis Sanchez
ed4eb6cda6
Add Frame child to the correct container when padding is set.
2011-12-21 19:15:25 +01:00
Lluis Sanchez
aad1e09ffe
Ongoing work
...
Implemented Frame, HSeparator, VSeparator
2011-12-16 19:02:57 +01:00
Lluis Sanchez
e2f1840cd4
Ongoing work
...
Add support for background color
Add support for replacing gtk widgets when changing a
property requires a new widget instance
Optimized layout allocation
2011-12-16 00:02:34 +01:00
Lluis Sanchez Gual
65af6ea089
Improved Font support. Added checkbox.
2011-12-15 18:19:54 +01:00
Lluis Sanchez Gual
ab3c759c7b
Implemented table layout
2011-12-14 13:11:34 +01:00
Lluis Sanchez
033231d8bd
Changed hierarchy of Window. A window is not a widget anymore.
2011-12-12 16:51:22 +01:00
Lluis Sanchez
960c3bb060
Initial support for key events
2011-12-09 14:46:34 +01:00
Lluis Sanchez
4b25315ca4
Fix NRE
2011-12-09 14:46:33 +01:00
Jonathan Chambers
0213a0cdfe
Fix compile errors that exist when using csc.
2011-12-06 17:05:48 -05:00
Lluis Sanchez
21dc3e7e8f
Fix canvas rendering issues
2011-12-02 13:47:18 +01:00
Lluis Sanchez
e677e628ad
Improved menu item support.
2011-12-02 11:50:19 +01:00
Lluis Sanchez
52ede8a4b4
Add support for message dialogs.
2011-11-30 21:38:43 +01:00
Lluis Sanchez
c6a61a1fc4
Allow embedding widgets in a canvas.
2011-11-30 11:13:04 +01:00
Lluis Sanchez
4580b14e3a
Ongoing work.
2011-11-24 20:21:55 +01:00
Lluis Sanchez
716c5eb5f7
Added Image and ToggleButton
2011-11-24 17:40:47 +01:00
Lluis Sanchez
a8069bfcf1
Added TextEntry. Implemented for Gtk.
2011-11-24 12:45:49 +01:00
Lluis Sanchez
a97bd132f3
Implement MenuButton for Gtk.
2011-11-24 11:45:19 +01:00
Lluis Sanchez
0162b4115b
Ongoing work on Window and screen coordinate methods
2011-11-23 20:56:17 +01:00
Lluis Sanchez
a81cb4203d
Drag & drop fixes
2011-11-22 17:35:25 +01:00
Lluis Sanchez
6f929d4b9e
Drag&drop fixes
2011-11-22 13:39:28 +01:00
Lluis Sanchez Gual
238e7ce116
Added designer. Allow specifying a drag image.
2011-11-21 16:26:40 +01:00
Lluis Sanchez
e9998b4916
Fix some combo resizing issues
2011-11-11 19:50:14 +01:00
Lluis Sanchez
0c82df7a61
Add missing check.
2011-11-11 16:59:59 +01:00
Lluis Sanchez
2fed45b3fa
Added some stock icons
2011-11-11 16:59:45 +01:00
Lluis Sanchez
5e9265c85a
Add selection changed event and removed some debug code
2011-11-11 12:37:34 +01:00
Lluis Sanchez
1ee01d41c1
Add missing files
2011-11-11 12:01:04 +01:00
Lluis Sanchez
5734e4a555
Add support for custom data sources for ListView, TreeView and ComboBox
2011-11-11 11:53:53 +01:00
Lluis Sanchez
33b06f4e6c
Simplified widget hierarchy. Implemented ComboBox
2011-11-10 20:49:59 +01:00
Lluis Sanchez
997571ea93
Added new helper methods.
2011-11-09 18:22:07 +01:00
Lluis Sanchez
505a16e65b
TextLayout improvements
2011-11-09 18:21:36 +01:00
Lluis Sanchez
14de1a816e
Ongoing work
2011-11-07 22:35:45 +01:00
Lluis Sanchez
66a97f3fae
Add support for rotate and translate transforms
2011-11-04 03:07:26 +01:00
Lluis Sanchez
de1a84419b
Ongoing work
...
Add support for stock icons.
Add support for icons in buttons and button styles.
2011-11-03 23:01:18 +01:00
Lluis Sanchez
c40c9de10b
Ongoing work
2011-11-03 19:08:31 +01:00
Lluis Sanchez
bee21c4a42
Refactored drag&drop utility methods. Added focus handling methods and
...
properties.
2011-11-01 02:32:13 +01:00
Lluis Sanchez
e0add32f9a
Initial commit
2011-10-26 13:56:14 +02:00