Package system.windows.interop
Class HwndSource
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.threading.DispatcherObject
-
- system.windows.PresentationSource
-
- system.windows.interop.HwndSource
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class HwndSource extends PresentationSource implements java.lang.AutoCloseable
The base .NET class managing System.Windows.Interop.HwndSource, PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Interop.HwndSource
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: PresentationCorestatic java.lang.String
className
Qualified class name: System.Windows.Interop.HwndSourcestatic org.mases.jcobridge.JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description HwndSource()
HwndSource(java.lang.Object instance)
Internal constructor.HwndSource(HwndSourceParameters parameters)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAutoResized(AutoResizedEventHandler handler)
void
addDisposed(EventHandler handler)
void
addDpiChanged(HwndDpiChangedEventHandler handler)
void
addSizeToContentChanged(EventHandler handler)
static HwndSource
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoHwndSource
, a cast assert is made to check if types are compatible.void
close()
HandleRef
CreateHandleRef()
void
Dispose()
boolean
getAcquireHwndFocusInMenuMode()
HwndTarget
getCompositionTargetNewHwndSource()
static boolean
getDefaultAcquireHwndFocusInMenuMode()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectorg.mases.jcobridge.JCType
getJCOType()
Returns the instantiated class TypeRestoreFocusMode
getRestoreFocusMode()
SizeToContent
getSizeToContent()
boolean
getUsesPerPixelOpacity()
void
removeAutoResized(AutoResizedEventHandler handler)
void
removeDisposed(EventHandler handler)
void
removeDpiChanged(HwndDpiChangedEventHandler handler)
void
removeSizeToContentChanged(EventHandler handler)
static void
setDefaultAcquireHwndFocusInMenuMode(boolean DefaultAcquireHwndFocusInMenuMode)
void
setJCOInstance(org.mases.jcobridge.JCObject instance)
void
setSizeToContent(SizeToContent SizeToContent)
-
Methods inherited from class system.windows.PresentationSource
addContentRendered, AddSourceChangedHandler, FromDependencyObject, FromVisual, getCompositionTarget, getCurrentSources, getIsDisposed, getRootVisual, removeContentRendered, RemoveSourceChangedHandler, setRootVisual
-
Methods inherited from class system.windows.threading.DispatcherObject
CheckAccess, getDispatcher, VerifyAccess
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: PresentationCore- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Interop.HwndSource- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Constructor Detail
-
HwndSource
public HwndSource(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
HwndSource
public HwndSource() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
HwndSource
public HwndSource(HwndSourceParameters parameters) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, MissingManifestResourceException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, FormatException, NotImplementedException, ObjectDisposedException, MissingMethodException, TargetInvocationException, NotSupportedException, OverflowException, AccessViolationException, KeyNotFoundException, ThreadStateException, IOException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
MissingManifestResourceException
InvalidEnumArgumentException
InvalidOperationException
Win32Exception
SecurityException
FormatException
NotImplementedException
ObjectDisposedException
MissingMethodException
TargetInvocationException
NotSupportedException
OverflowException
AccessViolationException
KeyNotFoundException
ThreadStateException
IOException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classPresentationSource
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classPresentationSource
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classPresentationSource
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classPresentationSource
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstance
in classPresentationSource
-
getJCOType
public org.mases.jcobridge.JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classPresentationSource
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static HwndSource cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoHwndSource
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
HwndSource
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CreateHandleRef
public HandleRef CreateHandleRef() throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
FormatException
ArgumentException
-
Dispose
public void Dispose() throws java.lang.Throwable, InvalidOperationException, ObjectDisposedException, Win32Exception, ArgumentNullException, AbandonedMutexException, ArgumentException, ArgumentOutOfRangeException, InvalidEnumArgumentException, MulticastNotSupportedException, OverflowException, OutOfMemoryException, NotImplementedException, ThreadStateException, SystemException
- Throws:
java.lang.Throwable
InvalidOperationException
ObjectDisposedException
Win32Exception
ArgumentNullException
AbandonedMutexException
ArgumentException
ArgumentOutOfRangeException
InvalidEnumArgumentException
MulticastNotSupportedException
OverflowException
OutOfMemoryException
NotImplementedException
ThreadStateException
SystemException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getAcquireHwndFocusInMenuMode
public boolean getAcquireHwndFocusInMenuMode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDefaultAcquireHwndFocusInMenuMode
public static boolean getDefaultAcquireHwndFocusInMenuMode() throws java.lang.Throwable, InvalidOperationException
- Throws:
java.lang.Throwable
InvalidOperationException
-
setDefaultAcquireHwndFocusInMenuMode
public static void setDefaultAcquireHwndFocusInMenuMode(boolean DefaultAcquireHwndFocusInMenuMode) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUsesPerPixelOpacity
public boolean getUsesPerPixelOpacity() throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
getRestoreFocusMode
public RestoreFocusMode getRestoreFocusMode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCompositionTargetNewHwndSource
public HwndTarget getCompositionTargetNewHwndSource() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSizeToContent
public SizeToContent getSizeToContent() throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
setSizeToContent
public void setSizeToContent(SizeToContent SizeToContent) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, IndexOutOfRangeException, InvalidEnumArgumentException, Win32Exception, SecurityException, NotSupportedException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
FormatException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
IndexOutOfRangeException
InvalidEnumArgumentException
Win32Exception
SecurityException
NotSupportedException
MulticastNotSupportedException
-
addDisposed
public void addDisposed(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeDisposed
public void removeDisposed(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addSizeToContentChanged
public void addSizeToContentChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeSizeToContentChanged
public void removeSizeToContentChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addAutoResized
public void addAutoResized(AutoResizedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeAutoResized
public void removeAutoResized(AutoResizedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addDpiChanged
public void addDpiChanged(HwndDpiChangedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeDpiChanged
public void removeDpiChanged(HwndDpiChangedEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-