pub fn close(&self) -> bool {
        let (obj_data, funcs) = self.get_widget_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).close)(obj_data);
            ret_val
        }
    }
///
/// Closes this widget. Returns `true` if the widget was closed;
/// otherwise returns `false.`
///
/// First it sends the widget a QCloseEvent. The widget is
/// [hidden](hide())
/// if it [accepts](QEvent::accept())
///
/// the close event. If it [ignores](QEvent::ignore())
///
/// the event, nothing happens. The default
/// implementation of QWidget::closeEvent() accepts the close event.
///
/// If the widget has the Qt::WA_DeleteOnClose flag, the widget
/// is also deleted. A close events is delivered to the widget no
/// matter if the widget is visible or not.
///
/// The [QApplication::lastWindowClosed()](QApplication::lastWindowClosed())
/// signal is emitted when the
/// last visible primary window (i.e. window with no parent) with the
/// Qt::WA_QuitOnClose attribute set is closed. By default this
/// attribute is set for all widgets except transient windows such as
/// splash screens, tool windows, and popup menus.
///
///
/// This event handler is called with the given *event* when Qt receives a window
/// close request for a top-level widget from the window system.
///
/// By default, the event is accepted and the widget is closed. You can reimplement
/// this function to change the way the widget responds to window close requests.
/// For example, you can prevent the window from closing by calling [ignore()](QEvent::)
///
/// on all events.
///
/// Main window applications typically use reimplementations of this function to check
/// whether the user's work has been saved and ask for permission before closing.
/// For example, the [Application Example](Application%20Example)
/// uses a helper function to determine whether
/// or not to close the window:
///
/// **See also:** [`event()`]
/// [`hide()`]
/// [`close()`]
/// [`CloseEvent`]
/// {Application Example}
Closes this widget. Returns `true` if the widget was closed;
otherwise returns `false.`

First it sends the widget a QCloseEvent. The widget is
[hidden](hide())
if it [accepts](QEvent::accept())

the close event.

the event, nothing happens. The default
implementation of QWidget::closeEvent() accepts the close event.

If the widget has the Qt::WA_DeleteOnClose flag, the widget
is also deleted. A close events is delivered to the widget no
matter if the widget is visible or not.



This event handler is called with the given *event* when Qt receives a window
close request for a top-level widget from the window system.

By default, the event is accepted and the widget is closed. You can reimplement
this function to change the way the widget responds to window close requests.
For example, you can prevent the window from closing by calling [ignore()](QEvent::)

on all events.

Main window applications typically use reimplementations of this function to check
whether the user's work has been saved and ask for permission before closing.
For example, the [Application Example](Application%20Example)
uses a helper function to determine whether
or not to close the window.


Closes this widget . Returns ` true ` if the widget was closed ; otherwise returns ` false . ` First it sends the widget a QCloseEvent . The widget is [ hidden ] ( hide () ) if it [ accepts ] ( QEvent :: accept () ) the close event . the event nothing happens . The default implementation of QWidget :: closeEvent () accepts the close event . If the widget has the Qt :: WA_DeleteOnClose flag the widget is also deleted . A close events is delivered to the widget no matter if the widget is visible or not . This event handler is called with the given * event * when Qt receives a window close request for a top - level widget from the window system . By default the event is accepted and the widget is closed . You can reimplement this function to change the way the widget responds to window close requests . For example you can prevent the window from closing by calling [ ignore () ] ( QEvent :: ) on all events . Main window applications typically use reimplementations of this function to check whether the user ' s work has been saved and ask for permission before closing . For example the [ Application Example ] ( Application%20Example ) uses a helper function to determine whether or not to close the window .
pub fn close(&self) -> bool {
        let (obj_data, funcs) = self.get_widget_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).close)(obj_data);
            ret_val
        }
    }
pub fn close ( & self ) -> bool { let ( obj_data , funcs ) = self . get_widget_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . close ) ( obj_data ) ; ret_val } }
Closes this widget.
Closes this widget .
&self
&self