webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Protected Attributes | List of all members
GtkMainWnd Class Reference

#include <main_wnd.h>

Inheritance diagram for GtkMainWnd:
MainWindow MainWindow

Classes

class  VideoRenderer
 

Public Member Functions

 GtkMainWnd (const char *server, int port, bool autoconnect, bool autocall)
 
 ~GtkMainWnd ()
 
virtual void RegisterObserver (MainWndCallback *callback)
 
virtual bool IsWindow ()
 
virtual void SwitchToConnectUI ()
 
virtual void SwitchToPeerList (const Peers &peers)
 
virtual void SwitchToStreamingUI ()
 
virtual void MessageBox (const char *caption, const char *text, bool is_error)
 
virtual MainWindow::UI current_ui ()
 
virtual void StartLocalRenderer (webrtc::VideoTrackInterface *local_video)
 
virtual void StopLocalRenderer ()
 
virtual void StartRemoteRenderer (webrtc::VideoTrackInterface *remote_video)
 
virtual void StopRemoteRenderer ()
 
virtual void QueueUIThreadCallback (int msg_id, void *data)
 
bool Create ()
 
bool Destroy ()
 
void OnDestroyed (GtkWidget *widget, GdkEvent *event)
 
void OnClicked (GtkWidget *widget)
 
void OnKeyPress (GtkWidget *widget, GdkEventKey *key)
 
void OnRowActivated (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column)
 
void OnRedraw ()
 
void Draw (GtkWidget *widget, cairo_t *cr)
 
 GtkMainWnd (const char *server, int port, bool autoconnect, bool autocall)
 
 ~GtkMainWnd ()
 
virtual void RegisterObserver (MainWndCallback *callback)
 
virtual bool IsWindow ()
 
virtual void SwitchToConnectUI ()
 
virtual void SwitchToPeerList (const Peers &peers)
 
virtual void SwitchToStreamingUI ()
 
virtual void MessageBox (const char *caption, const char *text, bool is_error)
 
virtual MainWindow::UI current_ui ()
 
virtual void StartLocalRenderer (webrtc::VideoTrackInterface *local_video)
 
virtual void StopLocalRenderer ()
 
virtual void StartRemoteRenderer (webrtc::VideoTrackInterface *remote_video)
 
virtual void StopRemoteRenderer ()
 
virtual void QueueUIThreadCallback (int msg_id, void *data)
 
bool Create ()
 
bool Destroy ()
 
void OnDestroyed (GtkWidget *widget, GdkEvent *event)
 
void OnClicked (GtkWidget *widget)
 
void OnKeyPress (GtkWidget *widget, GdkEventKey *key)
 
void OnRowActivated (GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column)
 
void OnRedraw ()
 
void Draw (GtkWidget *widget, cairo_t *cr)
 
- Public Member Functions inherited from MainWindow
virtual ~MainWindow ()
 
virtual ~MainWindow ()
 

Protected Attributes

GtkWidgetwindow_
 
GtkWidgetdraw_area_
 
GtkWidgetvbox_
 
GtkWidgetserver_edit_
 
GtkWidgetport_edit_
 
GtkWidgetpeer_list_
 
MainWndCallbackcallback_
 
std::string server_
 
std::string port_
 
bool autoconnect_
 
bool autocall_
 
std::unique_ptr< VideoRendererlocal_renderer_
 
std::unique_ptr< VideoRendererremote_renderer_
 
int width_
 
int height_
 
std::unique_ptr< uint8_t[]> draw_buffer_
 
int draw_buffer_size_
 

Additional Inherited Members

- Public Types inherited from MainWindow
enum  UI {
  CONNECT_TO_SERVER, LIST_PEERS, STREAMING, CONNECT_TO_SERVER,
  LIST_PEERS, STREAMING
}
 
enum  UI {
  CONNECT_TO_SERVER, LIST_PEERS, STREAMING, CONNECT_TO_SERVER,
  LIST_PEERS, STREAMING
}
 

Constructor & Destructor Documentation

◆ GtkMainWnd() [1/2]

GtkMainWnd::GtkMainWnd ( const char *  server,
int  port,
bool  autoconnect,
bool  autocall 
)

◆ ~GtkMainWnd() [1/2]

GtkMainWnd::~GtkMainWnd ( )

◆ GtkMainWnd() [2/2]

GtkMainWnd::GtkMainWnd ( const char *  server,
int  port,
bool  autoconnect,
bool  autocall 
)

◆ ~GtkMainWnd() [2/2]

GtkMainWnd::~GtkMainWnd ( )

Member Function Documentation

◆ Create() [1/2]

bool GtkMainWnd::Create ( )

◆ Create() [2/2]

bool GtkMainWnd::Create ( )

◆ current_ui() [1/2]

MainWindow::UI GtkMainWnd::current_ui ( )
virtual

Implements MainWindow.

◆ current_ui() [2/2]

virtual MainWindow::UI GtkMainWnd::current_ui ( )
virtual

Implements MainWindow.

◆ Destroy() [1/2]

bool GtkMainWnd::Destroy ( )

◆ Destroy() [2/2]

bool GtkMainWnd::Destroy ( )

◆ Draw() [1/2]

void GtkMainWnd::Draw ( GtkWidget widget,
cairo_t cr 
)

◆ Draw() [2/2]

void GtkMainWnd::Draw ( GtkWidget widget,
cairo_t cr 
)

◆ IsWindow() [1/2]

virtual bool GtkMainWnd::IsWindow ( )
virtual

Implements MainWindow.

◆ IsWindow() [2/2]

bool GtkMainWnd::IsWindow ( )
virtual

Implements MainWindow.

◆ MessageBox() [1/2]

virtual void GtkMainWnd::MessageBox ( const char *  caption,
const char *  text,
bool  is_error 
)
virtual

Implements MainWindow.

◆ MessageBox() [2/2]

void GtkMainWnd::MessageBox ( const char *  caption,
const char *  text,
bool  is_error 
)
virtual

Implements MainWindow.

◆ OnClicked() [1/2]

void GtkMainWnd::OnClicked ( GtkWidget widget)

◆ OnClicked() [2/2]

void GtkMainWnd::OnClicked ( GtkWidget widget)

◆ OnDestroyed() [1/2]

void GtkMainWnd::OnDestroyed ( GtkWidget widget,
GdkEvent event 
)

◆ OnDestroyed() [2/2]

void GtkMainWnd::OnDestroyed ( GtkWidget widget,
GdkEvent event 
)

◆ OnKeyPress() [1/2]

void GtkMainWnd::OnKeyPress ( GtkWidget widget,
GdkEventKey key 
)

◆ OnKeyPress() [2/2]

void GtkMainWnd::OnKeyPress ( GtkWidget widget,
GdkEventKey key 
)

◆ OnRedraw() [1/2]

void GtkMainWnd::OnRedraw ( )

◆ OnRedraw() [2/2]

void GtkMainWnd::OnRedraw ( )

◆ OnRowActivated() [1/2]

void GtkMainWnd::OnRowActivated ( GtkTreeView tree_view,
GtkTreePath path,
GtkTreeViewColumn column 
)

◆ OnRowActivated() [2/2]

void GtkMainWnd::OnRowActivated ( GtkTreeView tree_view,
GtkTreePath path,
GtkTreeViewColumn column 
)

◆ QueueUIThreadCallback() [1/2]

virtual void GtkMainWnd::QueueUIThreadCallback ( int  msg_id,
void data 
)
virtual

Implements MainWindow.

◆ QueueUIThreadCallback() [2/2]

void GtkMainWnd::QueueUIThreadCallback ( int  msg_id,
void data 
)
virtual

Implements MainWindow.

◆ RegisterObserver() [1/2]

void GtkMainWnd::RegisterObserver ( MainWndCallback callback)
virtual

Implements MainWindow.

◆ RegisterObserver() [2/2]

virtual void GtkMainWnd::RegisterObserver ( MainWndCallback callback)
virtual

Implements MainWindow.

◆ StartLocalRenderer() [1/2]

void GtkMainWnd::StartLocalRenderer ( webrtc::VideoTrackInterface local_video)
virtual

Implements MainWindow.

◆ StartLocalRenderer() [2/2]

virtual void GtkMainWnd::StartLocalRenderer ( webrtc::VideoTrackInterface local_video)
virtual

Implements MainWindow.

◆ StartRemoteRenderer() [1/2]

void GtkMainWnd::StartRemoteRenderer ( webrtc::VideoTrackInterface remote_video)
virtual

Implements MainWindow.

◆ StartRemoteRenderer() [2/2]

virtual void GtkMainWnd::StartRemoteRenderer ( webrtc::VideoTrackInterface remote_video)
virtual

Implements MainWindow.

◆ StopLocalRenderer() [1/2]

void GtkMainWnd::StopLocalRenderer ( )
virtual

Implements MainWindow.

◆ StopLocalRenderer() [2/2]

virtual void GtkMainWnd::StopLocalRenderer ( )
virtual

Implements MainWindow.

◆ StopRemoteRenderer() [1/2]

void GtkMainWnd::StopRemoteRenderer ( )
virtual

Implements MainWindow.

◆ StopRemoteRenderer() [2/2]

virtual void GtkMainWnd::StopRemoteRenderer ( )
virtual

Implements MainWindow.

◆ SwitchToConnectUI() [1/2]

virtual void GtkMainWnd::SwitchToConnectUI ( )
virtual

Implements MainWindow.

◆ SwitchToConnectUI() [2/2]

void GtkMainWnd::SwitchToConnectUI ( )
virtual

Implements MainWindow.

◆ SwitchToPeerList() [1/2]

virtual void GtkMainWnd::SwitchToPeerList ( const Peers peers)
virtual

Implements MainWindow.

◆ SwitchToPeerList() [2/2]

void GtkMainWnd::SwitchToPeerList ( const Peers peers)
virtual

Implements MainWindow.

◆ SwitchToStreamingUI() [1/2]

virtual void GtkMainWnd::SwitchToStreamingUI ( )
virtual

Implements MainWindow.

◆ SwitchToStreamingUI() [2/2]

void GtkMainWnd::SwitchToStreamingUI ( )
virtual

Implements MainWindow.

Member Data Documentation

◆ autocall_

bool GtkMainWnd::autocall_
protected

◆ autoconnect_

bool GtkMainWnd::autoconnect_
protected

◆ callback_

MainWndCallback * GtkMainWnd::callback_
protected

◆ draw_area_

GtkWidget * GtkMainWnd::draw_area_
protected

◆ draw_buffer_

std::unique_ptr< uint8_t[]> GtkMainWnd::draw_buffer_
protected

◆ draw_buffer_size_

int GtkMainWnd::draw_buffer_size_
protected

◆ height_

int GtkMainWnd::height_
protected

◆ local_renderer_

std::unique_ptr< VideoRenderer > GtkMainWnd::local_renderer_
protected

◆ peer_list_

GtkWidget * GtkMainWnd::peer_list_
protected

◆ port_

std::string GtkMainWnd::port_
protected

◆ port_edit_

GtkWidget * GtkMainWnd::port_edit_
protected

◆ remote_renderer_

std::unique_ptr< VideoRenderer > GtkMainWnd::remote_renderer_
protected

◆ server_

std::string GtkMainWnd::server_
protected

◆ server_edit_

GtkWidget * GtkMainWnd::server_edit_
protected

◆ vbox_

GtkWidget * GtkMainWnd::vbox_
protected

◆ width_

int GtkMainWnd::width_
protected

◆ window_

GtkWidget * GtkMainWnd::window_
protected

The documentation for this class was generated from the following files: