wxBitmapDataObject(3)
π wxBitmapDataObject π
okay bestie, real talk: this is the Erlang module definition for wxBitmapDataObject, and it's literally the specialization of wxDataObject for bitmap data. she's a main character who only does one thing and does it gorgeously π
β¨ NAME β¨
wxBitmapDataObject β wxBitmapDataObject is a specialization of wxDataObject for bitmap data. no cap, that's the whole assignment and she ate π
πΈ DESCRIPTION πΈ
You can use this class without changing a single thing to paste data into the wxClipboard or a wxDropSource (which β heads up β is not implemented in wx π).
A user may wish to derive a new class from this class for providing a bitmap on-demand, in order to minimize memory consumption when offering data in several formats, such as a bitmap and GIF. yes queen, lazy-loading your bitmaps, iconic behavior β¨
This class may be used as is, but getBitmap/1 may be overridden to increase efficiency. see? she's flexible like that π¦
See:
- Overview dnd
wxDataObjectwxFileDataObjectwxTextDataObjectwxDataObject
This class is derived, and can use functions, from:
wxDataObject
wxWidgets docs: wxBitmapDataObject
π DATA TYPES π
wxBitmapDataObject() :: wx:wx_object().
π FUNCTIONS π
destroy(This :: wxBitmapDataObject()) -> ok.β Destroys the object. bye bestie, it was real ππgetBitmap(This) -> wxBitmap:wxBitmap()whenThis :: wxBitmapDataObject().β Returns the bitmap associated with the data object.
You may wish to override this method when offering data on-demand, but this is not required by wxWidgets' internals. Use this method to get data in bitmap form from the wxClipboard. fr fr, this is the plug π«Ά
new([Option]) -> wxBitmapDataObject()whenOption :: {bitmap, wxBitmap:wxBitmap()};(Bitmap) -> wxBitmapDataObject()whenBitmap :: wxBitmap:wxBitmap().β Constructor, optionally passing a bitmap (otherwise usesetBitmap/2later). pick your fighter: bitmap now or bitmap later πsetBitmap(This, Bitmap) -> okwhenThis :: wxBitmapDataObject(),Bitmap :: wxBitmap:wxBitmap().β Sets the bitmap associated with the data object.
This method is called when the data object receives data. Usually there will be no reason to override this function. lowkey just let her cook π₯
heads up: wxDropSource is not implemented in wx β so don't come for me when that part's missing, okay? π
Ericsson AB Β· wx 2.6 Β· wxBitmapDataObject(3) β that's the source, version and date bestie, love u, go slay some bitmaps πβ¨π
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms