Dia/CanvasView.custom: Added
glue/dia-canvas-view.c: Added svn path=/trunk/diacanvas-sharp/; revision=17189
This commit is contained in:
Родитель
3f4420c19f
Коммит
33b77d2492
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -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;
|
||||
}
|
Загрузка…
Ссылка в новой задаче