Toolkit.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_TOOLKIT_H
00002 #define JAVA_AWT_TOOLKIT_H 1
00003 
00004 #ifndef JAVA_AWT_DIMENSION_H
00005 #include <java_awt/Dimension.h>
00006 #endif /* JAVA_AWT_DIMENSION_H */
00007 #ifndef JAVA_AWT_IMAGE_H
00008 #include <java_awt/Image.h>
00009 #endif /* JAVA_AWT_IMAGE_H */
00010 #ifndef JAVA_AWT_SPEC
00011 #include <java_awt/Spec.h>
00012 #endif /* JAVA_AWT_SPEC */
00013 
00014 namespace java {
00015   namespace awt {
00016 
00017     class Component;
00018     class MenuComponent;
00019 
00020     namespace peer {
00021 
00022       class ComponentPeer;
00023       class MenuComponentPeer;
00024 
00025     } // namespace peer
00026 
00027     using namespace java::awt::peer;
00028 
00048     class JAVA_AWT_SPEC Toolkit : virtual public Object {
00049 
00050     public:
00051 
00077       static Toolkit& getDefaultToolkit();
00078 
00091       virtual Dimension getScreenSize() const = 0;    
00092 
00100       virtual jint getScreenResolution() const = 0;
00101  
00122       virtual jint getMenuShortcutKeyMask() const = 0;
00123 
00133       virtual Ref<ComponentPeer> createNativeComponent(const Ref<Component>& target) = 0;
00134 
00144       virtual Ref<MenuComponentPeer> createNativeMenuComponent(const Ref<MenuComponent>& target) = 0;
00145 
00146       virtual Ref<Image> loadIconResource(const String& res_name) const = 0;
00147       virtual Ref<Image> loadBitmapResource(const String& res_name) const = 0;
00148 
00149     private:
00150 
00151       REGISTER_MEMBERS;
00152 
00153     };
00154 
00155   } // namespace awt
00156 } // namespace java
00157 
00158 #endif /* JAVA_AWT_TOOLKIT_H */

Generated on Fri May 16 11:54:44 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3