newspeoplefor developersdocumentationdownloads

nDisplayMode2 Class Reference

#include <ndisplaymode2.h>

List of all members.


Detailed Description

Contains display mode parameters.

(C) 2002 RadonLabs GmbH

Definition at line 16 of file ndisplaymode2.h.


Public Types

enum  Type {
  Windowed,
  Fullscreen,
  AlwaysOnTop,
  ChildWindow
}
 display mode types More...
enum  Bpp {
  Bpp16,
  Bpp32
}
 bit depths More...

Public Member Functions

 nDisplayMode2 ()
 constructor
 nDisplayMode2 (const char *winTitle, Type t, ushort x, ushort y, ushort w, ushort h, bool vSync, bool dialogBoxMode, const char *iconResName)
 constructor
void Set (const char *winTitle, Type t, ushort x, ushort y, ushort w, ushort h, bool vSync, bool dialogBoxMode, const char *iconResName)
 set display mode
void SetXPos (int x)
 set x position
int GetXPos () const
 get x position
void SetYPos (int y)
 set y position
int GetYPos () const
 get y position
void SetWidth (int w)
 set display width
int GetWidth () const
 get display width
void SetHeight (int h)
 set display height
int GetHeight () const
 get display height
void SetType (Type t)
 set display type
Type GetType () const
 get display type
void SetBpp (Bpp depth)
 set bit depth
Bpp GetBpp () const
 get bit depth
void SetWindowTitle (const nString &t)
 set window title
const nStringGetWindowTitle () const
 get window title
void SetVerticalSync (bool b)
 set vertical sync flag
bool GetVerticalSync () const
 get vertical sync flag
void SetIcon (const nString &resName)
 set optional window icon resource
const nStringGetIcon () const
 get optional window icon resource
void SetDialogBoxMode (bool b)
 make this mode compatible with host system dialog boxes
bool GetDialogBoxMode () const
 get dialog box mode
void SetAntiAliasSamples (int s)
 set antialiasing mode
int GetAntiAliasSamples () const
 get antialiasing mode

Static Public Member Functions

static const char * TypeToString (Type t)
 convert type to string
static Type StringToType (const char *str)
 convert string to type

Member Enumeration Documentation

enum nDisplayMode2::Type
 

display mode types

Enumerator:
Windowed 
Fullscreen 
AlwaysOnTop 
ChildWindow 

Definition at line 20 of file ndisplaymode2.h.

enum nDisplayMode2::Bpp
 

bit depths

Enumerator:
Bpp16 
Bpp32 

Definition at line 29 of file ndisplaymode2.h.


Constructor & Destructor Documentation

nDisplayMode2::nDisplayMode2  )  [inline]
 

constructor

Definition at line 108 of file ndisplaymode2.h.

nDisplayMode2::nDisplayMode2 const char *  winTitle,
Type  t,
ushort  x,
ushort  y,
ushort  w,
ushort  h,
bool  vSync,
bool  dialogBoxMode,
const char *  iconResName
[inline]
 

constructor

Definition at line 128 of file ndisplaymode2.h.


Member Function Documentation

void nDisplayMode2::Set const char *  winTitle,
Type  t,
ushort  x,
ushort  y,
ushort  w,
ushort  h,
bool  vSync,
bool  dialogBoxMode,
const char *  iconResName
[inline]
 

set display mode

Definition at line 149 of file ndisplaymode2.h.

void nDisplayMode2::SetXPos int  x  )  [inline]
 

set x position

Definition at line 170 of file ndisplaymode2.h.

int nDisplayMode2::GetXPos  )  const [inline]
 

get x position

Definition at line 180 of file ndisplaymode2.h.

void nDisplayMode2::SetYPos int  y  )  [inline]
 

set y position

Definition at line 190 of file ndisplaymode2.h.

int nDisplayMode2::GetYPos  )  const [inline]
 

get y position

Definition at line 200 of file ndisplaymode2.h.

void nDisplayMode2::SetWidth int  w  )  [inline]
 

set display width

Definition at line 210 of file ndisplaymode2.h.

int nDisplayMode2::GetWidth  )  const [inline]
 

get display width

Definition at line 221 of file ndisplaymode2.h.

void nDisplayMode2::SetHeight int  h  )  [inline]
 

set display height

Definition at line 232 of file ndisplaymode2.h.

int nDisplayMode2::GetHeight  )  const [inline]
 

get display height

Definition at line 243 of file ndisplaymode2.h.

void nDisplayMode2::SetType Type  t  )  [inline]
 

set display type

Definition at line 254 of file ndisplaymode2.h.

nDisplayMode2::Type nDisplayMode2::GetType  )  const [inline]
 

get display type

Definition at line 264 of file ndisplaymode2.h.

void nDisplayMode2::SetBpp Bpp  depth  )  [inline]
 

set bit depth

Definition at line 384 of file ndisplaymode2.h.

nDisplayMode2::Bpp nDisplayMode2::GetBpp  )  const [inline]
 

get bit depth

Definition at line 394 of file ndisplaymode2.h.

void nDisplayMode2::SetWindowTitle const nString t  )  [inline]
 

set window title

Definition at line 274 of file ndisplaymode2.h.

const nString & nDisplayMode2::GetWindowTitle  )  const [inline]
 

get window title

Definition at line 284 of file ndisplaymode2.h.

void nDisplayMode2::SetVerticalSync bool  b  )  [inline]
 

set vertical sync flag

Definition at line 294 of file ndisplaymode2.h.

bool nDisplayMode2::GetVerticalSync  )  const [inline]
 

get vertical sync flag

Definition at line 304 of file ndisplaymode2.h.

void nDisplayMode2::SetIcon const nString resName  )  [inline]
 

set optional window icon resource

Definition at line 344 of file ndisplaymode2.h.

const nString & nDisplayMode2::GetIcon  )  const [inline]
 

get optional window icon resource

Definition at line 354 of file ndisplaymode2.h.

void nDisplayMode2::SetDialogBoxMode bool  b  )  [inline]
 

make this mode compatible with host system dialog boxes

Definition at line 364 of file ndisplaymode2.h.

bool nDisplayMode2::GetDialogBoxMode  )  const [inline]
 

get dialog box mode

Definition at line 374 of file ndisplaymode2.h.

void nDisplayMode2::SetAntiAliasSamples int  s  )  [inline]
 

set antialiasing mode

Definition at line 404 of file ndisplaymode2.h.

int nDisplayMode2::GetAntiAliasSamples  )  const [inline]
 

get antialiasing mode

Definition at line 415 of file ndisplaymode2.h.

const char * nDisplayMode2::TypeToString Type  t  )  [inline, static]
 

convert type to string

Definition at line 314 of file ndisplaymode2.h.

nDisplayMode2::Type nDisplayMode2::StringToType const char *  str  )  [inline, static]
 

convert string to type

Definition at line 330 of file ndisplaymode2.h.


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

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.