Item QML Type
This value type represents a BrickLink item. More...
Import Statement: | import BrickLink 1.0 |
Properties
- alternateIds : list<string>
- category : Category
- defaultColor : Color
- hasInventory : bool
- id : int
- isNull : bool
- itemType : ItemType
- knownColors : list<Color>
- name : string
- weight : real
- yearReleased : date
Methods
- bool hasKnownColor(Color color)
Detailed Description
Each item in the BrickLink catalog is available as an Item object.
You cannot create Item objects yourself, but you can retrieve an Item object given the id via BrickLink::item().
See https://www.bricklink.com/catalog.asp
Property Documentation
alternateIds : list<string> |
Returns a list of all alternate BrickLink ids registered for this item.
category : Category |
The BrickLink category of this item.
defaultColor : Color |
Returns the default color used by BrickLink to display a large picture for this item.
hasInventory : bool |
Returns true
if a valid inventory exists for this item, or false
otherwise.
id : int |
The BrickLink id of this item.
isNull : bool |
Returns whether this Item is null
. Since this type is a value wrapper around a C++ object, we cannot use the normal JavaScript null
notation.
itemType : ItemType |
The BrickLink item type of this item.
knownColors : list<Color> |
Returns a list of Color objects, containing all the colors the item is known to exist in.
Note: An item might still exist in more colors than returned here: BrickStore is deriving this data by looking at all the known inventories and PCCs (part-color-codes).
name : string |
The BrickLink name of this item.
weight : real |
Returns the weight of this item in gram.
yearReleased : date |
Returns the year this item was first released.
Method Documentation
bool hasKnownColor(Color color) |
Returns true
if this item is known to exist in the given color, or false
otherwise.
See also knownColors.
© 2004-2025 Robert Griebl. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. All trademarks are property of their respective owners.