Ejemplo n.º 1
0
 public uint Len() => LibuiLibrary.uiAttributedStringLen(Handle.DangerousGetHandle()).ToUInt32();
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes this UI component's events.
 /// </summary>
 protected sealed override void InitializeEvents() => LibuiLibrary.uiComboboxOnSelected(Handle.DangerousGetHandle(), (c, data) => { OnSelected(EventArgs.Empty); }, IntPtr.Zero);
Ejemplo n.º 3
0
 /// <summary>
 /// Removes the first occurrence of a specific <see cref="Control"/> from the <see cref="StackPanelItemCollection"/>.
 /// </summary>
 /// <param name="value">The <see cref="Control"/> to remove from the <see cref="StackPanelItemCollection"/>.</param>
 /// <returns>true if item is successfully removed; otherwise, false. This method also returns false if item was not found in the <see cref="StackPanelItemCollection"/>.</returns>
 public override bool Remove(Control value)
 {
     LibuiLibrary.uiBoxDelete(Owner.Handle.DangerousGetHandle(), value.Index);
     return(base.Remove(value));
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Adds a new <see cref="QuitMenuItem"/> to the list.
        /// </summary>
        public void AddQuitItem()
        {
            QuitMenuItem item = new QuitMenuItem(LibuiLibrary.uiMenuAppendQuitItem(Handle.DangerousGetHandle()));

            Items.Add(item);
        }
Ejemplo n.º 5
0
 public void Scale(double xCenter, double yCenter, double x, double y) => LibuiLibrary.uiDrawMatrixScale(LibuiConvert.ToLibuiDrawMatrix(this), xCenter, yCenter, x, y);
Ejemplo n.º 6
0
 protected sealed override void InitializeEvents() => LibuiLibrary.uiRadioButtonsOnSelected(Handle.DangerousGetHandle(), (btn, data) => { OnSelected(EventArgs.Empty); }, IntPtr.Zero);
Ejemplo n.º 7
0
 public SizeD TransformToSize()
 {
     LibuiLibrary.uiDrawMatrixTransformSize(LibuiConvert.ToLibuiDrawMatrix(this), out double width, out double height);
     return(new SizeD(width, height));
 }
Ejemplo n.º 8
0
 public void AddSeparator() => LibuiLibrary.uiMenuAppendSeparator(Handle.DangerousGetHandle());
Ejemplo n.º 9
0
 public void Invert() => LibuiLibrary.uiDrawMatrixInvert(LibuiConvert.ToLibuiDrawMatrix(this));
Ejemplo n.º 10
0
 public PointD TransformToPoint()
 {
     LibuiLibrary.uiDrawMatrixTransformPoint(LibuiConvert.ToLibuiDrawMatrix(this), out double x, out double y);
     return(new PointD(x, y));
 }
Ejemplo n.º 11
0
 public static void Multiply([Out]  Matrix dest, [In]  Matrix src) => LibuiLibrary.uiDrawMatrixMultiply(LibuiConvert.ToLibuiDrawMatrix(dest), LibuiConvert.ToLibuiDrawMatrix(src));
Ejemplo n.º 12
0
 public void Skew(double x, double y, double xamount, double yamount) => LibuiLibrary.uiDrawMatrixSkew(LibuiConvert.ToLibuiDrawMatrix(this), x, y, xamount, yamount);
Ejemplo n.º 13
0
 public void Rotate(double x, double y, double amount) => LibuiLibrary.uiDrawMatrixRotate(LibuiConvert.ToLibuiDrawMatrix(this), x, y, amount);
Ejemplo n.º 14
0
 /// <summary>
 /// Initializes this UI component's events.
 /// </summary>
 protected sealed override void InitializeEvents() => LibuiLibrary.uiEditableComboboxOnChanged(Handle.DangerousGetHandle(), (box, data) => { OnTextChanged(EventArgs.Empty); }, IntPtr.Zero);
Ejemplo n.º 15
0
 /// <summary>
 /// Initializes this UI component.
 /// </summary>
 protected sealed override void InitializeEvents() => LibuiLibrary.uiSpinboxOnChanged(Handle.DangerousGetHandle(), (spinbox, data) => { OnValueChanged(EventArgs.Empty); }, IntPtr.Zero);
Ejemplo n.º 16
0
        public void AddQuitItem(Action <IntPtr> click = null)
        {
            MenuStripQuitItem item = new MenuStripQuitItem(LibuiLibrary.uiMenuAppendQuitItem(Handle.DangerousGetHandle()));

            Items.Add(item);
        }
Ejemplo n.º 17
0
 public RadioButtonGroup()
 {
     Handle = new SafeControlHandle(LibuiLibrary.uiNewRadioButtons());
     InitializeEvents();
 }
Ejemplo n.º 18
0
 /// <inheritdoc/>
 protected sealed override void InitializeEvents() => LibuiLibrary.uiButtonOnClicked(Handle.DangerousGetHandle(), (button, data) => { OnClick(EventArgs.Empty); }, IntPtr.Zero);
Ejemplo n.º 19
0
 public void Translate(double x, double y) => LibuiLibrary.uiDrawMatrixTranslate(LibuiConvert.ToLibuiDrawMatrix(this), x, y);