kodi
Edit.h
1 /*
2  * Copyright (C) 2005-2018 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 #include "addons/kodi-dev-kit/include/kodi/c-api/gui/controls/edit.h"
12 
13 extern "C"
14 {
15 
16  struct AddonGlobalInterface;
17 
18  namespace ADDON
19  {
20 
30  {
31  static void Init(AddonGlobalInterface* addonInterface);
32  static void DeInit(AddonGlobalInterface* addonInterface);
33 
45  static void set_visible(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
46  static void set_enabled(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
47 
48  static void set_input_type(KODI_HANDLE kodiBase,
49  KODI_GUI_CONTROL_HANDLE handle,
50  int type,
51  const char* heading);
52 
53  static void set_label(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* label);
54  static char* get_label(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
55 
56  static void set_text(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
57  static char* get_text(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
58 
59  static void set_cursor_position(KODI_HANDLE kodiBase,
60  KODI_GUI_CONTROL_HANDLE handle,
61  unsigned int position);
62  static unsigned int get_cursor_position(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
64  };
65 
66  } /* namespace ADDON */
67 } /* extern "C" */
static void set_visible(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible)
callback functions from add-on to kodi
Definition: Edit.cpp:40
Main structure passed from kodi to addon with basic information needed to create add-on.
Definition: addon_base.h:378
Global gui Add-on to Kodi callback functions.
Definition: Edit.h:29
Definition: Addon.cpp:39