/// <description> /// Set the bitmap to show on the button. /// </description> /// <param name="path">Path to the texture file in any of the supported formats.</param> public void SetBitmap(string path) { InternalUnsafeMethods.SetBitmap__Args _args = new InternalUnsafeMethods.SetBitmap__Args() { path = path, }; InternalUnsafeMethods.SetBitmap()(ObjectPtr, _args); }
/// <description> /// Set the bitmap to use for rendering the progress bar. /// </description> /// <param name="filename">~Path to the bitmap file.</param> /// <remarks> Directly assign to #bitmap rather than using this method. /// /// </remarks> /// <see cref="GuiProgressBitmapCtrl::setBitmap" /> public void SetBitmap(string filename) { InternalUnsafeMethods.SetBitmap__Args _args = new InternalUnsafeMethods.SetBitmap__Args() { filename = filename, }; InternalUnsafeMethods.SetBitmap()(ObjectPtr, _args); }
/// <description> /// ( String filename | String filename, bool resize ) Assign an image to the control. /// </description> public void SetBitmap(string fileRoot, bool resize = false) { InternalUnsafeMethods.SetBitmap__Args _args = new InternalUnsafeMethods.SetBitmap__Args() { fileRoot = fileRoot, resize = resize, }; InternalUnsafeMethods.SetBitmap()(ObjectPtr, _args); }