annotate src/main/java/com/glavsoft/rfb/IRepaintController.java @ 0:daa24f8a557b

TightVNC original
author YU
date Thu, 11 Sep 2014 07:30:03 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
daa24f8a557b TightVNC original
YU
parents:
diff changeset
1 // Copyright (C) 2010, 2011, 2012, 2013 GlavSoft LLC.
daa24f8a557b TightVNC original
YU
parents:
diff changeset
2 // All rights reserved.
daa24f8a557b TightVNC original
YU
parents:
diff changeset
3 //
daa24f8a557b TightVNC original
YU
parents:
diff changeset
4 //-------------------------------------------------------------------------
daa24f8a557b TightVNC original
YU
parents:
diff changeset
5 // This file is part of the TightVNC software. Please visit our Web site:
daa24f8a557b TightVNC original
YU
parents:
diff changeset
6 //
daa24f8a557b TightVNC original
YU
parents:
diff changeset
7 // http://www.tightvnc.com/
daa24f8a557b TightVNC original
YU
parents:
diff changeset
8 //
daa24f8a557b TightVNC original
YU
parents:
diff changeset
9 // This program is free software; you can redistribute it and/or modify
daa24f8a557b TightVNC original
YU
parents:
diff changeset
10 // it under the terms of the GNU General Public License as published by
daa24f8a557b TightVNC original
YU
parents:
diff changeset
11 // the Free Software Foundation; either version 2 of the License, or
daa24f8a557b TightVNC original
YU
parents:
diff changeset
12 // (at your option) any later version.
daa24f8a557b TightVNC original
YU
parents:
diff changeset
13 //
daa24f8a557b TightVNC original
YU
parents:
diff changeset
14 // This program is distributed in the hope that it will be useful,
daa24f8a557b TightVNC original
YU
parents:
diff changeset
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
daa24f8a557b TightVNC original
YU
parents:
diff changeset
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
daa24f8a557b TightVNC original
YU
parents:
diff changeset
17 // GNU General Public License for more details.
daa24f8a557b TightVNC original
YU
parents:
diff changeset
18 //
daa24f8a557b TightVNC original
YU
parents:
diff changeset
19 // You should have received a copy of the GNU General Public License along
daa24f8a557b TightVNC original
YU
parents:
diff changeset
20 // with this program; if not, write to the Free Software Foundation, Inc.,
daa24f8a557b TightVNC original
YU
parents:
diff changeset
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
daa24f8a557b TightVNC original
YU
parents:
diff changeset
22 //-------------------------------------------------------------------------
daa24f8a557b TightVNC original
YU
parents:
diff changeset
23 //
daa24f8a557b TightVNC original
YU
parents:
diff changeset
24
daa24f8a557b TightVNC original
YU
parents:
diff changeset
25 package com.glavsoft.rfb;
daa24f8a557b TightVNC original
YU
parents:
diff changeset
26
daa24f8a557b TightVNC original
YU
parents:
diff changeset
27 import com.glavsoft.drawing.Renderer;
daa24f8a557b TightVNC original
YU
parents:
diff changeset
28 import com.glavsoft.rfb.encoding.PixelFormat;
daa24f8a557b TightVNC original
YU
parents:
diff changeset
29 import com.glavsoft.rfb.encoding.decoder.FramebufferUpdateRectangle;
daa24f8a557b TightVNC original
YU
parents:
diff changeset
30 import com.glavsoft.transport.Reader;
daa24f8a557b TightVNC original
YU
parents:
diff changeset
31
daa24f8a557b TightVNC original
YU
parents:
diff changeset
32 /**
daa24f8a557b TightVNC original
YU
parents:
diff changeset
33 * Interface for sending repaint event from worker thread to GUI thread
daa24f8a557b TightVNC original
YU
parents:
diff changeset
34 */
daa24f8a557b TightVNC original
YU
parents:
diff changeset
35 public interface IRepaintController extends IChangeSettingsListener {
daa24f8a557b TightVNC original
YU
parents:
diff changeset
36 void repaintBitmap(FramebufferUpdateRectangle rect);
daa24f8a557b TightVNC original
YU
parents:
diff changeset
37 void repaintBitmap(int x, int y, int width, int height);
daa24f8a557b TightVNC original
YU
parents:
diff changeset
38 void repaintCursor();
daa24f8a557b TightVNC original
YU
parents:
diff changeset
39 void updateCursorPosition(short x, short y);
daa24f8a557b TightVNC original
YU
parents:
diff changeset
40 Renderer createRenderer(Reader reader, int width, int height, PixelFormat pixelFormat);
daa24f8a557b TightVNC original
YU
parents:
diff changeset
41 void setPixelFormat(PixelFormat pixelFormat);
daa24f8a557b TightVNC original
YU
parents:
diff changeset
42 }