示例#1
0
 /*! \brief Create the arguments for the event raised when a Toolbox object is
  * automatically created.  */
 public ObjectAutoCreatedEventArgs(IntPtr unmanagedEventData) :
     base(unmanagedEventData)
 {
     TemplateName = Marshal.PtrToStringAnsi(new IntPtr(RawEventData.ToInt32() +
                                                       EventOffset.TemplateName));
     ObjectID = ToolboxTask.IDBlock.SelfID;
 }
示例#2
0
                public ColourSelectedEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData)
                {
                    NoneSelected = (Header.Flags & Flags.NoneSelected) != 0;

                    ColourBlock = new int [212 / 4];
                    Marshal.Copy(new IntPtr(RawEventData.ToInt32() + EventOffset.ColourBlock),
                                 ColourBlock,
                                 0,
                                 212 / 4);
                }
示例#3
0
 /*! \brief Create the event arguments from the raw event data.  */
 public FontSelectionEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData)
 {
     FontID = Marshal.PtrToStringAnsi(new IntPtr(RawEventData.ToInt32() + EventOffset.FontID));
 }
示例#4
0
 public ApplyFontEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData)
 {
     FontHeight  = Marshal.ReadInt32(RawEventData, EventOffset.FontHeight);
     AspectRatio = Marshal.ReadInt32(RawEventData, EventOffset.AspectRatio);
     FontID      = Marshal.PtrToStringAnsi(new IntPtr(RawEventData.ToInt32() + EventOffset.FontID));
 }