about summary refs log tree commit diff
path: root/clients/tui/newt/nmt-newt-hacks.h
blob: 537d0d45765bbba2cc80d06b1201611460738645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2013 Red Hat, Inc.
 */

#ifndef NMT_NEWT_HACKS_H
#define NMT_NEWT_HACKS_H

#include <newt.h>

#ifndef HAVE_NEWTCOMPONENTGETSIZE
void newtComponentGetSize     (newtComponent  component,
                               int           *width,
                               int           *height);

void newtComponentGetPosition (newtComponent  component,
                               int           *left,
                               int           *top);
#endif

#ifndef HAVE_NEWTENTRYGETCURSORPOSITION
int  newtEntryGetCursorPosition (newtComponent component);
void newtEntrySetCursorPosition (newtComponent component,
                                 int           position);
#endif

#endif /* NMT_NEWT_HACKS_H */