mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 19:01:38 +08:00
NxWM updates (with some NX and NxWidget fixes too)
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4689 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -139,8 +139,9 @@ namespace NXWidgets
|
||||
CWidgetControl *getWidgetControl(void) const;
|
||||
|
||||
/**
|
||||
* Open a toolbar on the framed window. Toolbar creation is separate
|
||||
* from object instantion so that errors can be reported
|
||||
* Open a toolbar on the framed window. This method both instantiates
|
||||
* the toolbar object AND calls the INxWindow::open() method to
|
||||
* create the toolbar. The toolbar is ready for use upon return.
|
||||
*
|
||||
* @return True if the toolbar was successfully created.
|
||||
*/
|
||||
|
||||
@@ -695,6 +695,41 @@ namespace NXWidgets
|
||||
return m_rect.getHeight();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the size of the widget
|
||||
*
|
||||
* @return The widgets's size
|
||||
*/
|
||||
|
||||
inline void getSize(struct nxgl_size_s &size) const
|
||||
{
|
||||
size.h = m_rect.getHeight();
|
||||
size.w = m_rect.getWidth();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the position of the widget
|
||||
*
|
||||
* @return The widgets's position
|
||||
*/
|
||||
|
||||
inline void getPos(struct nxgl_point_s &pos) const
|
||||
{
|
||||
pos.x = m_rect.getX();
|
||||
pos.y = m_rect.getY();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the window bounding box in physical display coordinated.
|
||||
*
|
||||
* @return This function returns the window handle.
|
||||
*/
|
||||
|
||||
inline CRect getBoundingBox(void)
|
||||
{
|
||||
return CRect(m_rect);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the dimensions of the border
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user