OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
animctrl.h
Go to the documentation of this file.
1//----------------------------------------------------------------------------
2// ObjectWindows
3// Copyright (c) 1995, 1996 by Borland International, All Rights Reserved
4//
5//
6/// \file
7/// Definition of class TAnimateCtrl
8//----------------------------------------------------------------------------
9
10#if !defined(OWL_ANIMCTRL_H)
11#define OWL_ANIMCTRL_H
12
13#include <owl/private/defs.h>
14#if defined(BI_HAS_PRAGMA_ONCE)
15# pragma once
16#endif
17
18#include <owl/defs.h>
19#include <owl/commctrl.h>
20
21
22namespace owl {
23
24#include <owl/preclass.h>
25
26/// \addtogroup commctrl
27/// @{
28/// \class TAnimateCtrl
29/// \brief TAnimateCtrl encapsulates a class that plays an .AVI file.
30// ~~~~~ ~~~~~~~~~~~~
31/// Encapsulates the Animation Control (a window that silently displays
32/// an Audio Video Interleaved, AVI clip).
33/// \note This control can only display uncompressed or RLE-compressed
34/// AVI files.
35//
37{
38 public:
39 TAnimateCtrl(TWindow* parent, int id, int x, int y, int w, int h,
40 TModule* module = nullptr);
41 TAnimateCtrl(TWindow* parent, int resourceId, TModule* module = nullptr);
43
44 // Operations on the object
45 //
46 bool Open(LPCTSTR fileOrRes, TModule* module=nullptr);
47 bool Open(const tstring& fileOrRes, TModule* module = nullptr) {return Open(fileOrRes.c_str(), module);}
48 bool Play(uint16 start = 0, uint16 end = -1, uint repeat = 1);
49 bool Seek(uint16 frame);
50 void Stop();
51
52 protected:
53 virtual auto GetWindowClassName() -> TWindowClassName;
54};
55
56/// @}
57
58#include <owl/posclass.h>
59
60
61} // OWL namespace
62
63
64#endif // OWL_ANIMCTRL_H
Encapsulates the Animation Control (a window that silently displays an Audio Video Interleaved,...
Definition animctrl.h:37
bool Open(const tstring &fileOrRes, TModule *module=nullptr)
Definition animctrl.h:47
TControl unifies its derived control classes, such as TScrollBar, TControlGadget, and TButton.
Definition control.h:38
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Definition module.h:75
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
Definition module.h:47
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition window.h:414
Definition of classes for CommonControl encapsulation.
Object Windows Library (OWLNext Core)
Definition animctrl.h:22
unsigned short uint16
Definition number.h:33
std::string tstring
Definition defs.h:79
unsigned int uint
Definition number.h:25
General definitions used by all ObjectWindows programs.
#define _OWLCLASS
Definition defs.h:338