void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
}
#endif
- bool Ok();
+ bool IsOk();
+ %pythoncode { Ok = IsOk }
int GetWidth();
int GetHeight();
int GetDepth();
#endif
void CopyFromBitmap(const wxBitmap& bmp);
- %pythoncode { def __nonzero__(self): return self.Ok() }
+ %pythoncode { def __nonzero__(self): return self.IsOk() }
+
+ %property(Depth, GetDepth, SetDepth, doc="See `GetDepth` and `SetDepth`");
+ %property(Height, GetHeight, SetHeight, doc="See `GetHeight` and `SetHeight`");
+ %property(Width, GetWidth, SetWidth, doc="See `GetWidth` and `SetWidth`");
+
};
//---------------------------------------------------------------------------
// returns True if this object is valid/initialized
bool IsOk() const;
- %pythoncode { def __nonzero__(self): return self.Ok() }
+ %pythoncode { def __nonzero__(self): return self.IsOk() }
// set/get the icon file name
void SetFileName(const wxString& filename);
#endif
}
}
+
+ %property(FileName, GetFileName, SetFileName, doc="See `GetFileName` and `SetFileName`");
+ %property(Index, GetIndex, SetIndex, doc="See `GetIndex` and `SetIndex`");
+
};
// returns the icon with size wxSYS_ICON_[XY]; if no such icon exists,
// returns the first icon in the bundle
const wxIcon& GetIcon( const wxSize& size ) const;
+
+ %property(Icon, GetIcon, doc="See `GetIcon`");
};
//---------------------------------------------------------------------------