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

#include "graphics.h"

Public Types

typedef void(* event_fcn) (void *)
 

Public Member Functions

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

Static Public Member Functions

static graphics_event create_callback_event (const graphics_handle &h, const octave_value &cb, const octave_value &data=Matrix(), int busyaction=base_graphics_event::QUEUE)
 
static graphics_event create_callback_event (const graphics_handle &h, const std::string &name, const octave_value &data=Matrix(), int busyaction=base_graphics_event::QUEUE)
 
static graphics_event create_function_event (event_fcn fcn, void *data=nullptr)
 
static graphics_event create_mcode_event (const graphics_handle &h, const std::string &cmd, int busyaction)
 
static graphics_event create_set_event (const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit=true, bool redraw_figure=false)
 

Detailed Description

Definition at line 14446 of file graphics.h.

Member Typedef Documentation

◆ event_fcn

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

Definition at line 14452 of file graphics.h.

Constructor & Destructor Documentation

◆ graphics_event() [1/3]

graphics_event::graphics_event ( )
default

◆ graphics_event() [2/3]

graphics_event::graphics_event ( base_graphics_event new_rep)
inline

Definition at line 14456 of file graphics.h.

◆ graphics_event() [3/3]

graphics_event::graphics_event ( const graphics_event )
default

◆ ~graphics_event()

graphics_event::~graphics_event ( )
default

Member Function Documentation

◆ create_callback_event() [1/2]

graphics_event graphics_event::create_callback_event ( const graphics_handle h,
const octave_value cb,
const octave_value data = Matrix (),
int  busyaction = base_graphics_event::QUEUE 
)
static

Definition at line 11803 of file graphics.cc.

◆ create_callback_event() [2/2]

graphics_event graphics_event::create_callback_event ( const graphics_handle h,
const std::string &  name,
const octave_value data = Matrix (),
int  busyaction = base_graphics_event::QUEUE 
)
static

Definition at line 11794 of file graphics.cc.

Referenced by gh_manager::execute_listener(), and gh_manager::post_callback().

◆ create_function_event()

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

Definition at line 11820 of file graphics.cc.

Referenced by gh_manager::post_function().

◆ create_mcode_event()

graphics_event graphics_event::create_mcode_event ( const graphics_handle h,
const std::string &  cmd,
int  busyaction 
)
static

Definition at line 11812 of file graphics.cc.

Referenced by gh_manager::post_callback().

◆ 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,
bool  redraw_figure = false 
)
static

Definition at line 11827 of file graphics.cc.

Referenced by gh_manager::post_set().

◆ execute()

void graphics_event::execute ( )
inline

Definition at line 14472 of file graphics.h.

References ok().

Referenced by gh_manager::process_events().

◆ get_busyaction()

int graphics_event::get_busyaction ( )
inline

Definition at line 14464 of file graphics.h.

References error(), and ok().

◆ ok()

bool graphics_event::ok ( ) const
inline

Definition at line 14478 of file graphics.h.

Referenced by execute(), get_busyaction(), and gh_manager::process_events().

◆ operator=()

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

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