mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
XEmbed: Add function to force window bounds update
This commit is contained in:
parent
5fcb718ac9
commit
e9b376ce14
2 changed files with 9 additions and 0 deletions
|
|
@ -89,6 +89,9 @@ public:
|
|||
/** Removes the client window from the host. */
|
||||
void removeClient();
|
||||
|
||||
/** Forces the embedded window to match the current size of this component. */
|
||||
void updateEmbeddedBounds();
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
/** @internal */
|
||||
|
|
|
|||
|
|
@ -250,6 +250,11 @@ public:
|
|||
return host;
|
||||
}
|
||||
|
||||
void updateEmbeddedBounds()
|
||||
{
|
||||
componentMovedOrResized (owner, true, true);
|
||||
}
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
XEmbedComponent& owner;
|
||||
|
|
@ -680,6 +685,7 @@ void XEmbedComponent::focusLost (FocusChangeType changeType) { pimpl->focu
|
|||
void XEmbedComponent::broughtToFront() { pimpl->broughtToFront(); }
|
||||
unsigned long XEmbedComponent::getHostWindowID() { return pimpl->getHostWindowID(); }
|
||||
void XEmbedComponent::removeClient() { pimpl->setClient (0, true); }
|
||||
void XEmbedComponent::updateEmbeddedBounds() { pimpl->updateEmbeddedBounds(); }
|
||||
|
||||
//==============================================================================
|
||||
bool juce_handleXEmbedEvent (ComponentPeer* p, void* e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue