コード例 #1
0
 /// <summary> Define the "configure notify action", invoked by the windows manager on window layout, resize and move. </summary>
 /// <param name="widget"> The widget, that is source of the event. Typically the the shell's toplevel widget. <see cref="System.IntPtr"/> </param>
 /// <param name="xevent"> The event, that is invoked. <see cref="XEvent"/> </param>
 /// <param name="parameters"> Additional parameters (as String[]). Not used. <see cref="System.IntPtr"/> </param>
 /// <param name="numParams"> The number of additional parameters. Not used. <see cref="XCardinal"/> </param>
 /// <remarks> The prototype must match the XtActionProc delegate. </remarks>
 public virtual void ConfigureNotifyAction(IntPtr widget, ref XEvent xevent, IntPtr parameters, ref XCardinal numParams)
 {
     // Console.WriteLine (CLASS_NAME + "::ConfigureNotifyAction ()");
     OnConfigureNotify(widget, ref xevent, parameters, ref numParams);
 }
コード例 #2
0
 /// <summary> Define the "delete window action", invoked by the windows manager on window's decoration close [X] button. </summary>
 /// <param name="widget"> The widget, that is source of the event. Typically the the shell's toplevel widget. <see cref="System.IntPtr"/> </param>
 /// <param name="xevent"> The event, that is invoked. <see cref="XEvent"/> </param>
 /// <param name="parameters"> Additional parameters (as String[]). Not used for WM_DELETE_WINDOW. <see cref="System.IntPtr"/> </param>
 /// <param name="num_params"> The number of additional parameters. 0 for WM_DELETE_WINDOW. <see cref="XCardinal"/> </param>
 /// <remarks> The prototype must match the XtActionProc delegate. </remarks>
 public void DeleteWindowAction(IntPtr widget, ref XEvent xevent, IntPtr parameters, ref XCardinal num_params)
 {
     Console.WriteLine(CLASS_NAME + "::DeleteWindowAction() For Atthena dialog.");
     this.Close();
 }
コード例 #3
0
        // ###############################################################################
        // ### P R O P E R T I E S
        // ###############################################################################

        #region Properties

        #endregion

        // ###############################################################################
        // ### M E T H O D S
        // ###############################################################################

        #region Methods

        /// <summary> Process ConfigureNotify event. </summary>
        /// <param name="widget"> The widget, that is source of the event. <see cref="System.IntPtr"/> </param>
        /// <param name="xevent"> The event, that is invoked. <see cref="XEvent"/> </param>
        /// <param name="parameters"> Additional parameters (as String[]). Not used. <see cref="System.IntPtr"/> </param>
        /// <param name="numParams"> The number of additional parameters. Not used. <see cref="XCardinal"/> </param>
        internal virtual void OnConfigureNotify(IntPtr widget, ref XEvent xevent, IntPtr parameters, ref XCardinal numParams)
        {
            ConfigureNotifyDelegate configureNotify = ConfigureNotify;

            if (configureNotify != null)
            {
                configureNotify(this, widget, ref xevent, parameters, ref numParams);
            }
        }