Lines Matching refs:index
126 bool wxImageList::GetSize(int WXUNUSED(index), int &width, int &height) const
144 int index = ImageList_Add(GetHImageList(), GetHbitmapOf(bitmap), hbmpMask);
145 if ( index == -1 )
152 return index;
160 int index = ImageList_AddMasked(GetHImageList(),
163 if ( index == -1 )
168 return index;
174 int index = ImageList_AddIcon(GetHImageList(), GetHiconOf(icon));
175 if ( index == -1 )
180 return index;
186 bool wxImageList::Replace(int index,
191 bool ok = ImageList_Replace(GetHImageList(), index,
215 // Removes the image at the given index.
216 bool wxImageList::Remove(int index)
218 bool ok = ImageList_Remove(GetHImageList(), index) != 0;
238 bool wxImageList::Draw(int index,
269 bool ok = ImageList_Draw(GetHImageList(), index, hDC, x, y, style) != 0;
279 wxBitmap wxImageList::GetBitmap(int index) const
283 GetSize(index, bmp_width, bmp_height);
290 ((wxImageList*)this)->Draw(index, dc, 0, 0, wxIMAGELIST_DRAW_TRANSPARENT);
305 ((wxImageList*)this)->Draw(index, dc, 0, 0, wxIMAGELIST_DRAW_TRANSPARENT);
319 wxIcon wxImageList::GetIcon(int index) const
321 HICON hIcon = ImageList_ExtractIcon(0, GetHImageList(), index);
328 GetSize(index, iconW, iconH);