pub type JAWT = jawt;
Aliased Type§
#[repr(C)]pub struct JAWT {
pub version: i32,
pub GetDrawingSurface: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_, *mut _jobject) -> *mut jawt_DrawingSurface>,
pub FreeDrawingSurface: Option<unsafe extern "C" fn(*mut jawt_DrawingSurface)>,
pub Lock: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_)>,
pub Unlock: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_)>,
pub GetComponent: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_, *mut c_void) -> *mut _jobject>,
pub CreateEmbeddedFrame: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_, *mut c_void) -> *mut _jobject>,
pub SetBounds: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_, *mut _jobject, i32, i32, i32, i32)>,
pub SynthesizeWindowActivation: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_, *mut _jobject, u8)>,
}
Fields§
§version: i32
§GetDrawingSurface: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_, *mut _jobject) -> *mut jawt_DrawingSurface>
§FreeDrawingSurface: Option<unsafe extern "C" fn(*mut jawt_DrawingSurface)>
§Lock: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_)>
§Unlock: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_)>
§GetComponent: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_, *mut c_void) -> *mut _jobject>
§CreateEmbeddedFrame: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_, *mut c_void) -> *mut _jobject>
Since 9 Creates a java.awt.Frame placed in a native container. Container is referenced by the native platform handle. For example on Windows this corresponds to an HWND. For other platforms, see the appropriate machine-dependent header file for a description. The reference returned by this function is a local reference that is only valid in this environment. This function returns a NULL reference if no frame could be created with matching platform information.
SetBounds: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_, *mut _jobject, i32, i32, i32, i32)>
Since 9 Moves and resizes the embedded frame. The new location of the top-left corner is specified by x and y parameters relative to the native parent component. The new size is specified by width and height.
The embedded frame should be created by CreateEmbeddedFrame() method, or this function will not have any effect.
java.awt.Component.setLocation() and java.awt.Component.setBounds() for EmbeddedFrame really don’t move it within the native parent. These methods always locate the embedded frame at (0, 0) for backward compatibility. To allow moving embedded frames this method was introduced, and it works just the same way as setLocation() and setBounds() for usual, non-embedded components.
Using usual get/setLocation() and get/setBounds() together with this new method is not recommended.
SynthesizeWindowActivation: Option<unsafe extern "C" fn(*mut *const JNINativeInterface_, *mut _jobject, u8)>
Since 9 Synthesize a native message to activate or deactivate an EmbeddedFrame window depending on the value of parameter doActivate, if “true” activates the window; otherwise, deactivates the window.
The embedded frame should be created by CreateEmbeddedFrame() method, or this function will not have any effect.