|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CefBaseRefCounted | +--CefView | +--CefPanel | +--CefWindowin cef_window.h
A Window is a top-level Window/widget in the Views hierarchy. By default it will have a non-client area with title bar, icon and buttons that supports moving and resizing. All size and position values are in density independent pixels (DIP) unless otherwise indicated. Methods must be called on the browser process UI thread unless otherwise indicated.
Method Summary | |
virtual void |
Activate()= 0
Activate the Window, assuming it already exists and is visible. |
virtual void |
BringToTop()= 0
Bring this Window to the top of other Windows in the Windowing system. |
virtual void |
CancelMenu()= 0
Cancel the menu that is currently showing, if any. |
virtual void |
CenterWindow( const CefSize& size )= 0
Sizes the Window to |size| and centers it in the current display. |
virtual void |
Close()= 0
Close the Window. |
static CefRefPtr< CefWindow > |
CreateTopLevelWindow( CefRefPtr< CefWindowDelegate > delegate )
Create a new Window. |
virtual void |
Deactivate()= 0
Deactivate the Window, making the next Window in the Z order the active Window. |
virtual CefRect |
GetClientAreaBoundsInScreen()= 0
Returns the bounds (size and position) of this Window's client area. |
virtual CefRefPtr< CefDisplay > |
GetDisplay()= 0
Returns the Display that most closely intersects the bounds of this Window. |
virtual CefString |
GetTitle()= 0
Get the Window title. |
virtual CefRefPtr< CefImage > |
GetWindowAppIcon()= 0
Get the Window App icon. |
virtual CefWindowHandle |
GetWindowHandle()= 0
Retrieve the platform window handle for this Window. |
virtual CefRefPtr< CefImage > |
GetWindowIcon()= 0
Get the Window icon. |
virtual void |
Hide()= 0
Hide the Window. |
virtual bool |
IsActive()= 0
Returns whether the Window is the currently active Window. |
virtual bool |
IsAlwaysOnTop()= 0
Returns whether the Window has been set to be on top of other Windows in the Windowing system. |
virtual bool |
IsClosed()= 0
Returns true if the Window has been closed. |
virtual bool |
IsFullscreen()= 0
Returns true if the Window is fullscreen. |
virtual bool |
IsMaximized()= 0
Returns true if the Window is maximized. |
virtual bool |
IsMinimized()= 0
Returns true if the Window is minimized. |
virtual void |
Maximize()= 0
Maximize the Window. |
virtual void |
Minimize()= 0
Minimize the Window. |
virtual void |
RemoveAccelerator( int command_id )= 0
Remove the keyboard accelerator for the specified |command_id|. |
virtual void |
RemoveAllAccelerators()= 0
Remove all keyboard accelerators. |
virtual void |
Restore()= 0
Restore the Window. |
virtual void |
SendKeyPress( int key_code, uint32 event_flags )= 0
Simulate a key press. |
virtual void |
SendMouseEvents( cef_mouse_button_type_t button, bool mouse_down, bool mouse_up )= 0
Simulate mouse down and/or mouse up events. |
virtual void |
SendMouseMove( int screen_x, int screen_y )= 0
Simulate a mouse move. |
virtual void |
SetAccelerator( int command_id, int key_code, bool shift_pressed, bool ctrl_pressed, bool alt_pressed )= 0
Set the keyboard accelerator for the specified |command_id|. |
virtual void |
SetAlwaysOnTop( bool on_top )= 0
Set the Window to be on top of other Windows in the Windowing system. |
virtual void |
SetDraggableRegions( const std::vector< CefDraggableRegion >& regions )= 0
Set the regions where mouse events will be intercepted by this Window to support drag operations. |
virtual void |
SetFullscreen( bool fullscreen )= 0
Set fullscreen Window state. |
virtual void |
SetTitle( const CefString& title )= 0
Set the Window title. |
virtual void |
SetWindowAppIcon( CefRefPtr< CefImage > image )= 0
Set the Window App icon. |
virtual void |
SetWindowIcon( CefRefPtr< CefImage > image )= 0
Set the Window icon. |
virtual void |
Show()= 0
Show the Window. |
virtual void |
ShowMenu( CefRefPtr< CefMenuModel > menu_model, const CefPoint& screen_point, cef_menu_anchor_position_t anchor_position )= 0
Show a menu with contents |menu_model|. |
Methods inherited from class CefPanel |
CreatePanel, AsWindow, SetToFillLayout, SetToBoxLayout, GetLayout, Layout, AddChildView, AddChildViewAt, ReorderChildView, RemoveChildView, RemoveAllChildViews, GetChildViewCount, GetChildViewAt |
Methods inherited from class CefBaseRefCounted |
AddRef, Release, HasOneRef, HasAtLeastOneRef |
Method Detail |
public virtual void Activate()= 0;
public virtual void BringToTop()= 0;
public virtual void CancelMenu()= 0;
public virtual void CenterWindow( const CefSize& size )= 0;
public virtual void Close()= 0;
public static CefRefPtr< CefWindow > CreateTopLevelWindow( CefRefPtr< CefWindowDelegate > delegate );
public virtual void Deactivate()= 0;
public virtual CefRect GetClientAreaBoundsInScreen()= 0;
public virtual CefRefPtr< CefDisplay > GetDisplay()= 0;
public virtual CefString GetTitle()= 0;
public virtual CefRefPtr< CefImage > GetWindowAppIcon()= 0;
public virtual CefWindowHandle GetWindowHandle()= 0;
public virtual CefRefPtr< CefImage > GetWindowIcon()= 0;
public virtual void Hide()= 0;
public virtual bool IsActive()= 0;
public virtual bool IsAlwaysOnTop()= 0;
public virtual bool IsClosed()= 0;
public virtual bool IsFullscreen()= 0;
public virtual bool IsMaximized()= 0;
public virtual bool IsMinimized()= 0;
public virtual void Maximize()= 0;
public virtual void Minimize()= 0;
public virtual void RemoveAccelerator( int command_id )= 0;
public virtual void RemoveAllAccelerators()= 0;
public virtual void Restore()= 0;
public virtual void SendKeyPress( int key_code, uint32 event_flags )= 0;
public virtual void SendMouseEvents( cef_mouse_button_type_t button, bool mouse_down, bool mouse_up )= 0;
public virtual void SendMouseMove( int screen_x, int screen_y )= 0;
public virtual void SetAccelerator( int command_id, int key_code, bool shift_pressed, bool ctrl_pressed, bool alt_pressed )= 0;
public virtual void SetAlwaysOnTop( bool on_top )= 0;
public virtual void SetDraggableRegions( const std::vector< CefDraggableRegion >& regions )= 0;
public virtual void SetFullscreen( bool fullscreen )= 0;
public virtual void SetTitle( const CefString& title )= 0;
public virtual void SetWindowAppIcon( CefRefPtr< CefImage > image )= 0;
public virtual void SetWindowIcon( CefRefPtr< CefImage > image )= 0;
public virtual void Show()= 0;
public virtual void ShowMenu( CefRefPtr< CefMenuModel > menu_model, const CefPoint& screen_point, cef_menu_anchor_position_t anchor_position )= 0;
|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |