public uint Len() => LibuiLibrary.uiAttributedStringLen(Handle.DangerousGetHandle()).ToUInt32();
/// <summary> /// Initializes this UI component's events. /// </summary> protected sealed override void InitializeEvents() => LibuiLibrary.uiComboboxOnSelected(Handle.DangerousGetHandle(), (c, data) => { OnSelected(EventArgs.Empty); }, IntPtr.Zero);
/// <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)); }
/// <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); }
public void Scale(double xCenter, double yCenter, double x, double y) => LibuiLibrary.uiDrawMatrixScale(LibuiConvert.ToLibuiDrawMatrix(this), xCenter, yCenter, x, y);
protected sealed override void InitializeEvents() => LibuiLibrary.uiRadioButtonsOnSelected(Handle.DangerousGetHandle(), (btn, data) => { OnSelected(EventArgs.Empty); }, IntPtr.Zero);
public SizeD TransformToSize() { LibuiLibrary.uiDrawMatrixTransformSize(LibuiConvert.ToLibuiDrawMatrix(this), out double width, out double height); return(new SizeD(width, height)); }
public void AddSeparator() => LibuiLibrary.uiMenuAppendSeparator(Handle.DangerousGetHandle());
public void Invert() => LibuiLibrary.uiDrawMatrixInvert(LibuiConvert.ToLibuiDrawMatrix(this));
public PointD TransformToPoint() { LibuiLibrary.uiDrawMatrixTransformPoint(LibuiConvert.ToLibuiDrawMatrix(this), out double x, out double y); return(new PointD(x, y)); }
public static void Multiply([Out] Matrix dest, [In] Matrix src) => LibuiLibrary.uiDrawMatrixMultiply(LibuiConvert.ToLibuiDrawMatrix(dest), LibuiConvert.ToLibuiDrawMatrix(src));
public void Skew(double x, double y, double xamount, double yamount) => LibuiLibrary.uiDrawMatrixSkew(LibuiConvert.ToLibuiDrawMatrix(this), x, y, xamount, yamount);
public void Rotate(double x, double y, double amount) => LibuiLibrary.uiDrawMatrixRotate(LibuiConvert.ToLibuiDrawMatrix(this), x, y, amount);
/// <summary> /// Initializes this UI component's events. /// </summary> protected sealed override void InitializeEvents() => LibuiLibrary.uiEditableComboboxOnChanged(Handle.DangerousGetHandle(), (box, data) => { OnTextChanged(EventArgs.Empty); }, IntPtr.Zero);
/// <summary> /// Initializes this UI component. /// </summary> protected sealed override void InitializeEvents() => LibuiLibrary.uiSpinboxOnChanged(Handle.DangerousGetHandle(), (spinbox, data) => { OnValueChanged(EventArgs.Empty); }, IntPtr.Zero);
public void AddQuitItem(Action <IntPtr> click = null) { MenuStripQuitItem item = new MenuStripQuitItem(LibuiLibrary.uiMenuAppendQuitItem(Handle.DangerousGetHandle())); Items.Add(item); }
public RadioButtonGroup() { Handle = new SafeControlHandle(LibuiLibrary.uiNewRadioButtons()); InitializeEvents(); }
/// <inheritdoc/> protected sealed override void InitializeEvents() => LibuiLibrary.uiButtonOnClicked(Handle.DangerousGetHandle(), (button, data) => { OnClick(EventArgs.Empty); }, IntPtr.Zero);
public void Translate(double x, double y) => LibuiLibrary.uiDrawMatrixTranslate(LibuiConvert.ToLibuiDrawMatrix(this), x, y);