org.rococoa.cocoa.appkit.categories
Interface NSDesktopImages

All Superinterfaces:
ObjCObject

public interface NSDesktopImages
extends ObjCObject

Desktop images
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static interface NSDesktopImages._static_
           
 
Method Summary
 NSDictionary desktopImageOptionsForScreen(NSScreen screen)
          Returns the options dictionary for the desktop image for the given screen.
 NSURL desktopImageURLForScreen(NSScreen screen)
          Returns the URL for the desktop image for the given screen.
 boolean setDesktopImageURL_forScreen_options_error(NSURL url, NSScreen screen, NSDictionary options, PointerByReference error)
          Sets the desktop image for the given screen to the image at the given URL.
 
Methods inherited from interface org.rococoa.ObjCObject
id
 

Method Detail

setDesktopImageURL_forScreen_options_error

boolean setDesktopImageURL_forScreen_options_error(NSURL url,
                                                   NSScreen screen,
                                                   NSDictionary options,
                                                   PointerByReference error)
Sets the desktop image for the given screen to the image at the given URL. The URL must be a file URL and may not be nil. The options dictionary may contain any of the NSWorkspaceDesktopImage keys, which control how the image is scaled on the screen. This returns YES if the image was successfully set; otherwise, NO is returned and an error is returned by reference.
You should normally NOT present a user interface for picking the options. Instead, just choose appropriate defaults and allow the user to adjust them in the System Preference Pane.
Original signature : -(BOOL)setDesktopImageURL:(NSURL*) forScreen:(NSScreen*) options:(NSDictionary*) error:(NSError**)
from NSDesktopImages native declaration : NSWorkspace.h:253


desktopImageURLForScreen

NSURL desktopImageURLForScreen(NSScreen screen)
Returns the URL for the desktop image for the given screen.
Original signature : -(NSURL*)desktopImageURLForScreen:(NSScreen*)
from NSDesktopImages native declaration : NSWorkspace.h:257


desktopImageOptionsForScreen

NSDictionary desktopImageOptionsForScreen(NSScreen screen)
Returns the options dictionary for the desktop image for the given screen.
Original signature : -(NSDictionary*)desktopImageOptionsForScreen:(NSScreen*)
from NSDesktopImages native declaration : NSWorkspace.h:261



Copyright © 2009. All Rights Reserved.