packages feed

wxc 0.90.0.3 → 0.90.0.4

raw patch · 3 files changed

+28/−2 lines, 3 files

Files

src/cpp/eljlistctrl.cpp view
@@ -25,6 +25,7 @@ {
 	delete self;
 }
+
 EWXWEXPORT(void,wxListItem_Clear)(wxListItem* self)
 {
 	self->Clear();
@@ -483,5 +484,27 @@ 	self->UpdateStyle();
 #endif
 }
-	
+
+EWXWEXPORT(wxFont*,wxListCtrl_GetItemFont)(wxListCtrl* self, long item)
+{
+  wxFont* fnt = new wxFont;
+  *fnt = self->GetItemFont(item);
+  return fnt;
+}
+
+EWXWEXPORT(bool,wxListCtrl_IsVirtual)(wxListCtrl* self)
+{
+  return self->IsVirtual();
+}
+
+EWXWEXPORT(void,wxListCtrl_RefreshItem)(wxListCtrl* self, long item)
+{
+  self->RefreshItem(item);
+}
+
+EWXWEXPORT(void,wxListCtrl_RefreshItems)(wxListCtrl* self, long from, long to)
+{
+  self->RefreshItems(from, to);
+}
+
 }
src/include/wxc_glue.h view
@@ -3067,6 +3067,7 @@ TBool      wxListCtrl_GetItem( TSelf(wxListCtrl) _obj, TClass(wxListItem) info );
 int        wxListCtrl_GetItemCount( TSelf(wxListCtrl) _obj );
 int        wxListCtrl_GetItemData( TSelf(wxListCtrl) _obj, int item );
+TClass(wxFont) wxListCtrl_GetItemFont( TSelf(wxListCtrl) _obj, long item);
 TClass(wxPoint) wxListCtrl_GetItemPosition( TSelf(wxListCtrl) _obj, int item );
 TClass(wxRect) wxListCtrl_GetItemRect( TSelf(wxListCtrl) _obj, int item, int code );
 TClass(wxSize) wxListCtrl_GetItemSpacing( TSelf(wxListCtrl) _obj, TBool isSmall );
@@ -3083,6 +3084,8 @@ int        wxListCtrl_InsertItemWithData( TSelf(wxListCtrl) _obj, int index, TClass(wxString) label );
 int        wxListCtrl_InsertItemWithImage( TSelf(wxListCtrl) _obj, int index, int imageIndex );
 int        wxListCtrl_InsertItemWithLabel( TSelf(wxListCtrl) _obj, int index, TClass(wxString) label, int imageIndex );
+TBool      wxListCtrl_IsVirtual( TSelf(wxListCtrl) _obj );
+void       wxListCtrl_RefreshItem( TSelf(wxListCtrl) _obj, long item );
 TBool      wxListCtrl_ScrollList( TSelf(wxListCtrl) _obj, TVector(dx,dy) );
 void       wxListCtrl_SetBackgroundColour( TSelf(wxListCtrl) _obj, TClass(wxColour) col );
 TBool      wxListCtrl_SetColumn( TSelf(wxListCtrl) _obj, int col, TClass(wxListItem) item );
wxc.cabal view
@@ -1,5 +1,5 @@ name:         wxc-version:      0.90.0.3+version:      0.90.0.4 license:      OtherLicense license-file: LICENSE maintainer:   wxhaskell-devel@lists.sourceforge.net