library: libGui #include "TGView.h"

# TGViewFrame

class description - source file - inheritance tree (.pdf)

## class TGViewFrame : public TGCompositeFrame

| Inheritance Chart:
`TObject`
| <- | `TGObject`
| <- | `TGWindow`
`TQObject`
| <- | `TGFrame`
| <- | `TGCompositeFrame`
| <- | `TGViewFrame` |

        public:

                          TGViewFrame(TGView* v, UInt_t w, UInt_t h, UInt_t options = 0, Pixel_t back = GetWhitePixel())
                          TGViewFrame(const TGViewFrame&)
                          ~TGViewFrame()
           static TClass* Class()
           virtual Bool_t HandleButton(Event_t* event)
           virtual Bool_t HandleCrossing(Event_t* event)
           virtual Bool_t HandleExpose(Event_t* event)
           virtual Bool_t HandleKey(Event_t* event)
           virtual Bool_t HandleMotion(Event_t* event)
           virtual Bool_t HandleSelection(Event_t* event)
           virtual Bool_t HandleSelectionClear(Event_t* event)
           virtual Bool_t HandleSelectionRequest(Event_t* event)
          virtual TClass* IsA() const
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        private:

          TGView* fView  pointer back to the view

## Class Description

     TGView

     A TGView provides the infrastructure for text viewer and editor
     widgets. It provides a canvas (TGViewFrame) and (optionally) a
     vertical and horizontal scrollbar and methods for marking and
     scrolling.

     The TGView (and derivatives) will generate the following
     event messages:
     kC_TEXTVIEW, kTXT_ISMARKED, widget id, [true|false]
     kC_TEXTVIEW, kTXT_DATACHANGE, widget id, 0
     kC_TEXTVIEW, kTXT_CLICK2, widget id, position (y << 16) | x)
     kC_TEXTVIEW, kTXT_CLICK3, widget id, position (y << 16) | x)
     kC_TEXTVIEW, kTXT_F3, widget id, true
     kC_TEXTVIEW, kTXT_OPEN, widget id, 0
     kC_TEXTVIEW, kTXT_CLOSE, widget id, 0
     kC_TEXTVIEW, kTXT_SAVE, widget id, 0

TGViewFrame(TGView *v, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGCompositeFrame(v, w, h, options | kOwnBackground, back)

     Create a editor frame.

### Inline Functions

                   void ~TGViewFrame()
                 Bool_t HandleSelectionRequest(Event_t* event)
                 Bool_t HandleSelectionClear(Event_t* event)
                 Bool_t HandleSelection(Event_t* event)
                 Bool_t HandleButton(Event_t* event)
                 Bool_t HandleExpose(Event_t* event)
                 Bool_t HandleCrossing(Event_t* event)
                 Bool_t HandleMotion(Event_t* event)
                 Bool_t HandleKey(Event_t* event)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
            TGViewFrame TGViewFrame(const TGViewFrame&)

Author: Fons Rademakers 30/6/2000
Last update: root/gui:$Name: $:$Id: TGView.cxx,v 1.12 2004/10/22 07:31:58 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *