Kodi Development  20.0
for Binary and Script based Add-Ons
edit.h
1 /*
2  * Copyright (C) 2005-2020 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #ifndef C_API_GUI_CONTROLS_EDIT_H
10 #define C_API_GUI_CONTROLS_EDIT_H
11 
12 #include "../definitions.h"
13 
14 #ifdef __cplusplus
15 extern "C"
16 {
17 #endif /* __cplusplus */
18 
19  //============================================================================
25  {
50  ADDON_INPUT_TYPE_PASSWORD_NUMBER_VERIFY_NEW
51  };
53  //----------------------------------------------------------------------------
54 
56  {
57  void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
58  void (*set_enabled)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
59  void (*set_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* label);
60  char* (*get_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
61  void (*set_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
62  char* (*get_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
63  void (*set_cursor_position)(KODI_HANDLE kodiBase,
64  KODI_GUI_CONTROL_HANDLE handle,
65  unsigned int position);
66  unsigned int (*get_cursor_position)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
67  void (*set_input_type)(KODI_HANDLE kodiBase,
68  KODI_GUI_CONTROL_HANDLE handle,
69  int type,
70  const char* heading);
72 
73 #ifdef __cplusplus
74 } /* extern "C" */
75 #endif /* __cplusplus */
76 
77 #endif /* !C_API_GUI_CONTROLS_EDIT_H */
AddonGUIInputType
Text input types used on kodi::gui::controls::CEdit.
Definition: edit.h:25
@ ADDON_INPUT_TYPE_TIME
To insert time.
Definition: edit.h:35
@ ADDON_INPUT_TYPE_SECONDS
To insert seconds.
Definition: edit.h:33
@ ADDON_INPUT_TYPE_FILTER
Text field as filter.
Definition: edit.h:48
@ ADDON_INPUT_TYPE_PASSWORD_MD5
Definition: edit.h:44
@ ADDON_INPUT_TYPE_SEARCH
Use text field for search purpose.
Definition: edit.h:46
@ ADDON_INPUT_TYPE_DATE
To insert a date.
Definition: edit.h:37
@ ADDON_INPUT_TYPE_NUMBER
To use on edit control only numeric numbers.
Definition: edit.h:31
@ ADDON_INPUT_TYPE_READONLY
Text inside edit control only readable.
Definition: edit.h:27
@ ADDON_INPUT_TYPE_TEXT
Normal text entries.
Definition: edit.h:29
@ ADDON_INPUT_TYPE_PASSWORD
Text field used as password entry field with not visible text.
Definition: edit.h:41
@ ADDON_INPUT_TYPE_IPADDRESS
Used for write in IP addresses.
Definition: edit.h:39