mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-01 07:00:51 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@677 b9cfdab3-6d41-4d17-bbe4-086880011989
49 lines
916 B
C
49 lines
916 B
C
/* $Id: ComboBox.h 206 2025-10-07 15:10:46Z nishi $ */
|
|
/*!
|
|
* @file Mw/Widget/ComboBox.h
|
|
* @brief ComboBox widget
|
|
*/
|
|
#ifndef __MW_WIDGET_COMBOBOX_H__
|
|
#define __MW_WIDGET_COMBOBOX_H__
|
|
|
|
#include <Mw/MachDep.h>
|
|
#include <Mw/TypeDefs.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*!
|
|
* @brief ComboBox widget class
|
|
*/
|
|
MWDECL MwClass MwComboBoxClass;
|
|
|
|
/*!
|
|
* @brief Adds the entry to combobox
|
|
* @param handle Widget
|
|
* @param index Index
|
|
* @param text Text
|
|
*/
|
|
MwInline void MwComboBoxAdd(MwWidget handle, int index, const char* text) {
|
|
MwVaWidgetExecute(handle, "mwComboBoxAdd", NULL, index, text);
|
|
}
|
|
|
|
/*!
|
|
* @brief Gets the entry from combobox
|
|
* @param handle Widget
|
|
* @param index Index
|
|
* @return Text
|
|
*/
|
|
MwInline const char* MwComboBoxGet(MwWidget handle, int index) {
|
|
const char* text;
|
|
MwVaWidgetExecute(handle, "mwComboBoxGet", (void*)&text, index);
|
|
|
|
return text;
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|