summaryrefslogtreecommitdiffstats
path: root/lib/widget/radio.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:22:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:22:03 +0000
commitffccd5b2b05243e7976db80f90f453dccfae9886 (patch)
tree39a43152d27f7390d8f7a6fb276fa6887f87c6e8 /lib/widget/radio.h
parentInitial commit. (diff)
downloadmc-ffccd5b2b05243e7976db80f90f453dccfae9886.tar.xz
mc-ffccd5b2b05243e7976db80f90f453dccfae9886.zip
Adding upstream version 3:4.8.30.upstream/3%4.8.30
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/widget/radio.h')
-rw-r--r--lib/widget/radio.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/widget/radio.h b/lib/widget/radio.h
new file mode 100644
index 0000000..5b52382
--- /dev/null
+++ b/lib/widget/radio.h
@@ -0,0 +1,38 @@
+
+/** \file radio.h
+ * \brief Header: WRadio widget
+ */
+
+#ifndef MC__WIDGET_RADIO_H
+#define MC__WIDGET_RADIO_H
+
+#include "lib/keybind.h" /* global_keymap_t */
+
+/*** typedefs(not structures) and defined constants **********************************************/
+
+#define RADIO(x) ((WRadio *)(x))
+
+/*** enums ***************************************************************************************/
+
+/*** structures declarations (and typedefs of structures)*****************************************/
+
+typedef struct WRadio
+{
+ Widget widget;
+ int pos;
+ int sel;
+ int count; /* number of members */
+ hotkey_t *texts; /* texts of labels */
+} WRadio;
+
+/*** global variables defined in .c file *********************************************************/
+
+extern const global_keymap_t *radio_map;
+
+/*** declarations of public functions ************************************************************/
+
+WRadio *radio_new (int y, int x, int count, const char **text);
+
+/*** inline functions ****************************************************************************/
+
+#endif /* MC__WIDGET_RADIO_H */