Molybden API
Loading...
Searching...
No Matches
molybden::OpenPopupArgs Struct Reference

The BrowserDelegates::onOpenPopup action arguments. More...

#include <browser_delegates.hpp>

Public Attributes

std::shared_ptr< Browserbrowser
 The browser instance initiated this action.
 
std::shared_ptr< Browserpopup_browser
 The browser instance of the created popup.
 
std::string target_name
 The window target name.
 
std::string target_url
 The target URL that will be loaded in the popup.
 
Rect initial_bounds
 The initial bounds of the popup.
 
float scale_factor
 The scale factor of the display where the parent browser window initiated this action is displayed.
 

Detailed Description

The BrowserDelegates::onOpenPopup action arguments.

Member Data Documentation

◆ initial_bounds

Rect molybden::OpenPopupArgs::initial_bounds

The initial bounds of the popup.

If the popup is opened as a result of the window.open() JavaScript function, the initial bounds will equal the corresponding attributes of the WindowFeatures parameter passed to the JavaScript function. In case no popup bounds were passed, the initial bounds will be empty.


The documentation for this struct was generated from the following file: