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 107 of file notification_manager_gui.h.

Constructor & Destructor Documentation

◆ NotificationButton()

NotificationButton::NotificationButton ( ChartCanvas parent)

Definition at line 387 of file notification_manager_gui.cpp.

◆ ~NotificationButton()

NotificationButton::~NotificationButton ( )

Definition at line 411 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 524 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 131 of file notification_manager_gui.h.

◆ GetScaleFactor()

float NotificationButton::GetScaleFactor ( )
inline

Definition at line 122 of file notification_manager_gui.h.

◆ IsShown()

bool NotificationButton::IsShown ( ) const
inline

Definition at line 115 of file notification_manager_gui.h.

◆ Move()

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

Definition at line 125 of file notification_manager_gui.h.

◆ Paint()

void NotificationButton::Paint ( ocpnDC dc)

Definition at line 435 of file notification_manager_gui.cpp.

◆ SetColorScheme()

void NotificationButton::SetColorScheme ( ColorScheme  cs)

Definition at line 519 of file notification_manager_gui.cpp.

◆ SetIconName()

void NotificationButton::SetIconName ( wxString &  name)
inline

Definition at line 112 of file notification_manager_gui.h.

◆ SetIconSeverity()

void NotificationButton::SetIconSeverity ( NotificationSeverity  _severity)

Definition at line 422 of file notification_manager_gui.cpp.

◆ SetScaleFactor()

void NotificationButton::SetScaleFactor ( float  factor)

Definition at line 557 of file notification_manager_gui.cpp.

◆ Show()

void NotificationButton::Show ( bool  show)
inline

Definition at line 116 of file notification_manager_gui.h.

◆ UpdateStatus()

bool NotificationButton::UpdateStatus ( bool  newColorScheme = false)

Definition at line 543 of file notification_manager_gui.cpp.


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