Defines areas along the edges of a GeoView that may be obscured by some other UI elements. More...
Detailed DescriptionView insets reduce the size of the area where it is safe to display callouts, attribution text, location display, and other visual elements on the GeoView when some of the GeoView is obscured by overlaid UI elements such as slide-in panels. The anchoring of the GeoView's visual elements is adjusted to account for the overlaid UI elements.
Units for left, right, top, and bottom are specified in device-independent pixels (DIPs).
Ex: mapView->setViewInsets(new ViewInsets(sidePanel.width, 0, 0, 0, this));
If you just want to zoom to a geometry and leave a bit of padding around it, use the MapView::setViewpointGeometryAsync(const Esri::ArcGISRuntime::Geometry& boundingGeometry, double paddingInDIPS) method instead.
Property Documentation bottom : const doubleThis property holds the inset from the bottom edge, in device independent pixels (DIPs).
Access functions:
Notifier signal:
[read-only]
empty : const bool
This property holds whether the insets are set to default values (read-only).
The view insets are empty if the inset of all four edges are 0.
Access functions:
Notifier signal:
left : const doubleThis property holds the inset from the left edge, in device independent pixels (DIPs).
Access functions:
Notifier signal:
right : const doubleThis property holds the inset from the right edge, in device independent pixels (DIPs).
Access functions:
Notifier signal:
top : const doubleThis property holds the inset from the top edge, in device independent pixels (DIPs).
Access functions:
Notifier signal:
Member Function Documentation ViewInsets::ViewInsets(double left, double right, double top, double bottom, QObject *parent = nullptr)Constructor specifying left, right, top, and bottom inset values with an optional parent.
[override virtual noexcept]
ViewInsets::~ViewInsets()
Destructor.
double ViewInsets::bottom() constReturns the inset from the bottom edge, in device independent pixels (DIPs).
Note: Getter function for property bottom.
bool ViewInsets::isEmpty() constReturns whether the insets are set to default values.
The view insets are empty if the inset of all four edges are 0.
Note: Getter function for property empty.
double ViewInsets::left() constReturns the inset from the left edge, in device independent pixels (DIPs).
Note: Getter function for property left.
double ViewInsets::right() constReturns the inset from the right edge, in device independent pixels (DIPs).
Note: Getter function for property right.
double ViewInsets::top() constReturns the inset from the top edge, in device independent pixels (DIPs).
Note: Getter function for property top.
[signal]
void ViewInsets::viewInsetsChanged()
Signal emitted when any edge value of the insets changes.
Note: Notifier signal for property bottom. Notifier signal for property empty. Notifier signal for property left. Notifier signal for property right. Notifier signal for property top.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4