CPObjectCPDOMWindowBridge
@implementation CPDOMWindowBridge : CPObject
Method Summary | |
---|---|
+(id) | sharedDOMWindowBridge Returns the shared DOMWindowBridge. |
-(id) | initWithFrame:(CPRect)aFrame |
-(void) | clearCharacterKeysToPreventFromPropagating Clear the list of characters for which we are not sending keypresses to the browser. |
-(void) | clearKeyCodesToPreventFromPropagating Clear the list of keyCodes for which we are not sending keypresses to the browser. |
-(CPRect) | contentBounds |
-(CPRect) | frame |
-(CPWindow) | hitTest:(CPPoint)location |
-(CPDOMWindowLayer) | layerAtLevel:(int)aLevel create:(BOOL)aFlag |
-(void) | order:(CPWindowOrderingMode)aPlace window:(CPWindow)aWindow relativeTo:(CPWindow)otherWindow |
-(void) | preventCharacterKeyFromPropagating:(CPString)character |
-(void) | preventCharacterKeysFromPropagating:(CPArray)characters When using command (mac) or control (windows), keys are propagated to the browser by default. |
-(void) | preventKeyCodeFromPropagating:(CPString)keyCode Prevent this keyCode from sending its key events to the browser. |
-(void) | preventKeyCodesFromPropagating:(CPArray)keyCodes Prevent these keyCodes from sending their keypresses to the browser. |
-(CGRect) | visibleFrame |
Method Detail |
---|
+(id)sharedDOMWindowBridge
-(id)initWithFrame:(CPRect)aFrame
aFrame
-(void)clearCharacterKeysToPreventFromPropagating
-(void)clearKeyCodesToPreventFromPropagating
-(CPRect)contentBounds
-(CPRect)frame
-(CPWindow)hitTest:(CPPoint)location
location
-(CPDOMWindowLayer)layerAtLevel:(int)aLevel create:(BOOL)aFlag
aLevel
aFlag
-(void)order:(CPWindowOrderingMode)aPlace window:(CPWindow)aWindow relativeTo:(CPWindow)otherWindow
aPlace
aWindow
otherWindow
-(void)preventCharacterKeyFromPropagating:(CPString)character
character
- a character to stop propagating keypresses to the browser.-(void)preventCharacterKeysFromPropagating:(CPArray)characters
characters
- a list of characters to stop propagating keypresses to the browser.-(void)preventKeyCodeFromPropagating:(CPString)keyCode
keyCode
- a keycode to prevent propagation.-(void)preventKeyCodesFromPropagating:(CPArray)keyCodes
keyCodes
- an array of keycodes to prevent propagation.-(CGRect)visibleFrame
Created on Sat Sep 13 14:15:43 PDT 2008