25 #ifndef JUCE_COMPONENTPEER_H_INCLUDED
26 #define JUCE_COMPONENTPEER_H_INCLUDED
48 windowAppearsOnTaskbar = (1 << 0),
50 windowIsTemporary = (1 << 1),
52 windowIgnoresMouseClicks = (1 << 2),
54 windowHasTitleBar = (1 << 3),
57 windowIsResizable = (1 << 4),
58 windowHasMinimiseButton = (1 << 5),
60 windowHasMaximiseButton = (1 << 6),
62 windowHasCloseButton = (1 << 7),
64 windowHasDropShadow = (1 << 8),
66 windowRepaintedExplictly = (1 << 9),
69 windowIgnoresKeyPresses = (1 << 10),
72 windowIsSemiTransparent = (1 << 31)
107 virtual void* getNativeHandle()
const = 0;
110 virtual void setVisible (
bool shouldBeVisible) = 0;
113 virtual void setTitle (
const String& title) = 0;
121 virtual bool setDocumentEditedStatus (
bool edited);
128 virtual void setRepresentedFile (
const File&);
138 virtual void setBounds (
const Rectangle<int>& newBounds,
bool isNowFullScreen) = 0;
174 virtual void setMinimised (
bool shouldBeMinimised) = 0;
177 virtual bool isMinimised()
const = 0;
180 virtual void setFullScreen (
bool shouldBeFullScreen) = 0;
183 virtual bool isFullScreen()
const = 0;
186 virtual bool isKioskMode()
const;
195 virtual
void setIcon (
const Image& newIcon) = 0;
211 virtual bool contains (
Point<int> localPos,
bool trueIfInAChildWindow)
const = 0;
223 void handleMovedOrResized();
229 virtual void handleScreenSizeChange();
239 virtual bool setAlwaysOnTop (
bool alwaysOnTop) = 0;
242 virtual void toFront (
bool makeActive) = 0;
250 void handleBroughtToFront();
254 virtual bool isFocused()
const = 0;
257 virtual void grabFocus() = 0;
260 void handleFocusGain();
262 void handleFocusLoss();
270 bool handleKeyPress (
int keyCode,
juce_wchar textCharacter);
275 bool handleKeyUpOrDown (
bool isKeyDown);
278 void handleModifierKeysChange();
288 virtual
void dismissPendingTextInput();
291 TextInputTarget* findCurrentTextInputTarget();
303 virtual
void performAnyPendingRepaintsNow() = 0;
306 virtual
void setAlpha (
float newAlpha) = 0;
309 void handleMouseEvent (
int touchIndex,
Point<
float> positionWithinPeer,
ModifierKeys newMods,
int64 time);
311 void handleMagnifyGesture (
int touchIndex,
Point<
float> positionWithinPeer,
int64 time,
float scaleFactor);
313 void handleUserClosingWindow();
325 bool handleDragMove (
const DragInfo&);
326 bool handleDragExit (
const DragInfo&);
327 bool handleDragDrop (
const DragInfo&);
349 virtual
StringArray getAvailableRenderingEngines() = 0;
350 virtual
int getCurrentRenderingEngine()
const;
351 virtual
void setCurrentRenderingEngine (
int index);
356 const
int styleFlags;
363 Component* lastDragAndDropCompUnderMouse;
365 bool isWindowMinimised;
372 #endif // JUCE_COMPONENTPEER_H_INCLUDED
String text
Definition: juce_ComponentPeer.h:318
Point< int > position
Definition: juce_ComponentPeer.h:319
Definition: juce_ComponentPeer.h:315
bool isEmpty() const noexcept
Definition: juce_ComponentPeer.h:321
#define noexcept
Definition: juce_CompilerSupport.h:141
void clear()
Definition: juce_StringArray.cpp:115
StyleFlags
Definition: juce_ComponentPeer.h:46
Definition: juce_ModifierKeys.h:38
Definition: juce_Point.h:39
Definition: juce_String.h:43
Definition: juce_TextInputTarget.h:38
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_Rectangle.h:36
unsigned int uint32
Definition: juce_MathsFunctions.h:51
Definition: juce_Component.h:33
bool isEmpty() const noexcept
Definition: juce_String.h:302
Definition: juce_MouseEvent.h:329
long long int64
Definition: juce_MathsFunctions.h:60
int size() const noexcept
Definition: juce_StringArray.h:121
Definition: juce_WeakReference.h:82
Definition: juce_StringArray.h:39
uint32 getUniqueID() const noexcept
Definition: juce_ComponentPeer.h:99
void clear() noexcept
Definition: juce_ComponentPeer.h:322
Definition: juce_BorderSize.h:39
StringArray files
Definition: juce_ComponentPeer.h:317
Definition: juce_Image.h:54
Definition: juce_LowLevelGraphicsContext.h:43
Component & getComponent() noexcept
Definition: juce_ComponentPeer.h:89
Definition: juce_File.h:45
int getStyleFlags() const noexcept
Definition: juce_ComponentPeer.h:94
Definition: juce_ComponentBoundsConstrainer.h:41
void clear() noexcept
Definition: juce_String.cpp:267
wchar_t juce_wchar
Definition: juce_CharacterFunctions.h:49
Definition: juce_ComponentPeer.h:41