NetSurf
window.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 François Revol <mmu_man@users.sourceforge.net>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef NETSURF_BEOS_WINDOW_H
20#define NETSURF_BEOS_WINDOW_H 1
21
22#include <View.h>
23#include <Window.h>
24#include <NetPositive.h>
25
28
29struct gui_window;
30struct browser_window;
31struct beos_scaffolding;
32
33class NSBrowserFrameView : public BView {
34public:
35 NSBrowserFrameView(BRect frame, struct gui_window *gui);
36 virtual ~NSBrowserFrameView();
37
38 virtual void MessageReceived(BMessage *message);
39 virtual void Draw(BRect updateRect);
40
41 //virtual void FrameMoved(BPoint new_location);
42 virtual void FrameResized(float new_width, float new_height);
43
44 virtual void KeyDown(const char *bytes, int32 numBytes);
45 virtual void MouseDown(BPoint where);
46 virtual void MouseUp(BPoint where);
47 virtual void MouseMoved(BPoint where, uint32 transit, const BMessage *msg);
48
49private:
51};
52
53/**
54 * Process beos messages into browser operations.
55 *
56 * \param message The beos message to process.
57 */
58void nsbeos_dispatch_event(BMessage *message);
59
60/**
61 * Cause all windows to be reflowed.
62 */
64
65/**
66 * Get containing scaffold of a beos gui window
67 *
68 * \param g gui window to find scaffold of.
69 * \return The containing scaffold.
70 */
72
74
76
78
80
81#endif /* NETSURF_BEOS_WINDOW_H */
virtual void FrameResized(float new_width, float new_height)
Definition: window.cpp:261
virtual ~NSBrowserFrameView()
Definition: window.cpp:126
virtual void MouseDown(BPoint where)
Definition: window.cpp:281
virtual void KeyDown(const char *bytes, int32 numBytes)
Definition: window.cpp:273
struct gui_window * fGuiWindow
Definition: window.h:50
virtual void MouseUp(BPoint where)
Definition: window.cpp:294
virtual void Draw(BRect updateRect)
Definition: window.cpp:247
NSBrowserFrameView(BRect frame, struct gui_window *gui)
Definition: window.cpp:118
virtual void MessageReceived(BMessage *message)
Definition: window.cpp:132
virtual void MouseMoved(BPoint where, uint32 transit, const BMessage *msg)
Definition: window.cpp:309
void nsbeos_dispatch_event(BMessage *message)
Process beos messages into browser operations.
Definition: window.cpp:406
int nsbeos_gui_window_update_targets(struct gui_window *g)
struct gui_clipboard_table * beos_clipboard_table
Definition: window.cpp:1314
struct browser_window * nsbeos_get_browser_window(struct gui_window *g)
Definition: window.cpp:322
struct gui_window_table * beos_window_table
Definition: window.cpp:1405
struct beos_scaffolding * nsbeos_get_scaffold(struct gui_window *g)
Get containing scaffold of a beos gui window.
Definition: window.cpp:327
void nsbeos_window_destroy_browser(struct gui_window *g)
Definition: window.cpp:913
void nsbeos_reflow_all_windows(void)
Cause all windows to be reflowed.
Definition: window.cpp:905
struct browser_window * nsbeos_get_browser_for_gui(struct gui_window *g)
Definition: window.cpp:332
int32_t int32
Definition: os3support.h:183
uint32_t uint32
Definition: os3support.h:184
Browser window data.
function table for clipboard operations.
Definition: clipboard.h:42
Graphical user interface window function table.
Definition: window.h:137
first entry in window list
Definition: gui.c:297