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

Constructor & Destructor Documentation

◆ NotificationButton()

NotificationButton::NotificationButton ( ChartCanvas parent)

Definition at line 333 of file notification_manager_gui.cpp.

◆ ~NotificationButton()

NotificationButton::~NotificationButton ( )

Definition at line 357 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 470 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 117 of file notification_manager_gui.h.

◆ GetScaleFactor()

float NotificationButton::GetScaleFactor ( )
inline

Definition at line 108 of file notification_manager_gui.h.

◆ IsShown()

bool NotificationButton::IsShown ( ) const
inline

Definition at line 101 of file notification_manager_gui.h.

◆ Move()

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

Definition at line 111 of file notification_manager_gui.h.

◆ Paint()

void NotificationButton::Paint ( ocpnDC dc)

Definition at line 381 of file notification_manager_gui.cpp.

◆ SetColorScheme()

void NotificationButton::SetColorScheme ( ColorScheme  cs)

Definition at line 465 of file notification_manager_gui.cpp.

◆ SetIconName()

void NotificationButton::SetIconName ( wxString &  name)
inline

Definition at line 98 of file notification_manager_gui.h.

◆ SetIconSeverity()

void NotificationButton::SetIconSeverity ( NotificationSeverity  _severity)

Definition at line 368 of file notification_manager_gui.cpp.

◆ SetScaleFactor()

void NotificationButton::SetScaleFactor ( float  factor)

Definition at line 503 of file notification_manager_gui.cpp.

◆ Show()

void NotificationButton::Show ( bool  show)
inline

Definition at line 102 of file notification_manager_gui.h.

◆ UpdateStatus()

bool NotificationButton::UpdateStatus ( bool  newColorScheme = false)

Definition at line 489 of file notification_manager_gui.cpp.


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