Kodi Development  19.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 #pragma once
10 
11 #ifndef C_API_GUI_CONTROLS_EDIT_H
12 #define C_API_GUI_CONTROLS_EDIT_H
13 
14 #include "../definitions.h"
15 
16 #ifdef __cplusplus
17 extern "C"
18 {
19 #endif /* __cplusplus */
20 
21  //============================================================================
27  {
52  ADDON_INPUT_TYPE_PASSWORD_NUMBER_VERIFY_NEW
53  };
55  //----------------------------------------------------------------------------
56 
58  {
59  void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
60  void (*set_enabled)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
61  void (*set_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* label);
62  char* (*get_label)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
63  void (*set_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
64  char* (*get_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
65  void (*set_cursor_position)(KODI_HANDLE kodiBase,
66  KODI_GUI_CONTROL_HANDLE handle,
67  unsigned int position);
68  unsigned int (*get_cursor_position)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
69  void (*set_input_type)(KODI_HANDLE kodiBase,
70  KODI_GUI_CONTROL_HANDLE handle,
71  int type,
72  const char* heading);
74 
75 #ifdef __cplusplus
76 } /* extern "C" */
77 #endif /* __cplusplus */
78 
79 #endif /* !C_API_GUI_CONTROLS_EDIT_H */
ADDON_INPUT_TYPE_SECONDS
@ ADDON_INPUT_TYPE_SECONDS
To insert seconds.
Definition: edit.h:35
ADDON_INPUT_TYPE_DATE
@ ADDON_INPUT_TYPE_DATE
To insert a date.
Definition: edit.h:39
AddonGUIInputType
AddonGUIInputType
Text input types used on kodi::gui::controls::CEdit.
Definition: edit.h:27
ADDON_INPUT_TYPE_TEXT
@ ADDON_INPUT_TYPE_TEXT
Normal text entries.
Definition: edit.h:31
ADDON_INPUT_TYPE_PASSWORD_MD5
@ ADDON_INPUT_TYPE_PASSWORD_MD5
Definition: edit.h:46
ADDON_INPUT_TYPE_NUMBER
@ ADDON_INPUT_TYPE_NUMBER
To use on edit control only numeric numbers.
Definition: edit.h:33
ADDON_INPUT_TYPE_FILTER
@ ADDON_INPUT_TYPE_FILTER
Text field as filter.
Definition: edit.h:50
AddonToKodiFuncTable_kodi_gui_control_edit
Definition: edit.h:58
ADDON_INPUT_TYPE_PASSWORD
@ ADDON_INPUT_TYPE_PASSWORD
Text field used as password entry field with not visible text.
Definition: edit.h:43
ADDON_INPUT_TYPE_SEARCH
@ ADDON_INPUT_TYPE_SEARCH
Use text field for search purpose.
Definition: edit.h:48
ADDON_INPUT_TYPE_READONLY
@ ADDON_INPUT_TYPE_READONLY
Text inside edit control only readable.
Definition: edit.h:29
ADDON_INPUT_TYPE_IPADDRESS
@ ADDON_INPUT_TYPE_IPADDRESS
Used for write in IP addresses.
Definition: edit.h:41
ADDON_INPUT_TYPE_TIME
@ ADDON_INPUT_TYPE_TIME
To insert time.
Definition: edit.h:37