mCtrl 0.8.0
|
00001 /* 00002 * Copyright (c) 2010-2011 Martin Mitas 00003 * 00004 * This library is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU Lesser General Public License as published by 00006 * the Free Software Foundation; either version 2.1 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this library; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00017 */ 00018 00019 #ifndef MCTRL_TABLE_H 00020 #define MCTRL_TABLE_H 00021 00022 #include <mCtrl/defs.h> 00023 #include <mCtrl/value.h> 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 00077 typedef void* MC_TABLE; 00078 00079 00092 MC_TABLE MCTRL_API mcTable_Create(WORD wColumnCount, WORD wRowCount, 00093 MC_VALUETYPE hType, DWORD dwFlags); 00094 00100 void MCTRL_API mcTable_AddRef(MC_TABLE hTable); 00101 00110 void MCTRL_API mcTable_Release(MC_TABLE hTable); 00111 00118 WORD MCTRL_API mcTable_ColumnCount(MC_TABLE hTable); 00119 00126 WORD MCTRL_API mcTable_RowCount(MC_TABLE hTable); 00127 00141 BOOL MCTRL_API mcTable_Resize(MC_TABLE hTable, WORD wColumnCount, WORD wRowCount); 00142 00152 void MCTRL_API mcTable_Clear(MC_TABLE hTable); 00153 00173 BOOL MCTRL_API mcTable_SetCell(MC_TABLE hTable, WORD wCol, WORD wRow, 00174 MC_VALUETYPE type, MC_VALUE value); 00175 00190 BOOL MCTRL_API mcTable_GetCell(MC_TABLE hTable, WORD wCol, WORD wRow, 00191 MC_VALUETYPE* phType, MC_VALUE* phValue); 00192 00193 00194 #ifdef __cplusplus 00195 } /* extern "C" */ 00196 #endif 00197 00198 #endif /* MCTRL_TABLE_H */