Harlinn.Windows 0.1
Loading...
Searching...
No Matches
Harlinn::Windows::MenuItem Class Reference

#include <HWMenu.h>

Inheritance diagram for Harlinn::Windows::MenuItem:
[legend]
Collaboration diagram for Harlinn::Windows::MenuItem:
[legend]

Public Member Functions

 MenuItem (Menu *parentMenu)
 
 MenuItem (const MenuItem &other)=delete
 
 MenuItem (MenuItem &&other)=delete
 
MenuItemoperator= (const MenuItem &other)=delete
 
MenuItemoperator= (MenuItem &&other)=delete
 
virtual ~MenuItem ()=default
 
MenuItemsParentMenuItems () const
 
MenuParentMenu () const
 
int IndexOf () const
 
BitmapHandle Bitmap () const noexcept
 
MenuItemSetBitmap (const BitmapHandle &bitmap)
 
BitmapHandle CheckedBitmap () const noexcept
 
MenuItemSetCheckedBitmap (const BitmapHandle &checkedBitmap)
 
BitmapHandle UncheckedBitmap () const noexcept
 
MenuItemSetUncheckedBitmap (const BitmapHandle &uncheckedBitmap)
 
constexpr bool IsChecked () const noexcept
 
MenuItemSetChecked (bool value=true)
 
constexpr bool IsDefault () const noexcept
 
MenuItemSetDefault (bool value=true)
 
constexpr bool IsDisabled () const noexcept
 
MenuItemSetDisabled (bool value=true)
 
constexpr bool IsEnabled () const noexcept
 
MenuItemSetEnabled (bool value=true)
 
constexpr bool IsGrayed () const noexcept
 
MenuItemSetGrayed (bool value=true)
 
constexpr bool IsHighlighted () const noexcept
 
MenuItemSetHighlighted (bool value=true)
 

Public Attributes

boost::signals2::signal< void(MenuItem *sender)> OnClick
 
boost::signals2::signal< void(MenuItem *sender, MEASUREITEMSTRUCT &measureItemStruct)> OnMeasureItem
 
boost::signals2::signal< void(MenuItem *sender, DRAWITEMSTRUCT &drawItemStruct)> OnDrawItem
 

Protected Member Functions

virtual HW_EXPORT void DoOnAdd () const
 
virtual HW_EXPORT void DoOnRemove () const
 
virtual HW_EXPORT void UpdateMenuItem () const
 
virtual HW_EXPORT void InitializeMenuItemInfo (MENUITEMINFOW &info) const
 
virtual HW_EXPORT void DoOnMenuCommand (Message &message)
 
virtual HW_EXPORT void DoOnMeasureItem (MEASUREITEMSTRUCT &measureItemStruct)
 
virtual HW_EXPORT void DoOnDrawItem (DRAWITEMSTRUCT &drawItemStruct)
 

Private Attributes

MenuparentMenu_ = nullptr
 
HBITMAP bitmap_ = 0
 
HBITMAP checkedBitmap_ = 0
 
HBITMAP uncheckedBitmap_ = 0
 
bool checked_: 1 = false
 
bool isDefault_: 1 = false
 
bool disabled_: 1 = false
 
bool grayed_: 1 = false
 
bool highlighted_: 1 = false
 
bool menuBarBreak_: 1 = false
 
bool menuBreak_: 1 = false
 
bool ownerDraw_: 1 = false
 

Friends

class Control
 
class Menu
 
class MenuItems
 

Constructor & Destructor Documentation

◆ MenuItem() [1/3]

Harlinn::Windows::MenuItem::MenuItem ( Menu * parentMenu)
inline

◆ MenuItem() [2/3]

Harlinn::Windows::MenuItem::MenuItem ( const MenuItem & other)
delete

◆ MenuItem() [3/3]

Harlinn::Windows::MenuItem::MenuItem ( MenuItem && other)
delete

◆ ~MenuItem()

virtual Harlinn::Windows::MenuItem::~MenuItem ( )
virtualdefault

Member Function Documentation

◆ Bitmap()

BitmapHandle Harlinn::Windows::MenuItem::Bitmap ( ) const
inlinenoexcept

◆ CheckedBitmap()

BitmapHandle Harlinn::Windows::MenuItem::CheckedBitmap ( ) const
inlinenoexcept

◆ DoOnAdd()

void Harlinn::Windows::MenuItem::DoOnAdd ( ) const
protectedvirtual

◆ DoOnDrawItem()

void Harlinn::Windows::MenuItem::DoOnDrawItem ( DRAWITEMSTRUCT & drawItemStruct)
protectedvirtual

◆ DoOnMeasureItem()

void Harlinn::Windows::MenuItem::DoOnMeasureItem ( MEASUREITEMSTRUCT & measureItemStruct)
protectedvirtual

◆ DoOnMenuCommand()

void Harlinn::Windows::MenuItem::DoOnMenuCommand ( Message & message)
protectedvirtual

◆ DoOnRemove()

void Harlinn::Windows::MenuItem::DoOnRemove ( ) const
protectedvirtual

◆ IndexOf()

int Harlinn::Windows::MenuItem::IndexOf ( ) const
inline

◆ InitializeMenuItemInfo()

void Harlinn::Windows::MenuItem::InitializeMenuItemInfo ( MENUITEMINFOW & info) const
protectedvirtual

◆ IsChecked()

bool Harlinn::Windows::MenuItem::IsChecked ( ) const
inlineconstexprnoexcept

◆ IsDefault()

bool Harlinn::Windows::MenuItem::IsDefault ( ) const
inlineconstexprnoexcept

◆ IsDisabled()

bool Harlinn::Windows::MenuItem::IsDisabled ( ) const
inlineconstexprnoexcept

◆ IsEnabled()

bool Harlinn::Windows::MenuItem::IsEnabled ( ) const
inlineconstexprnoexcept

◆ IsGrayed()

bool Harlinn::Windows::MenuItem::IsGrayed ( ) const
inlineconstexprnoexcept

◆ IsHighlighted()

bool Harlinn::Windows::MenuItem::IsHighlighted ( ) const
inlineconstexprnoexcept

◆ operator=() [1/2]

MenuItem & Harlinn::Windows::MenuItem::operator= ( const MenuItem & other)
delete

◆ operator=() [2/2]

MenuItem & Harlinn::Windows::MenuItem::operator= ( MenuItem && other)
delete

◆ ParentMenu()

Menu * Harlinn::Windows::MenuItem::ParentMenu ( ) const
inline

◆ ParentMenuItems()

MenuItems & Harlinn::Windows::MenuItem::ParentMenuItems ( ) const
inline

◆ SetBitmap()

MenuItem & Harlinn::Windows::MenuItem::SetBitmap ( const BitmapHandle & bitmap)
inline

◆ SetChecked()

MenuItem & Harlinn::Windows::MenuItem::SetChecked ( bool value = true)
inline

◆ SetCheckedBitmap()

MenuItem & Harlinn::Windows::MenuItem::SetCheckedBitmap ( const BitmapHandle & checkedBitmap)
inline

◆ SetDefault()

MenuItem & Harlinn::Windows::MenuItem::SetDefault ( bool value = true)
inline

◆ SetDisabled()

MenuItem & Harlinn::Windows::MenuItem::SetDisabled ( bool value = true)
inline

◆ SetEnabled()

MenuItem & Harlinn::Windows::MenuItem::SetEnabled ( bool value = true)
inline

◆ SetGrayed()

MenuItem & Harlinn::Windows::MenuItem::SetGrayed ( bool value = true)
inline

◆ SetHighlighted()

MenuItem & Harlinn::Windows::MenuItem::SetHighlighted ( bool value = true)
inline

◆ SetUncheckedBitmap()

MenuItem & Harlinn::Windows::MenuItem::SetUncheckedBitmap ( const BitmapHandle & uncheckedBitmap)
inline

◆ UncheckedBitmap()

BitmapHandle Harlinn::Windows::MenuItem::UncheckedBitmap ( ) const
inlinenoexcept

◆ UpdateMenuItem()

void Harlinn::Windows::MenuItem::UpdateMenuItem ( ) const
protectedvirtual

Friends And Related Symbol Documentation

◆ Control

friend class Control
friend

◆ Menu

friend class Menu
friend

◆ MenuItems

friend class MenuItems
friend

Member Data Documentation

◆ bitmap_

HBITMAP Harlinn::Windows::MenuItem::bitmap_ = 0
private

◆ checked_

bool Harlinn::Windows::MenuItem::checked_
private

◆ checkedBitmap_

HBITMAP Harlinn::Windows::MenuItem::checkedBitmap_ = 0
private

◆ disabled_

bool Harlinn::Windows::MenuItem::disabled_
private

◆ grayed_

bool Harlinn::Windows::MenuItem::grayed_
private

◆ highlighted_

bool Harlinn::Windows::MenuItem::highlighted_
private

◆ isDefault_

bool Harlinn::Windows::MenuItem::isDefault_
private

◆ menuBarBreak_

bool Harlinn::Windows::MenuItem::menuBarBreak_
private

◆ menuBreak_

bool Harlinn::Windows::MenuItem::menuBreak_
private

◆ OnClick

boost::signals2::signal<void( MenuItem* sender )> Harlinn::Windows::MenuItem::OnClick

◆ OnDrawItem

boost::signals2::signal<void( MenuItem* sender, DRAWITEMSTRUCT& drawItemStruct )> Harlinn::Windows::MenuItem::OnDrawItem

◆ OnMeasureItem

boost::signals2::signal<void( MenuItem* sender, MEASUREITEMSTRUCT& measureItemStruct )> Harlinn::Windows::MenuItem::OnMeasureItem

◆ ownerDraw_

bool Harlinn::Windows::MenuItem::ownerDraw_
private

◆ parentMenu_

Menu* Harlinn::Windows::MenuItem::parentMenu_ = nullptr
private

◆ uncheckedBitmap_

HBITMAP Harlinn::Windows::MenuItem::uncheckedBitmap_ = 0
private

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