Back to index

nux  3.0.0
Public Member Functions | Public Attributes
HLayoutKeyNavigationTest Class Reference
Inheritance diagram for HLayoutKeyNavigationTest:
Inheritance graph
[legend]
Collaboration diagram for HLayoutKeyNavigationTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HLayoutKeyNavigationTest (const char *program_name, int window_width, int window_height, int program_life_span)
 ~HLayoutKeyNavigationTest ()
virtual void UserInterfaceSetup ()
nux::TestViewCreateView ()
void AddView (nux::TestView *view)
virtual void Startup ()
virtual void Run ()
bool ReadyToGo ()
nux::WindowThreadGetWindowThread ()

Public Attributes

nux::HLayouthlayout_
nux::TestViewviews_ [NUM_VIEWS]
std::string program_name_
int program_life_span_
 The program will auto-terminate after a delay in milliseconds.
nux::TimeOutSignaltimeout_signal_
nux::WindowThreadwindow_thread_
int window_width_
int window_height_

Detailed Description

Definition at line 33 of file xtest-hlayout-key-navigation.cpp.


Constructor & Destructor Documentation

HLayoutKeyNavigationTest::HLayoutKeyNavigationTest ( const char *  program_name,
int  window_width,
int  window_height,
int  program_life_span 
)

Definition at line 48 of file xtest-hlayout-key-navigation.cpp.

: ProgramTemplate(program_name, window_width, window_height, program_life_span)
{
}

Definition at line 56 of file xtest-hlayout-key-navigation.cpp.

{
}

Member Function Documentation

Definition at line 66 of file xtest-hlayout-key-navigation.cpp.

{
  hlayout_->AddView(view, 1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 60 of file xtest-hlayout-key-navigation.cpp.

{
  nux::TestView* view = new nux::TestView();
  return view;
}

Here is the caller graph for this function:

Definition at line 104 of file ProgramTemplate.cpp.

{
  return window_thread_;
}

Here is the caller graph for this function:

bool ProgramTemplate::ReadyToGo ( ) [inherited]

Definition at line 99 of file ProgramTemplate.cpp.

{
  return window_thread_;
}

Here is the caller graph for this function:

void ProgramTemplate::Run ( ) [virtual, inherited]

Definition at line 84 of file ProgramTemplate.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ProgramTemplate::Startup ( ) [virtual, inherited]

Definition at line 62 of file ProgramTemplate.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented from ProgramTemplate.

Definition at line 71 of file xtest-hlayout-key-navigation.cpp.

{  
  hlayout_ = new nux::HLayout(NUX_TRACKER_LOCATION);
  hlayout_->SetPadding(20, 20);
  hlayout_->SetSpaceBetweenChildren(10);
  
  for (unsigned int i=0; i<NUM_VIEWS; ++i)
  {
    views_[i] = CreateView();
    AddView(views_[i]);
  }
  
  views_[ID_UNFOCUSABLE_VIEW]->can_focus_ = false;
  nux::GetWindowCompositor().SetKeyFocusArea(views_[0]);
  
  static_cast<nux::WindowThread*>(window_thread_)->SetLayout(hlayout_);
  
  nux::ColorLayer background(nux::Color(0xFF4D4D4D));
  static_cast<nux::WindowThread*>(window_thread_)->SetWindowBackgroundPaintLayer(&background);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 44 of file xtest-hlayout-key-navigation.cpp.

The program will auto-terminate after a delay in milliseconds.

Definition at line 46 of file ProgramTemplate.h.

std::string ProgramTemplate::program_name_ [inherited]

Definition at line 45 of file ProgramTemplate.h.

Definition at line 47 of file ProgramTemplate.h.

Definition at line 45 of file xtest-hlayout-key-navigation.cpp.

Definition at line 51 of file ProgramTemplate.h.

Definition at line 48 of file ProgramTemplate.h.

Definition at line 50 of file ProgramTemplate.h.


The documentation for this class was generated from the following file: