OpToggleDoubleBuffer Class Reference

This class represents the OpToggleDoubleBuffer operation. Creating an instance of this class and calling its "Do" function will toggle the state of the flag controlling whether double buffering is used for rendering on GTK. More...

#include <rendwnd.h>

Inheritance diagram for OpToggleDoubleBuffer:

Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 OpToggleDoubleBuffer ()
 Constructs an OpToggleDoubleBuffer object.
 ~OpToggleDoubleBuffer ()
 Destructs an OpToggleDoubleBuffer object.
void Do (OpDescriptor *)
 Actually "DO" a ToggleFore operation.

Static Public Member Functions

static BOOL Init ()
 Create an OpDescriptor for the OpToggleDoubleBuffer operation.
static OpState GetState (String_256 *, OpDescriptor *)
 Find the state of the OpToggleDoubleBuffer operation.

Detailed Description

This class represents the OpToggleDoubleBuffer operation. Creating an instance of this class and calling its "Do" function will toggle the state of the flag controlling whether double buffering is used for rendering on GTK.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006

Definition at line 225 of file rendwnd.h.


Constructor & Destructor Documentation

OpToggleDoubleBuffer::OpToggleDoubleBuffer  ) 
 

Constructs an OpToggleDoubleBuffer object.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 799 of file rendwnd.cpp.

00799                                            : Operation()
00800 {
00801 
00802 }

OpToggleDoubleBuffer::~OpToggleDoubleBuffer  ) 
 

Destructs an OpToggleDoubleBuffer object.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 821 of file rendwnd.cpp.

00822 {
00823     // Empty
00824 }


Member Function Documentation

void OpToggleDoubleBuffer::Do OpDescriptor  )  [virtual]
 

Actually "DO" a ToggleFore operation.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006
Parameters:
Pointer to Operation Descriptor [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from Operation.

Definition at line 843 of file rendwnd.cpp.

00844 {
00845     CRenderWnd::SetDoubleBuffer(!CRenderWnd::GetDoubleBuffer());
00846     End();
00847 }

OpState OpToggleDoubleBuffer::GetState String_256 UIDescription,
OpDescriptor
[static]
 

Find the state of the OpToggleDoubleBuffer operation.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006
Parameters:
Pointer to Operation Descriptor [INPUTS] Text Description
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Definition at line 867 of file rendwnd.cpp.

00868 {
00869     // Default to !ticked and greyed
00870     OpState blobby(FALSE, TRUE);
00871     blobby.Ticked = CRenderWnd::GetDoubleBuffer();
00872     blobby.Greyed = FALSE;
00873     return(blobby);
00874 }

BOOL OpToggleDoubleBuffer::Init void   )  [static]
 

Create an OpDescriptor for the OpToggleDoubleBuffer operation.

Author:
Alex Bligh <alex@alex.org.uk>
Date:
14 Mar 2006
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from SimpleCCObject.

Definition at line 893 of file rendwnd.cpp.

00894 {
00895     return Operation::RegisterOpDescriptor( 
00896                                             0, 
00897                                             _R(IDS_TOGGLE_DOUBLEBUFFER),
00898                                             CC_RUNTIME_CLASS(OpToggleDoubleBuffer), 
00899                                             OPTOKEN_TOGGLEDOUBLEBUFFER,
00900                                             OpToggleDoubleBuffer::GetState,
00901                                             0,                      // help ID
00902                                             0,// _R(IDBBL_FOREBACKGRNDOP),
00903                                             0,                      // bitmap ID
00904                                             0,                      // control ID
00905                                             SYSTEMBAR_ILLEGAL,      // group bar ID
00906                                             TRUE,
00907                                             FALSE,
00908                                             TRUE,
00909                                             NULL,
00910                                             0,
00911                                             0,
00912                                             TRUE
00913                                            );
00914 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:59:06 2007 for Camelot by  doxygen 1.4.4