Struct jawt

Source
#[repr(C)]
pub struct jawt { pub version: jint, pub GetDrawingSurface: Option<unsafe extern "C" fn(env: *mut JNIEnv, target: jobject) -> *mut JAWT_DrawingSurface>, pub FreeDrawingSurface: Option<unsafe extern "C" fn(ds: *mut JAWT_DrawingSurface)>, pub Lock: Option<unsafe extern "C" fn(env: *mut JNIEnv)>, pub Unlock: Option<unsafe extern "C" fn(env: *mut JNIEnv)>, pub GetComponent: Option<unsafe extern "C" fn(env: *mut JNIEnv, platformInfo: *mut c_void) -> jobject>, pub CreateEmbeddedFrame: Option<unsafe extern "C" fn(env: *mut JNIEnv, platformInfo: *mut c_void) -> jobject>, pub SetBounds: Option<unsafe extern "C" fn(env: *mut JNIEnv, embeddedFrame: jobject, x: jint, y: jint, w: jint, h: jint)>, pub SynthesizeWindowActivation: Option<unsafe extern "C" fn(env: *mut JNIEnv, embeddedFrame: jobject, doActivate: jboolean)>, }

Fields§

§version: jint§GetDrawingSurface: Option<unsafe extern "C" fn(env: *mut JNIEnv, target: jobject) -> *mut JAWT_DrawingSurface>§FreeDrawingSurface: Option<unsafe extern "C" fn(ds: *mut JAWT_DrawingSurface)>§Lock: Option<unsafe extern "C" fn(env: *mut JNIEnv)>§Unlock: Option<unsafe extern "C" fn(env: *mut JNIEnv)>§GetComponent: Option<unsafe extern "C" fn(env: *mut JNIEnv, platformInfo: *mut c_void) -> jobject>§CreateEmbeddedFrame: Option<unsafe extern "C" fn(env: *mut JNIEnv, platformInfo: *mut c_void) -> 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(env: *mut JNIEnv, embeddedFrame: jobject, x: jint, y: jint, w: jint, h: jint)>

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(env: *mut JNIEnv, embeddedFrame: jobject, doActivate: jboolean)>

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.

Trait Implementations§

Source§

impl Clone for jawt

Source§

fn clone(&self) -> jawt

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for jawt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for jawt

Auto Trait Implementations§

§

impl Freeze for jawt

§

impl RefUnwindSafe for jawt

§

impl Send for jawt

§

impl Sync for jawt

§

impl Unpin for jawt

§

impl UnwindSafe for jawt

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.