/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// MOZDynamicCursor.sharedInstance is a singleton NSCursor object whose // underlying cursor can be changed at runtime. // It can be used in an NSView cursorRect so that the system will call // -[NSCursor set] on it at the right moments, for example when the // mouse moves into a window or when the cursor needs to be set after // a drag operation or when a context menu closes.
@interface MOZDynamicCursor : NSCursor {
@private
NSMutableDictionary* mCursors;
NSCursor* mCurrentCursor;
nsCursor mCurrentCursorType;
}
// Sets non-custom cursors and can be used as a fallback if setting // a custom cursor did not succeed.
- (void)setNonCustomCursor:(const nsIWidget::Cursor&)aCursor;
// As above, but returns an error if the cursor isn't custom or we couldn't set // it for some reason.
- (nsresult)setCustomCursor:(const nsIWidget::Cursor&)aCursor
widgetScaleFactor:(CGFloat)aWidgetScaleFactor
forceUpdate:(bool)aForceUpdate;
+ (MOZDynamicCursor*)sharedInstance;
@end
#endif// MOZDynamicCursor_h_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.20 Sekunden
(vorverarbeitet am 2026-09-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.