public CameraWidget(CameraWidgetType type, string label)
        {
            IntPtr native;

            Error.CheckError(gp_widget_new(type, label, out native));
            this.handle = new HandleRef(this, native);
        }
		public CameraWidget (CameraWidgetType type, string label)
		{
			ErrorCode result;
			unsafe 
			{
				IntPtr native;
				result = gp_widget_new(type, label,out native);
				this.handle = new HandleRef (this, native);
			}
			if (Error.IsError(result)) throw Error.ErrorException(result);
		}
Example #3
0
        public CameraWidget(CameraWidgetType type, string label)
        {
            ErrorCode result;

            unsafe
            {
                IntPtr native;
                result      = gp_widget_new(type, label, out native);
                this.handle = new HandleRef(this, native);
            }
            if (Error.IsError(result))
            {
                throw Error.ErrorException(result);
            }
        }
Example #4
0
 internal static extern ErrorCode gp_widget_new(CameraWidgetType type, string lable, out IntPtr widget);
Example #5
0
 internal static extern ErrorCode gp_widget_get_type(HandleRef widget, out CameraWidgetType type);
		internal static extern ErrorCode gp_widget_new (CameraWidgetType type, string lable, out IntPtr widget);
		internal static extern ErrorCode gp_widget_get_type (HandleRef widget, out CameraWidgetType type);
Example #8
0
 public CameraWidget(CameraWidgetType type, string label)
 {
     IntPtr native;
     Error.CheckError(gp_widget_new(type, label,out native));
     this.handle = new HandleRef (this, native);
 }