示例#1
0
                /*! \brief Update this object with the current state of the caret.  */
                public override void Update()
                {
                    base.Update();

                    Window = GetInstance(WindowHandle);
                    Icon   = (Window != null) ? Window.GetIcon(IconHandle) : null;
                }
示例#2
0
                //! \brief Update this object with the current state of the pointer.
                public void Update()
                {
                    var block = new NativeWimp.PointerBlock();

                    Wimp.GetPointerInfo(out block);

                    Pos.X        = block.Pos.X;
                    Pos.Y        = block.Pos.Y;
                    Buttons      = (ButtonState)block.Buttons;
                    WindowHandle = block.WindowHandle;
                    IconHandle   = block.IconHandle;

                    Window = GetInstance(WindowHandle);
                    Icon   = Window != null?Window.GetIcon(IconHandle) : null;
                }
示例#3
0
 public CaretEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData)
 {
     Window = GetInstance(WindowHandle);
     Icon   = (Window != null) ? Window.GetIcon(IconHandle) : null;
 }