openshot-audio  0.1.2
Public Member Functions | List of all members
juce::MouseListener Class Reference

#include <juce_gui_basics.h>

Inheritance diagram for juce::MouseListener:
juce::Component juce::ListBoxMouseMoveSelector juce::MouseInactivityDetector juce::AnimatedAppComponent juce::AudioProcessorEditor juce::BubbleComponent juce::Button juce::CallOutBox juce::CaretComponent juce::CodeEditorComponent juce::CodeEditorComponent::GutterComponent juce::ColourSelector juce::ColourSelector::ColourSpaceMarker juce::ColourSelector::ColourSpaceView juce::ColourSelector::HueSelectorComp juce::ColourSelector::HueSelectorMarker juce::ColourSelector::SwatchComponent juce::ComboBox juce::ComponentAnimator::AnimationTask::ProxyComponent juce::ConcertinaPanel juce::ConcertinaPanel::PanelHolder juce::DragAndDropContainer::DragImageComponent juce::Drawable juce::DropShadower::ShadowWindow juce::FileBrowserComponent juce::FileChooserDialogBox::ContentComponent juce::FileListComponent::ItemComponent juce::FilenameComponent juce::FilePreviewComponent juce::FileSearchPathListComponent juce::GroupComponent juce::ImageComponent juce::KeyMappingEditorComponent juce::KeyMappingEditorComponent::ItemComponent juce::Label juce::LassoComponent< SelectableItemType > juce::ListBox juce::ListBox::RowComponent juce::MenuBarComponent juce::MultiDocumentPanel juce::PluginListComponent juce::PopupMenu::CustomComponent juce::PopupMenu::HelperClasses::ItemComponent juce::PopupMenu::HelperClasses::MenuWindow juce::PreferencesPanel juce::ProgressBar juce::PropertyComponent juce::PropertyPanel juce::PropertyPanel::PropertyHolderComponent juce::PropertyPanel::SectionComponent juce::ResizableBorderComponent juce::ResizableCornerComponent juce::ResizableEdgeComponent juce::ScrollBar juce::Slider juce::SplashScreen juce::StretchableLayoutResizerBar juce::TabbedButtonBar juce::TabbedButtonBar::BehindFrontTabComp juce::TabbedComponent juce::TableHeaderComponent juce::TableHeaderComponent::DragOverlayComp juce::TableListBox::RowComp juce::TextEditor juce::TextEditor::TextHolderComponent juce::Toolbar juce::ToolbarItemComponent::ItemDragAndDropOverlayComponent juce::ToolbarItemPalette juce::TooltipWindow juce::TopLevelWindow juce::TreeView juce::TreeView::ContentComponent juce::TreeView::InsertPointHighlight juce::TreeView::TargetGroupHighlight juce::Viewport juce::WebBrowserComponent

Public Member Functions

virtual ~MouseListener ()
 
virtual void mouseMove (const MouseEvent &event)
 
virtual void mouseEnter (const MouseEvent &event)
 
virtual void mouseExit (const MouseEvent &event)
 
virtual void mouseDown (const MouseEvent &event)
 
virtual void mouseDrag (const MouseEvent &event)
 
virtual void mouseUp (const MouseEvent &event)
 
virtual void mouseDoubleClick (const MouseEvent &event)
 
virtual void mouseWheelMove (const MouseEvent &event, const MouseWheelDetails &wheel)
 

Detailed Description

A MouseListener can be registered with a component to receive callbacks about mouse events that happen to that component.

See also
Component::addMouseListener, Component::removeMouseListener

Constructor & Destructor Documentation

◆ ~MouseListener()

virtual juce::MouseListener::~MouseListener ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ mouseDoubleClick()

void MouseListener::mouseDoubleClick ( const MouseEvent event)
virtual

Called when a mouse button has been double-clicked on a component.

The MouseEvent object passed in contains lots of methods for finding out which button was pressed, as well as which modifier keys (e.g. shift, ctrl) were held down at the time.

Parameters
eventdetails about the position and status of the mouse event, including the source component in which it occurred
See also
mouseDown, mouseUp

Reimplemented in juce::Component, juce::Slider, juce::TextEditor, juce::CodeEditorComponent, juce::Label, juce::DocumentWindow, juce::ConcertinaPanel::PanelHolder, juce::TableListBox::RowComp, juce::FileListComponent::ItemComponent, juce::PropertyPanel::SectionComponent, juce::ListBox::RowComponent, and juce::TreeView::ContentComponent.

◆ mouseDown()

void MouseListener::mouseDown ( const MouseEvent event)
virtual

Called when a mouse button is pressed.

The MouseEvent object passed in contains lots of methods for finding out which button was pressed, as well as which modifier keys (e.g. shift, ctrl) were held down at the time.

Once a button is held down, the mouseDrag method will be called when the mouse moves, until the button is released.

Parameters
eventdetails about the position and status of the mouse event, including the source component in which it occurred
See also
mouseUp, mouseDrag, mouseDoubleClick, contains

Reimplemented in juce::Component, juce::Slider, juce::TextEditor, juce::PopupMenu::HelperClasses::MenuWindow, juce::AlertWindow, juce::Button, juce::TableHeaderComponent, juce::ComboBox, juce::ScrollBar, juce::ResizableWindow, juce::CodeEditorComponent, juce::Toolbar, juce::ColourSelector::SwatchComponent, juce::ConcertinaPanel::PanelHolder, juce::ColourSelector::HueSelectorComp, juce::ResizableBorderComponent, juce::TableListBox::RowComp, juce::FileListComponent::ItemComponent, juce::ColourSelector::ColourSpaceView, juce::StretchableLayoutResizerBar, juce::ResizableEdgeComponent, juce::MenuBarComponent, juce::ResizableCornerComponent, juce::ListBox::RowComponent, juce::ToolbarItemComponent::ItemDragAndDropOverlayComponent, and juce::TreeView::ContentComponent.

◆ mouseDrag()

void MouseListener::mouseDrag ( const MouseEvent event)
virtual

Called when the mouse is moved while a button is held down.

When a mouse button is pressed inside a component, that component receives mouseDrag callbacks each time the mouse moves, even if the mouse strays outside the component's bounds.

Parameters
eventdetails about the position and status of the mouse event, including the source component in which it occurred
See also
mouseDown, mouseUp, mouseMove, contains, setDragRepeatInterval

Reimplemented in juce::Component, juce::Slider, juce::TextEditor, juce::PopupMenu::HelperClasses::MenuWindow, juce::AlertWindow, juce::Button, juce::TableHeaderComponent, juce::ComboBox, juce::ScrollBar, juce::ResizableWindow, juce::CodeEditorComponent, juce::ConcertinaPanel::PanelHolder, juce::ColourSelector::HueSelectorComp, juce::ResizableBorderComponent, juce::TableListBox::RowComp, juce::DragAndDropContainer::DragImageComponent, juce::ColourSelector::ColourSpaceView, juce::ListBox::RowComponent, juce::TreeView::ContentComponent, juce::StretchableLayoutResizerBar, juce::ResizableEdgeComponent, juce::MenuBarComponent, juce::ResizableCornerComponent, and juce::ToolbarItemComponent::ItemDragAndDropOverlayComponent.

◆ mouseEnter()

void MouseListener::mouseEnter ( const MouseEvent event)
virtual

Called when the mouse first enters a component.

If the mouse button isn't pressed and the mouse moves into a component, this will be called to let the component react to this.

When the mouse button is pressed and held down while being moved in or out of a component, no mouseEnter or mouseExit callbacks are made - only mouseDrag messages are sent to the component that the mouse was originally clicked on, until the button is released.

Parameters
eventdetails about the position and status of the mouse event, including the source component in which it occurred
See also
mouseExit, mouseDrag, mouseMove, contains

Reimplemented in juce::Component, juce::Button, juce::TableHeaderComponent, juce::ResizableBorderComponent, and juce::MenuBarComponent.

◆ mouseExit()

void MouseListener::mouseExit ( const MouseEvent event)
virtual

Called when the mouse moves out of a component.

This will be called when the mouse moves off the edge of this component.

If the mouse button was pressed, and it was then dragged off the edge of the component and released, then this callback will happen when the button is released, after the mouseUp callback.

Parameters
eventdetails about the position and status of the mouse event, including the source component in which it occurred
See also
mouseEnter, mouseDrag, mouseMove, contains

Reimplemented in juce::Component, juce::Button, juce::TableHeaderComponent, juce::ListBoxMouseMoveSelector, juce::TreeView::ContentComponent, and juce::MenuBarComponent.

◆ mouseMove()

void MouseListener::mouseMove ( const MouseEvent event)
virtual

Called when the mouse moves inside a component.

If the mouse button isn't pressed and the mouse moves over a component, this will be called to let the component react to this.

A component will always get a mouseEnter callback before a mouseMove.

Parameters
eventdetails about the position and status of the mouse event, including the source component in which it occurred
See also
mouseEnter, mouseExit, mouseDrag, contains

Reimplemented in juce::Component, juce::PopupMenu::HelperClasses::MenuWindow, juce::TableHeaderComponent, juce::ListBoxMouseMoveSelector, juce::ResizableBorderComponent, juce::TreeView::ContentComponent, and juce::MenuBarComponent.

◆ mouseUp()

void MouseListener::mouseUp ( const MouseEvent event)
virtual

Called when a mouse button is released.

A mouseUp callback is sent to the component in which a button was pressed even if the mouse is actually over a different component when the button is released.

The MouseEvent object passed in contains lots of methods for finding out which buttons were down just before they were released.

Parameters
eventdetails about the position and status of the mouse event, including the source component in which it occurred
See also
mouseDown, mouseDrag, mouseDoubleClick, contains

Reimplemented in juce::Component, juce::Slider, juce::TextEditor, juce::ListBox, juce::PopupMenu::HelperClasses::MenuWindow, juce::Button, juce::TableHeaderComponent, juce::ComboBox, juce::ScrollBar, juce::ResizableWindow, juce::CodeEditorComponent, juce::Label, juce::ResizableBorderComponent, juce::TableListBox::RowComp, juce::PropertyPanel::SectionComponent, juce::ResizableEdgeComponent, juce::ToolbarItemComponent::ItemDragAndDropOverlayComponent, juce::DragAndDropContainer::DragImageComponent, juce::ListBox::RowComponent, juce::MenuBarComponent, juce::ResizableCornerComponent, and juce::TreeView::ContentComponent.

◆ mouseWheelMove()

void MouseListener::mouseWheelMove ( const MouseEvent event,
const MouseWheelDetails wheel 
)
virtual

Called when the mouse-wheel is moved.

This callback is sent to the component that the mouse is over when the wheel is moved.

If not overridden, a component will forward this message to its parent, so that parent components can collect mouse-wheel messages that happen to child components which aren't interested in them.

Parameters
eventdetails about the mouse event
wheeldetails about the wheel movement

Reimplemented in juce::Component, juce::LookAndFeel_V2::SliderLabelComp, juce::Slider, juce::TextEditor, juce::ListBox, juce::PopupMenu::HelperClasses::MenuWindow, juce::ComboBox, juce::ScrollBar, juce::CodeEditorComponent, and juce::Viewport.


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