Maeomm Reference Documentation: hildon-libsmm
Main Page   Namespaces   Book  

Hildon::Seekbar Class Reference
[Widgets]

Inheritance diagram for Hildon::Seekbar:

Inheritance graph
[legend]
List of all members.

Detailed Description

Hildon::Seekbar allows seeking in media with a range widget.

It supports the setting or getting of the length (total time) of the media, the position within it and the fraction (maximum position in a stream/the amount currently downloaded). The position is clamped between zero and the total time, or zero and the fraction in case of a stream.


Public Member Functions

guint get_fraction () const
 Get current fraction value of the rage.
int get_position () const
 Get current position in stream in seconds.
int get_total_time () const
const HildonSeekbar* gobj () const
 Provides access to the underlying C GtkObject.
HildonSeekbar* gobj ()
 Provides access to the underlying C GtkObject.
 Seekbar ()
void set_fraction (guint fraction)
 Set current fraction value of the range.
void set_position (int time)
 Set current position in stream in seconds.
void set_total_time (int time)
 Set total playing time of media in seconds.
virtual ~Seekbar ()

Related Functions

(Note that these are not member functions.)

Hildon::Seekbarwrap (HildonSeekbar* object, bool take_copy=false)


Constructor & Destructor Documentation

virtual Hildon::Seekbar::~Seekbar (  )  [virtual]
 

Hildon::Seekbar::Seekbar (  ) 
 


Member Function Documentation

guint Hildon::Seekbar::get_fraction (  )  const
 

Get current fraction value of the rage.

Returns:
Current fraction.

int Hildon::Seekbar::get_position (  )  const
 

Get current position in stream in seconds.

Returns:
Current position in stream in seconds.

int Hildon::Seekbar::get_total_time (  )  const
 

Returns:
Total playing time of media in seconds.

const HildonSeekbar* Hildon::Seekbar::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Scale.

HildonSeekbar* Hildon::Seekbar::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Scale.

void Hildon::Seekbar::set_fraction ( guint  fraction  ) 
 

Set current fraction value of the range.

It should be between the minimal and maximal values of the range in seekbar.

Parameters:
fraction The new position of the progress indicator.

void Hildon::Seekbar::set_position ( int  time  ) 
 

Set current position in stream in seconds.

Parameters:
time Time within range of >= 0 && < G_MAXINT.

void Hildon::Seekbar::set_total_time ( int  time  ) 
 

Set total playing time of media in seconds.

Parameters:
time Integer greater than zero.


Friends And Related Function Documentation

Hildon::Seekbar* wrap ( HildonSeekbar*  object,
bool  take_copy = false
[related]
 

Parameters:
object The C instance
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated for hildon-libsmm by Doxygen 1.4.2 © 1997-2001