namespace BrushExport
{
-ui::Window g_mainwnd;
+ui::Window g_mainwnd{ui::null};
const char* init( void* hApp, void* pMainWidget ){
g_mainwnd = ui::Window(GTK_WINDOW(pMainWidget));
namespace Shaderplug
{
-ui::Window g_window;
+ui::Window g_window{ui::null};
std::vector<const char*> archives;
std::set<std::string> shaders;
// *************************
namespace SunPlug
{
-ui::Window main_window;
+ui::Window main_window{ui::null};
char MenuList[100] = "";
const char* init( void* hApp, void* pMainWidget ){
namespace UFOAI
{
- ui::Window g_mainwnd;
+ ui::Window g_mainwnd{ui::null};
const char* init( void* hApp, void* pMainWidget ){
g_mainwnd = ui::Window(GTK_WINDOW( pMainWidget ));
}
ui::Window create_simple_modal_dialog_window( const char* title, ModalDialog& dialog, ui::Widget contents ){
- ui::Window window = create_fixedsize_modal_dialog_window(ui::Window(), title, dialog );
+ ui::Window window = create_fixedsize_modal_dialog_window(ui::Window{ui::null}, title, dialog );
auto vbox1 = create_dialog_vbox( 8, 4 );
window.add(vbox1);
}
}
- Widget root{nullptr};
+ Widget root;
#define IMPL(T, F) template<> _IMPL(T, F)
#define _IMPL(T, F) struct verify<T *> { using self = T; static self test(self it) { return self(F(it)); } }
IMPL(Window, GTK_WINDOW);
- Window::Window() : Window(nullptr)
- {}
-
Window::Window(window_type type) : Window(GTK_WINDOW(gtk_window_new(
type == window_type::TOP ? GTK_WINDOW_TOPLEVEL :
type == window_type::POPUP ? GTK_WINDOW_POPUP :
class AccelGroup;
WRAP(Window, Bin, _GtkWindow, (),
- Window();
Window(window_type type);
,
Window create_dialog_window(
public:
ui::Widget m_gl_widget;
-ui::Window m_parent;
+ui::Window m_parent{ui::null};
SelectionSystemWindowObserver* m_window_observer;
XORRectangle m_XORRectangle;
ASSERT_MESSAGE( m_window, "dialog cannot be destroyed" );
gtk_widget_destroy( GTK_WIDGET( m_window ) );
- m_window = ui::Window();
+ m_window = ui::Window{ui::null};
}
void GroupDialog_destroyWindow(){
ASSERT_TRUE( g_GroupDlg.m_window );
destroy_floating_window( g_GroupDlg.m_window );
- g_GroupDlg.m_window = ui::Window();
+ g_GroupDlg.m_window = ui::Window{ui::null};
}
class WaitDialog
{
public:
-ui::Window m_window;
+ui::Window m_window{ui::null};
ui::Label m_label{(GtkLabel *) nullptr};
};
gtk_grab_remove( GTK_WIDGET( g_wait.m_window ) );
destroy_floating_window( g_wait.m_window );
- g_wait.m_window = ui::Window();
+ g_wait.m_window = ui::Window{ui::null};
//gtk_window_present(MainFrame_getWindow());
}
ui::Window MainFrame_getWindow()
{
- return g_pParentWnd ? g_pParentWnd->m_window : ui::Window();
+ return g_pParentWnd ? g_pParentWnd->m_window : ui::Window{ui::null};
}
std::vector<ui::Widget> g_floating_windows;
return window;
}
-static ui::Window splash_screen;
+static ui::Window splash_screen{ui::null};
void show_splash(){
splash_screen = create_splash();
GtkSpinButton* x;
GtkSpinButton* y;
GtkSpinButton* z;
- ui::Window window;
+ ui::Window window{ui::null};
};
static gboolean rotatedlg_apply( ui::Widget widget, RotateDialog* rotateDialog ){
ui::Widget x;
ui::Widget y;
ui::Widget z;
- ui::Window window;
+ ui::Window window{ui::null};
};
static gboolean scaledlg_apply( ui::Widget widget, ScaleDialog* scaleDialog ){
CopiedString shader;
-ui::Window m_parent;
+ui::Window m_parent{ui::null};
ui::Widget m_gl_widget;
ui::Widget m_texture_scroll;
ui::Widget m_treeViewTree;