#include <as_prop_flags.h>
Public Types | |
| enum | Flags { dontEnum = 1 << 0, dontDelete = 1 << 1, readOnly = 1 << 2, staticProp = 1 << 3, isProtected = 1 << 4, onlySWF6Up = 1 << 7, ignoreSWF6 = 1 << 8, onlySWF7Up = 1 << 10, onlySWF8Up = 1 << 12 } |
| Actual flags. More... | |
Public Member Functions | |
| as_prop_flags () | |
| Default constructor. | |
| as_prop_flags (const bool read_only, const bool dont_delete, const bool dont_enum) | |
| Constructor. | |
| as_prop_flags (const int flags) | |
| Constructor, from numerical value. | |
| bool | operator== (const as_prop_flags &o) const |
| bool | operator!= (const as_prop_flags &o) const |
| bool | get_static () const |
| Get "static" flag. | |
| void | set_static () |
| Set "static" flag. | |
| void | clear_static () |
| Clear "static" flag. | |
| bool | get_read_only () const |
| Get "read-only" flag. | |
| void | set_read_only () |
| Set "read-only" flag. | |
| void | clear_read_only () |
| Clear "read-only" flag. | |
| bool | get_dont_delete () const |
| Get "don't delete" flag. | |
| void | set_dont_delete () |
| Set "don't delete" flag. | |
| void | clear_dont_delete () |
| Clear "don't delete" flag. | |
| bool | get_dont_enum () const |
| Get "don't enum" flag. | |
| void | set_dont_enum () |
| Set "don't enum" flag. | |
| void | clear_dont_enum () |
| Clear "don't enum" flag. | |
| bool | get_visible (int swfVersion) const |
| Get version-based visibility. | |
| void | clear_visible (int swfVersion) |
| int | get_flags () const |
| accesor to the numerical flags value | |
| bool | get_is_protected () const |
| Get "protected" flag. | |
| void | set_is_protected (const bool is_protected) |
| Set "protected" flag. | |
| bool | set_flags (const int setTrue, const int setFalse=0) |
Static Public Attributes | |
| static const int | as_prop_flags_mask = dontEnum|dontDelete|readOnly|onlySWF6Up|ignoreSWF6|onlySWF7Up|onlySWF8Up |
| mask for flags (bits that can be set by user) | |
Actual flags.
| dontEnum | Protect from enumeration. |
| dontDelete | Protect from deletion. |
| readOnly | Protect from assigning a value. |
| staticProp | Property is static -- assignments change, not override. |
| isProtected | Flags are protected from changes. |
| onlySWF6Up | Only visible by VM initialized for version 6 or higher. |
| ignoreSWF6 | Ignore in SWF6-initialized VM. |
| onlySWF7Up | Only visible by VM initialized for version 7 or higher. |
| onlySWF8Up | Only visible by VM initialized for version 8 or higher. |
| gnash::as_prop_flags::as_prop_flags | ( | ) | [inline] |
Default constructor.
| gnash::as_prop_flags::as_prop_flags | ( | const bool | read_only, | |
| const bool | dont_delete, | |||
| const bool | dont_enum | |||
| ) | [inline] |
Constructor.
| gnash::as_prop_flags::as_prop_flags | ( | const int | flags | ) | [inline] |
Constructor, from numerical value.
| bool gnash::as_prop_flags::operator== | ( | const as_prop_flags & | o | ) | const [inline] |
| bool gnash::as_prop_flags::operator!= | ( | const as_prop_flags & | o | ) | const [inline] |
| bool gnash::as_prop_flags::get_static | ( | ) | const [inline] |
Get "static" flag.
| void gnash::as_prop_flags::set_static | ( | ) | [inline] |
Set "static" flag.
| void gnash::as_prop_flags::clear_static | ( | ) | [inline] |
Clear "static" flag.
| bool gnash::as_prop_flags::get_read_only | ( | ) | const [inline] |
Get "read-only" flag.
| void gnash::as_prop_flags::set_read_only | ( | ) | [inline] |
Set "read-only" flag.
| void gnash::as_prop_flags::clear_read_only | ( | ) | [inline] |
Clear "read-only" flag.
| bool gnash::as_prop_flags::get_dont_delete | ( | ) | const [inline] |
Get "don't delete" flag.
| void gnash::as_prop_flags::set_dont_delete | ( | ) | [inline] |
Set "don't delete" flag.
| void gnash::as_prop_flags::clear_dont_delete | ( | ) | [inline] |
Clear "don't delete" flag.
| bool gnash::as_prop_flags::get_dont_enum | ( | ) | const [inline] |
Get "don't enum" flag.
| void gnash::as_prop_flags::set_dont_enum | ( | ) | [inline] |
Set "don't enum" flag.
| void gnash::as_prop_flags::clear_dont_enum | ( | ) | [inline] |
Clear "don't enum" flag.
| bool gnash::as_prop_flags::get_visible | ( | int | swfVersion | ) | const [inline] |
Get version-based visibility.
| void gnash::as_prop_flags::clear_visible | ( | int | swfVersion | ) | [inline] |
| int gnash::as_prop_flags::get_flags | ( | ) | const [inline] |
accesor to the numerical flags value
| bool gnash::as_prop_flags::get_is_protected | ( | ) | const [inline] |
Get "protected" flag.
| void gnash::as_prop_flags::set_is_protected | ( | const bool | is_protected | ) | [inline] |
Set "protected" flag.
| bool gnash::as_prop_flags::set_flags | ( | const int | setTrue, | |
| const int | setFalse = 0 | |||
| ) | [inline] |
set the numerical flags value (return the new value ) If unlocked is false, you cannot un-protect from over-write, you cannot un-protect from deletion and you cannot un-hide from the for..in loop construct
| setTrue | the set of flags to set | |
| setFalse | the set of flags to clear |
const int gnash::as_prop_flags::as_prop_flags_mask = dontEnum|dontDelete|readOnly|onlySWF6Up|ignoreSWF6|onlySWF7Up|onlySWF8Up [static] |
mask for flags (bits that can be set by user)
TODO: make private. Currently used by as_global_assetpropflags in Global.cpp
1.5.4