76 if (width &&
XUnit > 0) {
85 if (height &&
YUnit > 0) {
396#if OWL_PERSISTENT_STREAMS
405 is >>
o->XPos >>
o->YPos >>
406 o->XUnit >>
o->YUnit >>
407 o->XRange >>
o->YRange >>
408 o->XLine >>
o->YLine >>
409 o->XPage >>
o->YPage >>
410 o->AutoMode >>
o->TrackMode >>
412 o->HasHScrollBar >>
o->HasVScrollBar;
422TScroller::Streamer::Write(opstream&
os)
const
424 TScroller*
o = GetObject();
425 os <<
o->XPos <<
o->YPos <<
426 o->XUnit <<
o->YUnit <<
427 o->XRange <<
o->YRange <<
428 o->XLine <<
o->YLine <<
429 o->XPage <<
o->YPage <<
430 o->AutoMode <<
o->TrackMode <<
432 o->HasHScrollBar <<
o->HasVScrollBar;
#define PRECONDITION(condition)
TDC is the root class for GDI DC wrappers.
virtual bool SetViewportOrg(const TPoint &origin, TPoint *oldOrg=nullptr)
Sets this DC's viewport origin to the given origin value, and saves the previous origin in oldOrg.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TWindowAttr & GetWindowAttr()
Returns the TWindowAttr structure, which contains the window's creation attributes.
void SetScroller(TScroller *scroller)
Sets the scroller object for this window.
void ScrollWindow(int dx, int dy, const TRect *scroll=nullptr, const TRect *clip=nullptr)
Scrolls a window in the vertical (dx) and horizontal (dy) directions.
void UpdateWindow()
Updates the client area of the specified window by immediately sending a WM_PAINT message.
void ScreenToClient(TPoint &point) const
Uses the screen coordinates specified in point to calculate the client window's coordinates and then ...
void GetClientRect(TRect &rect) const
Gets the coordinates of the window's client area and then copies them into the object referred to by ...
virtual void Invalidate(bool erase=true)
Invalidates (mark for painting) the entire client area of a window.
HWND GetHandle() const
Returns the handle of the window.
TScroller * GetScroller()
Returns the associated scroller object for this window.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Definition of GDI DC encapsulation classes: TDC, TWindowDC, TScreenDC, TDesktopDC,...
#define IMPLEMENT_STREAMABLE(cls)
Object Windows Library (OWLNext Core)
uint32 Style
Contains the values that define the style, shape, and size of your window.
Base window class TWindow definition, including HWND encapsulation.