Eile Mit Weile
Loading...
Searching...
No Matches
InputField Class Reference

Panel for entering a value. More...

#include <InputField.hpp>

Inheritance diagram for InputField:

Public Member Functions

 InputField (wxWindow *parent, const wxString label, int width_label, const wxString default_val, int width_field)
 
wxString GetValue ()
 

Private Attributes

wxStaticText_label
 
wxTextCtrl_field
 

Detailed Description

Panel for entering a value.

This class is derived from wxPanel, which is wxWidgets' panel class. It is responsible for displaying a label and an input field. It also provides a method for getting the entered value.

Constructor & Destructor Documentation

◆ InputField()

InputField::InputField ( wxWindow parent,
const wxString  label,
int  width_label,
const wxString  default_val,
int  width_field 
)

Initializes the InputField with the given parent window (GameWidow).

Member Function Documentation

◆ GetValue()

wxString InputField::GetValue ( )

Returns the entered value.

Member Data Documentation

◆ _field

wxTextCtrl* InputField::_field
private

The input field.

◆ _label

wxStaticText* InputField::_label
private

The label of the input field.


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