/*
 *  Matchbox Keyboard - A lightweight software keyboard.
 *
 *  Authored By Tomas Frydrych <tomas@sleepfive.com>
 *
 *  Copyright (c) 2012 Vernier Software and Technology
 *
 *  SPDX-License-Identifier: LGPL-2.1
 *
 */

#ifndef HAVE_MB_KEYBOARD_POPUP_H
#define HAVE_MB_KEYBOARD_POPUP_H

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#ifdef WANT_CAIRO
#include <cairo.h>
#else
#error "Popups are only available with Cairo backend"
#endif

#include "matchbox-keyboard.h"

MBKeyboardPopup *mb_kbd_popup_new (MBKeyboardUI *ui);
void             mb_kbd_popup_destroy (MBKeyboardPopup *popup);
void             mb_kbd_popup_show (MBKeyboardPopup *popup,
                                    MBKeyboardKey   *key,
                                    int              x_root,
                                    int              y_root);
void             mb_kbd_popup_hide (MBKeyboardPopup *popup);
void             mb_kbd_popup_load_font (MBKeyboardPopup *popup);
void             mb_kbd_popup_resize (MBKeyboardPopup *popup);

#endif
