| Swfdec Reference Manual | ||||
|---|---|---|---|---|
enum SwfdecAsContextState; enum SwfdecLoaderDataType; enum SwfdecLoaderRequest; const char* swfdec_loader_data_type_get_extension (SwfdecLoaderDataType type); enum SwfdecAlignment; enum SwfdecMouseCursor; enum SwfdecScaleMode;
typedef enum {
SWFDEC_AS_CONTEXT_NEW,
SWFDEC_AS_CONTEXT_RUNNING,
SWFDEC_AS_CONTEXT_INTERRUPTED,
SWFDEC_AS_CONTEXT_ABORTED
} SwfdecAsContextState;
The state of the context describes what operations are possible on the context.
It will be in the state SWFDEC_AS_CONTEXT_STATE_RUNNING almost all the time. If
it is in the state SWFDEC_AS_CONTEXT_STATE_ABORTED, it will not work anymore and
every operation on it will instantly fail.
SWFDEC_AS_CONTEXT_NEW |
the context is not yet initialized,
swfdec_as_context_startup() needs to be called.
|
SWFDEC_AS_CONTEXT_RUNNING |
the context is running normally |
SWFDEC_AS_CONTEXT_INTERRUPTED |
the context has been interrupted by a debugger |
SWFDEC_AS_CONTEXT_ABORTED |
the context has aborted execution due to a fatal error |
typedef enum {
SWFDEC_LOADER_DATA_UNKNOWN,
SWFDEC_LOADER_DATA_SWF,
SWFDEC_LOADER_DATA_FLV,
SWFDEC_LOADER_DATA_XML,
SWFDEC_LOADER_DATA_TEXT
} SwfdecLoaderDataType;
This type describes the different types of data that can be loaded inside
Swfdec. Swfdec identifies its data streams and you can use the
swfdec_loader_get_data_type() to acquire more information about the data
inside a SwfdecLoader.
typedef enum {
SWFDEC_LOADER_REQUEST_DEFAULT = 0,
SWFDEC_LOADER_REQUEST_GET = 1,
SWFDEC_LOADER_REQUEST_POST = 2
} SwfdecLoaderRequest;
Describes the moethod to use for requesting a given URL. These methods map naturally to HTTP methods, since HTTP is the common method for requesting Flash content.
const char* swfdec_loader_data_type_get_extension
(SwfdecLoaderDataType type);
Queries the extension to be used for data of the given type.
type : |
a SwfdecLoaderDataType |
| Returns : | the typical extension for this data type or the empty string if the type has no extension |
typedef enum {
SWFDEC_ALIGNMENT_TOP_LEFT,
SWFDEC_ALIGNMENT_TOP,
SWFDEC_ALIGNMENT_TOP_RIGHT,
SWFDEC_ALIGNMENT_LEFT,
SWFDEC_ALIGNMENT_CENTER,
SWFDEC_ALIGNMENT_RIGHT,
SWFDEC_ALIGNMENT_BOTTOM_LEFT,
SWFDEC_ALIGNMENT_BOTTOM,
SWFDEC_ALIGNMENT_BOTTOM_RIGHT
} SwfdecAlignment;
These are the possible values for the alignment of an unscaled movie.
typedef enum {
SWFDEC_MOUSE_CURSOR_NORMAL,
SWFDEC_MOUSE_CURSOR_NONE,
SWFDEC_MOUSE_CURSOR_TEXT,
SWFDEC_MOUSE_CURSOR_CLICK
} SwfdecMouseCursor;
This enumeration describes the possible types for the SwfdecPlayer::mouse-cursor property.