HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE_Window Class Reference

========================================================================== More...

#include <RE_Window.h>

Classes

class  DrawablePassKey
 

Public Member Functions

 RE_Window (RE_Server *server, RE_WindowType type=RE_WINDOW_NORMAL, RE_VisualType visType=RE_NORMAL_VIS, RE_WindowOwner *owner=nullptr)
 
virtual ~RE_Window ()
 
void setName (const char *name)
 
void setIconName (const char *name)
 
void setParentWindow (RE_Window *parent)
 
const RE_WindowgetParentWindow () const
 
void setDialogParentHint (RE_IDType parent_hint)
 
RE_ServergetServer ()
 
RE_VisualgetVisual ()
 
RE_RendergetRender ()
 
void setRender (UT_UniquePtr< RE_Render > r)
 
RE_IDType openWindow ()
 
RE_IDType openWindow (bool show)
 
void showWindow ()
 
void closeWindow ()
 
void initMaxSize (int w, int h)
 
void initMinSize (int w, int h)
 
void initVisual (RE_Visual *visual)
 
void setLimitPositions (bool limitpos)
 
bool getLimitPositions () const
 
void moveWindow (int x, int y)
 
void sizeWindow (int w, int h)
 
void setWindowOpacity (fpreal opacity)
 
void maximizeWindow ()
 
void restoreWindow ()
 
bool isMaximized () const
 
void fullscreenWindow (bool full)
 
bool isFullscreenWindow () const
 
void lowerWindow ()
 
void raiseWindow ()
 
void setHasWindowFrame (bool b)
 
bool hasWindowFrame () const
 
int getBorderWidth () const
 
int getBorderHeight () const
 
int getBorderTopSize () const
 
int getBorderLeftSize () const
 
int getBorderBottomSize () const
 
int getBorderRightSize () const
 
UT_DimRect findLocation () const
 
UT_DimRect getNormalGeometry () const
 
void setWindowAlwaysOnTop (bool newstate)
 
int getWindowAlwaysOnTop () const
 
void setWindowFloatOnTop (bool on_top)
 
RE_DisplayMode getMode () const
 
RE_VisualType getVisualType () const
 
void setVisualType (RE_VisualType t)
 
void setWindowType (RE_WindowType t)
 
RE_WindowType getWindowType (bool extra=false) const
 
void setWindowID (RE_IDType id)
 
RE_IDType getWindowID () const
 
int matchID (RE_IDType wid) const
 
virtual RE_IDType getBufferID () const
 
RE_WindowDrawablegetDrawable () const
 
void setDrawable (RE_WindowDrawable *d)
 
OGLDrawable getGraphicsDrawable () const
 ===================================================================== More...
 
void setGraphicsDrawable (OGLDrawable d)
 
void setIMESupport (bool enable)
 ===================================================================== More...
 
void setWindowBorders (int left, int right, int top, int bottom)
 
void updateMaximizedFlag (bool is_maximized)
 
bool isQuadBufferStereo () const
 
int screen () const
 
fpreal screenToDeviceScale () const
 Get screen-to-window scale. More...
 
void requestRender ()
 Request that the window render it's contents. More...
 
void initializeForRender (const DrawablePassKey &k)
 
void render (const DrawablePassKey &k)
 

Static Public Member Functions

static QWidget * mainQtWindow ()
 Return the Qt main window. More...
 
static void initQtWindow (QWidget &window, RE_WindowType win_type, bool always_on_top)
 
static QWidget * createQtWindow (RE_WindowType win_type)
 
static bool appActive ()
 Returns true if Houdini or any of its sub windows are focused. More...
 
static bool isTabFocusEnabled ()
 
static void enableTabFocus (bool enable)
 
static const char * windowTag ()
 
static const intgetDefaultWindowBorderSizes ()
 ===================================================================== More...
 
static int getDefaultWindowTitleBarHeight ()
 

Detailed Description

==========================================================================

Definition at line 50 of file RE_Window.h.

Constructor & Destructor Documentation

RE_Window::RE_Window ( RE_Server server,
RE_WindowType  type = RE_WINDOW_NORMAL,
RE_VisualType  visType = RE_NORMAL_VIS,
RE_WindowOwner owner = nullptr 
)
virtual RE_Window::~RE_Window ( )
virtual

Member Function Documentation

static bool RE_Window::appActive ( )
static

Returns true if Houdini or any of its sub windows are focused.

void RE_Window::closeWindow ( )
static QWidget* RE_Window::createQtWindow ( RE_WindowType  win_type)
static

Create a Qt window widget for the given window type. The caller takes ownership of the returned object.

static void RE_Window::enableTabFocus ( bool  enable)
static
UT_DimRect RE_Window::findLocation ( ) const
void RE_Window::fullscreenWindow ( bool  full)
int RE_Window::getBorderBottomSize ( ) const
inline

Definition at line 126 of file RE_Window.h.

int RE_Window::getBorderHeight ( ) const
inline

Definition at line 120 of file RE_Window.h.

int RE_Window::getBorderLeftSize ( ) const
inline

Definition at line 124 of file RE_Window.h.

int RE_Window::getBorderRightSize ( ) const
inline

Definition at line 128 of file RE_Window.h.

int RE_Window::getBorderTopSize ( ) const
inline

Definition at line 122 of file RE_Window.h.

int RE_Window::getBorderWidth ( ) const
inline

Definition at line 118 of file RE_Window.h.

virtual RE_IDType RE_Window::getBufferID ( ) const
inlinevirtual

Definition at line 160 of file RE_Window.h.

static const int* RE_Window::getDefaultWindowBorderSizes ( )
static

=====================================================================

Get Default Window Border Sizes

static int RE_Window::getDefaultWindowTitleBarHeight ( )
static
RE_WindowDrawable* RE_Window::getDrawable ( ) const
inline

===================================================================== For new 2D UI drawing.

Definition at line 164 of file RE_Window.h.

OGLDrawable RE_Window::getGraphicsDrawable ( ) const
inline

=====================================================================

===================================================================== For OpenGL 2D UI drawing.

Definition at line 170 of file RE_Window.h.

bool RE_Window::getLimitPositions ( ) const
inline

Definition at line 87 of file RE_Window.h.

RE_DisplayMode RE_Window::getMode ( ) const
UT_DimRect RE_Window::getNormalGeometry ( ) const
const RE_Window* RE_Window::getParentWindow ( ) const
inline

Definition at line 64 of file RE_Window.h.

RE_Render* RE_Window::getRender ( )
RE_Server* RE_Window::getServer ( )
inline

Definition at line 69 of file RE_Window.h.

RE_Visual* RE_Window::getVisual ( )
inline

Definition at line 70 of file RE_Window.h.

RE_VisualType RE_Window::getVisualType ( ) const
inline

Definition at line 143 of file RE_Window.h.

int RE_Window::getWindowAlwaysOnTop ( ) const
inline

Definition at line 137 of file RE_Window.h.

RE_IDType RE_Window::getWindowID ( ) const
inline

Definition at line 155 of file RE_Window.h.

RE_WindowType RE_Window::getWindowType ( bool  extra = false) const
bool RE_Window::hasWindowFrame ( ) const
void RE_Window::initializeForRender ( const DrawablePassKey k)

Initialize the window in preparation of rendering the window's contents. This method is meant to be called only from RE_WindowDrawable.

void RE_Window::initMaxSize ( int  w,
int  h 
)
void RE_Window::initMinSize ( int  w,
int  h 
)
static void RE_Window::initQtWindow ( QWidget &  window,
RE_WindowType  win_type,
bool  always_on_top 
)
static

Initialize the given widget window with the desired Houdini window properties, look and feel.

void RE_Window::initVisual ( RE_Visual visual)
bool RE_Window::isFullscreenWindow ( ) const
bool RE_Window::isMaximized ( ) const
bool RE_Window::isQuadBufferStereo ( ) const
static bool RE_Window::isTabFocusEnabled ( )
static
void RE_Window::lowerWindow ( )
static QWidget* RE_Window::mainQtWindow ( )
static

Return the Qt main window.

int RE_Window::matchID ( RE_IDType  wid) const
inline

Definition at line 157 of file RE_Window.h.

void RE_Window::maximizeWindow ( )
void RE_Window::moveWindow ( int  x,
int  y 
)
RE_IDType RE_Window::openWindow ( )
RE_IDType RE_Window::openWindow ( bool  show)
void RE_Window::raiseWindow ( )
void RE_Window::render ( const DrawablePassKey k)

Render the window's contents. This method is meant to be called only from RE_WindowDrawable.

void RE_Window::requestRender ( )

Request that the window render it's contents.

===================================================================== For new 2D UI drawing.

void RE_Window::restoreWindow ( )
int RE_Window::screen ( ) const

Return the screen number containing this window. If the underlying platform window has not been created yet then return the primary screen number.

fpreal RE_Window::screenToDeviceScale ( ) const

Get screen-to-window scale.

void RE_Window::setDialogParentHint ( RE_IDType  parent_hint)
void RE_Window::setDrawable ( RE_WindowDrawable d)
void RE_Window::setGraphicsDrawable ( OGLDrawable  d)
inline

Definition at line 171 of file RE_Window.h.

void RE_Window::setHasWindowFrame ( bool  b)
void RE_Window::setIconName ( const char *  name)
void RE_Window::setIMESupport ( bool  enable)

=====================================================================

void RE_Window::setLimitPositions ( bool  limitpos)
inline

Definition at line 85 of file RE_Window.h.

void RE_Window::setName ( const char *  name)
void RE_Window::setParentWindow ( RE_Window parent)
void RE_Window::setRender ( UT_UniquePtr< RE_Render r)
inline

Definition at line 74 of file RE_Window.h.

void RE_Window::setVisualType ( RE_VisualType  t)
inline

Definition at line 145 of file RE_Window.h.

void RE_Window::setWindowAlwaysOnTop ( bool  newstate)
void RE_Window::setWindowBorders ( int  left,
int  right,
int  top,
int  bottom 
)
inline

Definition at line 193 of file RE_Window.h.

void RE_Window::setWindowFloatOnTop ( bool  on_top)
void RE_Window::setWindowID ( RE_IDType  id)
inline

Definition at line 154 of file RE_Window.h.

void RE_Window::setWindowOpacity ( fpreal  opacity)
void RE_Window::setWindowType ( RE_WindowType  t)
inline

Definition at line 148 of file RE_Window.h.

void RE_Window::showWindow ( )
void RE_Window::sizeWindow ( int  w,
int  h 
)
void RE_Window::updateMaximizedFlag ( bool  is_maximized)
inline

Definition at line 203 of file RE_Window.h.

static const char* RE_Window::windowTag ( )
inlinestatic

Return the string tag used to identify whether a Qt widget is the window for an RE_Window object.

Definition at line 213 of file RE_Window.h.


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