Back to index

unity  6.0.0
Functions
StandalonePanel.cpp File Reference
#include "Nux/Nux.h"
#include "Nux/VLayout.h"
#include "Nux/HLayout.h"
#include "Nux/WindowThread.h"
#include "NuxGraphics/GraphicsEngine.h"
#include <gtk/gtk.h>
#include "unity-shared/UnitySettings.h"
#include "unity-shared/PanelStyle.h"
#include "PanelView.h"
#include <dbus/dbus-glib.h>

Go to the source code of this file.

Functions

void ThreadWidgetInit (nux::NThread *thread, void *InitData)
int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 46 of file StandalonePanel.cpp.

{
  g_type_init();
  
  gtk_init(&argc, &argv);

  dbus_g_thread_init();

  nux::NuxInitialize(0);

  // The instances for the pseudo-singletons.
  unity::Settings settings;
  unity::panel::Style panel_style;

  nux::WindowThread* wt = nux::CreateGUIThread(TEXT("Unity Panel"), 1024, 24, 0, &ThreadWidgetInit, 0);

  wt->Run(NULL);
  delete wt;
  return 0;
}

Here is the call graph for this function:

void ThreadWidgetInit ( nux::NThread *  thread,
void *  InitData 
)

Definition at line 33 of file StandalonePanel.cpp.

{
  nux::VLayout* layout = new nux::VLayout(TEXT(""), NUX_TRACKER_LOCATION);
  unity::PanelView* view = new unity::PanelView();

  //view->SetMinMaxSize(1024, 24);
  view->SetPrimary(true);
  layout->AddView(view, 1, nux::eCenter, nux::eFull);
  layout->SetContentDistribution(nux::eStackCenter);

  nux::GetWindowThread()->SetLayout(layout);
}

Here is the call graph for this function: