Heaven v0.1.0-1
C++ global-menu library for Wayland sessions
Loading...
Searching...
No Matches
HNTopbar Class Reference

Top bar container displayed in the bar. More...

#include "HNTopbar.h"

Inheritance diagram for HNTopbar:
Inheritance graph
[legend]
Collaboration diagram for HNTopbar:
Collaboration graph
[legend]

Additional Inherited Members

- Public Types inherited from HNObject
enum  Type {
  Topbar ,
  Menu ,
  Action ,
  Toggle ,
  Divider
}
 Enumeration of the possible object roles. More...
 
- Public Member Functions inherited from HNObject
UInt32 id () const noexcept
 Returns the client-assigned unique identifier of this object.
 
Type type () const noexcept
 Returns the immutable role/type of this object.
 
HNClientclient () const noexcept
 Returns the client that owns this object.
 
void click () noexcept
 Notifies the owning client that this object was clicked.
 
- Public Member Functions inherited from HNWithChildren
const std::list< HNObject * > & children () const noexcept
 Returns the ordered list of child objects.
 
virtual ~HNWithChildren () noexcept=default
 Virtual destructor.
 
- Static Public Member Functions inherited from HNObject
static bool IsValidType (UInt32 type) noexcept
 Checks whether a numeric value is a valid object type.
 
- Protected Member Functions inherited from HNObject
 HNObject (UInt32 id, Type type) noexcept
 Constructs an object with the given id and role.
 

Detailed Description

Top bar container displayed in the bar.

A topbar hosts menus and represents the menu set of a single client window. A client may own several topbars and report which one is currently active (see HNClient::activeTopbar()).


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