Welcome to the NetCologne GmbH open source mirroring service!

This machine mirrors various open-source projects. 20 Gbit/s uplink.

If there are any issues or you want another project mirrored, please contact mirror-service -=AT=- netcologne DOT de !

GUIComponent class Reference
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

GUIComponent Class Reference

#include <gui_component.hxx>

Inheritance diagram for GUIComponent:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GUIComponent (int x_, int y_, int width_, int height_)
virtual ~GUIComponent ()
virtual void draw (GraphicContext *gc)=0
virtual bool is_at (int x, int y)
void set_position (int x, int y)
void set_width (int w)
void set_height (int h)
int get_x_pos ()
int get_y_pos ()
int get_width ()
int get_height ()
virtual void on_primary_button_press (int x, int y)
virtual void on_primary_button_release (int x, int y)
virtual void on_secondary_button_press (int x, int y)
virtual void on_secondary_button_release (int x, int y)
virtual void on_tertiary_button_press (int x, int y)
virtual void on_tertiary_button_release (int x, int y)
virtual void on_duplicate_press (int x, int y)
virtual void on_delete_press (int x, int y)
virtual void on_fix_press (int x, int y)
virtual void on_mouse_enter ()
virtual void on_mouse_leave ()
virtual void wheel_up (int x, int y)
virtual void wheel_down (int x, int y)
virtual void on_button_press (int button_id, int x, int y)
virtual void scroll_left ()
virtual void scroll_right ()
virtual void scroll_up ()
virtual void scroll_down ()
virtual void on_mouse_move (int x, int y, int of_x, int of_y)

Protected Attributes

int x_pos
int y_pos
int width
int height

Detailed Description

A thing that is under the controll of the GUIManager

Definition at line 27 of file gui_component.hxx.


Constructor & Destructor Documentation

GUIComponent::GUIComponent int    x_,
int    y_,
int    width_,
int    height_
[inline]
 

Definition at line 36 of file gui_component.hxx.

virtual GUIComponent::~GUIComponent   [inline, virtual]
 

Definition at line 40 of file gui_component.hxx.


Member Function Documentation

virtual void GUIComponent::draw GraphicContext   gc [pure virtual]
 

Implemented in GUIButton, GUIChildManager, GUIDirectoryButton, GUILabel, GUINewFileButton, GUIWindow, WorldButton, and WorldViewComponent.

int GUIComponent::get_height   [inline]
 

Definition at line 53 of file gui_component.hxx.

Referenced by WorldViewComponent::draw().

int GUIComponent::get_width   [inline]
 

Definition at line 52 of file gui_component.hxx.

Referenced by WorldViewComponent::draw().

int GUIComponent::get_x_pos   [inline]
 

Definition at line 50 of file gui_component.hxx.

int GUIComponent::get_y_pos   [inline]
 

Definition at line 51 of file gui_component.hxx.

bool GUIComponent::is_at int    x,
int    y
[virtual]
 

Returns:
true if the component is present at the given location

Reimplemented in GUILabel, and WorldViewComponent.

Definition at line 23 of file gui_component.cxx.

References height, width, x_pos, and y_pos.

Referenced by GUIButton::on_primary_button_release().

virtual void GUIComponent::on_button_press int    button_id,
int    x,
int    y
[inline, virtual]
 

Reimplemented in WorldViewComponent.

Definition at line 74 of file gui_component.hxx.

virtual void GUIComponent::on_delete_press int    x,
int    y
[inline, virtual]
 

Reimplemented in GUIChildManager, and WorldViewComponent.

Definition at line 65 of file gui_component.hxx.

virtual void GUIComponent::on_duplicate_press int    x,
int    y
[inline, virtual]
 

Reimplemented in WorldViewComponent.

Definition at line 64 of file gui_component.hxx.

virtual void GUIComponent::on_fix_press int    x,
int    y
[inline, virtual]
 

Reimplemented in GUIChildManager, and WorldViewComponent.

Definition at line 66 of file gui_component.hxx.

virtual void GUIComponent::on_mouse_enter   [inline, virtual]
 

Reimplemented in GUIButton, GUIChildManager, GUIFileButton, and GUIWindow.

Definition at line 68 of file gui_component.hxx.

Referenced by GUIChildManager::on_mouse_move().

virtual void GUIComponent::on_mouse_leave   [inline, virtual]
 

Reimplemented in GUIButton, GUIChildManager, GUIFileButton, and GUIWindow.

Definition at line 69 of file gui_component.hxx.

Referenced by GUIChildManager::on_mouse_move().

virtual void GUIComponent::on_mouse_move int    x,
int    y,
int    of_x,
int    of_y
[inline, virtual]
 

Reimplemented in GUIChildManager, and WorldViewComponent.

Definition at line 81 of file gui_component.hxx.

Referenced by GUIChildManager::on_mouse_move().

virtual void GUIComponent::on_primary_button_press int    x,
int    y
[inline, virtual]
 

Reimplemented in GUIButton, GUIChildManager, GUIFileButton, and WorldViewComponent.

Definition at line 55 of file gui_component.hxx.

virtual void GUIComponent::on_primary_button_release int    x,
int    y
[inline, virtual]
 

Reimplemented in GUIButton, GUIChildManager, GUIFileButton, and WorldViewComponent.

Definition at line 56 of file gui_component.hxx.

virtual void GUIComponent::on_secondary_button_press int    x,
int    y
[inline, virtual]
 

Reimplemented in GUIChildManager, and WorldViewComponent.

Definition at line 58 of file gui_component.hxx.

virtual void GUIComponent::on_secondary_button_release int    x,
int    y
[inline, virtual]
 

Reimplemented in GUIChildManager, and WorldViewComponent.

Definition at line 59 of file gui_component.hxx.

virtual void GUIComponent::on_tertiary_button_press int    x,
int    y
[inline, virtual]
 

Reimplemented in WorldViewComponent.

Definition at line 61 of file gui_component.hxx.

virtual void GUIComponent::on_tertiary_button_release int    x,
int    y
[inline, virtual]
 

Reimplemented in WorldViewComponent.

Definition at line 62 of file gui_component.hxx.

virtual void GUIComponent::scroll_down   [inline, virtual]
 

Reimplemented in GUIChildManager, GUIFileManager, and WorldViewComponent.

Definition at line 79 of file gui_component.hxx.

virtual void GUIComponent::scroll_left   [inline, virtual]
 

Reimplemented in GUIChildManager, and WorldViewComponent.

Definition at line 76 of file gui_component.hxx.

virtual void GUIComponent::scroll_right   [inline, virtual]
 

Reimplemented in GUIChildManager, and WorldViewComponent.

Definition at line 77 of file gui_component.hxx.

virtual void GUIComponent::scroll_up   [inline, virtual]
 

Reimplemented in GUIChildManager, GUIFileManager, and WorldViewComponent.

Definition at line 78 of file gui_component.hxx.

void GUIComponent::set_height int    h [inline]
 

Definition at line 49 of file gui_component.hxx.

void GUIComponent::set_position int    x,
int    y
[inline]
 

Definition at line 47 of file gui_component.hxx.

void GUIComponent::set_width int    w [inline]
 

Definition at line 48 of file gui_component.hxx.

virtual void GUIComponent::wheel_down int    x,
int    y
[inline, virtual]
 

Reimplemented in GUIChildManager, GUIDirectory, and WorldViewComponent.

Definition at line 72 of file gui_component.hxx.

virtual void GUIComponent::wheel_up int    x,
int    y
[inline, virtual]
 

Reimplemented in GUIChildManager, GUIDirectory, and WorldViewComponent.

Definition at line 71 of file gui_component.hxx.


Member Data Documentation

int GUIComponent::height [protected]
 

Definition at line 33 of file gui_component.hxx.

Referenced by is_at().

int GUIComponent::width [protected]
 

Definition at line 32 of file gui_component.hxx.

Referenced by is_at().

int GUIComponent::x_pos [protected]
 

Definition at line 30 of file gui_component.hxx.

Referenced by is_at().

int GUIComponent::y_pos [protected]
 

Definition at line 31 of file gui_component.hxx.

Referenced by is_at().


The documentation for this class was generated from the following files:
Generated on Thu Jul 24 10:25:17 2003 for Construo by doxygen1.3-rc3