GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
graphics_event Class Reference

#include "graphics.in.h"

Collaboration diagram for graphics_event:

Public Types

typedef void(* event_fcn) (void *)
 

Public Member Functions

 graphics_event (void)=default
 
 graphics_event (base_graphics_event *new_rep)
 
 graphics_event (const graphics_event &)=default
 
 ~graphics_event (void)=default
 
void execute (void)
 
bool ok (void) const
 
graphics_eventoperator= (const graphics_event &)=default
 

Static Public Member Functions

static graphics_event create_callback_event (const graphics_handle &h, const std::string &name, const octave_value &data=Matrix())
 
static graphics_event create_callback_event (const graphics_handle &h, const octave_value &cb, const octave_value &data=Matrix())
 
static graphics_event create_function_event (event_fcn fcn, void *data=nullptr)
 
static graphics_event create_set_event (const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit=true)
 

Private Attributes

std::shared_ptr< base_graphics_eventrep
 

Detailed Description

Definition at line 5995 of file graphics.in.h.

Member Typedef Documentation

◆ event_fcn

typedef void(* graphics_event::event_fcn) (void *)

Definition at line 6000 of file graphics.in.h.

Constructor & Destructor Documentation

◆ graphics_event() [1/3]

graphics_event::graphics_event ( void  )
default

◆ graphics_event() [2/3]

graphics_event::graphics_event ( base_graphics_event new_rep)
inline

Definition at line 6004 of file graphics.in.h.

◆ graphics_event() [3/3]

graphics_event::graphics_event ( const graphics_event )
default

◆ ~graphics_event()

graphics_event::~graphics_event ( void  )
default

Member Function Documentation

◆ create_callback_event() [1/2]

graphics_event graphics_event::create_callback_event ( const graphics_handle h,
const std::string name,
const octave_value data = Matrix () 
)
static

Definition at line 10165 of file graphics.cc.

References graphics_event(), h, and name.

Referenced by gh_manager::do_execute_listener(), and gh_manager::do_post_callback().

◆ create_callback_event() [2/2]

graphics_event graphics_event::create_callback_event ( const graphics_handle h,
const octave_value cb,
const octave_value data = Matrix () 
)
static

Definition at line 10173 of file graphics.cc.

References graphics_event(), and h.

◆ create_function_event()

graphics_event graphics_event::create_function_event ( graphics_event::event_fcn  fcn,
void *  data = nullptr 
)
static

Definition at line 10181 of file graphics.cc.

References fcn, and graphics_event().

Referenced by gh_manager::do_post_function().

◆ create_set_event()

graphics_event graphics_event::create_set_event ( const graphics_handle h,
const std::string name,
const octave_value value,
bool  notify_toolkit = true 
)
static

Definition at line 10188 of file graphics.cc.

References graphics_event(), h, and name.

Referenced by gh_manager::do_post_set().

◆ execute()

void graphics_event::execute ( void  )
inline

Definition at line 6012 of file graphics.in.h.

◆ ok()

bool graphics_event::ok ( void  ) const
inline

Definition at line 6018 of file graphics.in.h.

◆ operator=()

graphics_event& graphics_event::operator= ( const graphics_event )
default

Member Data Documentation

◆ rep

std::shared_ptr<base_graphics_event> graphics_event::rep
private

Definition at line 6039 of file graphics.in.h.


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