|
Eile Mit Weile
|
Panel for entering a value. More...
#include <InputField.hpp>
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 |
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.
| 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).
| wxString InputField::GetValue | ( | ) |
Returns the entered value.
|
private |
The input field.
|
private |
The label of the input field.