Back to index

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

List of all members.

Public Member Functions

 TextTextEntry (const char *program_name, int window_width, int window_height, int program_life_span)
 ~TextTextEntry ()
virtual void UserInterfaceSetup ()
void TextEntryClick (nux::TextEntry *text_entry)
void ResetEvents ()
 TextTextEntry (const char *program_name, int window_width, int window_height, int program_life_span)
 ~TextTextEntry ()
virtual void UserInterfaceSetup ()
void TextEntryClick (nux::TextEntry *text_entry)
void ResetEvents ()
 TextTextEntry (const char *program_name, int window_width, int window_height, int program_life_span)
 ~TextTextEntry ()
virtual void UserInterfaceSetup ()
void TextEntryClick (nux::TextEntry *text_entry)
void OnActivated ()
void OnCursorMoved (int)
void ResetEvents ()
virtual void Startup ()
virtual void Run ()
bool ReadyToGo ()
nux::WindowThreadGetWindowThread ()

Public Attributes

nux::TextEntrytext_entry_
bool clicked_
bool activated_
bool cursor_moved_
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 32 of file xtest-text-entry-compositionkeys.cpp.


Constructor & Destructor Documentation

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

Definition at line 47 of file xtest-text-entry-compositionkeys.cpp.

  : ProgramTemplate(program_name, window_width, window_height, program_life_span)
{
  ResetEvents();
  text_entry_ = NULL;
}

Here is the call graph for this function:

Definition at line 57 of file xtest-text-entry-compositionkeys.cpp.

{
  
}
TextTextEntry::TextTextEntry ( const char *  program_name,
int  window_width,
int  window_height,
int  program_life_span 
)
TextTextEntry::TextTextEntry ( const char *  program_name,
int  window_width,
int  window_height,
int  program_life_span 
)

Member Function Documentation

Definition at line 104 of file ProgramTemplate.cpp.

{
  return window_thread_;
}

Here is the caller graph for this function:

Definition at line 85 of file xtest-text-entry.cpp.

{
  activated_ = true;
}
void TextTextEntry::OnCursorMoved ( int  position)

Definition at line 90 of file xtest-text-entry.cpp.

{
  cursor_moved_ = true;
}
bool ProgramTemplate::ReadyToGo ( ) [inherited]

Definition at line 99 of file ProgramTemplate.cpp.

{
  return window_thread_;
}

Here is the caller graph for this function:

Definition at line 62 of file xtest-text-entry-compositionkeys.cpp.

{
  clicked_ = false;
}

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:

Definition at line 67 of file xtest-text-entry-compositionkeys.cpp.

{
  if (text_entry_ == text_entry)
  {
    clicked_ = true;
  }
}

Reimplemented from ProgramTemplate.

Definition at line 75 of file xtest-text-entry-compositionkeys.cpp.

{
  nux::VLayout* main_layout = new nux::VLayout(NUX_TRACKER_LOCATION);
  text_entry_ = new nux::TextEntry("", NUX_TRACKER_LOCATION);
  text_entry_->SetFontSize(76);

  main_layout->AddView(text_entry_, 0, nux::MINOR_POSITION_CENTER, nux::MINOR_SIZE_FULL);
  main_layout->SetSpaceBetweenChildren(10);
  main_layout->SetContentDistribution(nux::MAJOR_POSITION_CENTER);

  static_cast<nux::WindowThread*>(window_thread_)->SetLayout(main_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:

virtual void TextTextEntry::UserInterfaceSetup ( ) [virtual]

Reimplemented from ProgramTemplate.

virtual void TextTextEntry::UserInterfaceSetup ( ) [virtual]

Reimplemented from ProgramTemplate.


Member Data Documentation

Definition at line 48 of file xtest-text-entry.cpp.

Definition at line 44 of file xtest-text-entry-compositionkeys.cpp.

Definition at line 49 of file xtest-text-entry.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 42 of file xtest-text-entry-compositionkeys.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 files: