wx.Display Class Reference

Inheritance diagram for wx.Display:


List of all members.

Public Member Functions

virtual bool ChangeMode (VideoMode mode)
 Display (IntPtr wxObject)
int GetFromWindow (Window window)
virtual VideoMode[] GetModes (VideoMode mode)
virtual VideoMode[] GetModes ()
virtual void ResetMode ()

Static Public Member Functions

static Display GetDisplay (int index)
static Display[] GetDisplays ()
static int GetFromPoint (Point pt)

Public Attributes

const int wxNOT_FOUND = -1

Protected Member Functions

override void CallDTor ()


static int Count [get]
virtual VideoMode CurrentMode [get]
Rectangle Geometry [get]
virtual bool IsPrimary [get]
virtual string Name [get]

Detailed Description

Use static method GetDisplay() to generate instances. Please note, that this method will generate at most on instance for each display.

Currently, this class causes access violations with Windows.

Constructor & Destructor Documentation

wx.Display.Display ( IntPtr  wxObject  ) 

Member Function Documentation

override void wx.Display.CallDTor (  )  [protected, virtual]

This will be called by Dispose() to delete the C++ object. Overload this if you have to use another DTor.

Reimplemented from wx.Object.

virtual bool wx.Display.ChangeMode ( VideoMode  mode  )  [virtual]

static Display wx.Display.GetDisplay ( int  index  )  [static]

Returns the representation of the desired display.

null iff the index is too large.

static Display [] wx.Display.GetDisplays (  )  [static]

The array of all Displays indexed by display number. These are all instance of this class that should ever live.

static int wx.Display.GetFromPoint ( Point  pt  )  [static]

Returns the index of the display displaying the specified point or -1 if no such display exists.

pt The point to display
The index of a display or -1.

int wx.Display.GetFromWindow ( Window  window  ) 

This returns the display that shows window. This will throw an exception of this is not Windows.

virtual VideoMode [] wx.Display.GetModes ( VideoMode  mode  )  [virtual]

An array of the VideoModes that match mode. A match occurs when the resolution and depth matches and the refresh frequency in equal to or greater than mode.RefreshFrequency.

virtual VideoMode [] wx.Display.GetModes (  )  [virtual]

An array of available VideoModes for this display.


virtual void wx.Display.ResetMode (  )  [virtual]

Member Data Documentation

const int wx.Display.wxNOT_FOUND = -1

Symbolic constant used by all Find()-like functions returning positive integer on success as failure indicator. While this is global in wxWidgets it makes more sense to be in each class that uses it??? Or maybe move it to Window.cs.

Property Documentation

int wx.Display.Count [static, get]

virtual VideoMode wx.Display.CurrentMode [get]

Rectangle wx.Display.Geometry [get]

virtual bool wx.Display.IsPrimary [get]

virtual string wx.Display.Name [get]

Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads