wImageList

A wImageList contains a list of images. It is used principally in conjunction with wTreeCtrl and wListCtrl.

Seealso:wImage wBitmap wIcon

Procs

proc getHandle(self: wImageList): HIMAGELIST {...}{.validate, property, inline, raises: [],
    tags: [].}
Gets the real resource handle in system.
proc add(self: wImageList; icon: wIcon): int {...}{.validate, discardable, raises: [], tags: [].}
Adds a new image using an icon. Return the new zero-based image index.
proc add(self: wImageList; bitmap: wBitmap; maskColor: wColor): int {...}{.validate,
    discardable, raises: [], tags: [].}
Adds a new image using a bitmap and mask color. Return the new zero-based image index.
proc add(self: wImageList; bitmap: wBitmap; mask: wBitmap = nil): int {...}{.validate,
    discardable, raises: [], tags: [].}
Adds a new image using a bitmap and optional mask bitmap. Return the new zero-based image index.
proc add(self: wImageList; image: wImage): int {...}{.validate, discardable, raises: [],
    tags: [].}
Adds a new image using a image.
proc replace(self: wImageList; index: int; icon: wIcon): bool {...}{.validate, discardable,
    raises: [], tags: [].}
Replaces the existing image with the new image.
proc replace(self: wImageList; index: int; bitmap: wBitmap; mask: wBitmap = nil): bool {...}{.
    validate, discardable, raises: [], tags: [].}
Replaces the existing image with the new image.
proc replace(self: wImageList; index: int; image: wImage): bool {...}{.validate, discardable,
    raises: [], tags: [].}
Replaces the existing image with the new image.
proc remove(self: wImageList; index: int): bool {...}{.validate, discardable, raises: [],
    tags: [].}
Removes the image at the given position.
proc removeAll(self: wImageList): bool {...}{.validate, discardable, raises: [], tags: [].}
Removes all the images in the list.
proc getImageCount(self: wImageList): int {...}{.validate, property, raises: [], tags: [].}
Returns the number of images in the list.
proc getSize(self: wImageList): wSize {...}{.validate, property, raises: [], tags: [].}
Retrieves the size of the images in the list.
proc getBitmap(self: wImageList; index: int): wBitmap {...}{.validate, property, raises: [],
    tags: [].}
Create the bitmap from specified index.
proc getIcon(self: wImageList; index: int): wIcon {...}{.validate, property, raises: [],
    tags: [].}
Create the icon from specified index.
proc delete(self: wImageList) {...}{.validate, raises: [], tags: [].}
Delete the imagelist.
proc final(self: wImageList) {...}{.raises: [], tags: [].}
Default finalizer for wImageList.
proc init(self: wImageList; width: int; height: int; mask = false; initialCount = 1) {...}{.
    validate, inline, raises: [], tags: [].}
Initializer.
proc ImageList(width: int; height: int; mask = false; initialCount = 1): wImageList {...}{.
    inline, raises: [], tags: [].}
Constructor specifying the image size, whether image masks should be created, and the initial size of the list.
proc init(self: wImageList; size: wSize; mask = false; initialCount = 1) {...}{.validate, inline,
    raises: [], tags: [].}
Initializer.
proc ImageList(size: wSize; mask = false; initialCount = 1): wImageList {...}{.inline,
    raises: [], tags: [].}
Constructor specifying the image size, whether image masks should be created, and the initial size of the list.