OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
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
22
namespace
owl
{
23
24
#include <
owl/preclass.h
>
25
26
/// \addtogroup commctrl
27
/// @{
28
29
//
30
/// Encapsulates the Animation Control (a window that silently displays
31
/// an Audio Video Interleaved, AVI clip).
32
/// \note This control can only display uncompressed or RLE-compressed
33
/// AVI files.
34
//
35
class
_OWLCLASS
TAnimateCtrl
:
public
TControl
36
{
37
public
:
38
TAnimateCtrl
(
TWindow
* parent,
int
id
,
int
x,
int
y,
int
w,
int
h,
39
TModule
* module =
nullptr
);
40
TAnimateCtrl
(
TWindow
* parent,
int
resourceId,
TModule
* module =
nullptr
);
41
~TAnimateCtrl
();
42
43
// Operations on the object
44
//
45
bool
Open
(LPCTSTR fileOrRes,
TModule
* module=
nullptr
);
46
bool
Open
(
const
tstring
& fileOrRes,
TModule
* module =
nullptr
) {
return
Open
(fileOrRes.c_str(), module);}
47
bool
Play(
uint16
start = 0,
uint16
end = -1,
uint
repeat = 1);
48
bool
Seek(
uint16
frame);
49
void
Stop();
50
51
protected
:
52
virtual
auto
GetWindowClassName() ->
TWindowClassName
;
53
};
54
55
/// @}
56
57
#include <
owl/posclass.h
>
58
59
60
}
// OWL namespace
61
62
63
#endif
// OWL_ANIMCTRL_H
owl::TAnimateCtrl::Open
bool Open(LPCTSTR fileOrRes, TModule *module=nullptr)
Opens an .AVI file and displays the first frame.
Definition
animctrl.cpp:67
owl::TAnimateCtrl::Open
bool Open(const tstring &fileOrRes, TModule *module=nullptr)
Definition
animctrl.h:46
owl::TAnimateCtrl::TAnimateCtrl
TAnimateCtrl(TWindow *parent, int id, int x, int y, int w, int h, TModule *module=nullptr)
Constructor for a TAnimateCtrl to be associated with a new underlying control.
Definition
animctrl.cpp:20
owl::TControl::TControl
TControl(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TModule *module=nullptr)
Invokes TWindow's constructor, passing it parent (parent window), title (caption text),...
Definition
control.cpp:43
owl::TModule
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Definition
module.h:78
owl::TWindowClassName
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
Definition
module.h:50
owl::TWindow
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition
window.h:414
commctrl.h
Definition of classes for CommonControl encapsulation.
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
owl::uint16
unsigned short uint16
Definition
number.h:33
owl::tstring
std::string tstring
Definition
defs.h:79
owl::uint
unsigned int uint
Definition
number.h:25
defs.h
General definitions used by all ObjectWindows programs.
defs.h
_OWLCLASS
#define _OWLCLASS
Definition
defs.h:338
posclass.h
preclass.h
include
owl
animctrl.h
Generated by
1.18.0