Back to index

unity  6.0.0
Namespaces | Classes | Enumerations | Functions | Variables
unity::launcher Namespace Reference

Namespaces

namespace  local

Classes

class  ActionArg
class  AbstractLauncherIcon
class  BamfLauncherIcon
class  BFBLauncherIcon
class  DesktopLauncherIcon
class  DeviceLauncherIcon
class  DeviceLauncherSection
class  HudLauncherIcon
class  Launcher
class  Controller
class  LauncherDragWindow
class  LauncherHideMachine
class  LauncherIcon
class  LauncherModel
class  Options
class  MockLauncherIcon
class  SimpleLauncherIcon
class  SingleMonitorLauncherIcon
class  SoftwareCenterLauncherIcon
class  SpacerLauncherIcon
class  TrashLauncherIcon

Enumerations

enum  LauncherHideMode { LAUNCHER_HIDE_NEVER, LAUNCHER_HIDE_AUTOHIDE }
enum  LaunchAnimation { LAUNCH_ANIMATION_NONE, LAUNCH_ANIMATION_PULSE, LAUNCH_ANIMATION_BLINK }
enum  UrgentAnimation { URGENT_ANIMATION_NONE, URGENT_ANIMATION_PULSE, URGENT_ANIMATION_WIGGLE }
enum  AutoHideAnimation { FADE_OR_SLIDE, SLIDE_ONLY, FADE_ONLY, FADE_AND_SLIDE }
enum  BacklightMode {
  BACKLIGHT_ALWAYS_ON, BACKLIGHT_NORMAL, BACKLIGHT_ALWAYS_OFF, BACKLIGHT_EDGE_TOGGLE,
  BACKLIGHT_NORMAL_EDGE_TOGGLE
}
enum  RevealTrigger { EDGE, CORNER }

Functions

 NUX_IMPLEMENT_OBJECT_TYPE (AbstractLauncherIcon)
 NUX_IMPLEMENT_OBJECT_TYPE (BamfLauncherIcon)
unsigned int ColorStrToARGB (const char *str)
 NUX_IMPLEMENT_OBJECT_TYPE (Launcher)
nux::Color FullySaturateColor (nux::Color color)
 NUX_IMPLEMENT_OBJECT_TYPE (LauncherDragWindow)
 NUX_IMPLEMENT_OBJECT_TYPE (LauncherIcon)
 NUX_IMPLEMENT_OBJECT_TYPE (MockLauncherIcon)
 NUX_IMPLEMENT_OBJECT_TYPE (SimpleLauncherIcon)
 NUX_IMPLEMENT_OBJECT_TYPE (SoftwareCenterLauncherIcon)

Variables

const char window_title [] = "unity-launcher"

Enumeration Type Documentation

Enumerator:
FADE_OR_SLIDE 
SLIDE_ONLY 
FADE_ONLY 
FADE_AND_SLIDE 

Definition at line 56 of file LauncherOptions.h.

Enumerator:
BACKLIGHT_ALWAYS_ON 
BACKLIGHT_NORMAL 
BACKLIGHT_ALWAYS_OFF 
BACKLIGHT_EDGE_TOGGLE 
BACKLIGHT_NORMAL_EDGE_TOGGLE 

Definition at line 64 of file LauncherOptions.h.

Enumerator:
LAUNCH_ANIMATION_NONE 
LAUNCH_ANIMATION_PULSE 
LAUNCH_ANIMATION_BLINK 

Definition at line 42 of file LauncherOptions.h.

Enumerator:
LAUNCHER_HIDE_NEVER 
LAUNCHER_HIDE_AUTOHIDE 

Definition at line 36 of file LauncherOptions.h.

Enumerator:
EDGE 
CORNER 

Definition at line 73 of file LauncherOptions.h.

{
  EDGE,
  CORNER,
};
Enumerator:
URGENT_ANIMATION_NONE 
URGENT_ANIMATION_PULSE 
URGENT_ANIMATION_WIGGLE 

Definition at line 49 of file LauncherOptions.h.


Function Documentation

unsigned int unity::launcher::ColorStrToARGB ( const char *  str)

Definition at line 773 of file BamfLauncherIcon.cpp.

{
  unsigned int ret = 0;
  if (str)
  {
    const char *hex = str[0] == '#' ? str + 1 : str;
    int digits = 0, color = 0;
    if (sscanf(hex, "%x%n", &color, &digits))
    {
      if (hex[digits])  // extra characters after the hex
        ret = 0;
      else if (digits == 6)
        ret = (unsigned int)color | 0xff000000;
      else if (digits == 8)   // Convert RGBA to ARGB:
        ret = ((unsigned int)color >> 8) | ((unsigned int)color << 24);
    }
  }
  return ret;
}

Here is the caller graph for this function:

nux::Color unity::launcher::FullySaturateColor ( nux::Color  color)

Definition at line 967 of file Launcher.cpp.

{
  float max = std::max<float>(color.red, std::max<float>(color.green, color.blue));
  color = color * (1.0f / max);
  return color;
}

Here is the caller graph for this function:

unity::launcher::NUX_IMPLEMENT_OBJECT_TYPE ( AbstractLauncherIcon  )
unity::launcher::NUX_IMPLEMENT_OBJECT_TYPE ( SoftwareCenterLauncherIcon  )

Variable Documentation

const char unity::launcher::window_title = "unity-launcher"

Definition at line 67 of file Launcher.cpp.