HW Accelerated Window Dragging (only from titlebar ?)
HW Accelerated Window Dragging (only from titlebar ?)
- Subject: HW Accelerated Window Dragging (only from titlebar ?)
- From: Darrin Filer <email@hidden>
- Date: Sat, 12 Jan 2002 15:17:03 -0500
While using the quartz debug app I noticed something strange with my
custom NSWindow framework. Dragging windows from somewhere in their
content area doesn't seem to take advantage of hardware accelerated
window dragging.
Dragging a window from its title bar results in only its title bar and
shadow being updated by quartz (flashing yellow). Dragging from within
the content area results in the entire window being updated. Careful
observation of the yellow flashing while dragging the itunes or
quicktime window is quite interesting as well. They seem to pull off an
NSBorderlessWindowMask window while still preserving HW accelerated
window dragging.
I'm using the following line in the contentView's mouseDragged method to
reposition the window.
[[self window] setFrameOrigin:newOrigin];
Is there a way to take advantage of HW accelerated dragging in NSWindows
without a title bar?
This is one of the last hurdles before I release a cocoa framework which
provides an eyeToons-esque brushed metal look by simply reclassing your
NSWindows!