Humble Framework for SkyOS


Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

HPanelItem Class Reference
[Graphical User Interface]

#include <HPanel.h>

Inheritance diagram for HPanelItem:

HID HWidget HObjNoCopy HObj

Public Member Functions

 HPanelItem (int32 id=0)
ErrCode AddAction (int32 id, StringPtr pstrLabel, uint32 uFlags)
 Adds an action to the panel item.
ErrCode Create (HANDLE hParent, int32 id, StringPtr pstrTitle)
 Creates the panel item widget.
ErrCode RemoveAction (int32 id)
 Removes an existing action from the panel.
ErrCode RemoveAllActions (void)
 Removes all existing actions from the panel.
int32 GetActionCount (void) const
 Returns the number of actions for this panel item.
bool HasID (int32 id) const
 Returns true of the item ID matches.

Protected Member Functions

ErrCode adjustLayout (void) const
 Updates the panel layout.

Protected Attributes

HMap< int32, HANDLE > m_actions

Friends

class HPanel

Member Function Documentation

ErrCode HPanelItem::AddAction int32  id,
StringPtr  pstrLabel,
uint32  uFlags
 

Returns:
NO_ERROR on success, error code otherwise
Parameters:
id ID of action
pstrLabel String to display
uFlags Flags (WGF_*)

Definition at line 69 of file HPanel.h.

ErrCode HPanelItem::Create HANDLE  hParent,
int32  id,
StringPtr  pstrTitle
 

Returns:
NO_ERROR on success, error code otherwise
Parameters:
hParent Handle of parent window (must be non-NULL)
id ID of panel item
pstrTitle Title of panel item

Definition at line 123 of file HPanel.h.

ErrCode HPanelItem::RemoveAction int32  id  ) 
 

Returns:
NO_ERROR on success, error code otherwise
Parameters:
id ID of action

Definition at line 156 of file HPanel.h.

ErrCode HPanelItem::RemoveAllActions void   ) 
 

Returns:
NO_ERROR on success, error code otherwise

Definition at line 195 of file HPanel.h.

ErrCode HPanelItem::adjustLayout void   )  const [protected]
 

Returns:
NO_ERROR on success, error code otherwise

Definition at line 212 of file HPanel.h.

int32 HPanelItem::GetActionCount void   )  const
 

Returns:
Count of actions

Definition at line 232 of file HPanel.h.

bool HPanelItem::HasID int32  id  )  const
 

Returns:
True if the ID matches, false otherwise

Definition at line 240 of file HPanel.h.


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

2006.01.09-16:37