2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_Canvas)
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaCanvas : NSImageView {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mCanvas* canvas;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mCanvas&)canvas;
|
2019-07-26 15:52:29 +00:00
|
|
|
-(void) resetCursorRects;
|
2013-07-29 09:42:45 +00:00
|
|
|
-(NSDragOperation) draggingEntered:(id<NSDraggingInfo>)sender;
|
|
|
|
-(BOOL) performDragOperation:(id<NSDraggingInfo>)sender;
|
2013-03-21 12:59:01 +00:00
|
|
|
-(void) mouseButton:(NSEvent*)event down:(BOOL)isDown;
|
2019-07-26 15:52:29 +00:00
|
|
|
-(void) mouseEntered:(NSEvent*)event;
|
2013-03-21 12:59:01 +00:00
|
|
|
-(void) mouseExited:(NSEvent*)event;
|
|
|
|
-(void) mouseMove:(NSEvent*)event;
|
|
|
|
-(void) mouseDown:(NSEvent*)event;
|
|
|
|
-(void) mouseUp:(NSEvent*)event;
|
|
|
|
-(void) mouseDragged:(NSEvent*)event;
|
|
|
|
-(void) rightMouseDown:(NSEvent*)event;
|
|
|
|
-(void) rightMouseUp:(NSEvent*)event;
|
|
|
|
-(void) rightMouseDragged:(NSEvent*)event;
|
|
|
|
-(void) otherMouseDown:(NSEvent*)event;
|
|
|
|
-(void) otherMouseUp:(NSEvent*)event;
|
|
|
|
-(void) otherMouseDragged:(NSEvent*)event;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
namespace hiro {
|
|
|
|
|
|
|
|
struct pCanvas : pWidget {
|
|
|
|
Declare(Canvas, Widget)
|
|
|
|
|
|
|
|
auto minimumSize() const -> Size;
|
Update to bsnes v107.1 release.
byuu says:
Don't let the point release fool you, there are many significant changes in this
release. I will be keeping bsnes releases using a point system until the new
higan release is ready.
Changelog:
- GUI: added high DPI support
- GUI: fixed the state manager image preview
- Windows: added a new waveOut driver with support for dynamic rate control
- Windows: corrected the XAudio 2.1 dynamic rate control support [BearOso]
- Windows: corrected the Direct3D 9.0 fullscreen exclusive window centering
- Windows: fixed XInput controller support on Windows 10
- SFC: added high-level emulation for the DSP1, DSP2, DSP4, ST010, and Cx4
coprocessors
- SFC: fixed a slight rendering glitch in the intro to Megalomania
If the coprocessor firmware is missing, bsnes will fallback on HLE where it is
supported, which is everything other than SD Gundam GX and the two Hayazashi
Nidan Morita Shougi games.
The Windows dynamic rate control works best with Direct3D in fullscreen
exclusive mode. I recommend the waveOut driver over the XAudio 2.1 driver, as it
is not possible to target a single XAudio2 version on all Windows OS releases.
The waveOut driver should work everywhere out of the box.
Note that with DRC, the synchronization source is your monitor, so you will
want to be running at 60hz (NTSC) or 50hz (PAL). If you have an adaptive sync
monitor, you should instead use the WASAPI (exclusive) or ASIO audio driver.
2019-04-09 01:16:30 +00:00
|
|
|
auto setAlignment(Alignment) -> void;
|
2015-12-30 06:41:46 +00:00
|
|
|
auto setColor(Color color) -> void;
|
2019-07-07 09:44:09 +00:00
|
|
|
auto setDroppable(bool droppable) -> void override;
|
|
|
|
auto setFocusable(bool focusable) -> void override;
|
2015-12-30 06:41:46 +00:00
|
|
|
auto setGeometry(Geometry geometry) -> void override;
|
|
|
|
auto setGradient(Gradient gradient) -> void;
|
2016-01-07 08:14:33 +00:00
|
|
|
auto setIcon(const image& icon) -> void;
|
2015-12-30 06:41:46 +00:00
|
|
|
auto update() -> void;
|
|
|
|
|
|
|
|
auto _rasterize() -> void;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2013-05-02 11:25:45 +00:00
|
|
|
CocoaCanvas* cocoaCanvas = nullptr;
|
2016-01-08 09:23:46 +00:00
|
|
|
NSImage* surface = nullptr;
|
|
|
|
NSBitmapImageRep* bitmap = nullptr;
|
2015-12-30 06:41:46 +00:00
|
|
|
uint surfaceWidth = 0;
|
|
|
|
uint surfaceHeight = 0;
|
2013-03-15 13:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|