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

#include "graphics.in.h"

Inheritance diagram for radio_property:
Collaboration diagram for radio_property:

Public Member Functions

 radio_property (const radio_property &p)
 
 radio_property (const std::string &nm, const graphics_handle &h, const radio_values &v, const std::string &def)
 
 radio_property (const std::string &nm, const graphics_handle &h, const radio_values &v=radio_values())
 
 radio_property (const std::string &nm, const graphics_handle &h, const std::string &v)
 
void add_listener (const octave_value &v, listener_mode mode=GCB_POSTSET)
 
base_propertyclone (void) const
 
const std::string & current_value (void) const
 
void delete_listener (const octave_value &v=octave_value(), listener_mode mode=GCB_POSTSET)
 
octave_value get (void) const
 
int get_id (void) const
 
std::string get_name (void) const
 
graphics_handle get_parent (void) const
 
bool is (const caseless_str &v) const
 
bool is_hidden (void) const
 
bool is_radio (void) const
 
bool ok (void) const
 
radio_propertyoperator= (const octave_value &val)
 
OCTINTERP_API void run_listeners (listener_mode mode=GCB_POSTSET)
 
OCTINTERP_API bool set (const octave_value &v, bool do_run=true, bool do_notify_toolkit=true)
 
void set_hidden (bool flag)
 
void set_id (int d)
 
void set_name (const std::string &s)
 
void set_parent (const graphics_handle &h)
 
Cell values_as_cell (void) const
 
std::string values_as_string (void) const
 

Protected Member Functions

bool do_set (const octave_value &newval)
 

Private Types

typedef std::map< listener_mode, octave_value_listlistener_map
 
typedef std::map< listener_mode, octave_value_list >::const_iterator listener_map_const_iterator
 
typedef std::map< listener_mode, octave_value_list >::iterator listener_map_iterator
 

Private Attributes

octave::refcount< octave_idx_typecount
 
std::string current_val
 
bool hidden
 
int id
 
listener_map listeners
 
std::string name
 
graphics_handle parent
 
radio_values vals
 

Detailed Description

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

Member Typedef Documentation

◆ listener_map

typedef std::map<listener_mode, octave_value_list> base_property::listener_map
privateinherited

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

◆ listener_map_const_iterator

typedef std::map<listener_mode, octave_value_list>::const_iterator base_property::listener_map_const_iterator
privateinherited

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

◆ listener_map_iterator

typedef std::map<listener_mode, octave_value_list>::iterator base_property::listener_map_iterator
privateinherited

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

Constructor & Destructor Documentation

◆ radio_property() [1/4]

radio_property::radio_property ( const std::string &  nm,
const graphics_handle h,
const radio_values v = radio_values () 
)
inline

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

Referenced by clone().

◆ radio_property() [2/4]

radio_property::radio_property ( const std::string &  nm,
const graphics_handle h,
const std::string &  v 
)
inline

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

◆ radio_property() [3/4]

radio_property::radio_property ( const std::string &  nm,
const graphics_handle h,
const radio_values v,
const std::string &  def 
)
inline

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

◆ radio_property() [4/4]

radio_property::radio_property ( const radio_property p)
inline

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

Member Function Documentation

◆ add_listener()

void base_property::add_listener ( const octave_value v,
listener_mode  mode = GCB_POSTSET 
)
inlineinherited

◆ clone()

base_property* radio_property::clone ( void  ) const
inlinevirtual

Reimplemented from base_property.

Reimplemented in bool_property.

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

References radio_property().

◆ current_value()

const std::string& radio_property::current_value ( void  ) const
inline

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

References current_val.

◆ delete_listener()

void base_property::delete_listener ( const octave_value v = octave_value (),
listener_mode  mode = GCB_POSTSET 
)
inlineinherited

◆ do_set()

bool radio_property::do_set ( const octave_value newval)
inlineprotectedvirtual

◆ get()

octave_value radio_property::get ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

References current_val, and octave_value().

◆ get_id()

int base_property::get_id ( void  ) const
inlineinherited

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

References base_property::id.

Referenced by property::get_id().

◆ get_name()

◆ get_parent()

graphics_handle base_property::get_parent ( void  ) const
inlineinherited

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

References base_property::parent.

Referenced by callback_property::execute(), and property::get_parent().

◆ is()

bool radio_property::is ( const caseless_str v) const
inline

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

References caseless_str::compare(), and current_val.

Referenced by bool_property::is_on().

◆ is_hidden()

bool base_property::is_hidden ( void  ) const
inlineinherited

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

References base_property::hidden.

Referenced by property::is_hidden().

◆ is_radio()

bool radio_property::is_radio ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

◆ ok()

bool base_property::ok ( void  ) const
inlineinherited

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

References octave_handle::ok(), and base_property::parent.

Referenced by property::ok().

◆ operator=()

radio_property& radio_property::operator= ( const octave_value val)
inline

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

References base_property::set().

◆ run_listeners()

◆ set()

◆ set_hidden()

void base_property::set_hidden ( bool  flag)
inlineinherited

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

References base_property::hidden.

Referenced by property::set_hidden().

◆ set_id()

void base_property::set_id ( int  d)
inlineinherited

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

References d.

Referenced by property::set_id().

◆ set_name()

void base_property::set_name ( const std::string &  s)
inlineinherited

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

References base_property::name.

Referenced by property::set_name().

◆ set_parent()

void base_property::set_parent ( const graphics_handle h)
inlineinherited

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

References base_property::parent.

Referenced by property::set_parent().

◆ values_as_cell()

Cell radio_property::values_as_cell ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

References vals, and radio_values::values_as_cell().

◆ values_as_string()

std::string radio_property::values_as_string ( void  ) const
inlinevirtual

Reimplemented from base_property.

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

References vals, and radio_values::values_as_string().

Member Data Documentation

◆ count

octave::refcount<octave_idx_type> base_property::count
privateinherited

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

Referenced by property::property(), property::~property(), and property::operator=().

◆ current_val

std::string radio_property::current_val
private

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

Referenced by current_value(), do_set(), get(), and is().

◆ hidden

bool base_property::hidden
privateinherited

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

Referenced by base_property::is_hidden(), and base_property::set_hidden().

◆ id

int base_property::id
privateinherited

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

Referenced by base_property::get_id().

◆ listeners

listener_map base_property::listeners
privateinherited

◆ name

◆ parent

◆ vals

radio_values radio_property::vals
private

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

Referenced by do_set(), values_as_cell(), and values_as_string().


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