TkPixelCanvas.h
Classes
- TkPixelCanvas -- Tk interface for PixelCanvas (full description)
Types
- widget_configured_ = 0x01,redraw_required_=0x02,redraw_window_=0x04,update_pending_=0x08
-
Interface
- Public Members
- static int init(Tcl_Interp *)
- TkPixelCanvas(Tcl_Interp *interp, char *path)
- static int ClassCmd(ClientData, Tcl_Interp *, int, char **)
- static int WidgetCmd(ClientData, Tcl_Interp *, int, char **)
- int configureWidget(Tcl_Interp *, int, char **)
- static void HandleWidgetEvent(ClientData, XEvent *)
- void invalidateWindow()
- void scheduleUpdate()
- static void UpdateWidget(ClientData)
- void update()
- void resizeHandler(XEvent *)
- void exposeHandler()
- void focus(int)
- int windowExists()
- int widgetConfigured()
- int updatePending()
- int redrawRequired()
- int redrawWindow()
- int width()
- int height()
- Tk_Window tkWindow()
Review Status
- Date Reviewed:
- yyyy/mm/dd
Tk
PixelCanvas
Synopsis
This class manages some native TclTk interface for the Display
Library PixelCanvas. It is practically identical with TclTkPixelCanvas.
It will be cleaned up and absorbed soon into XTkPixelCanvas.
Example
Motivation
Putting X11PixelCanvas on top of Tk
To Do
Member Description
static int init(Tcl_Interp *)
TkPixelCanvas(Tcl_Interp *interp, char *path)
Constructor; instances of this class should only be
constructed by the static member TkPixelCanvas::ClassCmd.
static int ClassCmd(ClientData, Tcl_Interp *, int, char **)
This static member is registered with Tcl to be called
when the user creates a widget of this type.
static int WidgetCmd(ClientData, Tcl_Interp *, int, char **)
This static member is registered with Tcl to be called
when the user invokes an operation on a widget of this
type. It is registered by TkPixelCanvas::ClassCmd.
int configureWidget(Tcl_Interp *, int, char **)
Configure the widget using Tcl-style arguments.
Handle events in which the Tk side of things is interested:
A set of methods to arrange the invalidation of the current
window display, and arrange for appropriate update.
Handle resizing:
Handle exposure:
Update the focus state of the visual widget:
Does the Tk window exist?
Has the widget been configured already?
Is an update waiting to be serviced?
Is a redraw needed?
Should we redraw the window?
width and height of widget
What is the Tk_Window?