OpenCPN Partial API docs
Loading...
Searching...
No Matches
NotificationButton Class Reference

Public Member Functions

 NotificationButton (ChartCanvas *parent)
 
void SetIconName (wxString &name)
 
void SetIconSeverity (NotificationSeverity _severity)
 
bool IsShown () const
 
void Show (bool show)
 
void Paint (ocpnDC &dc)
 
bool UpdateStatus (bool newColorScheme=false)
 
void SetColorScheme (ColorScheme cs)
 
float GetScaleFactor ()
 
void SetScaleFactor (float factor)
 
void Move (const wxPoint &pt)
 
wxRect GetRect (void) const
 Return the coordinates of the widget, in physical pixels relative to the canvas window.
 
wxRect GetLogicalRect (void) const
 Return the coordinates of the widget, in logical pixels.
 

Detailed Description

Definition at line 97 of file notification_manager_gui.h.

Constructor & Destructor Documentation

◆ NotificationButton()

NotificationButton::NotificationButton ( ChartCanvas parent)

Definition at line 372 of file notification_manager_gui.cpp.

◆ ~NotificationButton()

NotificationButton::~NotificationButton ( )

Definition at line 396 of file notification_manager_gui.cpp.

Member Function Documentation

◆ GetLogicalRect()

wxRect NotificationButton::GetLogicalRect ( void  ) const

Return the coordinates of the widget, in logical pixels.

This can be compared with data returned from wxWidgets APIs.

Definition at line 509 of file notification_manager_gui.cpp.

◆ GetRect()

wxRect NotificationButton::GetRect ( void  ) const
inline

Return the coordinates of the widget, in physical pixels relative to the canvas window.

Beware when comparing with data returned from wxWidgets APIs, which return logical pixels.

Definition at line 121 of file notification_manager_gui.h.

◆ GetScaleFactor()

float NotificationButton::GetScaleFactor ( )
inline

Definition at line 112 of file notification_manager_gui.h.

◆ IsShown()

bool NotificationButton::IsShown ( ) const
inline

Definition at line 105 of file notification_manager_gui.h.

◆ Move()

void NotificationButton::Move ( const wxPoint &  pt)
inline

Definition at line 115 of file notification_manager_gui.h.

◆ Paint()

void NotificationButton::Paint ( ocpnDC dc)

Definition at line 420 of file notification_manager_gui.cpp.

◆ SetColorScheme()

void NotificationButton::SetColorScheme ( ColorScheme  cs)

Definition at line 504 of file notification_manager_gui.cpp.

◆ SetIconName()

void NotificationButton::SetIconName ( wxString &  name)
inline

Definition at line 102 of file notification_manager_gui.h.

◆ SetIconSeverity()

void NotificationButton::SetIconSeverity ( NotificationSeverity  _severity)

Definition at line 407 of file notification_manager_gui.cpp.

◆ SetScaleFactor()

void NotificationButton::SetScaleFactor ( float  factor)

Definition at line 542 of file notification_manager_gui.cpp.

◆ Show()

void NotificationButton::Show ( bool  show)
inline

Definition at line 106 of file notification_manager_gui.h.

◆ UpdateStatus()

bool NotificationButton::UpdateStatus ( bool  newColorScheme = false)

Definition at line 528 of file notification_manager_gui.cpp.


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