/// <description> /// Called when the control is resized. /// </description> public virtual void OnResize() { InternalUnsafeMethods.OnResize__Args _args = new InternalUnsafeMethods.OnResize__Args() { }; InternalUnsafeMethods.OnResize()(ObjectPtr, _args); }
/// <summary>Called whenever the control size changes.</summary> /// <description> /// /// </description> /// <param name="width">The new width value for the control</param> /// <param name="maxY">The current maximum allowed Y value for the control</param> /// <code> /// // Control size changed, causing the callback to occur. /// GuiMLTextCtrl::onResize(%this,%width,%maxY) /// { /// // Code to call when the control size changes /// } /// </code> /// <see cref="GuiControl" /> public virtual void OnResize(int width, int maxY) { InternalUnsafeMethods.OnResize__Args _args = new InternalUnsafeMethods.OnResize__Args() { width = width, maxY = maxY, }; InternalUnsafeMethods.OnResize()(ObjectPtr, _args); }