31 Attr.W =
dib->Width();
32 Attr.H =
dib->Height();
55 Attr.W =
dib->Width();
56 Attr.H =
dib->Height();
106 if (HowToDisplay ==
Center) {
137 switch (HowToDisplay) {
TDC is the root class for GDI DC wrappers.
virtual int GetDeviceCaps(int index) const
Used under WIN3.1 or later, GetDeviceCaps returns capability information about this DC.
void SelectObject(const TBrush &brush)
Selects the given GDI brush object into this DC.
int SetDIBitsToDevice(const TRect &dst, const TPoint &src, uint startScan, uint numScans, const void *bits, const BITMAPINFO &bitsInfo, uint16 usage)
The first version sets the pixels in dst (the given destination rectangle on this DC) from the source...
void RestoreObjects()
Restores all the original GDI objects to this DC.
int RealizePalette()
Maps to the system palette the logical palette entries selected into this DC.
int StretchDIBits(const TRect &dst, const TRect &src, const void *bits, const BITMAPINFO &bitsInfo, uint16 usage, uint32 rop=SRCCOPY)
Copies the color data from src, the source rectangle of pixels in the given DIB (device-independent b...
Pseudo-GDI object Device Independent Bitmap (DIB) class.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPalette is the GDI Palette class derived from TGdiObject.
TDisplayHow GetHowToDisplay() const
~TPictureWindow()
Destructor for this class. Deletes the owned DIB.
virtual auto GetWindowClassName() -> TWindowClassName
Overridden from TWindow.
void GetWindowClass(WNDCLASS &wndClass)
Overridden from TWindow.
TDib * SetDib(TDib *newDib)
Allows changing of the DIB. Returns the old DIB.
TDisplayHow
How to display the bitmap within the window.
@ Stretch
Stretch to fit or shrink to fit.
@ UpperLeft
Displays the DIB in the upper left corner of the window.
TPictureWindow(TWindow *parent, TDib *dib, TDisplayHow=UpperLeft, LPCTSTR title=0, TModule *module=0)
Constructor for this class. Assumes ownership of the DIB passed in.
void SetHowToDisplay(TDisplayHow how)
Changes the formatting of the DIB.
void Paint(TDC &dc, bool erase, TRect &rect)
Paints the DIB onto the window.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
virtual void GetWindowClass(WNDCLASS &wndClass)
Redefined by derived classes, GetWindowClass fills the supplied MS-Windows registration class structu...
bool IsWindow() const
Returns true if an HWND is being used.
TRect GetClientRect() const
Gets the coordinates of the window's client area (the area in a window you can use for drawing).
virtual void Invalidate(bool erase=true)
Invalidates (mark for painting) the entire client area of a window.
Definition of abstract GDI object class and derived classes.
Object Windows Library (OWLNext Core)
Definition of class TPictureWindow.
Various types of smart pointer templatized classes.
Definition of TSystem, a system information provider class.
Base window class TWindow definition, including HWND encapsulation.