# TMFEventResult Class Reference
[MCFrame]

Inheritance diagram for TMFEventResult:

List of all members.

## Public Member Functions
| TMFEventResult (boolean handled=false, boolean needsSelection=false)
void | ClearResult ()
boolean | WasHandled () const
void | SetWasHandled (boolean handled)
boolean | NeedsSelection () const
void | SetNeedsSelection (boolean needsSelection)
void | SetHandledAndSelect ()
void | operator|= (const TMFEventResult &rhs)
## Protected Types
enum | EBitsDefs { kWasHandledBit = 0, kNeedsSelectionBit = 1 }

## Detailed Description

TMFEventResult Describes the result of the handling of an event by a part.

Note:
  Only used for SelfMouseDown and CallMouseDown for now.

## Member Enumeration Documentation

enum TMFEventResult::EBitsDefs`[protected]`

Enumerator:

  kWasHandledBit |
  kNeedsSelectionBit |

## Constructor & Destructor Documentation

TMFEventResult::TMFEventResult | ( | boolean | handled = `false`,
|  | boolean | needsSelection = `false` |
| ) |  |  | `[inline]`

## Member Function Documentation

void TMFEventResult::ClearResult | ( |  | ) | `[inline]`

Factory default

boolean TMFEventResult::NeedsSelection | ( |  | ) | const`[inline]`

Returns true if the part "needs selection" Note: for now only tested by TMFWindoidPart to select the window or not in CallMouseDown

void TMFEventResult::operator|= | ( | const TMFEventResult & | rhs | ) | `[inline]`

void TMFEventResult::SetHandledAndSelect | ( |  | ) | `[inline]`

Sets wasHandled and NeedsSelection flags

void TMFEventResult::SetNeedsSelection | ( | boolean | needsSelection | ) | `[inline]`

Sets the NeedsSelection flag to given value

void TMFEventResult::SetWasHandled | ( | boolean | handled | ) | `[inline]`

Sets the wasHandled flag to given value

boolean TMFEventResult::WasHandled | ( |  | ) | const`[inline]`

Returns true if the event was handled by the part

The documentation for this class was generated from the following file:

- MFTypes.h