зеркало из
1
0
Форкнуть 0
glue/dia-canvas-view.c: Added

svn path=/trunk/diacanvas-sharp/; revision=17189
This commit is contained in:
Martin Willemoes Hansen 2003-08-08 10:13:02 +00:00
Родитель 3f4420c19f
Коммит 33b77d2492
2 изменённых файлов: 56 добавлений и 0 удалений

30
dia/CanvasView.custom Normal file
Просмотреть файл

@ -0,0 +1,30 @@
// CanvasView.Custom - customizations
//
// Author: Martin Willemoes Hansen <mwh@sysrq.dk>
//
// Copyright (C) 2003 Martin Willemoes Hansen
//
// This code is inserted after the automatically generated code.
[DllImport ("diasharpglue")]
extern static IntPtr diasharp_canvas_view_get_selected_items (IntPtr view);
public IList SelectedItems {
get {
GLib.List glist = new GLib.List (diasharp_canvas_view_get_selected_items (Handle));
ArrayList list = new ArrayList (glist.Count);
foreach (object o in glist) list.Add (o);
return list;
}
}
[DllImport ("diasharpglue")]
extern static IntPtr diasharp_canvas_view_get_focus_item (IntPtr view);
public CanvasViewItem FocusItem {
get {
return new CanvasViewItem (diasharp_canvas_view_get_focus_item (Handle));
}
}

26
glue/dia-canvas-view.c Normal file
Просмотреть файл

@ -0,0 +1,26 @@
/* dia-canvas-view.c : Glue for accessing fields in the DiaCanvasView class.
*
* Author: Martin Willemoes Hansen
*
* Copyright (C) 2003 Martin Willemoes Hansen
*
*/
#include <diacanvas/dia-canvas-view.h>
/* Forward declarations */
GList * diasharp_canvas_view_get_selected_items (DiaCanvasView * view);
DiaCanvasViewItem * diasharp_canvas_view_get_focus_item (DiaCanvasView * view);
/* */
GList *
diasharp_canvas_view_get_selected_items (DiaCanvasView * view)
{
return view->selected_items;
}
DiaCanvasViewItem *
diasharp_canvas_view_get_focus_item (DiaCanvasView * view)
{
return view->focus_item;
}