Example #1
0
        /// <summary> Static constructor for a vertically oriented box. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        public static XrwBox NewVBox(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
        {
            XrwBox b = new XrwBox(display, screenNumber, parentWindow);

            b._orientation = TOrientation.Vertical;
            return(b);
        }
Example #2
0
        // ###############################################################################
        // ### C O N S T R U C T I O N   A N D   I N I T I A L I Z A T I O N
        // ###############################################################################

        #region Construction

        /// <summary> Hidden initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        protected XrwBox(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
            : base(display, screenNumber, parentWindow)
        {
            _expandToAvailableWidth = true;

            _borderColorPixel     = X11lib.XAllocParsedColorByName(_display, _screenNumber, XrwTheme.OuterBorderColor);
            _backgroundColorPixel = X11lib.XAllocParsedColorByName(_display, _screenNumber, XrwTheme.BackGroundColor);
        }
Example #3
0
        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="System.IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="System.IntPtr"/> </param>
        /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). Passed as reference to avoid structure copy constructor calls. <see cref="TPoint"/> </param>
        /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. Passed as reference to avoid structure copy constructor calls. <see cref="TIntSize"/> </param>
        /// <param name="label"> The label to display. <see cref="System.String"/> </param>
        public XrwLabel(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize, string label)
            : base(display, screenNumber, parentWindow, ref assignedPosition, ref fixedSize)
        {
            _label = label;
            _lines = new Multiline(this, _label);

            InitializeLabelRessources();
        }
        // ###############################################################################
        // ### C O N S T R U C T I O N   A N D   I N I T I A L I Z A T I O N
        // ###############################################################################

        #region Construction

        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window that will be the parent for an X11 *** own ** window. <see cref="IntPtr"/> </param>
        /// <param name="label"> The label to display. <see cref="System.String"/> </param>
        public XrwCommand(IntPtr display, X11.TInt screen, IntPtr parentWindow, string label)
            : base(display, screen, parentWindow, label)
        {
            // Create a *** own *** window and exchange the *** parent ***  window against it.
            base.InitializeOwnWindow();

            InitializeCommandRessources();
        }
        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window that will be the parent for an X11 *** own ** window. <see cref="IntPtr"/> </param>
        /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). <see cref="TPoint"/> </param>
        /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. <see cref="TIntSize"/> </param>
        /// <param name="label"> The label to display. <see cref="System.String"/> </param>
        public XrwCommand(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize, string label)
            : base(display, screenNumber, parentWindow, ref assignedPosition, ref fixedSize, label)
        {
            // Create a *** own *** window and exchange the *** parent ***  window against it.
            base.InitializeOwnWindow();

            InitializeCommandRessources();
        }
        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="System.IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="System.IntPtr"/> </param>
        /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). Passed as reference to avoid structure copy constructor calls. <see cref="TPoint"/> </param>
        /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. Passed as reference to avoid structure copy constructor calls. <see cref="TIntSize"/> </param>
        /// <param name="label"> The label to display. <see cref="System.String"/> </param>
        /// <param name="leftBitmap"> The left bitmap to display. <see cref="XrwBitmap"/> </param>
        /// <param name="leftShared"> Indicate wether the leftBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
        /// <param name="rightBitmap"> The right bitmap to display. <see cref="XrwBitmap"/> </param>
        /// <param name="rightShared"> Indicate wether the rightBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
        public XrwCommand(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize, string label, X11Graphic leftBitmap, bool leftShared, X11Graphic rightBitmap, bool rightShared)
            : base(display, screenNumber, parentWindow, ref assignedPosition, ref fixedSize, label, leftBitmap, leftShared, rightBitmap, rightShared)
        {
            // Create a *** own *** window and exchange the *** parent ***  window against it.
            base.InitializeOwnWindow();

            InitializeCommandRessources();
        }
Example #7
0
        // ###############################################################################
        // ### C O N S T R U C T I O N   A N D   I N I T I A L I Z A T I O N
        // ###############################################################################

        #region Construction

        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="System.IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="System.IntPtr"/> </param>
        /// <param name="label"> The label to display. <see cref="System.String"/> </param>
        public XrwLabel(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, string label)
            : base(display, screenNumber, parentWindow)
        {
            _label = label;
            _lines = new Multiline(this, _label);

            InitializeLabelRessources();
        }
Example #8
0
        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="System.IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="System.IntPtr"/> </param>
        /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). Passed as reference to avoid structure copy constructor calls. <see cref="TPoint"/> </param>
        /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. Passed as reference to avoid structure copy constructor calls. <see cref="TIntSize"/> </param>
        /// <param name="label"> The label to display. <see cref="System.String"/> </param>
        /// <param name="leftBitmap"> The left bitmap to display. <see cref="XrwBitmap"/> </param>
        /// <param name="leftShared"> Indicate wether the leftBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
        /// <param name="rightBitmap"> The right bitmap to display. <see cref="XrwBitmap"/> </param>
        /// <param name="rightShared"> Indicate wether the rightBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
        public XrwLabel(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize, string label, X11Graphic leftBitmap, bool leftShared, X11Graphic rightBitmap, bool rightShared)
            : base(display, screenNumber, parentWindow, ref assignedPosition, ref fixedSize)
        {
            _label             = label;
            _lines             = new Multiline(this, _label);
            _leftBitmap        = leftBitmap;
            _leftBitmapShared  = leftShared;
            _rightBitmap       = rightBitmap;
            _rightBitmapShared = rightShared;

            InitializeLabelRessources();
        }
        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="System.IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="System.IntPtr"/> </param>
        /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). Passed as reference to avoid structure copy constructor calls. <see cref="TPoint"/> </param>
        /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. Passed as reference to avoid structure copy constructor calls. <see cref="TIntSize"/> </param>
        /// <param name="label"> The label to display. <see cref="System.String"/> </param>
        /// <param name="offBitmap"> The right bitmap to display. <see cref="XrwBitmap"/> </param>
        /// <param name="offShared"> Indicate wether the offBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
        /// <param name="onBitmap"> The left bitmap to display. <see cref="XrwBitmap"/> </param>
        /// <param name="onShared"> Indicate wether the onBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
        public XrwToggle(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize, string label, X11Graphic offBitmap, bool offShared, X11Graphic onBitmap, bool onShared)
            : base(display, screenNumber, parentWindow, ref assignedPosition, ref fixedSize)
        {
            _label           = label;
            _lines           = new Multiline(this, _label);
            _offBitmap       = offBitmap;
            _offBitmapShared = offShared;
            _onBitmap        = onBitmap;
            _onBitmapShared  = onShared;

            // Create a *** own *** window and exchange the *** parent ***  window against it.
            base.InitializeOwnWindow();

            InitializeToggleRessources();
        }
        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). Passed as reference to avoid structure copy constructor calls. <see cref="TPoint"/> </param>
        /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. Passed as reference to avoid structure copy constructor calls. <see cref="TSize"/> </param>
        public XrwVisibleRectObj(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize)
            : base(ref assignedPosition, ref fixedSize)
        {
            if (display == IntPtr.Zero)
            {
                throw new ArgumentNullException("display");
            }
            if (parentWindow == IntPtr.Zero)
            {
                throw new ArgumentNullException("parentWindow");
            }

            _display      = display;
            _screenNumber = screenNumber;
            _window       = parentWindow;

            InitializeXrwVisibleRectObjRessources();
        }
        /// <summary> Static constructor for a horizontally oriented radio box. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        public static XrwNotebook NewTopTabedNotebook(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
        {
            XrwNotebook b = new XrwNotebook(display, screenNumber, parentWindow);

            b._orientation            = TOrientation.Vertical;
            b.ExpandToAvailableHeight = false;
            b.ExpandToAvailableWidth  = true;
            b.VertSpacing             = 0;

            b._tabBox             = XrwRadioBox.NewHRadioBox(display, screenNumber, parentWindow);
            b._tabBox.BorderWidth = 0;
            b._tabBox.ChildAlign  = 0.0F;
            b._tabBox.FrameType   = TFrameType.None;
            b._tabBox.FrameWidth  = XrwTheme.NonInteractingFrameWidth;
            b._tabBox.HorzSpacing = 0;
            b._tabBox.VertSpacing = 0;
            b.BaseAddChild(b._tabBox);

            XrwSimple tail = new XrwSimple(display, screenNumber, parentWindow);

            tail.ExpandToAvailableWidth  = true;
            tail.ExpandToAvailableHeight = true;
            tail.FrameWidth   = 2;
            tail.FrameTypeExt = TFrameTypeExt.UnsunkenTopTabTail;
            b._tabBox.AddChild(tail);

            b._pageStack                        = new XrwStack(display, screenNumber, parentWindow);
            b._pageStack.BorderWidth            = 0;
            b._pageStack.FrameTypeExt           = Xrw.TFrameTypeExt.RaisedBottomTab;
            b._pageStack.FrameWidth             = 2;
            b._pageStack.VertSpacing            = 0;
            b._pageStack.ExpandToAvailableWidth = true;
            b.BaseAddChild(b._pageStack);

            return(b);
        }
        // ###############################################################################
        // ### C O N S T R U C T I O N   A N D   I N I T I A L I Z A T I O N
        // ###############################################################################

        #region Construction

        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        public XrwConstraint(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
            : base(display, screenNumber, parentWindow)
        {
            ;
        }
        // ###############################################################################
        // ### C O N S T R U C T I O N   A N D   I N I T I A L I Z A T I O N
        // ###############################################################################

        #region Construction

        /// <summary> Hidden initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        protected XrwNotebook(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
            : base(display, screenNumber, parentWindow)
        {
        }
Example #14
0
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window that will be the parent for an X11 *** own ** window. <see cref="IntPtr"/> </param>
 /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. <see cref="TIntSize"/> </param>
 /// <param name="label"> The label to display. <see cref="System.String"/> </param>
 /// <param name="offBitmap"> The right bitmap to display. <see cref="XrwBitmap"/> </param>
 /// <param name="offShared"> Indicate wether the offBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
 /// <param name="onBitmap"> The left bitmap to display. <see cref="XrwBitmap"/> </param>
 /// <param name="onShared"> Indicate wether the onBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
 public XrwRadio(IntPtr display, X11.TInt screen, IntPtr parentWindow, ref TSize fixedSize, string label, X11Graphic offBitmap, bool offShared, X11Graphic onBitmap, bool onShared)
     : base(display, screen, parentWindow, ref fixedSize, label, offBitmap, offShared, onBitmap, onShared)
 {
 }
Example #15
0
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window that will be the parent for an X11 *** own ** window. <see cref="IntPtr"/> </param>
 /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). <see cref="TPoint"/> </param>
 /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. <see cref="TIntSize"/> </param>
 /// <param name="label"> The label to display. <see cref="System.String"/> </param>
 /// <param name="offBitmap"> The right bitmap to display. <see cref="XrwBitmap"/> </param>
 /// <param name="offShared"> Indicate wether the offBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
 /// <param name="onBitmap"> The left bitmap to display. <see cref="XrwBitmap"/> </param>
 /// <param name="onShared"> Indicate wether the onBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
 public XrwRadio(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize, string label, X11Graphic offBitmap, bool offShared, X11Graphic onBitmap, bool onShared)
     : base(display, screenNumber, parentWindow, ref assignedPosition, ref fixedSize, label, offBitmap, offShared, onBitmap, onShared)
 {
 }
Example #16
0
        // ###############################################################################
        // ### A T T R I B U T E S
        // ###############################################################################

        #region Attributes

        #endregion

        // ###############################################################################
        // ### C O N S T R U C T I O N   A N D   I N I T I A L I Z A T I O N
        // ###############################################################################

        #region Construction

        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        public XrwPanel(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
            : base(display, screenNumber, parentWindow)
        {
            _expandToAvailableWidth  = true;
            _expandToAvailableHeight = true;
        }
Example #17
0
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="System.IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="System.IntPtr"/> </param>
 /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). Passed as reference to avoid structure copy constructor calls. <see cref="TPoint"/> </param>
 /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. Passed as reference to avoid structure copy constructor calls. <see cref="TIntSize"/> </param>
 /// <param name="label"> The label to display. <see cref="System.String"/> </param>
 /// <param name="leftBitmap"> The left bitmap to display. <see cref="XrwBitmap"/> </param>
 /// <param name="leftShared"> Indicate wether the leftBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
 /// <param name="rightBitmap"> The right bitmap to display. <see cref="XrwBitmap"/> </param>
 /// <param name="rightShared"> Indicate wether the rightBitmap is shared (desposed by caller) or private (disposed together with tis label). <see cref="System.Boolean"/> </param>
 public XrwSme(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize, string label, X11Graphic leftBitmap, bool leftShared, X11Graphic rightBitmap, bool rightShared)
     : base(display, screenNumber, parentWindow, ref assignedPosition, ref fixedSize, label, leftBitmap, leftShared, rightBitmap, rightShared)
 {
     InitializeSmeRessources();
 }
Example #18
0
        // ###############################################################################
        // ### A T T R I B U T E S
        // ###############################################################################

        #region Attributes


        #endregion

        // ###############################################################################
        // ### C O N S T R U C T I O N   A N D   I N I T I A L I Z A T I O N
        // ###############################################################################

        #region Construction

        /// <summary> Hidden initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        public XrwStack(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
            : base(display, screenNumber, parentWindow)
        {
            _borderColorPixel     = X11lib.XAllocParsedColorByName(_display, _screenNumber, XrwTheme.OuterBorderColor);
            _backgroundColorPixel = X11lib.XAllocParsedColorByName(_display, _screenNumber, XrwTheme.BackGroundColor);
        }
Example #19
0
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window that will be the parent for an X11 *** own ** window. <see cref="IntPtr"/> </param>
 /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. <see cref="TIntSize"/> </param>
 /// <param name="label"> The label to display. <see cref="System.String"/> </param>
 public XrwMenuButton(IntPtr display, X11.TInt screen, IntPtr parentWindow, ref TSize fixedSize, string label)
     : base(display, screen, parentWindow, ref fixedSize, label)
 {
     InitializeMenuButtonRessources();
 }
        // ###############################################################################
        // ### C O N S T R U C T I O N   A N D   I N I T I A L I Z A T I O N
        // ###############################################################################

        #region Construction

        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        public XrwComposite(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
            : base(display, screenNumber, parentWindow)
        {
            _borderWidth = XrwTheme.CompositeBorderWidth;
        }
Example #21
0
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window at construction time for X11 calls. Will be overwritten by an *** own *** window wuring initialization. <see cref="IntPtr"/> </param>
 /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. Passed as reference to avoid structure copy constructor calls. <see cref="TSize"/> </param>
 public XrwShell(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TSize fixedSize)
     : base(display, screenNumber, parentWindow, ref fixedSize)
 {
     _borderWidth = XrwTheme.ShellBorderWidth;
 }
Example #22
0
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
 /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). Passed as reference to avoid structure copy constructor calls. <see cref="TPoint"/> </param>
 /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. Passed as reference to avoid structure copy constructor calls. <see cref="TSize"/> </param>
 public XrwPanel(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize)
     : base(display, screenNumber, parentWindow, ref assignedPosition, ref fixedSize)
 {
     _expandToAvailableWidth  = true;
     _expandToAvailableHeight = true;
 }
Example #23
0
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window that will be the parent for an X11 *** own ** window. <see cref="IntPtr"/> </param>
 /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). <see cref="TPoint"/> </param>
 /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. <see cref="TIntSize"/> </param>
 /// <param name="label"> The label to display. <see cref="System.String"/> </param>
 public XrwMenuButton(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize, string label)
     : base(display, screenNumber, parentWindow, ref assignedPosition, ref fixedSize, label)
 {
     InitializeMenuButtonRessources();
 }
Example #24
0
        // ###############################################################################
        // ### C O N S T R U C T I O N   A N D   I N I T I A L I Z A T I O N
        // ###############################################################################

        #region Construction

        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        public XrwCore(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
            : base(display, screenNumber, parentWindow)
        {
            InitializeCoreRessources();
        }
Example #25
0
        // ###############################################################################
        // ### C O N S T R U C T I O N   A N D   I N I T I A L I Z A T I O N
        // ###############################################################################

        #region Construction

        /// <summary> Initializing constructor. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="System.IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="System.IntPtr"/> </param>
        public XrwSme(IntPtr display, X11.TInt screen, IntPtr parentWindow, string label)
            : base(display, screen, parentWindow, label)
        {
            InitializeSmeRessources();
        }
Example #26
0
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
 /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). Passed as reference to avoid structure copy constructor calls. <see cref="TPoint"/> </param>
 public XrwCore(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition)
     : base(display, screenNumber, parentWindow, ref assignedPosition)
 {
     InitializeCoreRessources();
 }
Example #27
0
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window at construction time for X11 calls. Will be overwritten by an *** own *** window wuring initialization. <see cref="IntPtr"/> </param>
 public XrwWmShell(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
     : base(display, screenNumber, parentWindow)
 {
     ;
 }
Example #28
0
        /// <summary> Static constructor for a horizontally oriented box. </summary>
        /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
        /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
        /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
        public static XrwBox NewHBox(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow)
        {
            XrwBox b = new XrwBox(display, screenNumber, parentWindow);

            return(b);
        }
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window for X11 calls. This widget has no X11 *** own *** window. <see cref="IntPtr"/> </param>
 /// <param name="assignedPosition"> The position of the top left top corner assigned by the window manager (for shell widgets) or geometry management (by non-shell widgets). Passed as reference to avoid structure copy constructor calls. <see cref="TPoint"/> </param>
 /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. Passed as reference to avoid structure copy constructor calls. <see cref="TSize"/> </param>
 public XrwComposite(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TPoint assignedPosition, ref TSize fixedSize)
     : base(display, screenNumber, parentWindow, ref assignedPosition, ref fixedSize)
 {
     _borderWidth = XrwTheme.CompositeBorderWidth;
 }
Example #30
0
 /// <summary> Initializing constructor. </summary>
 /// <param name="display">The display pointer, that specifies the connection to the X server. <see cref="IntPtr"/> </param>
 /// <param name="screenNumber"> The appropriate screen number on the host server. <see cref="System.Int32"/> </param>
 /// <param name="parentWindow"> The X11 *** parent *** window at construction time for X11 calls. Will be overwritten by an *** own *** window wuring initialization. <see cref="IntPtr"/> </param>
 /// <param name="fixedSize"> The fixed size, that ist to use (if set) rather than the calcualated size. Passed as reference to avoid structure copy constructor calls. <see cref="TSize"/> </param>
 public XrwWmShell(IntPtr display, X11.TInt screenNumber, IntPtr parentWindow, ref TSize fixedSize)
     : base(display, screenNumber, parentWindow, ref fixedSize)
 {
     ;
 }