Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ob::WidgetBase Class Reference

#include <widgetbase.hh>

Inheritance diagram for ob::WidgetBase:

Inheritance graph
[legend]
List of all members.

Public Types

enum  WidgetType {
  Type_Frame, Type_Titlebar, Type_Handle, Type_Plate,
  Type_Label, Type_MaximizeButton, Type_CloseButton, Type_IconifyButton,
  Type_AllDesktopsButton, Type_LeftGrip, Type_RightGrip, Type_Client,
  Type_Root
}

Public Methods

 WidgetBase (WidgetType type)
WidgetType type () const
MouseContext::MC mcontext () const

Private Attributes

WidgetType _type

Member Enumeration Documentation

enum ob::WidgetBase::WidgetType
 

Enumeration values:
Type_Frame 
Type_Titlebar 
Type_Handle 
Type_Plate 
Type_Label 
Type_MaximizeButton 
Type_CloseButton 
Type_IconifyButton 
Type_AllDesktopsButton 
Type_LeftGrip 
Type_RightGrip 
Type_Client 
Type_Root 

Definition at line 11 of file widgetbase.hh.

Referenced by type().

00011                   {
00012     Type_Frame,
00013     Type_Titlebar,
00014     Type_Handle,
00015     Type_Plate,
00016     Type_Label,
00017     Type_MaximizeButton,
00018     Type_CloseButton,
00019     Type_IconifyButton,
00020     Type_AllDesktopsButton,
00021     Type_LeftGrip,
00022     Type_RightGrip,
00023     Type_Client,
00024     Type_Root
00025   };


Constructor & Destructor Documentation

ob::WidgetBase::WidgetBase WidgetType    type [inline]
 

Definition at line 31 of file widgetbase.hh.

References type().

00031 : _type(type) {}


Member Function Documentation

MouseContext::MC ob::WidgetBase::mcontext   const [inline]
 

Definition at line 35 of file widgetbase.hh.

References Type_AllDesktopsButton, Type_Client, Type_CloseButton, Type_Frame, Type_Handle, Type_IconifyButton, Type_Label, Type_LeftGrip, Type_MaximizeButton, Type_Plate, Type_RightGrip, and Type_Titlebar.

Referenced by ob::Actions::buttonPressHandler(), ob::Actions::buttonReleaseHandler(), and ob::Actions::motionHandler().

00035                                          {
00036     switch (_type) {
00037     case Type_Frame:
00038       return MouseContext::Frame;
00039     case Type_Titlebar:
00040       return MouseContext::Titlebar;
00041     case Type_Handle:
00042       return MouseContext::Handle;
00043     case Type_Plate:
00044       return MouseContext::Window;
00045     case Type_Label:
00046       return MouseContext::Titlebar;
00047     case Type_MaximizeButton:
00048       return MouseContext::MaximizeButton;
00049     case Type_CloseButton:
00050       return MouseContext::CloseButton;
00051     case Type_IconifyButton:
00052       return MouseContext::IconifyButton;
00053     case Type_AllDesktopsButton:
00054       return MouseContext::AllDesktopsButton;
00055     case Type_LeftGrip:
00056       return MouseContext::Grip;
00057     case Type_RightGrip:
00058       return MouseContext::Grip;
00059     case Type_Client:
00060       return MouseContext::Window;
00061     case Type_Root:
00062       return MouseContext::Root;
00063     default:
00064       assert(false); // unhandled type
00065     }
00066   }

WidgetType ob::WidgetBase::type   const [inline]
 

Reimplemented in ob::Client.

Definition at line 33 of file widgetbase.hh.

References WidgetType.

Referenced by ob::ButtonWidget::renderForeground(), ob::ButtonWidget::setStyle(), ob::BackgroundWidget::setStyle(), ob::ButtonWidget::setTextures(), ob::BackgroundWidget::setTextures(), ob::ButtonWidget::update(), and WidgetBase().

00033 { return _type; }


Member Data Documentation

WidgetType ob::WidgetBase::_type [private]
 

Reimplemented in ob::Client.

Definition at line 28 of file widgetbase.hh.


The documentation for this class was generated from the following file:
Generated on Tue Feb 4 23:00:21 2003 for Openbox by doxygen1.3-rc2