Back to index

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

List of all members.

Public Member Functions

 HGridKeyNavigationTest (const char *program_name, int window_width, int window_height, int program_life_span)
 ~HGridKeyNavigationTest ()
virtual void UserInterfaceSetup ()
nux::TestViewCreateTile ()
void AddTile (nux::TestView *tile)
virtual void Startup ()
virtual void Run ()
bool ReadyToGo ()
nux::WindowThreadGetWindowThread ()

Public Attributes

nux::GridHLayoutgrid_layout_
nux::TestViewtiles_ [11]
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 35 of file xtest-hgrid-key-navigation.cpp.


Constructor & Destructor Documentation

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

Definition at line 50 of file xtest-hgrid-key-navigation.cpp.

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

Definition at line 58 of file xtest-hgrid-key-navigation.cpp.

{
}

Member Function Documentation

Definition at line 68 of file xtest-hgrid-key-navigation.cpp.

{
  grid_layout_->AddView(tile, 1);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 62 of file xtest-hgrid-key-navigation.cpp.

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

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 73 of file xtest-hgrid-key-navigation.cpp.

{  
  grid_layout_ = new nux::GridHLayout(NUX_TRACKER_LOCATION);
  grid_layout_->ForceChildrenSize(true);
  grid_layout_->SetChildrenSize(100, 100);
  grid_layout_->EnablePartialVisibility(false);
  grid_layout_->SetPadding(20, 20);
  grid_layout_->SetSpaceBetweenChildren(10, 10);
  
  for (int i=0; i<11; ++i)
  {
    tiles_[i] = CreateTile();
    AddTile(tiles_[i]);
  }
  
  nux::GetWindowCompositor().SetKeyFocusArea(tiles_[0]);
  
  static_cast<nux::WindowThread*>(window_thread_)->SetLayout(grid_layout_);
  
  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 46 of file xtest-hgrid-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 xtest-hgrid-key-navigation.cpp.

Definition at line 47 of file ProgramTemplate.h.

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: