Added willResize delegate for osx stage.

By default a clutter stage is not user resizable and this delegate
controls this option while resizing the stage.
This commit is contained in:
Roman Kudiyarov 2010-07-23 12:16:23 +07:00 committed by Robert Bragg
parent 49b2b62311
commit af8308295c

View File

@ -107,6 +107,14 @@ clutter_stage_osx_state_update (ClutterStageOSX *self,
clutter_stage_osx_state_update (self->stage_osx, CLUTTER_STAGE_STATE_ACTIVATED, 0);
}
- (NSSize) windowWillResize:(NSWindow *) sender toSize:(NSSize) frameSize
{
if ( clutter_stage_get_user_resizable (self->stage_osx->wrapper) )
return frameSize;
else
return [self frame].size;
}
@end
/*************************************************************************/